diff --git a/src/paths.rs b/src/paths.rs deleted file mode 100644 index 9c6da09..0000000 --- a/src/paths.rs +++ /dev/null @@ -1,13975 +0,0 @@ -pub struct DcimCableTerminationsRetrieveQuery { -} -/// Get a cable termination object. -pub fn dcim_cable_terminations_retrieve(query: DcimCableTerminationsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/cable-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsUpdateQuery { -} -/// Put a cable termination object. -pub fn dcim_cable_terminations_update(query: DcimCableTerminationsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/cable-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsPartialUpdateQuery { -} -/// Patch a cable termination object. -pub fn dcim_cable_terminations_partial_update(query: DcimCableTerminationsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/cable-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsDestroyQuery { -} -/// Delete a cable termination object. -pub fn dcim_cable_terminations_destroy(query: DcimCableTerminationsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/cable-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsRetrieveQuery { -} -/// Get a tenant object. -pub fn tenancy_tenants_retrieve(query: TenancyTenantsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/tenants/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsUpdateQuery { -} -/// Put a tenant object. -pub fn tenancy_tenants_update(query: TenancyTenantsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/tenants/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsPartialUpdateQuery { -} -/// Patch a tenant object. -pub fn tenancy_tenants_partial_update(query: TenancyTenantsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/tenants/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsDestroyQuery { -} -/// Delete a tenant object. -pub fn tenancy_tenants_destroy(query: TenancyTenantsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/tenants/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksListQuery { - content_typ_id: Vec, - content_typ_id__empty: Vec, - content_typ_id__gt: Vec, - content_typ_id__gte: Vec, - content_typ_id__lt: Vec, - content_typ_id__lte: Vec, - content_typ_id__n: Vec, - content_typs: String, - content_typs__ic: String, - content_typs__ie: String, - content_typs__iew: String, - content_typs__isw: String, - content_typs__n: String, - content_typs__nic: String, - content_typs__nie: String, - content_typs__niew: String, - content_typs__nisw: String, - enabled: bool, - group_name: Vec, - group_name__empty: bool, - group_name__ic: Vec, - group_name__ie: Vec, - group_name__iew: Vec, - group_name__isw: Vec, - group_name__n: Vec, - group_name__nic: Vec, - group_name__nie: Vec, - group_name__niew: Vec, - group_name__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - link_text: String, - link_text__ic: String, - link_text__ie: String, - link_text__iew: String, - link_text__isw: String, - link_text__n: String, - link_text__nic: String, - link_text__nie: String, - link_text__niew: String, - link_text__nisw: String, - link_url: String, - link_url__ic: String, - link_url__ie: String, - link_url__iew: String, - link_url__isw: String, - link_url__n: String, - link_url__nic: String, - link_url__nie: String, - link_url__niew: String, - link_url__nisw: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - new_window: bool, - offset: i64, - ordering: String, - q: String, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec -} -/// Get a list of custom link objects. -pub fn extras_custom_links_list(query: ExtrasCustomLinksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksBulkUpdateQuery { -} -/// Put a list of custom link objects. -pub fn extras_custom_links_bulk_update(query: ExtrasCustomLinksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksCreateQuery { -} -/// Post a list of custom link objects. -pub fn extras_custom_links_create(query: ExtrasCustomLinksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/custom-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksBulkPartialUpdateQuery { -} -/// Patch a list of custom link objects. -pub fn extras_custom_links_bulk_partial_update(query: ExtrasCustomLinksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksBulkDestroyQuery { -} -/// Delete a list of custom link objects. -pub fn extras_custom_links_bulk_destroy(query: ExtrasCustomLinksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensProvisionCreateQuery { -} -/// Non-authenticated REST API endpoint via which a user may create a Token. -pub fn users_tokens_provision_create(query: UsersTokensProvisionCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/users/tokens/provision/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesListQuery { - airflow: String, - airflow__n: String, - asset_tag: Vec, - asset_tag__empty: bool, - asset_tag__ic: Vec, - asset_tag__ie: Vec, - asset_tag__iew: Vec, - asset_tag__isw: Vec, - asset_tag__n: Vec, - asset_tag__nic: Vec, - asset_tag__nie: Vec, - asset_tag__niew: Vec, - asset_tag__nisw: Vec, - cluster_id: Vec, - cluster_id__n: Vec, - config_template_id: Vec, - config_template_id__n: Vec, - console_ports: bool, - console_server_ports: bool, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device_bays: bool, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - face: String, - face__n: String, - has_oob_ip: bool, - has_primary_ip: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interfaces: bool, - is_full_depth: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - latitude: Vec, - latitude__empty: bool, - latitude__gt: Vec, - latitude__gte: Vec, - latitude__lt: Vec, - latitude__lte: Vec, - latitude__n: Vec, - limit: i64, - local_context_data: bool, - location_id: Vec, - location_id__n: Vec, - longitude: Vec, - longitude__empty: bool, - longitude__gt: Vec, - longitude__gte: Vec, - longitude__lt: Vec, - longitude__lte: Vec, - longitude__n: Vec, - mac_address: Vec, - mac_address__ic: Vec, - mac_address__ie: Vec, - mac_address__iew: Vec, - mac_address__isw: Vec, - mac_address__n: Vec, - mac_address__nic: Vec, - mac_address__nie: Vec, - mac_address__niew: Vec, - mac_address__nisw: Vec, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - model: Vec, - model__n: Vec, - modified_by_request: String, - module_bays: bool, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - oob_ip_id: Vec, - oob_ip_id__n: Vec, - ordering: String, - parent_device_id: Vec, - parent_device_id__n: Vec, - pass_through_ports: bool, - platform: Vec, - platform__n: Vec, - platform_id: Vec, - platform_id__n: Vec, - position: Vec, - position__empty: bool, - position__gt: Vec, - position__gte: Vec, - position__lt: Vec, - position__lte: Vec, - position__n: Vec, - power_outlets: bool, - power_ports: bool, - primary_ip4_id: Vec, - primary_ip4_id__n: Vec, - primary_ip6_id: Vec, - primary_ip6_id__n: Vec, - q: String, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - serial: Vec, - serial__empty: bool, - serial__ic: Vec, - serial__ie: Vec, - serial__iew: Vec, - serial__isw: Vec, - serial__n: Vec, - serial__nic: Vec, - serial__nie: Vec, - serial__niew: Vec, - serial__nisw: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vc_position: Vec, - vc_position__empty: bool, - vc_position__gt: Vec, - vc_position__gte: Vec, - vc_position__lt: Vec, - vc_position__lte: Vec, - vc_position__n: Vec, - vc_priority: Vec, - vc_priority__empty: bool, - vc_priority__gt: Vec, - vc_priority__gte: Vec, - vc_priority__lt: Vec, - vc_priority__lte: Vec, - vc_priority__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec, - virtual_chassis_member: bool -} -/// Get a list of device objects. -pub fn dcim_devices_list(query: DcimDevicesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/devices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesBulkUpdateQuery { -} -/// Put a list of device objects. -pub fn dcim_devices_bulk_update(query: DcimDevicesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/devices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesCreateQuery { -} -/// Post a list of device objects. -pub fn dcim_devices_create(query: DcimDevicesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/devices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesBulkPartialUpdateQuery { -} -/// Patch a list of device objects. -pub fn dcim_devices_bulk_partial_update(query: DcimDevicesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/devices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesBulkDestroyQuery { -} -/// Delete a list of device objects. -pub fn dcim_devices_bulk_destroy(query: DcimDevicesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/devices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of rack role objects. -pub fn dcim_rack_roles_list(query: DcimRackRolesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rack-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesBulkUpdateQuery { -} -/// Put a list of rack role objects. -pub fn dcim_rack_roles_bulk_update(query: DcimRackRolesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rack-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesCreateQuery { -} -/// Post a list of rack role objects. -pub fn dcim_rack_roles_create(query: DcimRackRolesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/rack-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesBulkPartialUpdateQuery { -} -/// Patch a list of rack role objects. -pub fn dcim_rack_roles_bulk_partial_update(query: DcimRackRolesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rack-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesBulkDestroyQuery { -} -/// Delete a list of rack role objects. -pub fn dcim_rack_roles_bulk_destroy(query: DcimRackRolesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rack-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - export_target: Vec, - export_target__n: Vec, - export_target_id: Vec, - export_target_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - identifier: Vec, - identifier__empty: bool, - identifier__gt: Vec, - identifier__gte: Vec, - identifier__lt: Vec, - identifier__lte: Vec, - identifier__n: Vec, - import_target: Vec, - import_target__n: Vec, - import_target_id: Vec, - import_target_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String -} -/// Get a list of L2VPN objects. -pub fn ipam_l2vpns_list(query: IpamL2VpnsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/l2vpns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsBulkUpdateQuery { -} -/// Put a list of L2VPN objects. -pub fn ipam_l2vpns_bulk_update(query: IpamL2VpnsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/l2vpns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsCreateQuery { -} -/// Post a list of L2VPN objects. -pub fn ipam_l2vpns_create(query: IpamL2VpnsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/l2vpns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsBulkPartialUpdateQuery { -} -/// Patch a list of L2VPN objects. -pub fn ipam_l2vpns_bulk_partial_update(query: IpamL2VpnsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/l2vpns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsBulkDestroyQuery { -} -/// Delete a list of L2VPN objects. -pub fn ipam_l2vpns_bulk_destroy(query: IpamL2VpnsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/l2vpns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of power panel objects. -pub fn dcim_power_panels_list(query: DcimPowerPanelsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-panels/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsBulkUpdateQuery { -} -/// Put a list of power panel objects. -pub fn dcim_power_panels_bulk_update(query: DcimPowerPanelsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-panels/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsCreateQuery { -} -/// Post a list of power panel objects. -pub fn dcim_power_panels_create(query: DcimPowerPanelsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-panels/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsBulkPartialUpdateQuery { -} -/// Patch a list of power panel objects. -pub fn dcim_power_panels_bulk_partial_update(query: DcimPowerPanelsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-panels/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsBulkDestroyQuery { -} -/// Delete a list of power panel objects. -pub fn dcim_power_panels_bulk_destroy(query: DcimPowerPanelsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-panels/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksListQuery { - ca_file_path: Vec, - ca_file_path__empty: bool, - ca_file_path__ic: Vec, - ca_file_path__ie: Vec, - ca_file_path__iew: Vec, - ca_file_path__isw: Vec, - ca_file_path__n: Vec, - ca_file_path__nic: Vec, - ca_file_path__nie: Vec, - ca_file_path__niew: Vec, - ca_file_path__nisw: Vec, - content_typ_id: Vec, - content_typ_id__empty: Vec, - content_typ_id__gt: Vec, - content_typ_id__gte: Vec, - content_typ_id__lt: Vec, - content_typ_id__lte: Vec, - content_typ_id__n: Vec, - content_typs: String, - content_typs__ic: String, - content_typs__ie: String, - content_typs__iew: String, - content_typs__isw: String, - content_typs__n: String, - content_typs__nic: String, - content_typs__nie: String, - content_typs__niew: String, - content_typs__nisw: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - enabled: bool, - http_content_typ: Vec, - http_content_typ__empty: bool, - http_content_typ__ic: Vec, - http_content_typ__ie: Vec, - http_content_typ__iew: Vec, - http_content_typ__isw: Vec, - http_content_typ__n: Vec, - http_content_typ__nic: Vec, - http_content_typ__nie: Vec, - http_content_typ__niew: Vec, - http_content_typ__nisw: Vec, - http_method: Vec, - http_method__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - payload_url: Vec, - payload_url__empty: bool, - payload_url__ic: Vec, - payload_url__ie: Vec, - payload_url__iew: Vec, - payload_url__isw: Vec, - payload_url__n: Vec, - payload_url__nic: Vec, - payload_url__nie: Vec, - payload_url__niew: Vec, - payload_url__nisw: Vec, - q: String, - secret: Vec, - secret__empty: bool, - secret__ic: Vec, - secret__ie: Vec, - secret__iew: Vec, - secret__isw: Vec, - secret__n: Vec, - secret__nic: Vec, - secret__nie: Vec, - secret__niew: Vec, - secret__nisw: Vec, - ssl_verification: bool, - tag: Vec, - tag__n: Vec, - typ_create: bool, - typ_delete: bool, - typ_job_end: bool, - typ_job_start: bool, - typ_update: bool, - updated_by_request: String -} -/// Get a list of webhook objects. -pub fn extras_webhooks_list(query: ExtrasWebhooksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/webhooks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksBulkUpdateQuery { -} -/// Put a list of webhook objects. -pub fn extras_webhooks_bulk_update(query: ExtrasWebhooksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/webhooks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksCreateQuery { -} -/// Post a list of webhook objects. -pub fn extras_webhooks_create(query: ExtrasWebhooksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/webhooks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksBulkPartialUpdateQuery { -} -/// Patch a list of webhook objects. -pub fn extras_webhooks_bulk_partial_update(query: ExtrasWebhooksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/webhooks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksBulkDestroyQuery { -} -/// Delete a list of webhook objects. -pub fn extras_webhooks_bulk_destroy(query: ExtrasWebhooksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/webhooks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsListQuery { - contact_id: Vec, - contact_id__n: Vec, - content_typ: String, - content_typ__n: String, - content_typ_id: i64, - content_typ_id__n: i64, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - object_id: Vec, - object_id__empty: bool, - object_id__gt: Vec, - object_id__gte: Vec, - object_id__lt: Vec, - object_id__lte: Vec, - object_id__n: Vec, - offset: i64, - ordering: String, - priority: String, - priority__n: String, - q: String, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of contact assignment objects. -pub fn tenancy_contact_assignments_list(query: TenancyContactAssignmentsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsBulkUpdateQuery { -} -/// Put a list of contact assignment objects. -pub fn tenancy_contact_assignments_bulk_update(query: TenancyContactAssignmentsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsCreateQuery { -} -/// Post a list of contact assignment objects. -pub fn tenancy_contact_assignments_create(query: TenancyContactAssignmentsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/contact-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsBulkPartialUpdateQuery { -} -/// Patch a list of contact assignment objects. -pub fn tenancy_contact_assignments_bulk_partial_update(query: TenancyContactAssignmentsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsBulkDestroyQuery { -} -/// Delete a list of contact assignment objects. -pub fn tenancy_contact_assignments_bulk_destroy(query: TenancyContactAssignmentsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksListQuery { - auth_cipher: Vec, - auth_cipher__n: Vec, - auth_psk: Vec, - auth_psk__empty: bool, - auth_psk__ic: Vec, - auth_psk__ie: Vec, - auth_psk__iew: Vec, - auth_psk__isw: Vec, - auth_psk__n: Vec, - auth_psk__nic: Vec, - auth_psk__nie: Vec, - auth_psk__niew: Vec, - auth_psk__nisw: Vec, - auth_typ: Vec, - auth_typ__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interface_a_id: Vec, - interface_a_id__empty: Vec, - interface_a_id__gt: Vec, - interface_a_id__gte: Vec, - interface_a_id__lt: Vec, - interface_a_id__lte: Vec, - interface_a_id__n: Vec, - interface_b_id: Vec, - interface_b_id__empty: Vec, - interface_b_id__gt: Vec, - interface_b_id__gte: Vec, - interface_b_id__lt: Vec, - interface_b_id__lte: Vec, - interface_b_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - ssid: Vec, - ssid__empty: bool, - ssid__ic: Vec, - ssid__ie: Vec, - ssid__iew: Vec, - ssid__isw: Vec, - ssid__n: Vec, - ssid__nic: Vec, - ssid__nie: Vec, - ssid__niew: Vec, - ssid__nisw: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of wireless link objects. -pub fn wireless_wireless_links_list(query: WirelessWirelessLinksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksBulkUpdateQuery { -} -/// Put a list of wireless link objects. -pub fn wireless_wireless_links_bulk_update(query: WirelessWirelessLinksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksCreateQuery { -} -/// Post a list of wireless link objects. -pub fn wireless_wireless_links_create(query: WirelessWirelessLinksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/wireless/wireless-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksBulkPartialUpdateQuery { -} -/// Patch a list of wireless link objects. -pub fn wireless_wireless_links_bulk_partial_update(query: WirelessWirelessLinksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksBulkDestroyQuery { -} -/// Delete a list of wireless link objects. -pub fn wireless_wireless_links_bulk_destroy(query: WirelessWirelessLinksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-links/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - date_added: Vec, - date_added__empty: bool, - date_added__gt: Vec, - date_added__gte: Vec, - date_added__lt: Vec, - date_added__lte: Vec, - date_added__n: Vec, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - family: f64, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - prefix: String, - q: String, - rir: Vec, - rir__n: Vec, - rir_id: Vec, - rir_id__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of aggregate objects. -pub fn ipam_aggregates_list(query: IpamAggregatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/aggregates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesBulkUpdateQuery { -} -/// Put a list of aggregate objects. -pub fn ipam_aggregates_bulk_update(query: IpamAggregatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/aggregates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesCreateQuery { -} -/// Post a list of aggregate objects. -pub fn ipam_aggregates_create(query: IpamAggregatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/aggregates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesBulkPartialUpdateQuery { -} -/// Patch a list of aggregate objects. -pub fn ipam_aggregates_bulk_partial_update(query: IpamAggregatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/aggregates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesBulkDestroyQuery { -} -/// Delete a list of aggregate objects. -pub fn ipam_aggregates_bulk_destroy(query: IpamAggregatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/aggregates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesListQuery { - asset_tag: Vec, - asset_tag__empty: bool, - asset_tag__ic: Vec, - asset_tag__ie: Vec, - asset_tag__iew: Vec, - asset_tag__isw: Vec, - asset_tag__n: Vec, - asset_tag__nic: Vec, - asset_tag__nie: Vec, - asset_tag__niew: Vec, - asset_tag__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device_id: Vec, - device_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - modified_by_request: String, - module_bay_id: Vec, - module_bay_id__n: Vec, - module_typ: Vec, - module_typ__n: Vec, - module_typ_id: Vec, - module_typ_id__n: Vec, - offset: i64, - ordering: String, - q: String, - serial: Vec, - serial__empty: bool, - serial__ic: Vec, - serial__ie: Vec, - serial__iew: Vec, - serial__isw: Vec, - serial__n: Vec, - serial__nic: Vec, - serial__nie: Vec, - serial__niew: Vec, - serial__nisw: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of module objects. -pub fn dcim_modules_list(query: DcimModulesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/modules/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesBulkUpdateQuery { -} -/// Put a list of module objects. -pub fn dcim_modules_bulk_update(query: DcimModulesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/modules/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesCreateQuery { -} -/// Post a list of module objects. -pub fn dcim_modules_create(query: DcimModulesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/modules/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesBulkPartialUpdateQuery { -} -/// Patch a list of module objects. -pub fn dcim_modules_bulk_partial_update(query: DcimModulesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/modules/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesBulkDestroyQuery { -} -/// Delete a list of module objects. -pub fn dcim_modules_bulk_destroy(query: DcimModulesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/modules/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesRetrieveQuery { -} -/// Get a IP range object. -pub fn ipam_ip_ranges_retrieve(query: IpamIpRangesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/ip-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesUpdateQuery { -} -/// Put a IP range object. -pub fn ipam_ip_ranges_update(query: IpamIpRangesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/ip-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesPartialUpdateQuery { -} -/// Patch a IP range object. -pub fn ipam_ip_ranges_partial_update(query: IpamIpRangesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/ip-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesDestroyQuery { -} -/// Delete a IP range object. -pub fn ipam_ip_ranges_destroy(query: IpamIpRangesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/ip-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - typ: Vec, - typ__n: Vec, - updated_by_request: String -} -/// Get a list of front port template objects. -pub fn dcim_front_port_templates_list(query: DcimFrontPortTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/front-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesBulkUpdateQuery { -} -/// Put a list of front port template objects. -pub fn dcim_front_port_templates_bulk_update(query: DcimFrontPortTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/front-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesCreateQuery { -} -/// Post a list of front port template objects. -pub fn dcim_front_port_templates_create(query: DcimFrontPortTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/front-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of front port template objects. -pub fn dcim_front_port_templates_bulk_partial_update(query: DcimFrontPortTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/front-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesBulkDestroyQuery { -} -/// Delete a list of front port template objects. -pub fn dcim_front_port_templates_bulk_destroy(query: DcimFrontPortTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/front-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsListQuery { - cluster: i64, - clustergroup: f64, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: i64, - max_vid: Vec, - max_vid__empty: bool, - max_vid__gt: Vec, - max_vid__gte: Vec, - max_vid__lt: Vec, - max_vid__lte: Vec, - max_vid__n: Vec, - min_vid: Vec, - min_vid__empty: bool, - min_vid__gt: Vec, - min_vid__gte: Vec, - min_vid__lt: Vec, - min_vid__lte: Vec, - min_vid__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - rack: i64, - region: i64, - scope_id: Vec, - scope_id__empty: bool, - scope_id__gt: Vec, - scope_id__gte: Vec, - scope_id__lt: Vec, - scope_id__lte: Vec, - scope_id__n: Vec, - scope_typ: String, - scope_typ__n: String, - site: i64, - sitegroup: f64, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of VLAN group objects. -pub fn ipam_vlan_groups_list(query: IpamVlanGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vlan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsBulkUpdateQuery { -} -/// Put a list of VLAN group objects. -pub fn ipam_vlan_groups_bulk_update(query: IpamVlanGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vlan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsCreateQuery { -} -/// Post a list of VLAN group objects. -pub fn ipam_vlan_groups_create(query: IpamVlanGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/vlan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsBulkPartialUpdateQuery { -} -/// Patch a list of VLAN group objects. -pub fn ipam_vlan_groups_bulk_partial_update(query: IpamVlanGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vlan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsBulkDestroyQuery { -} -/// Delete a list of VLAN group objects. -pub fn ipam_vlan_groups_bulk_destroy(query: IpamVlanGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vlan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of manufacturer objects. -pub fn dcim_manufacturers_list(query: DcimManufacturersListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/manufacturers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersBulkUpdateQuery { -} -/// Put a list of manufacturer objects. -pub fn dcim_manufacturers_bulk_update(query: DcimManufacturersBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/manufacturers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersCreateQuery { -} -/// Post a list of manufacturer objects. -pub fn dcim_manufacturers_create(query: DcimManufacturersCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/manufacturers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersBulkPartialUpdateQuery { -} -/// Patch a list of manufacturer objects. -pub fn dcim_manufacturers_bulk_partial_update(query: DcimManufacturersBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/manufacturers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersBulkDestroyQuery { -} -/// Delete a list of manufacturer objects. -pub fn dcim_manufacturers_bulk_destroy(query: DcimManufacturersBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/manufacturers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsListQuery { - config_template_id: Vec, - config_template_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of platform objects. -pub fn dcim_platforms_list(query: DcimPlatformsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/platforms/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsBulkUpdateQuery { -} -/// Put a list of platform objects. -pub fn dcim_platforms_bulk_update(query: DcimPlatformsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/platforms/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsCreateQuery { -} -/// Post a list of platform objects. -pub fn dcim_platforms_create(query: DcimPlatformsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/platforms/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsBulkPartialUpdateQuery { -} -/// Patch a list of platform objects. -pub fn dcim_platforms_bulk_partial_update(query: DcimPlatformsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/platforms/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsBulkDestroyQuery { -} -/// Delete a list of platform objects. -pub fn dcim_platforms_bulk_destroy(query: DcimPlatformsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/platforms/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesRetrieveQuery { -} -/// Get a device type object. -pub fn dcim_device_types_retrieve(query: DcimDeviceTypesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesUpdateQuery { -} -/// Put a device type object. -pub fn dcim_device_types_update(query: DcimDeviceTypesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesPartialUpdateQuery { -} -/// Patch a device type object. -pub fn dcim_device_types_partial_update(query: DcimDeviceTypesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesDestroyQuery { -} -/// Delete a device type object. -pub fn dcim_device_types_destroy(query: DcimDeviceTypesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesSyncCreateQuery { -} -/// Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). -pub fn extras_config_templates_sync_create(query: ExtrasConfigTemplatesSyncCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/config-templates/{id}/sync/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesListQuery { - color: Vec, - color__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device_id: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - length: Vec, - length__empty: bool, - length__gt: Vec, - length__gte: Vec, - length__lt: Vec, - length__lte: Vec, - length__n: Vec, - length_unit: String, - length_unit__n: String, - limit: i64, - location: Vec, - location_id: Vec, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack_id: Vec, - site: Vec, - site_id: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - termination_a_id: Vec, - termination_a_typ: String, - termination_a_typ__n: String, - termination_b_id: Vec, - termination_b_typ: String, - termination_b_typ__n: String, - typ: Vec, - typ__n: Vec, - unterminated: bool, - updated_by_request: String -} -/// Get a list of cable objects. -pub fn dcim_cables_list(query: DcimCablesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/cables/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesBulkUpdateQuery { -} -/// Put a list of cable objects. -pub fn dcim_cables_bulk_update(query: DcimCablesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/cables/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesCreateQuery { -} -/// Post a list of cable objects. -pub fn dcim_cables_create(query: DcimCablesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/cables/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesBulkPartialUpdateQuery { -} -/// Patch a list of cable objects. -pub fn dcim_cables_bulk_partial_update(query: DcimCablesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/cables/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesBulkDestroyQuery { -} -/// Delete a list of cable objects. -pub fn dcim_cables_bulk_destroy(query: DcimCablesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/cables/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - ipaddress: Vec, - ipaddress__n: Vec, - ipaddress_id: Vec, - ipaddress_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - port: f64, - protocol: String, - protocol__n: String, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_machine: Vec, - virtual_machine__n: Vec, - virtual_machine_id: Vec, - virtual_machine_id__n: Vec -} -/// Get a list of service objects. -pub fn ipam_services_list(query: IpamServicesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/services/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesBulkUpdateQuery { -} -/// Put a list of service objects. -pub fn ipam_services_bulk_update(query: IpamServicesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/services/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesCreateQuery { -} -/// Post a list of service objects. -pub fn ipam_services_create(query: IpamServicesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/services/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesBulkPartialUpdateQuery { -} -/// Patch a list of service objects. -pub fn ipam_services_bulk_partial_update(query: IpamServicesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/services/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesBulkDestroyQuery { -} -/// Delete a list of service objects. -pub fn ipam_services_bulk_destroy(query: IpamServicesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/services/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsRetrieveQuery { -} -/// Get a cluster group object. -pub fn virtualization_cluster_groups_retrieve(query: VirtualizationClusterGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/cluster-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsUpdateQuery { -} -/// Put a cluster group object. -pub fn virtualization_cluster_groups_update(query: VirtualizationClusterGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/cluster-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsPartialUpdateQuery { -} -/// Patch a cluster group object. -pub fn virtualization_cluster_groups_partial_update(query: VirtualizationClusterGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/cluster-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsDestroyQuery { -} -/// Delete a cluster group object. -pub fn virtualization_cluster_groups_destroy(query: VirtualizationClusterGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/cluster-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsRetrieveQuery { -} -/// Get a power feed object. -pub fn dcim_power_feeds_retrieve(query: DcimPowerFeedsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-feeds/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsUpdateQuery { -} -/// Put a power feed object. -pub fn dcim_power_feeds_update(query: DcimPowerFeedsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-feeds/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsPartialUpdateQuery { -} -/// Patch a power feed object. -pub fn dcim_power_feeds_partial_update(query: DcimPowerFeedsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-feeds/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsDestroyQuery { -} -/// Delete a power feed object. -pub fn dcim_power_feeds_destroy(query: DcimPowerFeedsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-feeds/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsListQuery { - content_typ: String, - content_typ__n: String, - content_typ_id: i64, - content_typ_id__n: i64, - created: DateTime, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - object_id: Vec, - object_id__empty: bool, - object_id__gt: Vec, - object_id__gte: Vec, - object_id__lt: Vec, - object_id__lte: Vec, - object_id__n: Vec, - offset: i64, - ordering: String, - q: String -} -/// Get a list of image attachment objects. -pub fn extras_image_attachments_list(query: ExtrasImageAttachmentsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/image-attachments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsBulkUpdateQuery { -} -/// Put a list of image attachment objects. -pub fn extras_image_attachments_bulk_update(query: ExtrasImageAttachmentsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/image-attachments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsCreateQuery { -} -/// Post a list of image attachment objects. -pub fn extras_image_attachments_create(query: ExtrasImageAttachmentsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/image-attachments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsBulkPartialUpdateQuery { -} -/// Patch a list of image attachment objects. -pub fn extras_image_attachments_bulk_partial_update(query: ExtrasImageAttachmentsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/image-attachments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsBulkDestroyQuery { -} -/// Delete a list of image attachment objects. -pub fn extras_image_attachments_bulk_destroy(query: ExtrasImageAttachmentsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/image-attachments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsRetrieveQuery { -} -/// Get a inventory item object. -pub fn dcim_inventory_items_retrieve(query: DcimInventoryItemsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-items/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsUpdateQuery { -} -/// Put a inventory item object. -pub fn dcim_inventory_items_update(query: DcimInventoryItemsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-items/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsPartialUpdateQuery { -} -/// Patch a inventory item object. -pub fn dcim_inventory_items_partial_update(query: DcimInventoryItemsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-items/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsDestroyQuery { -} -/// Delete a inventory item object. -pub fn dcim_inventory_items_destroy(query: DcimInventoryItemsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-items/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsPathsRetrieveQuery { -} -/// Return all CablePaths which traverse a given pass-through port. -pub fn dcim_rear_ports_paths_retrieve(query: DcimRearPortsPathsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rear-ports/{id}/paths/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksRetrieveQuery { -} -/// Get a provider network object. -pub fn circuits_provider_networks_retrieve(query: CircuitsProviderNetworksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/provider-networks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksUpdateQuery { -} -/// Put a provider network object. -pub fn circuits_provider_networks_update(query: CircuitsProviderNetworksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/provider-networks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksPartialUpdateQuery { -} -/// Patch a provider network object. -pub fn circuits_provider_networks_partial_update(query: CircuitsProviderNetworksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/provider-networks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksDestroyQuery { -} -/// Delete a provider network object. -pub fn circuits_provider_networks_destroy(query: CircuitsProviderNetworksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/provider-networks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreJobsListQuery { - completed: DateTime, - completed__after: DateTime, - completed__before: DateTime, - created: DateTime, - created__after: DateTime, - created__before: DateTime, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interval: Vec, - interval__empty: bool, - interval__gt: Vec, - interval__gte: Vec, - interval__lt: Vec, - interval__lte: Vec, - interval__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - object_id: Vec, - object_id__empty: bool, - object_id__gt: Vec, - object_id__gte: Vec, - object_id__lt: Vec, - object_id__lte: Vec, - object_id__n: Vec, - object_typ: i64, - object_typ__n: i64, - offset: i64, - ordering: String, - q: String, - scheduled: DateTime, - scheduled__after: DateTime, - scheduled__before: DateTime, - started: DateTime, - started__after: DateTime, - started__before: DateTime, - status: Vec, - status__n: Vec, - user: i64, - user__n: i64 -} -/// Retrieve a list of job results -pub fn core_jobs_list(query: CoreJobsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/jobs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksRetrieveQuery { -} -/// Get a rack object. -pub fn dcim_racks_retrieve(query: DcimRacksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/racks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksUpdateQuery { -} -/// Put a rack object. -pub fn dcim_racks_update(query: DcimRacksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/racks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksPartialUpdateQuery { -} -/// Patch a rack object. -pub fn dcim_racks_partial_update(query: DcimRacksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/racks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksDestroyQuery { -} -/// Delete a rack object. -pub fn dcim_racks_destroy(query: DcimRacksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/racks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsListQuery { - cid: Vec, - cid__empty: bool, - cid__ic: Vec, - cid__ie: Vec, - cid__iew: Vec, - cid__isw: Vec, - cid__n: Vec, - cid__nic: Vec, - cid__nie: Vec, - cid__niew: Vec, - cid__nisw: Vec, - commit_rate: Vec, - commit_rate__empty: bool, - commit_rate__gt: Vec, - commit_rate__gte: Vec, - commit_rate__lt: Vec, - commit_rate__lte: Vec, - commit_rate__n: Vec, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - install_date: Vec, - install_date__empty: bool, - install_date__gt: Vec, - install_date__gte: Vec, - install_date__lt: Vec, - install_date__lte: Vec, - install_date__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - provider: Vec, - provider__n: Vec, - provider_account_id: Vec, - provider_account_id__n: Vec, - provider_id: Vec, - provider_id__n: Vec, - provider_network_id: Vec, - provider_network_id__n: Vec, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - termination_date: Vec, - termination_date__empty: bool, - termination_date__gt: Vec, - termination_date__gte: Vec, - termination_date__lt: Vec, - termination_date__lte: Vec, - termination_date__n: Vec, - typ: Vec, - typ__n: Vec, - typ_id: Vec, - typ_id__n: Vec, - updated_by_request: String -} -/// Get a list of circuit objects. -pub fn circuits_circuits_list(query: CircuitsCircuitsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuits/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsBulkUpdateQuery { -} -/// Put a list of circuit objects. -pub fn circuits_circuits_bulk_update(query: CircuitsCircuitsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuits/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsCreateQuery { -} -/// Post a list of circuit objects. -pub fn circuits_circuits_create(query: CircuitsCircuitsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/circuits/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsBulkPartialUpdateQuery { -} -/// Patch a list of circuit objects. -pub fn circuits_circuits_bulk_partial_update(query: CircuitsCircuitsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuits/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsBulkDestroyQuery { -} -/// Delete a list of circuit objects. -pub fn circuits_circuits_bulk_destroy(query: CircuitsCircuitsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuits/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsListQuery { - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String -} -/// Get a list of group objects. -pub fn users_groups_list(query: UsersGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsBulkUpdateQuery { -} -/// Put a list of group objects. -pub fn users_groups_bulk_update(query: UsersGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsCreateQuery { -} -/// Post a list of group objects. -pub fn users_groups_create(query: UsersGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/users/groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsBulkPartialUpdateQuery { -} -/// Patch a list of group objects. -pub fn users_groups_bulk_partial_update(query: UsersGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsBulkDestroyQuery { -} -/// Delete a list of group objects. -pub fn users_groups_bulk_destroy(query: UsersGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsRetrieveQuery { -} -/// Get a power port object. -pub fn dcim_power_ports_retrieve(query: DcimPowerPortsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsUpdateQuery { -} -/// Put a power port object. -pub fn dcim_power_ports_update(query: DcimPowerPortsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsPartialUpdateQuery { -} -/// Patch a power port object. -pub fn dcim_power_ports_partial_update(query: DcimPowerPortsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsDestroyQuery { -} -/// Delete a power port object. -pub fn dcim_power_ports_destroy(query: DcimPowerPortsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesRetrieveQuery { -} -/// Get a site object. -pub fn dcim_sites_retrieve(query: DcimSitesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/sites/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesUpdateQuery { -} -/// Put a site object. -pub fn dcim_sites_update(query: DcimSitesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/sites/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesPartialUpdateQuery { -} -/// Patch a site object. -pub fn dcim_sites_partial_update(query: DcimSitesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/sites/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesDestroyQuery { -} -/// Delete a site object. -pub fn dcim_sites_destroy(query: DcimSitesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/sites/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesRetrieveQuery { -} -/// Get a contact role object. -pub fn tenancy_contact_roles_retrieve(query: TenancyContactRolesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesUpdateQuery { -} -/// Put a contact role object. -pub fn tenancy_contact_roles_update(query: TenancyContactRolesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesPartialUpdateQuery { -} -/// Patch a contact role object. -pub fn tenancy_contact_roles_partial_update(query: TenancyContactRolesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesDestroyQuery { -} -/// Delete a contact role object. -pub fn tenancy_contact_roles_destroy(query: TenancyContactRolesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsListQuery { - can_add: bool, - can_change: bool, - can_delete: bool, - can_view: bool, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - enabled: bool, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - object_typs: Vec, - object_typs__n: Vec, - offset: i64, - ordering: String, - q: String, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec -} -/// Get a list of permission objects. -pub fn users_permissions_list(query: UsersPermissionsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/permissions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsBulkUpdateQuery { -} -/// Put a list of permission objects. -pub fn users_permissions_bulk_update(query: UsersPermissionsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/permissions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsCreateQuery { -} -/// Post a list of permission objects. -pub fn users_permissions_create(query: UsersPermissionsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/users/permissions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsBulkPartialUpdateQuery { -} -/// Patch a list of permission objects. -pub fn users_permissions_bulk_partial_update(query: UsersPermissionsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/permissions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsBulkDestroyQuery { -} -/// Delete a list of permission objects. -pub fn users_permissions_bulk_destroy(query: UsersPermissionsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/permissions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsRetrieveQuery { -} -/// Get a L2VPN termination object. -pub fn ipam_l2vpn_terminations_retrieve(query: IpamL2VpnTerminationsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/l2vpn-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsUpdateQuery { -} -/// Put a L2VPN termination object. -pub fn ipam_l2vpn_terminations_update(query: IpamL2VpnTerminationsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/l2vpn-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsPartialUpdateQuery { -} -/// Patch a L2VPN termination object. -pub fn ipam_l2vpn_terminations_partial_update(query: IpamL2VpnTerminationsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/l2vpn-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsDestroyQuery { -} -/// Delete a L2VPN termination object. -pub fn ipam_l2vpn_terminations_destroy(query: IpamL2VpnTerminationsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/l2vpn-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersConfigRetrieveQuery { -} -/// An API endpoint via which a user can update his or her own UserConfig data (but no one else's). -pub fn users_config_retrieve(query: UsersConfigRetrieveQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/config/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsRetrieveQuery { -} -/// Get a contact assignment object. -pub fn tenancy_contact_assignments_retrieve(query: TenancyContactAssignmentsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsUpdateQuery { -} -/// Put a contact assignment object. -pub fn tenancy_contact_assignments_update(query: TenancyContactAssignmentsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsPartialUpdateQuery { -} -/// Patch a contact assignment object. -pub fn tenancy_contact_assignments_partial_update(query: TenancyContactAssignmentsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactAssignmentsDestroyQuery { -} -/// Delete a contact assignment object. -pub fn tenancy_contact_assignments_destroy(query: TenancyContactAssignmentsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesListQuery { - assigned_object_id: Vec, - assigned_object_id__empty: bool, - assigned_object_id__gt: Vec, - assigned_object_id__gte: Vec, - assigned_object_id__lt: Vec, - assigned_object_id__lte: Vec, - assigned_object_id__n: Vec, - assigned_object_typ: String, - assigned_object_typ__n: String, - assigned_object_typ_id: Vec, - assigned_object_typ_id__n: Vec, - created_after: DateTime, - created_before: DateTime, - created_by: Vec, - created_by__n: Vec, - created_by_id: Vec, - created_by_id__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - kind: Vec, - kind__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of journal entry objects. -pub fn extras_journal_entries_list(query: ExtrasJournalEntriesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/journal-entries/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesBulkUpdateQuery { -} -/// Put a list of journal entry objects. -pub fn extras_journal_entries_bulk_update(query: ExtrasJournalEntriesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/journal-entries/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesCreateQuery { -} -/// Post a list of journal entry objects. -pub fn extras_journal_entries_create(query: ExtrasJournalEntriesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/journal-entries/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesBulkPartialUpdateQuery { -} -/// Patch a list of journal entry objects. -pub fn extras_journal_entries_bulk_partial_update(query: ExtrasJournalEntriesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/journal-entries/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesBulkDestroyQuery { -} -/// Delete a list of journal entry objects. -pub fn extras_journal_entries_bulk_destroy(query: ExtrasJournalEntriesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/journal-entries/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of tenant group objects. -pub fn tenancy_tenant_groups_list(query: TenancyTenantGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/tenant-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsBulkUpdateQuery { -} -/// Put a list of tenant group objects. -pub fn tenancy_tenant_groups_bulk_update(query: TenancyTenantGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/tenant-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsCreateQuery { -} -/// Post a list of tenant group objects. -pub fn tenancy_tenant_groups_create(query: TenancyTenantGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/tenant-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsBulkPartialUpdateQuery { -} -/// Patch a list of tenant group objects. -pub fn tenancy_tenant_groups_bulk_partial_update(query: TenancyTenantGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/tenant-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsBulkDestroyQuery { -} -/// Delete a list of tenant group objects. -pub fn tenancy_tenant_groups_bulk_destroy(query: TenancyTenantGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/tenant-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreJobsRetrieveQuery { -} -/// Retrieve a list of job results -pub fn core_jobs_retrieve(query: CoreJobsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/jobs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesRetrieveQuery { -} -/// Get a interface template object. -pub fn dcim_interface_templates_retrieve(query: DcimInterfaceTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/interface-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesUpdateQuery { -} -/// Put a interface template object. -pub fn dcim_interface_templates_update(query: DcimInterfaceTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/interface-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesPartialUpdateQuery { -} -/// Patch a interface template object. -pub fn dcim_interface_templates_partial_update(query: DcimInterfaceTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/interface-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesDestroyQuery { -} -/// Delete a interface template object. -pub fn dcim_interface_templates_destroy(query: DcimInterfaceTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/interface-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesRetrieveQuery { -} -/// Get a virtual machine object. -pub fn virtualization_virtual_machines_retrieve(query: VirtualizationVirtualMachinesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/virtual-machines/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesUpdateQuery { -} -/// Put a virtual machine object. -pub fn virtualization_virtual_machines_update(query: VirtualizationVirtualMachinesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/virtual-machines/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesPartialUpdateQuery { -} -/// Patch a virtual machine object. -pub fn virtualization_virtual_machines_partial_update(query: VirtualizationVirtualMachinesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/virtual-machines/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesDestroyQuery { -} -/// Delete a virtual machine object. -pub fn virtualization_virtual_machines_destroy(query: VirtualizationVirtualMachinesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/virtual-machines/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsListQuery { - allocated_draw: Vec, - allocated_draw__empty: bool, - allocated_draw__gt: Vec, - allocated_draw__gte: Vec, - allocated_draw__lt: Vec, - allocated_draw__lte: Vec, - allocated_draw__n: Vec, - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - maximum_draw: Vec, - maximum_draw__empty: bool, - maximum_draw__gt: Vec, - maximum_draw__gte: Vec, - maximum_draw__lt: Vec, - maximum_draw__lte: Vec, - maximum_draw__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of power port objects. -pub fn dcim_power_ports_list(query: DcimPowerPortsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsBulkUpdateQuery { -} -/// Put a list of power port objects. -pub fn dcim_power_ports_bulk_update(query: DcimPowerPortsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsCreateQuery { -} -/// Post a list of power port objects. -pub fn dcim_power_ports_create(query: DcimPowerPortsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsBulkPartialUpdateQuery { -} -/// Patch a list of power port objects. -pub fn dcim_power_ports_bulk_partial_update(query: DcimPowerPortsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsBulkDestroyQuery { -} -/// Delete a list of power port objects. -pub fn dcim_power_ports_bulk_destroy(query: DcimPowerPortsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - positions: Vec, - positions__empty: bool, - positions__gt: Vec, - positions__gte: Vec, - positions__lt: Vec, - positions__lte: Vec, - positions__n: Vec, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of rear port objects. -pub fn dcim_rear_ports_list(query: DcimRearPortsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rear-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsBulkUpdateQuery { -} -/// Put a list of rear port objects. -pub fn dcim_rear_ports_bulk_update(query: DcimRearPortsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rear-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsCreateQuery { -} -/// Post a list of rear port objects. -pub fn dcim_rear_ports_create(query: DcimRearPortsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/rear-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsBulkPartialUpdateQuery { -} -/// Patch a list of rear port objects. -pub fn dcim_rear_ports_bulk_partial_update(query: DcimRearPortsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rear-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsBulkDestroyQuery { -} -/// Delete a list of rear port objects. -pub fn dcim_rear_ports_bulk_destroy(query: DcimRearPortsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rear-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsRetrieveQuery { -} -/// Get a console port object. -pub fn dcim_console_ports_retrieve(query: DcimConsolePortsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsUpdateQuery { -} -/// Put a console port object. -pub fn dcim_console_ports_update(query: DcimConsolePortsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsPartialUpdateQuery { -} -/// Patch a console port object. -pub fn dcim_console_ports_partial_update(query: DcimConsolePortsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsDestroyQuery { -} -/// Delete a console port object. -pub fn dcim_console_ports_destroy(query: DcimConsolePortsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsPathsRetrieveQuery { -} -/// Return all CablePaths which traverse a given pass-through port. -pub fn circuits_circuit_terminations_paths_retrieve(query: CircuitsCircuitTerminationsPathsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuit-terminations/{id}/paths/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device_id: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interface_id: Vec, - interface_id__empty: bool, - interface_id__gt: Vec, - interface_id__gte: Vec, - interface_id__lt: Vec, - interface_id__lte: Vec, - interface_id__n: Vec, - interface_typ: String, - interface_typ__n: String, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - priority: Vec, - priority__empty: bool, - priority__gt: Vec, - priority__gte: Vec, - priority__lt: Vec, - priority__lte: Vec, - priority__n: Vec, - updated_by_request: String, - virtual_machine: Vec, - virtual_machine_id: Vec -} -/// Get a list of FHRP group assignment objects. -pub fn ipam_fhrp_group_assignments_list(query: IpamFhrpGroupAssignmentsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/fhrp-group-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsBulkUpdateQuery { -} -/// Put a list of FHRP group assignment objects. -pub fn ipam_fhrp_group_assignments_bulk_update(query: IpamFhrpGroupAssignmentsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/fhrp-group-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsCreateQuery { -} -/// Post a list of FHRP group assignment objects. -pub fn ipam_fhrp_group_assignments_create(query: IpamFhrpGroupAssignmentsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/fhrp-group-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsBulkPartialUpdateQuery { -} -/// Patch a list of FHRP group assignment objects. -pub fn ipam_fhrp_group_assignments_bulk_partial_update(query: IpamFhrpGroupAssignmentsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/fhrp-group-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsBulkDestroyQuery { -} -/// Delete a list of FHRP group assignment objects. -pub fn ipam_fhrp_group_assignments_bulk_destroy(query: IpamFhrpGroupAssignmentsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/fhrp-group-assignments/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsRetrieveQuery { -} -/// Get a tenant group object. -pub fn tenancy_tenant_groups_retrieve(query: TenancyTenantGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/tenant-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsUpdateQuery { -} -/// Put a tenant group object. -pub fn tenancy_tenant_groups_update(query: TenancyTenantGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/tenant-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsPartialUpdateQuery { -} -/// Patch a tenant group object. -pub fn tenancy_tenant_groups_partial_update(query: TenancyTenantGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/tenant-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantGroupsDestroyQuery { -} -/// Delete a tenant group object. -pub fn tenancy_tenant_groups_destroy(query: TenancyTenantGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/tenant-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsRetrieveQuery { -} -/// Get a location object. -pub fn dcim_locations_retrieve(query: DcimLocationsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/locations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsUpdateQuery { -} -/// Put a location object. -pub fn dcim_locations_update(query: DcimLocationsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/locations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsPartialUpdateQuery { -} -/// Patch a location object. -pub fn dcim_locations_partial_update(query: DcimLocationsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/locations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsDestroyQuery { -} -/// Delete a location object. -pub fn dcim_locations_destroy(query: DcimLocationsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/locations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesRetrieveQuery { -} -/// Get a export template object. -pub fn extras_export_templates_retrieve(query: ExtrasExportTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/export-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesUpdateQuery { -} -/// Put a export template object. -pub fn extras_export_templates_update(query: ExtrasExportTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/export-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesPartialUpdateQuery { -} -/// Patch a export template object. -pub fn extras_export_templates_partial_update(query: ExtrasExportTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/export-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesDestroyQuery { -} -/// Delete a export template object. -pub fn extras_export_templates_destroy(query: ExtrasExportTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/export-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesListQuery { - children: Vec, - children__empty: Vec, - children__gt: Vec, - children__gte: Vec, - children__lt: Vec, - children__lte: Vec, - children__n: Vec, - contains: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - depth: Vec, - depth__empty: Vec, - depth__gt: Vec, - depth__gte: Vec, - depth__lt: Vec, - depth__lte: Vec, - depth__n: Vec, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - family: f64, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - is_pool: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - mark_utilized: bool, - mask_length: Vec, - mask_length__gte: f64, - mask_length__lte: f64, - modified_by_request: String, - offset: i64, - ordering: String, - prefix: Vec, - present_in_vrf: String, - present_in_vrf_id: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vlan_id: Vec, - vlan_id__n: Vec, - vlan_vid: i64, - vlan_vid__empty: i64, - vlan_vid__gt: i64, - vlan_vid__gte: i64, - vlan_vid__lt: i64, - vlan_vid__lte: i64, - vlan_vid__n: i64, - vrf: Vec, - vrf__n: Vec, - vrf_id: Vec, - vrf_id__n: Vec, - within: String, - within_include: String -} -/// Get a list of prefix objects. -pub fn ipam_prefixes_list(query: IpamPrefixesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesBulkUpdateQuery { -} -/// Put a list of prefix objects. -pub fn ipam_prefixes_bulk_update(query: IpamPrefixesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesCreateQuery { -} -/// Post a list of prefix objects. -pub fn ipam_prefixes_create(query: IpamPrefixesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesBulkPartialUpdateQuery { -} -/// Patch a list of prefix objects. -pub fn ipam_prefixes_bulk_partial_update(query: IpamPrefixesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesBulkDestroyQuery { -} -/// Delete a list of prefix objects. -pub fn ipam_prefixes_bulk_destroy(query: IpamPrefixesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct StatusRetrieveQuery { -} -/// A lightweight read-only endpoint for conveying NetBox's current operational status. -pub fn status_retrieve(query: StatusRetrieveQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/status/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsRetrieveQuery { -} -/// Get a custom field object. -pub fn extras_custom_fields_retrieve(query: ExtrasCustomFieldsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-fields/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsUpdateQuery { -} -/// Put a custom field object. -pub fn extras_custom_fields_update(query: ExtrasCustomFieldsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-fields/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsPartialUpdateQuery { -} -/// Patch a custom field object. -pub fn extras_custom_fields_partial_update(query: ExtrasCustomFieldsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-fields/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsDestroyQuery { -} -/// Delete a custom field object. -pub fn extras_custom_fields_destroy(query: ExtrasCustomFieldsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-fields/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of contact role objects. -pub fn tenancy_contact_roles_list(query: TenancyContactRolesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesBulkUpdateQuery { -} -/// Put a list of contact role objects. -pub fn tenancy_contact_roles_bulk_update(query: TenancyContactRolesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesCreateQuery { -} -/// Post a list of contact role objects. -pub fn tenancy_contact_roles_create(query: TenancyContactRolesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/contact-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesBulkPartialUpdateQuery { -} -/// Patch a list of contact role objects. -pub fn tenancy_contact_roles_bulk_partial_update(query: TenancyContactRolesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactRolesBulkDestroyQuery { -} -/// Delete a list of contact role objects. -pub fn tenancy_contact_roles_bulk_destroy(query: TenancyContactRolesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsListQuery { - address: Vec, - address__empty: bool, - address__ic: Vec, - address__ie: Vec, - address__iew: Vec, - address__isw: Vec, - address__n: Vec, - address__nic: Vec, - address__nie: Vec, - address__niew: Vec, - address__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - email: Vec, - email__empty: bool, - email__ic: Vec, - email__ie: Vec, - email__iew: Vec, - email__isw: Vec, - email__n: Vec, - email__nic: Vec, - email__nie: Vec, - email__niew: Vec, - email__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - link: Vec, - link__empty: bool, - link__ic: Vec, - link__ie: Vec, - link__iew: Vec, - link__isw: Vec, - link__n: Vec, - link__nic: Vec, - link__nie: Vec, - link__niew: Vec, - link__nisw: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - phone: Vec, - phone__empty: bool, - phone__ic: Vec, - phone__ie: Vec, - phone__iew: Vec, - phone__isw: Vec, - phone__n: Vec, - phone__nic: Vec, - phone__nie: Vec, - phone__niew: Vec, - phone__nisw: Vec, - q: String, - tag: Vec, - tag__n: Vec, - title: Vec, - title__empty: bool, - title__ic: Vec, - title__ie: Vec, - title__iew: Vec, - title__isw: Vec, - title__n: Vec, - title__nic: Vec, - title__nie: Vec, - title__niew: Vec, - title__nisw: Vec, - updated_by_request: String -} -/// Get a list of contact objects. -pub fn tenancy_contacts_list(query: TenancyContactsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contacts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsBulkUpdateQuery { -} -/// Put a list of contact objects. -pub fn tenancy_contacts_bulk_update(query: TenancyContactsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contacts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsCreateQuery { -} -/// Post a list of contact objects. -pub fn tenancy_contacts_create(query: TenancyContactsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/contacts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsBulkPartialUpdateQuery { -} -/// Patch a list of contact objects. -pub fn tenancy_contacts_bulk_partial_update(query: TenancyContactsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contacts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsBulkDestroyQuery { -} -/// Delete a list of contact objects. -pub fn tenancy_contacts_bulk_destroy(query: TenancyContactsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contacts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesRetrieveQuery { -} -/// Get a module object. -pub fn dcim_modules_retrieve(query: DcimModulesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/modules/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesUpdateQuery { -} -/// Put a module object. -pub fn dcim_modules_update(query: DcimModulesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/modules/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesPartialUpdateQuery { -} -/// Patch a module object. -pub fn dcim_modules_partial_update(query: DcimModulesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/modules/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModulesDestroyQuery { -} -/// Delete a module object. -pub fn dcim_modules_destroy(query: DcimModulesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/modules/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsListQuery { - amperage: Vec, - amperage__empty: bool, - amperage__gt: Vec, - amperage__gte: Vec, - amperage__lt: Vec, - amperage__lte: Vec, - amperage__n: Vec, - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - max_utilization: Vec, - max_utilization__empty: bool, - max_utilization__gt: Vec, - max_utilization__gte: Vec, - max_utilization__lt: Vec, - max_utilization__lte: Vec, - max_utilization__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - phase: String, - phase__n: String, - power_panel_id: Vec, - power_panel_id__n: Vec, - q: String, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - supply: String, - supply__n: String, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - typ: String, - typ__n: String, - updated_by_request: String, - voltage: Vec, - voltage__empty: bool, - voltage__gt: Vec, - voltage__gte: Vec, - voltage__lt: Vec, - voltage__lte: Vec, - voltage__n: Vec -} -/// Get a list of power feed objects. -pub fn dcim_power_feeds_list(query: DcimPowerFeedsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-feeds/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsBulkUpdateQuery { -} -/// Put a list of power feed objects. -pub fn dcim_power_feeds_bulk_update(query: DcimPowerFeedsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-feeds/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsCreateQuery { -} -/// Post a list of power feed objects. -pub fn dcim_power_feeds_create(query: DcimPowerFeedsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-feeds/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsBulkPartialUpdateQuery { -} -/// Patch a list of power feed objects. -pub fn dcim_power_feeds_bulk_partial_update(query: DcimPowerFeedsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-feeds/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsBulkDestroyQuery { -} -/// Delete a list of power feed objects. -pub fn dcim_power_feeds_bulk_destroy(query: DcimPowerFeedsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-feeds/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesRetrieveQuery { -} -/// Get a interface object. -pub fn virtualization_interfaces_retrieve(query: VirtualizationInterfacesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesUpdateQuery { -} -/// Put a interface object. -pub fn virtualization_interfaces_update(query: VirtualizationInterfacesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesPartialUpdateQuery { -} -/// Patch a interface object. -pub fn virtualization_interfaces_partial_update(query: VirtualizationInterfacesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesDestroyQuery { -} -/// Delete a interface object. -pub fn virtualization_interfaces_destroy(query: VirtualizationInterfacesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsRetrieveQuery { -} -/// Get a circuit termination object. -pub fn circuits_circuit_terminations_retrieve(query: CircuitsCircuitTerminationsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuit-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsUpdateQuery { -} -/// Put a circuit termination object. -pub fn circuits_circuit_terminations_update(query: CircuitsCircuitTerminationsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuit-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsPartialUpdateQuery { -} -/// Patch a circuit termination object. -pub fn circuits_circuit_terminations_partial_update(query: CircuitsCircuitTerminationsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuit-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsDestroyQuery { -} -/// Delete a circuit termination object. -pub fn circuits_circuit_terminations_destroy(query: CircuitsCircuitTerminationsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuit-terminations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesRetrieveQuery { -} -/// Get a module type object. -pub fn dcim_module_types_retrieve(query: DcimModuleTypesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesUpdateQuery { -} -/// Put a module type object. -pub fn dcim_module_types_update(query: DcimModuleTypesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesPartialUpdateQuery { -} -/// Patch a module type object. -pub fn dcim_module_types_partial_update(query: DcimModuleTypesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesDestroyQuery { -} -/// Delete a module type object. -pub fn dcim_module_types_destroy(query: DcimModuleTypesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesRetrieveQuery { -} -/// Get a device bay template object. -pub fn dcim_device_bay_templates_retrieve(query: DcimDeviceBayTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesUpdateQuery { -} -/// Put a device bay template object. -pub fn dcim_device_bay_templates_update(query: DcimDeviceBayTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesPartialUpdateQuery { -} -/// Patch a device bay template object. -pub fn dcim_device_bay_templates_partial_update(query: DcimDeviceBayTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesDestroyQuery { -} -/// Delete a device bay template object. -pub fn dcim_device_bay_templates_destroy(query: DcimDeviceBayTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - updated_by_request: String -} -/// Get a list of device bay template objects. -pub fn dcim_device_bay_templates_list(query: DcimDeviceBayTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesBulkUpdateQuery { -} -/// Put a list of device bay template objects. -pub fn dcim_device_bay_templates_bulk_update(query: DcimDeviceBayTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesCreateQuery { -} -/// Post a list of device bay template objects. -pub fn dcim_device_bay_templates_create(query: DcimDeviceBayTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/device-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of device bay template objects. -pub fn dcim_device_bay_templates_bulk_partial_update(query: DcimDeviceBayTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBayTemplatesBulkDestroyQuery { -} -/// Delete a list of device bay template objects. -pub fn dcim_device_bay_templates_bulk_destroy(query: DcimDeviceBayTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesListQuery { - airflow: String, - airflow__n: String, - console_ports: bool, - console_server_ports: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - default_platform: Vec, - default_platform__n: Vec, - default_platform_id: Vec, - default_platform_id__n: Vec, - device_bays: bool, - has_front_image: bool, - has_rear_image: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interfaces: bool, - inventory_items: bool, - is_full_depth: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - model: Vec, - model__empty: bool, - model__ic: Vec, - model__ie: Vec, - model__iew: Vec, - model__isw: Vec, - model__n: Vec, - model__nic: Vec, - model__nie: Vec, - model__niew: Vec, - model__nisw: Vec, - modified_by_request: String, - module_bays: bool, - offset: i64, - ordering: String, - part_number: Vec, - part_number__empty: bool, - part_number__ic: Vec, - part_number__ie: Vec, - part_number__iew: Vec, - part_number__isw: Vec, - part_number__n: Vec, - part_number__nic: Vec, - part_number__nie: Vec, - part_number__niew: Vec, - part_number__nisw: Vec, - pass_through_ports: bool, - power_outlets: bool, - power_ports: bool, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - subdevice_role: String, - subdevice_role__n: String, - tag: Vec, - tag__n: Vec, - u_height: Vec, - u_height__empty: bool, - u_height__gt: Vec, - u_height__gte: Vec, - u_height__lt: Vec, - u_height__lte: Vec, - u_height__n: Vec, - updated_by_request: String, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec, - weight_unit: String, - weight_unit__n: String -} -/// Get a list of device type objects. -pub fn dcim_device_types_list(query: DcimDeviceTypesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesBulkUpdateQuery { -} -/// Put a list of device type objects. -pub fn dcim_device_types_bulk_update(query: DcimDeviceTypesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesCreateQuery { -} -/// Post a list of device type objects. -pub fn dcim_device_types_create(query: DcimDeviceTypesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/device-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesBulkPartialUpdateQuery { -} -/// Patch a list of device type objects. -pub fn dcim_device_types_bulk_partial_update(query: DcimDeviceTypesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceTypesBulkDestroyQuery { -} -/// Delete a list of device type objects. -pub fn dcim_device_types_bulk_destroy(query: DcimDeviceTypesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesRetrieveQuery { -} -/// Get a module bay template object. -pub fn dcim_module_bay_templates_retrieve(query: DcimModuleBayTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesUpdateQuery { -} -/// Put a module bay template object. -pub fn dcim_module_bay_templates_update(query: DcimModuleBayTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesPartialUpdateQuery { -} -/// Patch a module bay template object. -pub fn dcim_module_bay_templates_partial_update(query: DcimModuleBayTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesDestroyQuery { -} -/// Delete a module bay template object. -pub fn dcim_module_bay_templates_destroy(query: DcimModuleBayTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-bay-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - enforce_unique: bool, - export_target: Vec, - export_target__n: Vec, - export_target_id: Vec, - export_target_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - import_target: Vec, - import_target__n: Vec, - import_target_id: Vec, - import_target_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - rd: Vec, - rd__empty: bool, - rd__ic: Vec, - rd__ie: Vec, - rd__iew: Vec, - rd__isw: Vec, - rd__n: Vec, - rd__nic: Vec, - rd__nie: Vec, - rd__niew: Vec, - rd__nisw: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of VRF objects. -pub fn ipam_vrfs_list(query: IpamVrfsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vrfs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsBulkUpdateQuery { -} -/// Put a list of VRF objects. -pub fn ipam_vrfs_bulk_update(query: IpamVrfsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vrfs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsCreateQuery { -} -/// Post a list of VRF objects. -pub fn ipam_vrfs_create(query: IpamVrfsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/vrfs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsBulkPartialUpdateQuery { -} -/// Patch a list of VRF objects. -pub fn ipam_vrfs_bulk_partial_update(query: IpamVrfsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vrfs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsBulkDestroyQuery { -} -/// Delete a list of VRF objects. -pub fn ipam_vrfs_bulk_destroy(query: IpamVrfsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vrfs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesRetrieveQuery { -} -/// Get a device role object. -pub fn dcim_device_roles_retrieve(query: DcimDeviceRolesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesUpdateQuery { -} -/// Put a device role object. -pub fn dcim_device_roles_update(query: DcimDeviceRolesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesPartialUpdateQuery { -} -/// Patch a device role object. -pub fn dcim_device_roles_partial_update(query: DcimDeviceRolesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesDestroyQuery { -} -/// Delete a device role object. -pub fn dcim_device_roles_destroy(query: DcimDeviceRolesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsListQuery { - asn: Vec, - asn__empty: bool, - asn__gt: Vec, - asn__gte: Vec, - asn__lt: Vec, - asn__lte: Vec, - asn__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - rir: Vec, - rir__n: Vec, - rir_id: Vec, - rir_id__n: Vec, - site: Vec, - site__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of ASN objects. -pub fn ipam_asns_list(query: IpamAsnsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsBulkUpdateQuery { -} -/// Put a list of ASN objects. -pub fn ipam_asns_bulk_update(query: IpamAsnsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsCreateQuery { -} -/// Post a list of ASN objects. -pub fn ipam_asns_create(query: IpamAsnsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsBulkPartialUpdateQuery { -} -/// Patch a list of ASN objects. -pub fn ipam_asns_bulk_partial_update(query: IpamAsnsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsBulkDestroyQuery { -} -/// Delete a list of ASN objects. -pub fn ipam_asns_bulk_destroy(query: IpamAsnsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesRetrieveQuery { -} -/// Get a device object. -pub fn dcim_devices_retrieve(query: DcimDevicesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/devices/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesUpdateQuery { -} -/// Put a device object. -pub fn dcim_devices_update(query: DcimDevicesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/devices/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesPartialUpdateQuery { -} -/// Patch a device object. -pub fn dcim_devices_partial_update(query: DcimDevicesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/devices/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesDestroyQuery { -} -/// Delete a device object. -pub fn dcim_devices_destroy(query: DcimDevicesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/devices/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesRetrieveQuery { -} -/// Get a role object. -pub fn ipam_roles_retrieve(query: IpamRolesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesUpdateQuery { -} -/// Put a role object. -pub fn ipam_roles_update(query: IpamRolesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesPartialUpdateQuery { -} -/// Patch a role object. -pub fn ipam_roles_partial_update(query: IpamRolesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesDestroyQuery { -} -/// Delete a role object. -pub fn ipam_roles_destroy(query: IpamRolesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansRetrieveQuery { -} -/// Get a wireless LAN object. -pub fn wireless_wireless_lans_retrieve(query: WirelessWirelessLansRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-lans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansUpdateQuery { -} -/// Put a wireless LAN object. -pub fn wireless_wireless_lans_update(query: WirelessWirelessLansUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-lans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansPartialUpdateQuery { -} -/// Patch a wireless LAN object. -pub fn wireless_wireless_lans_partial_update(query: WirelessWirelessLansPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-lans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansDestroyQuery { -} -/// Delete a wireless LAN object. -pub fn wireless_wireless_lans_destroy(query: WirelessWirelessLansDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-lans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksRetrieveQuery { -} -/// Get a wireless link object. -pub fn wireless_wireless_links_retrieve(query: WirelessWirelessLinksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksUpdateQuery { -} -/// Put a wireless link object. -pub fn wireless_wireless_links_update(query: WirelessWirelessLinksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksPartialUpdateQuery { -} -/// Patch a wireless link object. -pub fn wireless_wireless_links_partial_update(query: WirelessWirelessLinksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLinksDestroyQuery { -} -/// Delete a wireless link object. -pub fn wireless_wireless_links_destroy(query: WirelessWirelessLinksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsRetrieveQuery { -} -/// Get a region object. -pub fn dcim_regions_retrieve(query: DcimRegionsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/regions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsUpdateQuery { -} -/// Put a region object. -pub fn dcim_regions_update(query: DcimRegionsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/regions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsPartialUpdateQuery { -} -/// Patch a region object. -pub fn dcim_regions_partial_update(query: DcimRegionsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/regions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsDestroyQuery { -} -/// Delete a region object. -pub fn dcim_regions_destroy(query: DcimRegionsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/regions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersListQuery { - asn_id: Vec, - asn_id__n: Vec, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of provider objects. -pub fn circuits_providers_list(query: CircuitsProvidersListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/providers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersBulkUpdateQuery { -} -/// Put a list of provider objects. -pub fn circuits_providers_bulk_update(query: CircuitsProvidersBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/providers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersCreateQuery { -} -/// Post a list of provider objects. -pub fn circuits_providers_create(query: CircuitsProvidersCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/providers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersBulkPartialUpdateQuery { -} -/// Patch a list of provider objects. -pub fn circuits_providers_bulk_partial_update(query: CircuitsProvidersBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/providers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersBulkDestroyQuery { -} -/// Delete a list of provider objects. -pub fn circuits_providers_bulk_destroy(query: CircuitsProvidersBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/providers/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerFeedsTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_power_feeds_trace_retrieve(query: DcimPowerFeedsTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-feeds/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesRetrieveQuery { -} -/// Get a prefix object. -pub fn ipam_prefixes_retrieve(query: IpamPrefixesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/prefixes/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesUpdateQuery { -} -/// Put a prefix object. -pub fn ipam_prefixes_update(query: IpamPrefixesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/prefixes/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesPartialUpdateQuery { -} -/// Patch a prefix object. -pub fn ipam_prefixes_partial_update(query: IpamPrefixesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/prefixes/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesDestroyQuery { -} -/// Delete a prefix object. -pub fn ipam_prefixes_destroy(query: IpamPrefixesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/prefixes/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - typ: String, - typ__n: String, - updated_by_request: String -} -/// Get a list of console server port template objects. -pub fn dcim_console_server_port_templates_list(query: DcimConsoleServerPortTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-server-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesBulkUpdateQuery { -} -/// Put a list of console server port template objects. -pub fn dcim_console_server_port_templates_bulk_update(query: DcimConsoleServerPortTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-server-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesCreateQuery { -} -/// Post a list of console server port template objects. -pub fn dcim_console_server_port_templates_create(query: DcimConsoleServerPortTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/console-server-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of console server port template objects. -pub fn dcim_console_server_port_templates_bulk_partial_update(query: DcimConsoleServerPortTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-server-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesBulkDestroyQuery { -} -/// Delete a list of console server port template objects. -pub fn dcim_console_server_port_templates_bulk_destroy(query: DcimConsoleServerPortTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-server-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsChoicesRetrieveQuery { -} -/// Provides an endpoint to iterate through each choice in a set. -pub fn extras_custom_field_choice_sets_choices_retrieve(query: ExtrasCustomFieldChoiceSetsChoicesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-field-choice-sets/{id}/choices/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansRetrieveQuery { -} -/// Get a VLAN object. -pub fn ipam_vlans_retrieve(query: IpamVlansRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vlans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansUpdateQuery { -} -/// Put a VLAN object. -pub fn ipam_vlans_update(query: IpamVlansUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vlans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansPartialUpdateQuery { -} -/// Patch a VLAN object. -pub fn ipam_vlans_partial_update(query: IpamVlansPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vlans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansDestroyQuery { -} -/// Delete a VLAN object. -pub fn ipam_vlans_destroy(query: IpamVlansDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vlans/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - typ: String, - typ__n: String, - updated_by_request: String -} -/// Get a list of console port template objects. -pub fn dcim_console_port_templates_list(query: DcimConsolePortTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesBulkUpdateQuery { -} -/// Put a list of console port template objects. -pub fn dcim_console_port_templates_bulk_update(query: DcimConsolePortTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesCreateQuery { -} -/// Post a list of console port template objects. -pub fn dcim_console_port_templates_create(query: DcimConsolePortTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/console-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of console port template objects. -pub fn dcim_console_port_templates_bulk_partial_update(query: DcimConsolePortTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesBulkDestroyQuery { -} -/// Delete a list of console port template objects. -pub fn dcim_console_port_templates_bulk_destroy(query: DcimConsolePortTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysRetrieveQuery { -} -/// Get a device bay object. -pub fn dcim_device_bays_retrieve(query: DcimDeviceBaysRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysUpdateQuery { -} -/// Put a device bay object. -pub fn dcim_device_bays_update(query: DcimDeviceBaysUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysPartialUpdateQuery { -} -/// Patch a device bay object. -pub fn dcim_device_bays_partial_update(query: DcimDeviceBaysPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysDestroyQuery { -} -/// Delete a device bay object. -pub fn dcim_device_bays_destroy(query: DcimDeviceBaysDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesRetrieveQuery { -} -/// Get a IP address object. -pub fn ipam_ip_addresses_retrieve(query: IpamIpAddressesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/ip-addresses/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesUpdateQuery { -} -/// Put a IP address object. -pub fn ipam_ip_addresses_update(query: IpamIpAddressesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/ip-addresses/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesPartialUpdateQuery { -} -/// Patch a IP address object. -pub fn ipam_ip_addresses_partial_update(query: IpamIpAddressesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/ip-addresses/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesDestroyQuery { -} -/// Delete a IP address object. -pub fn ipam_ip_addresses_destroy(query: IpamIpAddressesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/ip-addresses/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of inventory item role objects. -pub fn dcim_inventory_item_roles_list(query: DcimInventoryItemRolesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-item-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesBulkUpdateQuery { -} -/// Put a list of inventory item role objects. -pub fn dcim_inventory_item_roles_bulk_update(query: DcimInventoryItemRolesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-item-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesCreateQuery { -} -/// Post a list of inventory item role objects. -pub fn dcim_inventory_item_roles_create(query: DcimInventoryItemRolesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/inventory-item-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesBulkPartialUpdateQuery { -} -/// Patch a list of inventory item role objects. -pub fn dcim_inventory_item_roles_bulk_partial_update(query: DcimInventoryItemRolesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-item-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesBulkDestroyQuery { -} -/// Delete a list of inventory item role objects. -pub fn dcim_inventory_item_roles_bulk_destroy(query: DcimInventoryItemRolesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-item-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksElevationRetrieveQuery { -} -/// Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG. -pub fn dcim_racks_elevation_retrieve(query: DcimRacksElevationRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/racks/{id}/elevation/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesRetrieveQuery { -} -/// Get a interface object. -pub fn dcim_interfaces_retrieve(query: DcimInterfacesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesUpdateQuery { -} -/// Put a interface object. -pub fn dcim_interfaces_update(query: DcimInterfacesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesPartialUpdateQuery { -} -/// Patch a interface object. -pub fn dcim_interfaces_partial_update(query: DcimInterfacesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesDestroyQuery { -} -/// Delete a interface object. -pub fn dcim_interfaces_destroy(query: DcimInterfacesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/interfaces/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsListQuery { - base_choices: String, - base_choices__n: String, - choice: Vec, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - order_alphabetically: bool, - ordering: String, - q: String -} -/// Get a list of custom field choice set objects. -pub fn extras_custom_field_choice_sets_list(query: ExtrasCustomFieldChoiceSetsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-field-choice-sets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsBulkUpdateQuery { -} -/// Put a list of custom field choice set objects. -pub fn extras_custom_field_choice_sets_bulk_update(query: ExtrasCustomFieldChoiceSetsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-field-choice-sets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsCreateQuery { -} -/// Post a list of custom field choice set objects. -pub fn extras_custom_field_choice_sets_create(query: ExtrasCustomFieldChoiceSetsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/custom-field-choice-sets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsBulkPartialUpdateQuery { -} -/// Patch a list of custom field choice set objects. -pub fn extras_custom_field_choice_sets_bulk_partial_update(query: ExtrasCustomFieldChoiceSetsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-field-choice-sets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsBulkDestroyQuery { -} -/// Delete a list of custom field choice set objects. -pub fn extras_custom_field_choice_sets_bulk_destroy(query: ExtrasCustomFieldChoiceSetsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-field-choice-sets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesRetrieveQuery { -} -/// Get a cluster type object. -pub fn virtualization_cluster_types_retrieve(query: VirtualizationClusterTypesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/cluster-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesUpdateQuery { -} -/// Put a cluster type object. -pub fn virtualization_cluster_types_update(query: VirtualizationClusterTypesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/cluster-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesPartialUpdateQuery { -} -/// Patch a cluster type object. -pub fn virtualization_cluster_types_partial_update(query: VirtualizationClusterTypesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/cluster-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesDestroyQuery { -} -/// Delete a cluster type object. -pub fn virtualization_cluster_types_destroy(query: VirtualizationClusterTypesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/cluster-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesListQuery { - bridge_id: Vec, - bridge_id__n: Vec, - cluster: Vec, - cluster__n: Vec, - cluster_id: Vec, - cluster_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - enabled: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - l2vpn: Vec, - l2vpn__n: Vec, - l2vpn_id: Vec, - l2vpn_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - mac_address: Vec, - mac_address__ic: Vec, - mac_address__ie: Vec, - mac_address__iew: Vec, - mac_address__isw: Vec, - mac_address__n: Vec, - mac_address__nic: Vec, - mac_address__nie: Vec, - mac_address__niew: Vec, - mac_address__nisw: Vec, - modified_by_request: String, - mtu: Vec, - mtu__empty: bool, - mtu__gt: Vec, - mtu__gte: Vec, - mtu__lt: Vec, - mtu__lte: Vec, - mtu__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent_id: Vec, - parent_id__n: Vec, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_machine: Vec, - virtual_machine__n: Vec, - virtual_machine_id: Vec, - virtual_machine_id__n: Vec, - vlan: String, - vlan_id: String, - vrf: Vec, - vrf__n: Vec, - vrf_id: Vec, - vrf_id__n: Vec -} -/// Get a list of interface objects. -pub fn virtualization_interfaces_list(query: VirtualizationInterfacesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesBulkUpdateQuery { -} -/// Put a list of interface objects. -pub fn virtualization_interfaces_bulk_update(query: VirtualizationInterfacesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesCreateQuery { -} -/// Post a list of interface objects. -pub fn virtualization_interfaces_create(query: VirtualizationInterfacesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/virtualization/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesBulkPartialUpdateQuery { -} -/// Patch a list of interface objects. -pub fn virtualization_interfaces_bulk_partial_update(query: VirtualizationInterfacesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationInterfacesBulkDestroyQuery { -} -/// Delete a list of interface objects. -pub fn virtualization_interfaces_bulk_destroy(query: VirtualizationInterfacesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsRetrieveQuery { -} -/// Get a virtual device context object. -pub fn dcim_virtual_device_contexts_retrieve(query: DcimVirtualDeviceContextsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/virtual-device-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsUpdateQuery { -} -/// Put a virtual device context object. -pub fn dcim_virtual_device_contexts_update(query: DcimVirtualDeviceContextsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/virtual-device-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsPartialUpdateQuery { -} -/// Patch a virtual device context object. -pub fn dcim_virtual_device_contexts_partial_update(query: DcimVirtualDeviceContextsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/virtual-device-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsDestroyQuery { -} -/// Delete a virtual device context object. -pub fn dcim_virtual_device_contexts_destroy(query: DcimVirtualDeviceContextsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/virtual-device-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of console server port objects. -pub fn dcim_console_server_ports_list(query: DcimConsoleServerPortsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-server-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsBulkUpdateQuery { -} -/// Put a list of console server port objects. -pub fn dcim_console_server_ports_bulk_update(query: DcimConsoleServerPortsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-server-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsCreateQuery { -} -/// Post a list of console server port objects. -pub fn dcim_console_server_ports_create(query: DcimConsoleServerPortsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/console-server-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsBulkPartialUpdateQuery { -} -/// Patch a list of console server port objects. -pub fn dcim_console_server_ports_bulk_partial_update(query: DcimConsoleServerPortsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-server-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsBulkDestroyQuery { -} -/// Delete a list of console server port objects. -pub fn dcim_console_server_ports_bulk_destroy(query: DcimConsoleServerPortsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-server-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesListQuery { - console_ports: bool, - console_server_ports: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interfaces: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - model: Vec, - model__empty: bool, - model__ic: Vec, - model__ie: Vec, - model__iew: Vec, - model__isw: Vec, - model__n: Vec, - model__nic: Vec, - model__nie: Vec, - model__niew: Vec, - model__nisw: Vec, - modified_by_request: String, - offset: i64, - ordering: String, - part_number: Vec, - part_number__empty: bool, - part_number__ic: Vec, - part_number__ie: Vec, - part_number__iew: Vec, - part_number__isw: Vec, - part_number__n: Vec, - part_number__nic: Vec, - part_number__nie: Vec, - part_number__niew: Vec, - part_number__nisw: Vec, - pass_through_ports: bool, - power_outlets: bool, - power_ports: bool, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec, - weight_unit: String, - weight_unit__n: String -} -/// Get a list of module type objects. -pub fn dcim_module_types_list(query: DcimModuleTypesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesBulkUpdateQuery { -} -/// Put a list of module type objects. -pub fn dcim_module_types_bulk_update(query: DcimModuleTypesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesCreateQuery { -} -/// Post a list of module type objects. -pub fn dcim_module_types_create(query: DcimModuleTypesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/module-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesBulkPartialUpdateQuery { -} -/// Patch a list of module type objects. -pub fn dcim_module_types_bulk_partial_update(query: DcimModuleTypesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleTypesBulkDestroyQuery { -} -/// Delete a list of module type objects. -pub fn dcim_module_types_bulk_destroy(query: DcimModuleTypesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesAvailableIpsListQuery { -} -/// Get a IP address object. -pub fn ipam_ip_ranges_available_ips_list(query: IpamIpRangesAvailableIpsListQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/ip-ranges/{id}/available-ips/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesAvailableIpsCreateQuery { -} -/// Post a IP address object. -pub fn ipam_ip_ranges_available_ips_create(query: IpamIpRangesAvailableIpsCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/ip-ranges/{id}/available-ips/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesListQuery { - bridge_id: Vec, - bridge_id__n: Vec, - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - duplex: Vec, - duplex__n: Vec, - enabled: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - kind: String, - l2vpn: Vec, - l2vpn__n: Vec, - l2vpn_id: Vec, - l2vpn_id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - lag_id: Vec, - lag_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - mac_address: Vec, - mac_address__ic: Vec, - mac_address__ie: Vec, - mac_address__iew: Vec, - mac_address__isw: Vec, - mac_address__n: Vec, - mac_address__nic: Vec, - mac_address__nie: Vec, - mac_address__niew: Vec, - mac_address__nisw: Vec, - mgmt_only: bool, - mode: String, - mode__n: String, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - mtu: Vec, - mtu__empty: bool, - mtu__gt: Vec, - mtu__gte: Vec, - mtu__lt: Vec, - mtu__lte: Vec, - mtu__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - parent_id: Vec, - parent_id__n: Vec, - poe_mode: Vec, - poe_mode__n: Vec, - poe_typ: Vec, - poe_typ__n: Vec, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - rf_channel: Vec, - rf_channel__n: Vec, - rf_channel_frequency: Vec, - rf_channel_frequency__empty: bool, - rf_channel_frequency__gt: Vec, - rf_channel_frequency__gte: Vec, - rf_channel_frequency__lt: Vec, - rf_channel_frequency__lte: Vec, - rf_channel_frequency__n: Vec, - rf_channel_width: Vec, - rf_channel_width__empty: bool, - rf_channel_width__gt: Vec, - rf_channel_width__gte: Vec, - rf_channel_width__lt: Vec, - rf_channel_width__lte: Vec, - rf_channel_width__n: Vec, - rf_role: Vec, - rf_role__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - speed: Vec, - speed__empty: Vec, - speed__gt: Vec, - speed__gte: Vec, - speed__lt: Vec, - speed__lte: Vec, - speed__n: Vec, - tag: Vec, - tag__n: Vec, - tx_power: Vec, - tx_power__empty: bool, - tx_power__gt: Vec, - tx_power__gte: Vec, - tx_power__lt: Vec, - tx_power__lte: Vec, - tx_power__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - vdc: Vec, - vdc__n: Vec, - vdc_id: Vec, - vdc_id__n: Vec, - vdc_identifier: Vec, - vdc_identifier__n: Vec, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec, - virtual_chassis_member: Vec, - virtual_chassis_member_id: Vec, - vlan: String, - vlan_id: String, - vrf: Vec, - vrf__n: Vec, - vrf_id: Vec, - vrf_id__n: Vec, - wwn: Vec, - wwn__ic: Vec, - wwn__ie: Vec, - wwn__iew: Vec, - wwn__isw: Vec, - wwn__n: Vec, - wwn__nic: Vec, - wwn__nie: Vec, - wwn__niew: Vec, - wwn__nisw: Vec -} -/// Get a list of interface objects. -pub fn dcim_interfaces_list(query: DcimInterfacesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesBulkUpdateQuery { -} -/// Put a list of interface objects. -pub fn dcim_interfaces_bulk_update(query: DcimInterfacesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesCreateQuery { -} -/// Post a list of interface objects. -pub fn dcim_interfaces_create(query: DcimInterfacesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesBulkPartialUpdateQuery { -} -/// Patch a list of interface objects. -pub fn dcim_interfaces_bulk_partial_update(query: DcimInterfacesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesBulkDestroyQuery { -} -/// Delete a list of interface objects. -pub fn dcim_interfaces_bulk_destroy(query: DcimInterfacesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/interfaces/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsRetrieveQuery { -} -/// Get a ASN object. -pub fn ipam_asns_retrieve(query: IpamAsnsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/asns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsUpdateQuery { -} -/// Put a ASN object. -pub fn ipam_asns_update(query: IpamAsnsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/asns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsPartialUpdateQuery { -} -/// Patch a ASN object. -pub fn ipam_asns_partial_update(query: IpamAsnsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/asns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnsDestroyQuery { -} -/// Delete a ASN object. -pub fn ipam_asns_destroy(query: IpamAsnsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/asns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - end: Vec, - end__empty: bool, - end__gt: Vec, - end__gte: Vec, - end__lt: Vec, - end__lte: Vec, - end__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - rir: Vec, - rir__n: Vec, - rir_id: Vec, - rir_id__n: Vec, - start: Vec, - start__empty: bool, - start__gt: Vec, - start__gte: Vec, - start__lt: Vec, - start__lte: Vec, - start__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of ASN range objects. -pub fn ipam_asn_ranges_list(query: IpamAsnRangesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/asn-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesBulkUpdateQuery { -} -/// Put a list of ASN range objects. -pub fn ipam_asn_ranges_bulk_update(query: IpamAsnRangesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/asn-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesCreateQuery { -} -/// Post a list of ASN range objects. -pub fn ipam_asn_ranges_create(query: IpamAsnRangesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/asn-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesBulkPartialUpdateQuery { -} -/// Patch a list of ASN range objects. -pub fn ipam_asn_ranges_bulk_partial_update(query: IpamAsnRangesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/asn-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesBulkDestroyQuery { -} -/// Delete a list of ASN range objects. -pub fn ipam_asn_ranges_bulk_destroy(query: IpamAsnRangesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/asn-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesRetrieveQuery { -} -/// Get a ASN range object. -pub fn ipam_asn_ranges_retrieve(query: IpamAsnRangesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/asn-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesUpdateQuery { -} -/// Put a ASN range object. -pub fn ipam_asn_ranges_update(query: IpamAsnRangesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/asn-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesPartialUpdateQuery { -} -/// Patch a ASN range object. -pub fn ipam_asn_ranges_partial_update(query: IpamAsnRangesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/asn-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesDestroyQuery { -} -/// Delete a ASN range object. -pub fn ipam_asn_ranges_destroy(query: IpamAsnRangesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/asn-ranges/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - circuit_id: Vec, - circuit_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - occupied: bool, - offset: i64, - ordering: String, - port_speed: Vec, - port_speed__empty: bool, - port_speed__gt: Vec, - port_speed__gte: Vec, - port_speed__lt: Vec, - port_speed__lte: Vec, - port_speed__n: Vec, - provider_network_id: Vec, - provider_network_id__n: Vec, - q: String, - site: Vec, - site__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - term_side: String, - term_side__n: String, - updated_by_request: String, - upstream_speed: Vec, - upstream_speed__empty: bool, - upstream_speed__gt: Vec, - upstream_speed__gte: Vec, - upstream_speed__lt: Vec, - upstream_speed__lte: Vec, - upstream_speed__n: Vec, - xconnect_id: Vec, - xconnect_id__empty: bool, - xconnect_id__ic: Vec, - xconnect_id__ie: Vec, - xconnect_id__iew: Vec, - xconnect_id__isw: Vec, - xconnect_id__n: Vec, - xconnect_id__nic: Vec, - xconnect_id__nie: Vec, - xconnect_id__niew: Vec, - xconnect_id__nisw: Vec -} -/// Get a list of circuit termination objects. -pub fn circuits_circuit_terminations_list(query: CircuitsCircuitTerminationsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuit-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsBulkUpdateQuery { -} -/// Put a list of circuit termination objects. -pub fn circuits_circuit_terminations_bulk_update(query: CircuitsCircuitTerminationsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuit-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsCreateQuery { -} -/// Post a list of circuit termination objects. -pub fn circuits_circuit_terminations_create(query: CircuitsCircuitTerminationsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/circuit-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsBulkPartialUpdateQuery { -} -/// Patch a list of circuit termination objects. -pub fn circuits_circuit_terminations_bulk_partial_update(query: CircuitsCircuitTerminationsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuit-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTerminationsBulkDestroyQuery { -} -/// Delete a list of circuit termination objects. -pub fn circuits_circuit_terminations_bulk_destroy(query: CircuitsCircuitTerminationsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuit-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsRetrieveQuery { -} -/// Get a VLAN group object. -pub fn ipam_vlan_groups_retrieve(query: IpamVlanGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vlan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsUpdateQuery { -} -/// Put a VLAN group object. -pub fn ipam_vlan_groups_update(query: IpamVlanGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vlan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsPartialUpdateQuery { -} -/// Patch a VLAN group object. -pub fn ipam_vlan_groups_partial_update(query: IpamVlanGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vlan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsDestroyQuery { -} -/// Delete a VLAN group object. -pub fn ipam_vlan_groups_destroy(query: IpamVlanGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vlan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasObjectChangesListQuery { - action: String, - action__n: String, - changed_object_id: Vec, - changed_object_id__empty: bool, - changed_object_id__gt: Vec, - changed_object_id__gte: Vec, - changed_object_id__lt: Vec, - changed_object_id__lte: Vec, - changed_object_id__n: Vec, - changed_object_typ: String, - changed_object_typ__n: String, - changed_object_typ_id: Vec, - changed_object_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - object_repr: Vec, - object_repr__empty: bool, - object_repr__ic: Vec, - object_repr__ie: Vec, - object_repr__iew: Vec, - object_repr__isw: Vec, - object_repr__n: Vec, - object_repr__nic: Vec, - object_repr__nie: Vec, - object_repr__niew: Vec, - object_repr__nisw: Vec, - offset: i64, - ordering: String, - q: String, - request_id: String, - time_after: DateTime, - time_before: DateTime, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec, - user_name: Vec, - user_name__empty: bool, - user_name__ic: Vec, - user_name__ie: Vec, - user_name__iew: Vec, - user_name__isw: Vec, - user_name__n: Vec, - user_name__nic: Vec, - user_name__nie: Vec, - user_name__niew: Vec, - user_name__nisw: Vec -} -/// Retrieve a list of recent changes. -pub fn extras_object_changes_list(query: ExtrasObjectChangesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/object-changes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesRetrieveQuery { -} -/// Get a cable object. -pub fn dcim_cables_retrieve(query: DcimCablesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/cables/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesUpdateQuery { -} -/// Put a cable object. -pub fn dcim_cables_update(query: DcimCablesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/cables/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesPartialUpdateQuery { -} -/// Patch a cable object. -pub fn dcim_cables_partial_update(query: DcimCablesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/cables/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCablesDestroyQuery { -} -/// Delete a cable object. -pub fn dcim_cables_destroy(query: DcimCablesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/cables/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasContentTypesRetrieveQuery { -} -/// Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. -pub fn extras_content_types_retrieve(query: ExtrasContentTypesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/content-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasObjectChangesRetrieveQuery { -} -/// Retrieve a list of recent changes. -pub fn extras_object_changes_retrieve(query: ExtrasObjectChangesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/object-changes/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsRetrieveQuery { -} -/// Get a FHRP group object. -pub fn ipam_fhrp_groups_retrieve(query: IpamFhrpGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/fhrp-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsUpdateQuery { -} -/// Put a FHRP group object. -pub fn ipam_fhrp_groups_update(query: IpamFhrpGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/fhrp-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsPartialUpdateQuery { -} -/// Patch a FHRP group object. -pub fn ipam_fhrp_groups_partial_update(query: IpamFhrpGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/fhrp-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsDestroyQuery { -} -/// Delete a FHRP group object. -pub fn ipam_fhrp_groups_destroy(query: IpamFhrpGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/fhrp-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersRetrieveQuery { -} -/// Get a cluster object. -pub fn virtualization_clusters_retrieve(query: VirtualizationClustersRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/clusters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersUpdateQuery { -} -/// Put a cluster object. -pub fn virtualization_clusters_update(query: VirtualizationClustersUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/clusters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersPartialUpdateQuery { -} -/// Patch a cluster object. -pub fn virtualization_clusters_partial_update(query: VirtualizationClustersPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/clusters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersDestroyQuery { -} -/// Delete a cluster object. -pub fn virtualization_clusters_destroy(query: VirtualizationClustersDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/clusters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_power_outlets_trace_retrieve(query: DcimPowerOutletsTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-outlets/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesRetrieveQuery { -} -/// Get a service object. -pub fn ipam_services_retrieve(query: IpamServicesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/services/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesUpdateQuery { -} -/// Put a service object. -pub fn ipam_services_update(query: IpamServicesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/services/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesPartialUpdateQuery { -} -/// Patch a service object. -pub fn ipam_services_partial_update(query: IpamServicesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/services/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServicesDestroyQuery { -} -/// Delete a service object. -pub fn ipam_services_destroy(query: IpamServicesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/services/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesRetrieveQuery { -} -/// Get a aggregate object. -pub fn ipam_aggregates_retrieve(query: IpamAggregatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/aggregates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesUpdateQuery { -} -/// Put a aggregate object. -pub fn ipam_aggregates_update(query: IpamAggregatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/aggregates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesPartialUpdateQuery { -} -/// Patch a aggregate object. -pub fn ipam_aggregates_partial_update(query: IpamAggregatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/aggregates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAggregatesDestroyQuery { -} -/// Delete a aggregate object. -pub fn ipam_aggregates_destroy(query: IpamAggregatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/aggregates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of cluster type objects. -pub fn virtualization_cluster_types_list(query: VirtualizationClusterTypesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/cluster-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesBulkUpdateQuery { -} -/// Put a list of cluster type objects. -pub fn virtualization_cluster_types_bulk_update(query: VirtualizationClusterTypesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/cluster-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesCreateQuery { -} -/// Post a list of cluster type objects. -pub fn virtualization_cluster_types_create(query: VirtualizationClusterTypesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/virtualization/cluster-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesBulkPartialUpdateQuery { -} -/// Patch a list of cluster type objects. -pub fn virtualization_cluster_types_bulk_partial_update(query: VirtualizationClusterTypesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/cluster-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterTypesBulkDestroyQuery { -} -/// Delete a list of cluster type objects. -pub fn virtualization_cluster_types_bulk_destroy(query: VirtualizationClusterTypesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/cluster-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataFilesRetrieveQuery { -} -/// Get a data file object. -pub fn core_data_files_retrieve(query: CoreDataFilesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/data-files/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsListQuery { - asset_tag: Vec, - asset_tag__empty: bool, - asset_tag__ic: Vec, - asset_tag__ie: Vec, - asset_tag__iew: Vec, - asset_tag__isw: Vec, - asset_tag__n: Vec, - asset_tag__nic: Vec, - asset_tag__nie: Vec, - asset_tag__niew: Vec, - asset_tag__nisw: Vec, - component_id: Vec, - component_id__empty: Vec, - component_id__gt: Vec, - component_id__gte: Vec, - component_id__lt: Vec, - component_id__lte: Vec, - component_id__n: Vec, - component_typ: String, - component_typ__n: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - discovered: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent_id: Vec, - parent_id__n: Vec, - part_id: Vec, - part_id__empty: bool, - part_id__ic: Vec, - part_id__ie: Vec, - part_id__iew: Vec, - part_id__isw: Vec, - part_id__n: Vec, - part_id__nic: Vec, - part_id__nie: Vec, - part_id__niew: Vec, - part_id__nisw: Vec, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - serial: Vec, - serial__empty: bool, - serial__ic: Vec, - serial__ie: Vec, - serial__iew: Vec, - serial__isw: Vec, - serial__n: Vec, - serial__nic: Vec, - serial__nie: Vec, - serial__niew: Vec, - serial__nisw: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of inventory item objects. -pub fn dcim_inventory_items_list(query: DcimInventoryItemsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-items/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsBulkUpdateQuery { -} -/// Put a list of inventory item objects. -pub fn dcim_inventory_items_bulk_update(query: DcimInventoryItemsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-items/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsCreateQuery { -} -/// Post a list of inventory item objects. -pub fn dcim_inventory_items_create(query: DcimInventoryItemsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/inventory-items/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsBulkPartialUpdateQuery { -} -/// Patch a list of inventory item objects. -pub fn dcim_inventory_items_bulk_partial_update(query: DcimInventoryItemsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-items/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemsBulkDestroyQuery { -} -/// Delete a list of inventory item objects. -pub fn dcim_inventory_items_bulk_destroy(query: DcimInventoryItemsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-items/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsRetrieveQuery { -} -/// Get a VRF object. -pub fn ipam_vrfs_retrieve(query: IpamVrfsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vrfs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsUpdateQuery { -} -/// Put a VRF object. -pub fn ipam_vrfs_update(query: IpamVrfsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vrfs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsPartialUpdateQuery { -} -/// Patch a VRF object. -pub fn ipam_vrfs_partial_update(query: IpamVrfsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vrfs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVrfsDestroyQuery { -} -/// Delete a VRF object. -pub fn ipam_vrfs_destroy(query: IpamVrfsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vrfs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesListQuery { - bridge_id: Vec, - bridge_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - enabled: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - mgmt_only: bool, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - poe_mode: Vec, - poe_mode__n: Vec, - poe_typ: Vec, - poe_typ__n: Vec, - q: String, - rf_role: Vec, - rf_role__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String -} -/// Get a list of interface template objects. -pub fn dcim_interface_templates_list(query: DcimInterfaceTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/interface-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesBulkUpdateQuery { -} -/// Put a list of interface template objects. -pub fn dcim_interface_templates_bulk_update(query: DcimInterfaceTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/interface-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesCreateQuery { -} -/// Post a list of interface template objects. -pub fn dcim_interface_templates_create(query: DcimInterfaceTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/interface-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of interface template objects. -pub fn dcim_interface_templates_bulk_partial_update(query: DcimInterfaceTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/interface-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfaceTemplatesBulkDestroyQuery { -} -/// Delete a list of interface template objects. -pub fn dcim_interface_templates_bulk_destroy(query: DcimInterfaceTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/interface-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - is_private: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of RIR objects. -pub fn ipam_rirs_list(query: IpamRirsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/rirs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsBulkUpdateQuery { -} -/// Put a list of RIR objects. -pub fn ipam_rirs_bulk_update(query: IpamRirsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/rirs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsCreateQuery { -} -/// Post a list of RIR objects. -pub fn ipam_rirs_create(query: IpamRirsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/rirs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsBulkPartialUpdateQuery { -} -/// Patch a list of RIR objects. -pub fn ipam_rirs_bulk_partial_update(query: IpamRirsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/rirs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsBulkDestroyQuery { -} -/// Delete a list of RIR objects. -pub fn ipam_rirs_bulk_destroy(query: IpamRirsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/rirs/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - feed_leg: Vec, - feed_leg__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of power outlet objects. -pub fn dcim_power_outlets_list(query: DcimPowerOutletsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-outlets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsBulkUpdateQuery { -} -/// Put a list of power outlet objects. -pub fn dcim_power_outlets_bulk_update(query: DcimPowerOutletsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-outlets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsCreateQuery { -} -/// Post a list of power outlet objects. -pub fn dcim_power_outlets_create(query: DcimPowerOutletsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-outlets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsBulkPartialUpdateQuery { -} -/// Patch a list of power outlet objects. -pub fn dcim_power_outlets_bulk_partial_update(query: DcimPowerOutletsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-outlets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsBulkDestroyQuery { -} -/// Delete a list of power outlet objects. -pub fn dcim_power_outlets_bulk_destroy(query: DcimPowerOutletsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-outlets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesRetrieveQuery { -} -/// Get a console server port template object. -pub fn dcim_console_server_port_templates_retrieve(query: DcimConsoleServerPortTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-server-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesUpdateQuery { -} -/// Put a console server port template object. -pub fn dcim_console_server_port_templates_update(query: DcimConsoleServerPortTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-server-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesPartialUpdateQuery { -} -/// Patch a console server port template object. -pub fn dcim_console_server_port_templates_partial_update(query: DcimConsoleServerPortTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-server-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortTemplatesDestroyQuery { -} -/// Delete a console server port template object. -pub fn dcim_console_server_port_templates_destroy(query: DcimConsoleServerPortTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-server-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesSyncCreateQuery { -} -/// Enqueue a job to synchronize the DataSource. -pub fn core_data_sources_sync_create(query: CoreDataSourcesSyncCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/core/data-sources/{id}/sync/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - exporting_vrf: Vec, - exporting_vrf__n: Vec, - exporting_vrf_id: Vec, - exporting_vrf_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - importing_vrf: Vec, - importing_vrf__n: Vec, - importing_vrf_id: Vec, - importing_vrf_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of route target objects. -pub fn ipam_route_targets_list(query: IpamRouteTargetsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/route-targets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsBulkUpdateQuery { -} -/// Put a list of route target objects. -pub fn ipam_route_targets_bulk_update(query: IpamRouteTargetsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/route-targets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsCreateQuery { -} -/// Post a list of route target objects. -pub fn ipam_route_targets_create(query: IpamRouteTargetsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/route-targets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsBulkPartialUpdateQuery { -} -/// Patch a list of route target objects. -pub fn ipam_route_targets_bulk_partial_update(query: IpamRouteTargetsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/route-targets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsBulkDestroyQuery { -} -/// Delete a list of route target objects. -pub fn ipam_route_targets_bulk_destroy(query: IpamRouteTargetsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/route-targets/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsListQuery { - cable: i64, - cable__n: i64, - cable_end: String, - cable_end__n: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - offset: i64, - ordering: String, - termination_id: Vec, - termination_id__empty: bool, - termination_id__gt: Vec, - termination_id__gte: Vec, - termination_id__lt: Vec, - termination_id__lte: Vec, - termination_id__n: Vec, - termination_typ: String, - termination_typ__n: String -} -/// Get a list of cable termination objects. -pub fn dcim_cable_terminations_list(query: DcimCableTerminationsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/cable-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsBulkUpdateQuery { -} -/// Put a list of cable termination objects. -pub fn dcim_cable_terminations_bulk_update(query: DcimCableTerminationsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/cable-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsCreateQuery { -} -/// Post a list of cable termination objects. -pub fn dcim_cable_terminations_create(query: DcimCableTerminationsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/cable-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsBulkPartialUpdateQuery { -} -/// Patch a list of cable termination objects. -pub fn dcim_cable_terminations_bulk_partial_update(query: DcimCableTerminationsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/cable-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimCableTerminationsBulkDestroyQuery { -} -/// Delete a list of cable termination objects. -pub fn dcim_cable_terminations_bulk_destroy(query: DcimCableTerminationsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/cable-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of wireless LAN group objects. -pub fn wireless_wireless_lan_groups_list(query: WirelessWirelessLanGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-lan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsBulkUpdateQuery { -} -/// Put a list of wireless LAN group objects. -pub fn wireless_wireless_lan_groups_bulk_update(query: WirelessWirelessLanGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-lan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsCreateQuery { -} -/// Post a list of wireless LAN group objects. -pub fn wireless_wireless_lan_groups_create(query: WirelessWirelessLanGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/wireless/wireless-lan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsBulkPartialUpdateQuery { -} -/// Patch a list of wireless LAN group objects. -pub fn wireless_wireless_lan_groups_bulk_partial_update(query: WirelessWirelessLanGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-lan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsBulkDestroyQuery { -} -/// Delete a list of wireless LAN group objects. -pub fn wireless_wireless_lan_groups_bulk_destroy(query: WirelessWirelessLanGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-lan-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksRetrieveQuery { -} -/// Get a webhook object. -pub fn extras_webhooks_retrieve(query: ExtrasWebhooksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/webhooks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksUpdateQuery { -} -/// Put a webhook object. -pub fn extras_webhooks_update(query: ExtrasWebhooksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/webhooks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksPartialUpdateQuery { -} -/// Patch a webhook object. -pub fn extras_webhooks_partial_update(query: ExtrasWebhooksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/webhooks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasWebhooksDestroyQuery { -} -/// Delete a webhook object. -pub fn extras_webhooks_destroy(query: ExtrasWebhooksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/webhooks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesAvailableIpsListQuery { -} -/// Get a IP address object. -pub fn ipam_prefixes_available_ips_list(query: IpamPrefixesAvailableIpsListQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/prefixes/{id}/available-ips/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesAvailableIpsCreateQuery { -} -/// Post a IP address object. -pub fn ipam_prefixes_available_ips_create(query: IpamPrefixesAvailableIpsCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/prefixes/{id}/available-ips/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - connected: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of console port objects. -pub fn dcim_console_ports_list(query: DcimConsolePortsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsBulkUpdateQuery { -} -/// Put a list of console port objects. -pub fn dcim_console_ports_bulk_update(query: DcimConsolePortsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsCreateQuery { -} -/// Post a list of console port objects. -pub fn dcim_console_ports_create(query: DcimConsolePortsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/console-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsBulkPartialUpdateQuery { -} -/// Patch a list of console port objects. -pub fn dcim_console_ports_bulk_partial_update(query: DcimConsolePortsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsBulkDestroyQuery { -} -/// Delete a list of console port objects. -pub fn dcim_console_ports_bulk_destroy(query: DcimConsolePortsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of role objects. -pub fn ipam_roles_list(query: IpamRolesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesBulkUpdateQuery { -} -/// Put a list of role objects. -pub fn ipam_roles_bulk_update(query: IpamRolesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesCreateQuery { -} -/// Post a list of role objects. -pub fn ipam_roles_create(query: IpamRolesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesBulkPartialUpdateQuery { -} -/// Patch a list of role objects. -pub fn ipam_roles_bulk_partial_update(query: IpamRolesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRolesBulkDestroyQuery { -} -/// Delete a list of role objects. -pub fn ipam_roles_bulk_destroy(query: IpamRolesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesRetrieveQuery { -} -/// Get a rear port template object. -pub fn dcim_rear_port_templates_retrieve(query: DcimRearPortTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rear-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesUpdateQuery { -} -/// Put a rear port template object. -pub fn dcim_rear_port_templates_update(query: DcimRearPortTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rear-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesPartialUpdateQuery { -} -/// Patch a rear port template object. -pub fn dcim_rear_port_templates_partial_update(query: DcimRearPortTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rear-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesDestroyQuery { -} -/// Delete a rear port template object. -pub fn dcim_rear_port_templates_destroy(query: DcimRearPortTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rear-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersListQuery { - content_typ_id: Vec, - content_typ_id__empty: Vec, - content_typ_id__gt: Vec, - content_typ_id__gte: Vec, - content_typ_id__lt: Vec, - content_typ_id__lte: Vec, - content_typ_id__n: Vec, - content_typs: String, - content_typs__ic: String, - content_typs__ie: String, - content_typs__iew: String, - content_typs__isw: String, - content_typs__n: String, - content_typs__nic: String, - content_typs__nie: String, - content_typs__niew: String, - content_typs__nisw: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - enabled: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - shared: bool, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - usable: bool, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec -} -/// Get a list of saved filter objects. -pub fn extras_saved_filters_list(query: ExtrasSavedFiltersListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/saved-filters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersBulkUpdateQuery { -} -/// Put a list of saved filter objects. -pub fn extras_saved_filters_bulk_update(query: ExtrasSavedFiltersBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/saved-filters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersCreateQuery { -} -/// Post a list of saved filter objects. -pub fn extras_saved_filters_create(query: ExtrasSavedFiltersCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/saved-filters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersBulkPartialUpdateQuery { -} -/// Patch a list of saved filter objects. -pub fn extras_saved_filters_bulk_partial_update(query: ExtrasSavedFiltersBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/saved-filters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersBulkDestroyQuery { -} -/// Delete a list of saved filter objects. -pub fn extras_saved_filters_bulk_destroy(query: ExtrasSavedFiltersBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/saved-filters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsRetrieveQuery { -} -/// Get a contact group object. -pub fn tenancy_contact_groups_retrieve(query: TenancyContactGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsUpdateQuery { -} -/// Put a contact group object. -pub fn tenancy_contact_groups_update(query: TenancyContactGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsPartialUpdateQuery { -} -/// Patch a contact group object. -pub fn tenancy_contact_groups_partial_update(query: TenancyContactGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsDestroyQuery { -} -/// Delete a contact group object. -pub fn tenancy_contact_groups_destroy(query: TenancyContactGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsRetrieveQuery { -} -/// Get a site group object. -pub fn dcim_site_groups_retrieve(query: DcimSiteGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/site-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsUpdateQuery { -} -/// Put a site group object. -pub fn dcim_site_groups_update(query: DcimSiteGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/site-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsPartialUpdateQuery { -} -/// Patch a site group object. -pub fn dcim_site_groups_partial_update(query: DcimSiteGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/site-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsDestroyQuery { -} -/// Delete a site group object. -pub fn dcim_site_groups_destroy(query: DcimSiteGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/site-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisRetrieveQuery { -} -/// Get a virtual chassis object. -pub fn dcim_virtual_chassis_retrieve(query: DcimVirtualChassisRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/virtual-chassis/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisUpdateQuery { -} -/// Put a virtual chassis object. -pub fn dcim_virtual_chassis_update(query: DcimVirtualChassisUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/virtual-chassis/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisPartialUpdateQuery { -} -/// Patch a virtual chassis object. -pub fn dcim_virtual_chassis_partial_update(query: DcimVirtualChassisPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/virtual-chassis/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisDestroyQuery { -} -/// Delete a virtual chassis object. -pub fn dcim_virtual_chassis_destroy(query: DcimVirtualChassisDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/virtual-chassis/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortsTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_power_ports_trace_retrieve(query: DcimPowerPortsTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-ports/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesListQuery { - address: Vec, - assigned: bool, - assigned_to_interface: bool, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device_id: Vec, - dns_name: Vec, - dns_name__empty: bool, - dns_name__ic: Vec, - dns_name__ie: Vec, - dns_name__iew: Vec, - dns_name__isw: Vec, - dns_name__n: Vec, - dns_name__nic: Vec, - dns_name__nie: Vec, - dns_name__niew: Vec, - dns_name__nisw: Vec, - family: f64, - fhrpgroup_id: Vec, - fhrpgroup_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interface: Vec, - interface__n: Vec, - interface_id: Vec, - interface_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - mask_length: f64, - modified_by_request: String, - offset: i64, - ordering: String, - parent: Vec, - present_in_vrf: String, - present_in_vrf_id: String, - q: String, - role: Vec, - role__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - virtual_machine: Vec, - virtual_machine_id: Vec, - vminterface: Vec, - vminterface__n: Vec, - vminterface_id: Vec, - vminterface_id__n: Vec, - vrf: Vec, - vrf__n: Vec, - vrf_id: Vec, - vrf_id__n: Vec -} -/// Get a list of IP address objects. -pub fn ipam_ip_addresses_list(query: IpamIpAddressesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/ip-addresses/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesBulkUpdateQuery { -} -/// Put a list of IP address objects. -pub fn ipam_ip_addresses_bulk_update(query: IpamIpAddressesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/ip-addresses/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesCreateQuery { -} -/// Post a list of IP address objects. -pub fn ipam_ip_addresses_create(query: IpamIpAddressesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/ip-addresses/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesBulkPartialUpdateQuery { -} -/// Patch a list of IP address objects. -pub fn ipam_ip_addresses_bulk_partial_update(query: IpamIpAddressesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/ip-addresses/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpAddressesBulkDestroyQuery { -} -/// Delete a list of IP address objects. -pub fn ipam_ip_addresses_bulk_destroy(query: IpamIpAddressesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/ip-addresses/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesAvailableAsnsListQuery { -} -/// Get a ASN object. -pub fn ipam_asn_ranges_available_asns_list(query: IpamAsnRangesAvailableAsnsListQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/asn-ranges/{id}/available-asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamAsnRangesAvailableAsnsCreateQuery { -} -/// Post a ASN object. -pub fn ipam_asn_ranges_available_asns_create(query: IpamAsnRangesAvailableAsnsCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/asn-ranges/{id}/available-asns/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksRetrieveQuery { -} -/// Get a bookmark object. -pub fn extras_bookmarks_retrieve(query: ExtrasBookmarksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/bookmarks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksUpdateQuery { -} -/// Put a bookmark object. -pub fn extras_bookmarks_update(query: ExtrasBookmarksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/bookmarks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksPartialUpdateQuery { -} -/// Patch a bookmark object. -pub fn extras_bookmarks_partial_update(query: ExtrasBookmarksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/bookmarks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksDestroyQuery { -} -/// Delete a bookmark object. -pub fn extras_bookmarks_destroy(query: ExtrasBookmarksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/bookmarks/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersRetrieveQuery { -} -/// Get a user object. -pub fn users_users_retrieve(query: UsersUsersRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/users/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersUpdateQuery { -} -/// Put a user object. -pub fn users_users_update(query: UsersUsersUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/users/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersPartialUpdateQuery { -} -/// Patch a user object. -pub fn users_users_partial_update(query: UsersUsersPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/users/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersDestroyQuery { -} -/// Delete a user object. -pub fn users_users_destroy(query: UsersUsersDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/users/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsListQuery { - choice_set: Vec, - choice_set__n: Vec, - choice_set_id: Vec, - choice_set_id__n: Vec, - content_typ_id: Vec, - content_typ_id__empty: Vec, - content_typ_id__gt: Vec, - content_typ_id__gte: Vec, - content_typ_id__lt: Vec, - content_typ_id__lte: Vec, - content_typ_id__n: Vec, - content_typs: String, - content_typs__ic: String, - content_typs__ie: String, - content_typs__iew: String, - content_typs__isw: String, - content_typs__n: String, - content_typs__nic: String, - content_typs__nie: String, - content_typs__niew: String, - content_typs__nisw: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - filter_logic: String, - filter_logic__n: String, - group_name: Vec, - group_name__empty: bool, - group_name__ic: Vec, - group_name__ie: Vec, - group_name__iew: Vec, - group_name__isw: Vec, - group_name__n: Vec, - group_name__nic: Vec, - group_name__nie: Vec, - group_name__niew: Vec, - group_name__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - is_cloneable: bool, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - required: bool, - search_weight: Vec, - search_weight__empty: bool, - search_weight__gt: Vec, - search_weight__gte: Vec, - search_weight__lt: Vec, - search_weight__lte: Vec, - search_weight__n: Vec, - typ: Vec, - typ__n: Vec, - ui_visibility: String, - ui_visibility__n: String, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec -} -/// Get a list of custom field objects. -pub fn extras_custom_fields_list(query: ExtrasCustomFieldsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-fields/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsBulkUpdateQuery { -} -/// Put a list of custom field objects. -pub fn extras_custom_fields_bulk_update(query: ExtrasCustomFieldsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-fields/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsCreateQuery { -} -/// Post a list of custom field objects. -pub fn extras_custom_fields_create(query: ExtrasCustomFieldsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/custom-fields/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsBulkPartialUpdateQuery { -} -/// Patch a list of custom field objects. -pub fn extras_custom_fields_bulk_partial_update(query: ExtrasCustomFieldsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-fields/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldsBulkDestroyQuery { -} -/// Delete a list of custom field objects. -pub fn extras_custom_fields_bulk_destroy(query: ExtrasCustomFieldsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-fields/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsListQuery { - assigned_object_typ: String, - assigned_object_typ__n: String, - assigned_object_typ_id: i64, - assigned_object_typ_id__n: i64, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - interface: Vec, - interface__n: Vec, - interface_id: Vec, - interface_id__n: Vec, - l2vpn: Vec, - l2vpn__n: Vec, - l2vpn_id: Vec, - l2vpn_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - region: Vec, - region_id: Vec, - site: Vec, - site_id: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_machine: Vec, - virtual_machine__n: Vec, - virtual_machine_id: Vec, - virtual_machine_id__n: Vec, - vlan: Vec, - vlan__n: Vec, - vlan_id: Vec, - vlan_id__n: Vec, - vlan_vid: i64, - vlan_vid__empty: i64, - vlan_vid__gt: i64, - vlan_vid__gte: i64, - vlan_vid__lt: i64, - vlan_vid__lte: i64, - vlan_vid__n: i64, - vminterface: Vec, - vminterface__n: Vec, - vminterface_id: Vec, - vminterface_id__n: Vec -} -/// Get a list of L2VPN termination objects. -pub fn ipam_l2vpn_terminations_list(query: IpamL2VpnTerminationsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/l2vpn-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsBulkUpdateQuery { -} -/// Put a list of L2VPN termination objects. -pub fn ipam_l2vpn_terminations_bulk_update(query: IpamL2VpnTerminationsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/l2vpn-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsCreateQuery { -} -/// Post a list of L2VPN termination objects. -pub fn ipam_l2vpn_terminations_create(query: IpamL2VpnTerminationsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/l2vpn-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsBulkPartialUpdateQuery { -} -/// Patch a list of L2VPN termination objects. -pub fn ipam_l2vpn_terminations_bulk_partial_update(query: IpamL2VpnTerminationsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/l2vpn-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnTerminationsBulkDestroyQuery { -} -/// Delete a list of L2VPN termination objects. -pub fn ipam_l2vpn_terminations_bulk_destroy(query: IpamL2VpnTerminationsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/l2vpn-terminations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsRetrieveQuery { -} -/// Get a FHRP group assignment object. -pub fn ipam_fhrp_group_assignments_retrieve(query: IpamFhrpGroupAssignmentsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/fhrp-group-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsUpdateQuery { -} -/// Put a FHRP group assignment object. -pub fn ipam_fhrp_group_assignments_update(query: IpamFhrpGroupAssignmentsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/fhrp-group-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsPartialUpdateQuery { -} -/// Patch a FHRP group assignment object. -pub fn ipam_fhrp_group_assignments_partial_update(query: IpamFhrpGroupAssignmentsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/fhrp-group-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupAssignmentsDestroyQuery { -} -/// Delete a FHRP group assignment object. -pub fn ipam_fhrp_group_assignments_destroy(query: IpamFhrpGroupAssignmentsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/fhrp-group-assignments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsRetrieveQuery { -} -/// Get a group object. -pub fn users_groups_retrieve(query: UsersGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsUpdateQuery { -} -/// Put a group object. -pub fn users_groups_update(query: UsersGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsPartialUpdateQuery { -} -/// Patch a group object. -pub fn users_groups_partial_update(query: UsersGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersGroupsDestroyQuery { -} -/// Delete a group object. -pub fn users_groups_destroy(query: UsersGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesListQuery { - cluster: Vec, - cluster__n: Vec, - cluster_group: Vec, - cluster_group__n: Vec, - cluster_group_id: Vec, - cluster_group_id__n: Vec, - cluster_id: Vec, - cluster_id__n: Vec, - cluster_typ: Vec, - cluster_typ__n: Vec, - cluster_typ_id: Vec, - cluster_typ_id__n: Vec, - config_template_id: Vec, - config_template_id__n: Vec, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - disk: Vec, - disk__empty: bool, - disk__gt: Vec, - disk__gte: Vec, - disk__lt: Vec, - disk__lte: Vec, - disk__n: Vec, - has_primary_ip: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - local_context_data: bool, - mac_address: Vec, - mac_address__ic: Vec, - mac_address__ie: Vec, - mac_address__iew: Vec, - mac_address__isw: Vec, - mac_address__n: Vec, - mac_address__nic: Vec, - mac_address__nie: Vec, - mac_address__niew: Vec, - mac_address__nisw: Vec, - memory: Vec, - memory__empty: bool, - memory__gt: Vec, - memory__gte: Vec, - memory__lt: Vec, - memory__lte: Vec, - memory__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - platform: Vec, - platform__n: Vec, - platform_id: Vec, - platform_id__n: Vec, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vcpus: Vec, - vcpus__empty: bool, - vcpus__gt: Vec, - vcpus__gte: Vec, - vcpus__lt: Vec, - vcpus__lte: Vec, - vcpus__n: Vec -} -/// Get a list of virtual machine objects. -pub fn virtualization_virtual_machines_list(query: VirtualizationVirtualMachinesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/virtual-machines/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesBulkUpdateQuery { -} -/// Put a list of virtual machine objects. -pub fn virtualization_virtual_machines_bulk_update(query: VirtualizationVirtualMachinesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/virtual-machines/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesCreateQuery { -} -/// Post a list of virtual machine objects. -pub fn virtualization_virtual_machines_create(query: VirtualizationVirtualMachinesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/virtualization/virtual-machines/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesBulkPartialUpdateQuery { -} -/// Patch a list of virtual machine objects. -pub fn virtualization_virtual_machines_bulk_partial_update(query: VirtualizationVirtualMachinesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/virtual-machines/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationVirtualMachinesBulkDestroyQuery { -} -/// Delete a list of virtual machine objects. -pub fn virtualization_virtual_machines_bulk_destroy(query: VirtualizationVirtualMachinesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/virtual-machines/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesRetrieveQuery { -} -/// Get a inventory item role object. -pub fn dcim_inventory_item_roles_retrieve(query: DcimInventoryItemRolesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-item-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesUpdateQuery { -} -/// Put a inventory item role object. -pub fn dcim_inventory_item_roles_update(query: DcimInventoryItemRolesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-item-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesPartialUpdateQuery { -} -/// Patch a inventory item role object. -pub fn dcim_inventory_item_roles_partial_update(query: DcimInventoryItemRolesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-item-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemRolesDestroyQuery { -} -/// Delete a inventory item role object. -pub fn dcim_inventory_item_roles_destroy(query: DcimInventoryItemRolesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-item-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsRetrieveQuery { -} -/// Get a route target object. -pub fn ipam_route_targets_retrieve(query: IpamRouteTargetsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/route-targets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsUpdateQuery { -} -/// Put a route target object. -pub fn ipam_route_targets_update(query: IpamRouteTargetsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/route-targets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsPartialUpdateQuery { -} -/// Patch a route target object. -pub fn ipam_route_targets_partial_update(query: IpamRouteTargetsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/route-targets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRouteTargetsDestroyQuery { -} -/// Delete a route target object. -pub fn ipam_route_targets_destroy(query: IpamRouteTargetsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/route-targets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesRetrieveQuery { -} -/// Get a data source object. -pub fn core_data_sources_retrieve(query: CoreDataSourcesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/data-sources/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesUpdateQuery { -} -/// Put a data source object. -pub fn core_data_sources_update(query: CoreDataSourcesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/core/data-sources/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesPartialUpdateQuery { -} -/// Patch a data source object. -pub fn core_data_sources_partial_update(query: CoreDataSourcesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/core/data-sources/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesDestroyQuery { -} -/// Delete a data source object. -pub fn core_data_sources_destroy(query: CoreDataSourcesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/core/data-sources/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsRetrieveQuery { -} -/// Get a provider account object. -pub fn circuits_provider_accounts_retrieve(query: CircuitsProviderAccountsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/provider-accounts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsUpdateQuery { -} -/// Put a provider account object. -pub fn circuits_provider_accounts_update(query: CircuitsProviderAccountsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/provider-accounts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsPartialUpdateQuery { -} -/// Patch a provider account object. -pub fn circuits_provider_accounts_partial_update(query: CircuitsProviderAccountsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/provider-accounts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsDestroyQuery { -} -/// Delete a provider account object. -pub fn circuits_provider_accounts_destroy(query: CircuitsProviderAccountsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/provider-accounts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersListQuery { - email: Vec, - email__empty: bool, - email__ic: Vec, - email__ie: Vec, - email__iew: Vec, - email__isw: Vec, - email__n: Vec, - email__nic: Vec, - email__nie: Vec, - email__niew: Vec, - email__nisw: Vec, - first_name: Vec, - first_name__empty: bool, - first_name__ic: Vec, - first_name__ie: Vec, - first_name__iew: Vec, - first_name__isw: Vec, - first_name__n: Vec, - first_name__nic: Vec, - first_name__nie: Vec, - first_name__niew: Vec, - first_name__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - is_active: bool, - is_staff: bool, - is_superuser: bool, - last_name: Vec, - last_name__empty: bool, - last_name__ic: Vec, - last_name__ie: Vec, - last_name__iew: Vec, - last_name__isw: Vec, - last_name__n: Vec, - last_name__nic: Vec, - last_name__nie: Vec, - last_name__niew: Vec, - last_name__nisw: Vec, - limit: i64, - offset: i64, - ordering: String, - q: String, - username: Vec, - username__empty: bool, - username__ic: Vec, - username__ie: Vec, - username__iew: Vec, - username__isw: Vec, - username__n: Vec, - username__nic: Vec, - username__nie: Vec, - username__niew: Vec, - username__nisw: Vec -} -/// Get a list of user objects. -pub fn users_users_list(query: UsersUsersListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/users/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersBulkUpdateQuery { -} -/// Put a list of user objects. -pub fn users_users_bulk_update(query: UsersUsersBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/users/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersCreateQuery { -} -/// Post a list of user objects. -pub fn users_users_create(query: UsersUsersCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/users/users/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersBulkPartialUpdateQuery { -} -/// Patch a list of user objects. -pub fn users_users_bulk_partial_update(query: UsersUsersBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/users/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersUsersBulkDestroyQuery { -} -/// Delete a list of user objects. -pub fn users_users_bulk_destroy(query: UsersUsersBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/users/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsListQuery { - auth_key: Vec, - auth_key__empty: bool, - auth_key__ic: Vec, - auth_key__ie: Vec, - auth_key__iew: Vec, - auth_key__isw: Vec, - auth_key__n: Vec, - auth_key__nic: Vec, - auth_key__nie: Vec, - auth_key__niew: Vec, - auth_key__nisw: Vec, - auth_typ: Vec, - auth_typ__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - group_id: Vec, - group_id__empty: bool, - group_id__gt: Vec, - group_id__gte: Vec, - group_id__lt: Vec, - group_id__lte: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - protocol: Vec, - protocol__n: Vec, - q: String, - related_ip: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of FHRP group objects. -pub fn ipam_fhrp_groups_list(query: IpamFhrpGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/fhrp-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsBulkUpdateQuery { -} -/// Put a list of FHRP group objects. -pub fn ipam_fhrp_groups_bulk_update(query: IpamFhrpGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/fhrp-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsCreateQuery { -} -/// Post a list of FHRP group objects. -pub fn ipam_fhrp_groups_create(query: IpamFhrpGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/fhrp-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsBulkPartialUpdateQuery { -} -/// Patch a list of FHRP group objects. -pub fn ipam_fhrp_groups_bulk_partial_update(query: IpamFhrpGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/fhrp-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamFhrpGroupsBulkDestroyQuery { -} -/// Delete a list of FHRP group objects. -pub fn ipam_fhrp_groups_bulk_destroy(query: IpamFhrpGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/fhrp-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of cluster group objects. -pub fn virtualization_cluster_groups_list(query: VirtualizationClusterGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/cluster-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsBulkUpdateQuery { -} -/// Put a list of cluster group objects. -pub fn virtualization_cluster_groups_bulk_update(query: VirtualizationClusterGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/cluster-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsCreateQuery { -} -/// Post a list of cluster group objects. -pub fn virtualization_cluster_groups_create(query: VirtualizationClusterGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/virtualization/cluster-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsBulkPartialUpdateQuery { -} -/// Patch a list of cluster group objects. -pub fn virtualization_cluster_groups_bulk_partial_update(query: VirtualizationClusterGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/cluster-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClusterGroupsBulkDestroyQuery { -} -/// Delete a list of cluster group objects. -pub fn virtualization_cluster_groups_bulk_destroy(query: VirtualizationClusterGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/cluster-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesRetrieveQuery { -} -/// Get a circuit type object. -pub fn circuits_circuit_types_retrieve(query: CircuitsCircuitTypesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuit-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesUpdateQuery { -} -/// Put a circuit type object. -pub fn circuits_circuit_types_update(query: CircuitsCircuitTypesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuit-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesPartialUpdateQuery { -} -/// Patch a circuit type object. -pub fn circuits_circuit_types_partial_update(query: CircuitsCircuitTypesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuit-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesDestroyQuery { -} -/// Delete a circuit type object. -pub fn circuits_circuit_types_destroy(query: CircuitsCircuitTypesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuit-types/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsRetrieveQuery { -} -/// Get a power outlet object. -pub fn dcim_power_outlets_retrieve(query: DcimPowerOutletsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-outlets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsUpdateQuery { -} -/// Put a power outlet object. -pub fn dcim_power_outlets_update(query: DcimPowerOutletsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-outlets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsPartialUpdateQuery { -} -/// Patch a power outlet object. -pub fn dcim_power_outlets_partial_update(query: DcimPowerOutletsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-outlets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletsDestroyQuery { -} -/// Delete a power outlet object. -pub fn dcim_power_outlets_destroy(query: DcimPowerOutletsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-outlets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - has_primary_ip: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of virtual device context objects. -pub fn dcim_virtual_device_contexts_list(query: DcimVirtualDeviceContextsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/virtual-device-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsBulkUpdateQuery { -} -/// Put a list of virtual device context objects. -pub fn dcim_virtual_device_contexts_bulk_update(query: DcimVirtualDeviceContextsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/virtual-device-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsCreateQuery { -} -/// Post a list of virtual device context objects. -pub fn dcim_virtual_device_contexts_create(query: DcimVirtualDeviceContextsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/virtual-device-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsBulkPartialUpdateQuery { -} -/// Patch a list of virtual device context objects. -pub fn dcim_virtual_device_contexts_bulk_partial_update(query: DcimVirtualDeviceContextsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/virtual-device-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualDeviceContextsBulkDestroyQuery { -} -/// Delete a list of virtual device context objects. -pub fn dcim_virtual_device_contexts_bulk_destroy(query: DcimVirtualDeviceContextsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/virtual-device-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesRetrieveQuery { -} -/// Get a power port template object. -pub fn dcim_power_port_templates_retrieve(query: DcimPowerPortTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesUpdateQuery { -} -/// Put a power port template object. -pub fn dcim_power_port_templates_update(query: DcimPowerPortTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesPartialUpdateQuery { -} -/// Patch a power port template object. -pub fn dcim_power_port_templates_partial_update(query: DcimPowerPortTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesDestroyQuery { -} -/// Delete a power port template object. -pub fn dcim_power_port_templates_destroy(query: DcimPowerPortTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsRetrieveQuery { -} -/// Get a console server port object. -pub fn dcim_console_server_ports_retrieve(query: DcimConsoleServerPortsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-server-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsUpdateQuery { -} -/// Put a console server port object. -pub fn dcim_console_server_ports_update(query: DcimConsoleServerPortsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-server-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsPartialUpdateQuery { -} -/// Patch a console server port object. -pub fn dcim_console_server_ports_partial_update(query: DcimConsoleServerPortsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-server-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsDestroyQuery { -} -/// Delete a console server port object. -pub fn dcim_console_server_ports_destroy(query: DcimConsoleServerPortsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-server-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsRetrieveQuery { -} -/// Get a rear port object. -pub fn dcim_rear_ports_retrieve(query: DcimRearPortsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rear-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsUpdateQuery { -} -/// Put a rear port object. -pub fn dcim_rear_ports_update(query: DcimRearPortsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rear-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsPartialUpdateQuery { -} -/// Patch a rear port object. -pub fn dcim_rear_ports_partial_update(query: DcimRearPortsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rear-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortsDestroyQuery { -} -/// Delete a rear port object. -pub fn dcim_rear_ports_destroy(query: DcimRearPortsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rear-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesListQuery { - asn: Vec, - asn__n: Vec, - asn_id: Vec, - asn_id__n: Vec, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - facility: Vec, - facility__empty: bool, - facility__ic: Vec, - facility__ie: Vec, - facility__iew: Vec, - facility__isw: Vec, - facility__n: Vec, - facility__nic: Vec, - facility__nie: Vec, - facility__niew: Vec, - facility__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - latitude: Vec, - latitude__empty: bool, - latitude__gt: Vec, - latitude__gte: Vec, - latitude__lt: Vec, - latitude__lte: Vec, - latitude__n: Vec, - limit: i64, - longitude: Vec, - longitude__empty: bool, - longitude__gt: Vec, - longitude__gte: Vec, - longitude__lt: Vec, - longitude__lte: Vec, - longitude__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of site objects. -pub fn dcim_sites_list(query: DcimSitesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/sites/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesBulkUpdateQuery { -} -/// Put a list of site objects. -pub fn dcim_sites_bulk_update(query: DcimSitesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/sites/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesCreateQuery { -} -/// Post a list of site objects. -pub fn dcim_sites_create(query: DcimSitesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/sites/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesBulkPartialUpdateQuery { -} -/// Patch a list of site objects. -pub fn dcim_sites_bulk_partial_update(query: DcimSitesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/sites/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSitesBulkDestroyQuery { -} -/// Delete a list of site objects. -pub fn dcim_sites_bulk_destroy(query: DcimSitesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/sites/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - domain: Vec, - domain__empty: bool, - domain__ic: Vec, - domain__ie: Vec, - domain__iew: Vec, - domain__isw: Vec, - domain__n: Vec, - domain__nic: Vec, - domain__nie: Vec, - domain__niew: Vec, - domain__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - master: Vec, - master__n: Vec, - master_id: Vec, - master_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of virtual chassis objects. -pub fn dcim_virtual_chassis_list(query: DcimVirtualChassisListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/virtual-chassis/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisBulkUpdateQuery { -} -/// Put a list of virtual chassis objects. -pub fn dcim_virtual_chassis_bulk_update(query: DcimVirtualChassisBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/virtual-chassis/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisCreateQuery { -} -/// Post a list of virtual chassis objects. -pub fn dcim_virtual_chassis_create(query: DcimVirtualChassisCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/virtual-chassis/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisBulkPartialUpdateQuery { -} -/// Patch a list of virtual chassis objects. -pub fn dcim_virtual_chassis_bulk_partial_update(query: DcimVirtualChassisBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/virtual-chassis/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimVirtualChassisBulkDestroyQuery { -} -/// Delete a list of virtual chassis objects. -pub fn dcim_virtual_chassis_bulk_destroy(query: DcimVirtualChassisBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/virtual-chassis/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansListQuery { - auth_cipher: Vec, - auth_cipher__n: Vec, - auth_psk: Vec, - auth_psk__empty: bool, - auth_psk__ic: Vec, - auth_psk__ie: Vec, - auth_psk__iew: Vec, - auth_psk__isw: Vec, - auth_psk__n: Vec, - auth_psk__nic: Vec, - auth_psk__nie: Vec, - auth_psk__niew: Vec, - auth_psk__nisw: Vec, - auth_typ: Vec, - auth_typ__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - ssid: Vec, - ssid__empty: bool, - ssid__ic: Vec, - ssid__ie: Vec, - ssid__iew: Vec, - ssid__isw: Vec, - ssid__n: Vec, - ssid__nic: Vec, - ssid__nie: Vec, - ssid__niew: Vec, - ssid__nisw: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vlan_id: Vec, - vlan_id__n: Vec -} -/// Get a list of wireless LAN objects. -pub fn wireless_wireless_lans_list(query: WirelessWirelessLansListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-lans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansBulkUpdateQuery { -} -/// Put a list of wireless LAN objects. -pub fn wireless_wireless_lans_bulk_update(query: WirelessWirelessLansBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-lans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansCreateQuery { -} -/// Post a list of wireless LAN objects. -pub fn wireless_wireless_lans_create(query: WirelessWirelessLansCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/wireless/wireless-lans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansBulkPartialUpdateQuery { -} -/// Patch a list of wireless LAN objects. -pub fn wireless_wireless_lans_bulk_partial_update(query: WirelessWirelessLansBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-lans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLansBulkDestroyQuery { -} -/// Delete a list of wireless LAN objects. -pub fn wireless_wireless_lans_bulk_destroy(query: WirelessWirelessLansBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-lans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsRetrieveQuery { -} -/// Get a custom field choice set object. -pub fn extras_custom_field_choice_sets_retrieve(query: ExtrasCustomFieldChoiceSetsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-field-choice-sets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsUpdateQuery { -} -/// Put a custom field choice set object. -pub fn extras_custom_field_choice_sets_update(query: ExtrasCustomFieldChoiceSetsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-field-choice-sets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsPartialUpdateQuery { -} -/// Patch a custom field choice set object. -pub fn extras_custom_field_choice_sets_partial_update(query: ExtrasCustomFieldChoiceSetsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-field-choice-sets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomFieldChoiceSetsDestroyQuery { -} -/// Delete a custom field choice set object. -pub fn extras_custom_field_choice_sets_destroy(query: ExtrasCustomFieldChoiceSetsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-field-choice-sets/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - port: f64, - protocol: String, - protocol__n: String, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of service template objects. -pub fn ipam_service_templates_list(query: IpamServiceTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/service-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesBulkUpdateQuery { -} -/// Put a list of service template objects. -pub fn ipam_service_templates_bulk_update(query: IpamServiceTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/service-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesCreateQuery { -} -/// Post a list of service template objects. -pub fn ipam_service_templates_create(query: IpamServiceTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/service-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of service template objects. -pub fn ipam_service_templates_bulk_partial_update(query: IpamServiceTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/service-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesBulkDestroyQuery { -} -/// Delete a list of service template objects. -pub fn ipam_service_templates_bulk_destroy(query: IpamServiceTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/service-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysRetrieveQuery { -} -/// Get a module bay object. -pub fn dcim_module_bays_retrieve(query: DcimModuleBaysRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysUpdateQuery { -} -/// Put a module bay object. -pub fn dcim_module_bays_update(query: DcimModuleBaysUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysPartialUpdateQuery { -} -/// Patch a module bay object. -pub fn dcim_module_bays_partial_update(query: DcimModuleBaysPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysDestroyQuery { -} -/// Delete a module bay object. -pub fn dcim_module_bays_destroy(query: DcimModuleBaysDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-bays/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesSyncCreateQuery { -} -/// Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). -pub fn extras_export_templates_sync_create(query: ExtrasExportTemplatesSyncCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/export-templates/{id}/sync/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesAvailablePrefixesListQuery { -} -/// Get a prefix object. -pub fn ipam_prefixes_available_prefixes_list(query: IpamPrefixesAvailablePrefixesListQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/prefixes/{id}/available-prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamPrefixesAvailablePrefixesCreateQuery { -} -/// Post a prefix object. -pub fn ipam_prefixes_available_prefixes_create(query: IpamPrefixesAvailablePrefixesCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/prefixes/{id}/available-prefixes/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsListQuery { - cable_end: String, - cable_end__n: String, - cabled: bool, - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - module_id: Vec, - module_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - occupied: bool, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of front port objects. -pub fn dcim_front_ports_list(query: DcimFrontPortsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/front-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsBulkUpdateQuery { -} -/// Put a list of front port objects. -pub fn dcim_front_ports_bulk_update(query: DcimFrontPortsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/front-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsCreateQuery { -} -/// Post a list of front port objects. -pub fn dcim_front_ports_create(query: DcimFrontPortsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/front-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsBulkPartialUpdateQuery { -} -/// Patch a list of front port objects. -pub fn dcim_front_ports_bulk_partial_update(query: DcimFrontPortsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/front-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsBulkDestroyQuery { -} -/// Delete a list of front port objects. -pub fn dcim_front_ports_bulk_destroy(query: DcimFrontPortsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/front-ports/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of circuit type objects. -pub fn circuits_circuit_types_list(query: CircuitsCircuitTypesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuit-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesBulkUpdateQuery { -} -/// Put a list of circuit type objects. -pub fn circuits_circuit_types_bulk_update(query: CircuitsCircuitTypesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuit-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesCreateQuery { -} -/// Post a list of circuit type objects. -pub fn circuits_circuit_types_create(query: CircuitsCircuitTypesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/circuit-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesBulkPartialUpdateQuery { -} -/// Patch a list of circuit type objects. -pub fn circuits_circuit_types_bulk_partial_update(query: CircuitsCircuitTypesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuit-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitTypesBulkDestroyQuery { -} -/// Delete a list of circuit type objects. -pub fn circuits_circuit_types_bulk_destroy(query: CircuitsCircuitTypesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuit-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsSyncCreateQuery { -} -/// Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). -pub fn extras_config_contexts_sync_create(query: ExtrasConfigContextsSyncCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/config-contexts/{id}/sync/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesRetrieveQuery { -} -/// Get a console port template object. -pub fn dcim_console_port_templates_retrieve(query: DcimConsolePortTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesUpdateQuery { -} -/// Put a console port template object. -pub fn dcim_console_port_templates_update(query: DcimConsolePortTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/console-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesPartialUpdateQuery { -} -/// Patch a console port template object. -pub fn dcim_console_port_templates_partial_update(query: DcimConsolePortTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/console-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortTemplatesDestroyQuery { -} -/// Delete a console port template object. -pub fn dcim_console_port_templates_destroy(query: DcimConsolePortTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/console-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesRetrieveQuery { -} -/// Get a service template object. -pub fn ipam_service_templates_retrieve(query: IpamServiceTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/service-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesUpdateQuery { -} -/// Put a service template object. -pub fn ipam_service_templates_update(query: IpamServiceTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/service-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesPartialUpdateQuery { -} -/// Patch a service template object. -pub fn ipam_service_templates_partial_update(query: IpamServiceTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/service-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamServiceTemplatesDestroyQuery { -} -/// Delete a service template object. -pub fn ipam_service_templates_destroy(query: IpamServiceTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/service-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksRetrieveQuery { -} -/// Get a custom link object. -pub fn extras_custom_links_retrieve(query: ExtrasCustomLinksRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/custom-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksUpdateQuery { -} -/// Put a custom link object. -pub fn extras_custom_links_update(query: ExtrasCustomLinksUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/custom-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksPartialUpdateQuery { -} -/// Patch a custom link object. -pub fn extras_custom_links_partial_update(query: ExtrasCustomLinksPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/custom-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasCustomLinksDestroyQuery { -} -/// Delete a custom link object. -pub fn extras_custom_links_destroy(query: ExtrasCustomLinksDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/custom-links/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of module bay objects. -pub fn dcim_module_bays_list(query: DcimModuleBaysListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysBulkUpdateQuery { -} -/// Put a list of module bay objects. -pub fn dcim_module_bays_bulk_update(query: DcimModuleBaysBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysCreateQuery { -} -/// Post a list of module bay objects. -pub fn dcim_module_bays_create(query: DcimModuleBaysCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/module-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysBulkPartialUpdateQuery { -} -/// Patch a list of module bay objects. -pub fn dcim_module_bays_bulk_partial_update(query: DcimModuleBaysBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBaysBulkDestroyQuery { -} -/// Delete a list of module bay objects. -pub fn dcim_module_bays_bulk_destroy(query: DcimModuleBaysBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesRetrieveQuery { -} -/// Get a inventory item template object. -pub fn dcim_inventory_item_templates_retrieve(query: DcimInventoryItemTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-item-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesUpdateQuery { -} -/// Put a inventory item template object. -pub fn dcim_inventory_item_templates_update(query: DcimInventoryItemTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-item-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesPartialUpdateQuery { -} -/// Patch a inventory item template object. -pub fn dcim_inventory_item_templates_partial_update(query: DcimInventoryItemTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-item-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesDestroyQuery { -} -/// Delete a inventory item template object. -pub fn dcim_inventory_item_templates_destroy(query: DcimInventoryItemTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-item-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsRetrieveQuery { -} -/// Get a config context object. -pub fn extras_config_contexts_retrieve(query: ExtrasConfigContextsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/config-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsUpdateQuery { -} -/// Put a config context object. -pub fn extras_config_contexts_update(query: ExtrasConfigContextsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/config-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsPartialUpdateQuery { -} -/// Patch a config context object. -pub fn extras_config_contexts_partial_update(query: ExtrasConfigContextsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/config-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsDestroyQuery { -} -/// Delete a config context object. -pub fn extras_config_contexts_destroy(query: ExtrasConfigContextsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/config-contexts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of region objects. -pub fn dcim_regions_list(query: DcimRegionsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/regions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsBulkUpdateQuery { -} -/// Put a list of region objects. -pub fn dcim_regions_bulk_update(query: DcimRegionsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/regions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsCreateQuery { -} -/// Post a list of region objects. -pub fn dcim_regions_create(query: DcimRegionsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/regions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsBulkPartialUpdateQuery { -} -/// Patch a list of region objects. -pub fn dcim_regions_bulk_partial_update(query: DcimRegionsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/regions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRegionsBulkDestroyQuery { -} -/// Delete a list of region objects. -pub fn dcim_regions_bulk_destroy(query: DcimRegionsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/regions/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsRetrieveQuery { -} -/// Get a RIR object. -pub fn ipam_rirs_retrieve(query: IpamRirsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/rirs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsUpdateQuery { -} -/// Put a RIR object. -pub fn ipam_rirs_update(query: IpamRirsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/rirs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsPartialUpdateQuery { -} -/// Patch a RIR object. -pub fn ipam_rirs_partial_update(query: IpamRirsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/rirs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamRirsDestroyQuery { -} -/// Delete a RIR object. -pub fn ipam_rirs_destroy(query: IpamRirsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/rirs/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersRetrieveQuery { -} -/// Get a manufacturer object. -pub fn dcim_manufacturers_retrieve(query: DcimManufacturersRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/manufacturers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersUpdateQuery { -} -/// Put a manufacturer object. -pub fn dcim_manufacturers_update(query: DcimManufacturersUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/manufacturers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersPartialUpdateQuery { -} -/// Patch a manufacturer object. -pub fn dcim_manufacturers_partial_update(query: DcimManufacturersPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/manufacturers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimManufacturersDestroyQuery { -} -/// Delete a manufacturer object. -pub fn dcim_manufacturers_destroy(query: DcimManufacturersDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/manufacturers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansListQuery { - available_on_device: String, - available_on_virtualmachine: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - l2vpn: Vec, - l2vpn__n: Vec, - l2vpn_id: Vec, - l2vpn_id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vid: Vec, - vid__empty: bool, - vid__gt: Vec, - vid__gte: Vec, - vid__lt: Vec, - vid__lte: Vec, - vid__n: Vec -} -/// Get a list of VLAN objects. -pub fn ipam_vlans_list(query: IpamVlansListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansBulkUpdateQuery { -} -/// Put a list of VLAN objects. -pub fn ipam_vlans_bulk_update(query: IpamVlansBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansCreateQuery { -} -/// Post a list of VLAN objects. -pub fn ipam_vlans_create(query: IpamVlansCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansBulkPartialUpdateQuery { -} -/// Patch a list of VLAN objects. -pub fn ipam_vlans_bulk_partial_update(query: IpamVlansBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlansBulkDestroyQuery { -} -/// Delete a list of VLAN objects. -pub fn ipam_vlans_bulk_destroy(query: IpamVlansBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of tenant objects. -pub fn tenancy_tenants_list(query: TenancyTenantsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/tenants/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsBulkUpdateQuery { -} -/// Put a list of tenant objects. -pub fn tenancy_tenants_bulk_update(query: TenancyTenantsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/tenants/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsCreateQuery { -} -/// Post a list of tenant objects. -pub fn tenancy_tenants_create(query: TenancyTenantsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/tenants/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsBulkPartialUpdateQuery { -} -/// Patch a list of tenant objects. -pub fn tenancy_tenants_bulk_partial_update(query: TenancyTenantsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/tenants/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyTenantsBulkDestroyQuery { -} -/// Delete a list of tenant objects. -pub fn tenancy_tenants_bulk_destroy(query: TenancyTenantsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/tenants/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesRetrieveQuery { -} -/// Get a rack role object. -pub fn dcim_rack_roles_retrieve(query: DcimRackRolesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rack-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesUpdateQuery { -} -/// Put a rack role object. -pub fn dcim_rack_roles_update(query: DcimRackRolesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rack-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesPartialUpdateQuery { -} -/// Patch a rack role object. -pub fn dcim_rack_roles_partial_update(query: DcimRackRolesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rack-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackRolesDestroyQuery { -} -/// Delete a rack role object. -pub fn dcim_rack_roles_destroy(query: DcimRackRolesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rack-roles/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesListQuery { - content_typ_id: Vec, - content_typ_id__empty: Vec, - content_typ_id__gt: Vec, - content_typ_id__gte: Vec, - content_typ_id__lt: Vec, - content_typ_id__lte: Vec, - content_typ_id__n: Vec, - content_typs: String, - content_typs__ic: String, - content_typs__ie: String, - content_typs__iew: String, - content_typs__isw: String, - content_typs__n: String, - content_typs__nic: String, - content_typs__nie: String, - content_typs__niew: String, - content_typs__nisw: String, - data_file_id: Vec, - data_file_id__n: Vec, - data_source_id: Vec, - data_source_id__n: Vec, - data_synced: Vec, - data_synced__empty: bool, - data_synced__gt: Vec, - data_synced__gte: Vec, - data_synced__lt: Vec, - data_synced__lte: Vec, - data_synced__n: Vec, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String -} -/// Get a list of export template objects. -pub fn extras_export_templates_list(query: ExtrasExportTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/export-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesBulkUpdateQuery { -} -/// Put a list of export template objects. -pub fn extras_export_templates_bulk_update(query: ExtrasExportTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/export-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesCreateQuery { -} -/// Post a list of export template objects. -pub fn extras_export_templates_create(query: ExtrasExportTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/export-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of export template objects. -pub fn extras_export_templates_bulk_partial_update(query: ExtrasExportTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/export-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasExportTemplatesBulkDestroyQuery { -} -/// Delete a list of export template objects. -pub fn extras_export_templates_bulk_destroy(query: ExtrasExportTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/export-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - group: Vec, - group__n: Vec, - group_id: Vec, - group_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - typ: Vec, - typ__n: Vec, - typ_id: Vec, - typ_id__n: Vec, - updated_by_request: String -} -/// Get a list of cluster objects. -pub fn virtualization_clusters_list(query: VirtualizationClustersListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/virtualization/clusters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersBulkUpdateQuery { -} -/// Put a list of cluster objects. -pub fn virtualization_clusters_bulk_update(query: VirtualizationClustersBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/virtualization/clusters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersCreateQuery { -} -/// Post a list of cluster objects. -pub fn virtualization_clusters_create(query: VirtualizationClustersCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/virtualization/clusters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersBulkPartialUpdateQuery { -} -/// Patch a list of cluster objects. -pub fn virtualization_clusters_bulk_partial_update(query: VirtualizationClustersBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/virtualization/clusters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct VirtualizationClustersBulkDestroyQuery { -} -/// Delete a list of cluster objects. -pub fn virtualization_clusters_bulk_destroy(query: VirtualizationClustersBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/virtualization/clusters/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsListQuery { - cluster_group: Vec, - cluster_group__n: Vec, - cluster_group_id: Vec, - cluster_group_id__n: Vec, - cluster_id: Vec, - cluster_id__n: Vec, - cluster_typ: Vec, - cluster_typ__n: Vec, - cluster_typ_id: Vec, - cluster_typ_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - data_file_id: Vec, - data_file_id__n: Vec, - data_source_id: Vec, - data_source_id__n: Vec, - data_synced: Vec, - data_synced__empty: bool, - data_synced__gt: Vec, - data_synced__gte: Vec, - data_synced__lt: Vec, - data_synced__lte: Vec, - data_synced__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - is_active: bool, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - platform: Vec, - platform__n: Vec, - platform_id: Vec, - platform_id__n: Vec, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - tag_id: Vec, - tag_id__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of config context objects. -pub fn extras_config_contexts_list(query: ExtrasConfigContextsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/config-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsBulkUpdateQuery { -} -/// Put a list of config context objects. -pub fn extras_config_contexts_bulk_update(query: ExtrasConfigContextsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/config-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsCreateQuery { -} -/// Post a list of config context objects. -pub fn extras_config_contexts_create(query: ExtrasConfigContextsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/config-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsBulkPartialUpdateQuery { -} -/// Patch a list of config context objects. -pub fn extras_config_contexts_bulk_partial_update(query: ExtrasConfigContextsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/config-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigContextsBulkDestroyQuery { -} -/// Delete a list of config context objects. -pub fn extras_config_contexts_bulk_destroy(query: ExtrasConfigContextsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/config-contexts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsRetrieveQuery { -} -/// Get a image attachment object. -pub fn extras_image_attachments_retrieve(query: ExtrasImageAttachmentsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/image-attachments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsUpdateQuery { -} -/// Put a image attachment object. -pub fn extras_image_attachments_update(query: ExtrasImageAttachmentsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/image-attachments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsPartialUpdateQuery { -} -/// Patch a image attachment object. -pub fn extras_image_attachments_partial_update(query: ExtrasImageAttachmentsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/image-attachments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasImageAttachmentsDestroyQuery { -} -/// Delete a image attachment object. -pub fn extras_image_attachments_destroy(query: ExtrasImageAttachmentsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/image-attachments/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - config_template_id: Vec, - config_template_id__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - vm_role: bool -} -/// Get a list of device role objects. -pub fn dcim_device_roles_list(query: DcimDeviceRolesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesBulkUpdateQuery { -} -/// Put a list of device role objects. -pub fn dcim_device_roles_bulk_update(query: DcimDeviceRolesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesCreateQuery { -} -/// Post a list of device role objects. -pub fn dcim_device_roles_create(query: DcimDeviceRolesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/device-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesBulkPartialUpdateQuery { -} -/// Patch a list of device role objects. -pub fn dcim_device_roles_bulk_partial_update(query: DcimDeviceRolesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceRolesBulkDestroyQuery { -} -/// Delete a list of device role objects. -pub fn dcim_device_roles_bulk_destroy(query: DcimDeviceRolesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-roles/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensListQuery { - created: DateTime, - created__gte: DateTime, - created__lte: DateTime, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - expires: DateTime, - expires__gte: DateTime, - expires__lte: DateTime, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - key: Vec, - key__empty: bool, - key__ic: Vec, - key__ie: Vec, - key__iew: Vec, - key__isw: Vec, - key__n: Vec, - key__nic: Vec, - key__nie: Vec, - key__niew: Vec, - key__nisw: Vec, - limit: i64, - offset: i64, - ordering: String, - q: String, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec, - write_enabled: bool -} -/// Get a list of token objects. -pub fn users_tokens_list(query: UsersTokensListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/tokens/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensBulkUpdateQuery { -} -/// Put a list of token objects. -pub fn users_tokens_bulk_update(query: UsersTokensBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/tokens/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensCreateQuery { -} -/// Post a list of token objects. -pub fn users_tokens_create(query: UsersTokensCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/users/tokens/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensBulkPartialUpdateQuery { -} -/// Patch a list of token objects. -pub fn users_tokens_bulk_partial_update(query: UsersTokensBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/tokens/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensBulkDestroyQuery { -} -/// Delete a list of token objects. -pub fn users_tokens_bulk_destroy(query: UsersTokensBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/tokens/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksListQuery { - created: DateTime, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - object_id: Vec, - object_id__empty: bool, - object_id__gt: Vec, - object_id__gte: Vec, - object_id__lt: Vec, - object_id__lte: Vec, - object_id__n: Vec, - object_typ: String, - object_typ__n: String, - object_typ_id: Vec, - object_typ_id__empty: Vec, - object_typ_id__gt: Vec, - object_typ_id__gte: Vec, - object_typ_id__lt: Vec, - object_typ_id__lte: Vec, - object_typ_id__n: Vec, - offset: i64, - ordering: String, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec -} -/// Get a list of bookmark objects. -pub fn extras_bookmarks_list(query: ExtrasBookmarksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/bookmarks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksBulkUpdateQuery { -} -/// Put a list of bookmark objects. -pub fn extras_bookmarks_bulk_update(query: ExtrasBookmarksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/bookmarks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksCreateQuery { -} -/// Post a list of bookmark objects. -pub fn extras_bookmarks_create(query: ExtrasBookmarksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/bookmarks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksBulkPartialUpdateQuery { -} -/// Patch a list of bookmark objects. -pub fn extras_bookmarks_bulk_partial_update(query: ExtrasBookmarksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/bookmarks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasBookmarksBulkDestroyQuery { -} -/// Delete a list of bookmark objects. -pub fn extras_bookmarks_bulk_destroy(query: ExtrasBookmarksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/bookmarks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - updated_by_request: String -} -/// Get a list of module bay template objects. -pub fn dcim_module_bay_templates_list(query: DcimModuleBayTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/module-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesBulkUpdateQuery { -} -/// Put a list of module bay template objects. -pub fn dcim_module_bay_templates_bulk_update(query: DcimModuleBayTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/module-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesCreateQuery { -} -/// Post a list of module bay template objects. -pub fn dcim_module_bay_templates_create(query: DcimModuleBayTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/module-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of module bay template objects. -pub fn dcim_module_bay_templates_bulk_partial_update(query: DcimModuleBayTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/module-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimModuleBayTemplatesBulkDestroyQuery { -} -/// Delete a list of module bay template objects. -pub fn dcim_module_bay_templates_bulk_destroy(query: DcimModuleBayTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/module-bay-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesRenderCreateQuery { - format: String, -} -/// Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data, -/// return the raw rendered content, rather than serialized JSON. -pub fn extras_config_templates_render_create(query: ExtrasConfigTemplatesRenderCreateQuery, id: i64,) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/config-templates/{id}/render/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesListQuery { - contains: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - end_address: Vec, - family: f64, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - mark_utilized: bool, - modified_by_request: String, - offset: i64, - ordering: String, - parent: Vec, - q: String, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - start_address: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - vrf: Vec, - vrf__n: Vec, - vrf_id: Vec, - vrf_id__n: Vec -} -/// Get a list of IP range objects. -pub fn ipam_ip_ranges_list(query: IpamIpRangesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/ip-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesBulkUpdateQuery { -} -/// Put a list of IP range objects. -pub fn ipam_ip_ranges_bulk_update(query: IpamIpRangesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/ip-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesCreateQuery { -} -/// Post a list of IP range objects. -pub fn ipam_ip_ranges_create(query: IpamIpRangesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/ip-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesBulkPartialUpdateQuery { -} -/// Patch a list of IP range objects. -pub fn ipam_ip_ranges_bulk_partial_update(query: IpamIpRangesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/ip-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamIpRangesBulkDestroyQuery { -} -/// Delete a list of IP range objects. -pub fn ipam_ip_ranges_bulk_destroy(query: IpamIpRangesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/ip-ranges/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesListQuery { - component_id: Vec, - component_id__empty: Vec, - component_id__gt: Vec, - component_id__gte: Vec, - component_id__lt: Vec, - component_id__lte: Vec, - component_id__n: Vec, - component_typ: String, - component_typ__n: String, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - manufacturer: Vec, - manufacturer__n: Vec, - manufacturer_id: Vec, - manufacturer_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent_id: Vec, - parent_id__n: Vec, - part_id: Vec, - part_id__empty: bool, - part_id__ic: Vec, - part_id__ie: Vec, - part_id__iew: Vec, - part_id__isw: Vec, - part_id__n: Vec, - part_id__nic: Vec, - part_id__nie: Vec, - part_id__niew: Vec, - part_id__nisw: Vec, - q: String, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - updated_by_request: String -} -/// Get a list of inventory item template objects. -pub fn dcim_inventory_item_templates_list(query: DcimInventoryItemTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/inventory-item-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesBulkUpdateQuery { -} -/// Put a list of inventory item template objects. -pub fn dcim_inventory_item_templates_bulk_update(query: DcimInventoryItemTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/inventory-item-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesCreateQuery { -} -/// Post a list of inventory item template objects. -pub fn dcim_inventory_item_templates_create(query: DcimInventoryItemTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/inventory-item-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of inventory item template objects. -pub fn dcim_inventory_item_templates_bulk_partial_update(query: DcimInventoryItemTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/inventory-item-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInventoryItemTemplatesBulkDestroyQuery { -} -/// Delete a list of inventory item template objects. -pub fn dcim_inventory_item_templates_bulk_destroy(query: DcimInventoryItemTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/inventory-item-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsPathsRetrieveQuery { -} -/// Return all CablePaths which traverse a given pass-through port. -pub fn dcim_front_ports_paths_retrieve(query: DcimFrontPortsPathsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/front-ports/{id}/paths/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String -} -/// Get a list of location objects. -pub fn dcim_locations_list(query: DcimLocationsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/locations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsBulkUpdateQuery { -} -/// Put a list of location objects. -pub fn dcim_locations_bulk_update(query: DcimLocationsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/locations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsCreateQuery { -} -/// Post a list of location objects. -pub fn dcim_locations_create(query: DcimLocationsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/locations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsBulkPartialUpdateQuery { -} -/// Patch a list of location objects. -pub fn dcim_locations_bulk_partial_update(query: DcimLocationsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/locations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimLocationsBulkDestroyQuery { -} -/// Delete a list of location objects. -pub fn dcim_locations_bulk_destroy(query: DcimLocationsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/locations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsListQuery { - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of site group objects. -pub fn dcim_site_groups_list(query: DcimSiteGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/site-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsBulkUpdateQuery { -} -/// Put a list of site group objects. -pub fn dcim_site_groups_bulk_update(query: DcimSiteGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/site-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsCreateQuery { -} -/// Post a list of site group objects. -pub fn dcim_site_groups_create(query: DcimSiteGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/site-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsBulkPartialUpdateQuery { -} -/// Patch a list of site group objects. -pub fn dcim_site_groups_bulk_partial_update(query: DcimSiteGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/site-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimSiteGroupsBulkDestroyQuery { -} -/// Delete a list of site group objects. -pub fn dcim_site_groups_bulk_destroy(query: DcimSiteGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/site-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataFilesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - hash: Vec, - hash__empty: bool, - hash__ic: Vec, - hash__ie: Vec, - hash__iew: Vec, - hash__isw: Vec, - hash__n: Vec, - hash__nic: Vec, - hash__nie: Vec, - hash__niew: Vec, - hash__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - offset: i64, - ordering: String, - path: Vec, - path__empty: bool, - path__ic: Vec, - path__ie: Vec, - path__iew: Vec, - path__isw: Vec, - path__n: Vec, - path__nic: Vec, - path__nie: Vec, - path__niew: Vec, - path__nisw: Vec, - q: String, - size: Vec, - size__empty: bool, - size__gt: Vec, - size__gte: Vec, - size__lt: Vec, - size__lte: Vec, - size__n: Vec, - source: Vec, - source__n: Vec, - source_id: Vec, - source_id__n: Vec, - updated_by_request: String -} -/// Get a list of data file objects. -pub fn core_data_files_list(query: CoreDataFilesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/data-files/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDevicesRenderConfigCreateQuery { - format: String, -} -/// Resolve and render the preferred ConfigTemplate for this Device. -pub fn dcim_devices_render_config_create(query: DcimDevicesRenderConfigCreateQuery, id: i64,) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/devices/{id}/render-config/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsAvailableVlansListQuery { -} -/// Get a VLAN object. -pub fn ipam_vlan_groups_available_vlans_list(query: IpamVlanGroupsAvailableVlansListQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/vlan-groups/{id}/available-vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamVlanGroupsAvailableVlansCreateQuery { -} -/// Post a VLAN object. -pub fn ipam_vlan_groups_available_vlans_create(query: IpamVlanGroupsAvailableVlansCreateQuery, id: i64) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/ipam/vlan-groups/{id}/available-vlans/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - content_typ: Vec, - content_typ_id: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - for_object_typ_id: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - object_typs: Vec, - object_typs__n: Vec, - offset: i64, - ordering: String, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - updated_by_request: String -} -/// Get a list of tag objects. -pub fn extras_tags_list(query: ExtrasTagsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/tags/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsBulkUpdateQuery { -} -/// Put a list of tag objects. -pub fn extras_tags_bulk_update(query: ExtrasTagsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/tags/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsCreateQuery { -} -/// Post a list of tag objects. -pub fn extras_tags_create(query: ExtrasTagsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/tags/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsBulkPartialUpdateQuery { -} -/// Patch a list of tag objects. -pub fn extras_tags_bulk_partial_update(query: ExtrasTagsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/tags/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsBulkDestroyQuery { -} -/// Delete a list of tag objects. -pub fn extras_tags_bulk_destroy(query: ExtrasTagsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/tags/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensRetrieveQuery { -} -/// Get a token object. -pub fn users_tokens_retrieve(query: UsersTokensRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/tokens/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensUpdateQuery { -} -/// Put a token object. -pub fn users_tokens_update(query: UsersTokensUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/tokens/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensPartialUpdateQuery { -} -/// Patch a token object. -pub fn users_tokens_partial_update(query: UsersTokensPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/tokens/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersTokensDestroyQuery { -} -/// Delete a token object. -pub fn users_tokens_destroy(query: UsersTokensDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/tokens/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksListQuery { - asset_tag: Vec, - asset_tag__empty: bool, - asset_tag__ic: Vec, - asset_tag__ie: Vec, - asset_tag__iew: Vec, - asset_tag__isw: Vec, - asset_tag__n: Vec, - asset_tag__nic: Vec, - asset_tag__nie: Vec, - asset_tag__niew: Vec, - asset_tag__nisw: Vec, - contact: Vec, - contact__n: Vec, - contact_group: Vec, - contact_group__n: Vec, - contact_role: Vec, - contact_role__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - desc_units: bool, - facility_id: Vec, - facility_id__empty: bool, - facility_id__ic: Vec, - facility_id__ie: Vec, - facility_id__iew: Vec, - facility_id__isw: Vec, - facility_id__n: Vec, - facility_id__nic: Vec, - facility_id__nie: Vec, - facility_id__niew: Vec, - facility_id__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - max_weight: Vec, - max_weight__empty: bool, - max_weight__gt: Vec, - max_weight__gte: Vec, - max_weight__lt: Vec, - max_weight__lte: Vec, - max_weight__n: Vec, - modified_by_request: String, - mounting_depth: Vec, - mounting_depth__empty: bool, - mounting_depth__gt: Vec, - mounting_depth__gte: Vec, - mounting_depth__lt: Vec, - mounting_depth__lte: Vec, - mounting_depth__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - outer_depth: Vec, - outer_depth__empty: bool, - outer_depth__gt: Vec, - outer_depth__gte: Vec, - outer_depth__lt: Vec, - outer_depth__lte: Vec, - outer_depth__n: Vec, - outer_unit: String, - outer_unit__n: String, - outer_width: Vec, - outer_width__empty: bool, - outer_width__gt: Vec, - outer_width__gte: Vec, - outer_width__lt: Vec, - outer_width__lte: Vec, - outer_width__n: Vec, - q: String, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - serial: Vec, - serial__empty: bool, - serial__ic: Vec, - serial__ie: Vec, - serial__iew: Vec, - serial__isw: Vec, - serial__n: Vec, - serial__nic: Vec, - serial__nie: Vec, - serial__niew: Vec, - serial__nisw: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - starting_unit: Vec, - starting_unit__empty: bool, - starting_unit__gt: Vec, - starting_unit__gte: Vec, - starting_unit__lt: Vec, - starting_unit__lte: Vec, - starting_unit__n: Vec, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - typ: Vec, - typ__n: Vec, - u_height: Vec, - u_height__empty: bool, - u_height__gt: Vec, - u_height__gte: Vec, - u_height__lt: Vec, - u_height__lte: Vec, - u_height__n: Vec, - updated_by_request: String, - weight: Vec, - weight__empty: bool, - weight__gt: Vec, - weight__gte: Vec, - weight__lt: Vec, - weight__lte: Vec, - weight__n: Vec, - weight_unit: String, - weight_unit__n: String, - width: Vec, - width__n: Vec -} -/// Get a list of rack objects. -pub fn dcim_racks_list(query: DcimRacksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/racks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksBulkUpdateQuery { -} -/// Put a list of rack objects. -pub fn dcim_racks_bulk_update(query: DcimRacksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/racks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksCreateQuery { -} -/// Post a list of rack objects. -pub fn dcim_racks_create(query: DcimRacksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/racks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksBulkPartialUpdateQuery { -} -/// Patch a list of rack objects. -pub fn dcim_racks_bulk_partial_update(query: DcimRacksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/racks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRacksBulkDestroyQuery { -} -/// Delete a list of rack objects. -pub fn dcim_racks_bulk_destroy(query: DcimRacksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/racks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsRetrieveQuery { -} -/// Get a tag object. -pub fn extras_tags_retrieve(query: ExtrasTagsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/tags/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsUpdateQuery { -} -/// Put a tag object. -pub fn extras_tags_update(query: ExtrasTagsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/tags/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsPartialUpdateQuery { -} -/// Patch a tag object. -pub fn extras_tags_partial_update(query: ExtrasTagsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/tags/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasTagsDestroyQuery { -} -/// Delete a tag object. -pub fn extras_tags_destroy(query: ExtrasTagsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/tags/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesListQuery { - data_file_id: Vec, - data_file_id__n: Vec, - data_source_id: Vec, - data_source_id__n: Vec, - data_synced: Vec, - data_synced__empty: bool, - data_synced__gt: Vec, - data_synced__gte: Vec, - data_synced__lt: Vec, - data_synced__lte: Vec, - data_synced__n: Vec, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - limit: i64, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - tag: Vec, - tag__n: Vec -} -/// Get a list of config template objects. -pub fn extras_config_templates_list(query: ExtrasConfigTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/config-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesBulkUpdateQuery { -} -/// Put a list of config template objects. -pub fn extras_config_templates_bulk_update(query: ExtrasConfigTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/config-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesCreateQuery { -} -/// Post a list of config template objects. -pub fn extras_config_templates_create(query: ExtrasConfigTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/extras/config-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of config template objects. -pub fn extras_config_templates_bulk_partial_update(query: ExtrasConfigTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/config-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesBulkDestroyQuery { -} -/// Delete a list of config template objects. -pub fn extras_config_templates_bulk_destroy(query: ExtrasConfigTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/config-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsoleServerPortsTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_console_server_ports_trace_retrieve(query: DcimConsoleServerPortsTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-server-ports/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesRetrieveQuery { -} -/// Get a config template object. -pub fn extras_config_templates_retrieve(query: ExtrasConfigTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/config-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesUpdateQuery { -} -/// Put a config template object. -pub fn extras_config_templates_update(query: ExtrasConfigTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/config-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesPartialUpdateQuery { -} -/// Patch a config template object. -pub fn extras_config_templates_partial_update(query: ExtrasConfigTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/config-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasConfigTemplatesDestroyQuery { -} -/// Delete a config template object. -pub fn extras_config_templates_destroy(query: ExtrasConfigTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/config-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - device: Vec, - device__n: Vec, - device_id: Vec, - device_id__n: Vec, - device_role: Vec, - device_role__n: Vec, - device_role_id: Vec, - device_role_id__n: Vec, - device_typ: Vec, - device_typ__n: Vec, - device_typ_id: Vec, - device_typ_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - label: Vec, - label__empty: bool, - label__ic: Vec, - label__ie: Vec, - label__iew: Vec, - label__isw: Vec, - label__n: Vec, - label__nic: Vec, - label__nie: Vec, - label__niew: Vec, - label__nisw: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - rack: Vec, - rack__n: Vec, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - role: Vec, - role__n: Vec, - role_id: Vec, - role_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String, - virtual_chassis: Vec, - virtual_chassis__n: Vec, - virtual_chassis_id: Vec, - virtual_chassis_id__n: Vec -} -/// Get a list of device bay objects. -pub fn dcim_device_bays_list(query: DcimDeviceBaysListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/device-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysBulkUpdateQuery { -} -/// Put a list of device bay objects. -pub fn dcim_device_bays_bulk_update(query: DcimDeviceBaysBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/device-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysCreateQuery { -} -/// Post a list of device bay objects. -pub fn dcim_device_bays_create(query: DcimDeviceBaysCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/device-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysBulkPartialUpdateQuery { -} -/// Patch a list of device bay objects. -pub fn dcim_device_bays_bulk_partial_update(query: DcimDeviceBaysBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/device-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimDeviceBaysBulkDestroyQuery { -} -/// Delete a list of device bay objects. -pub fn dcim_device_bays_bulk_destroy(query: DcimDeviceBaysBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/device-bays/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesRetrieveQuery { -} -/// Get a front port template object. -pub fn dcim_front_port_templates_retrieve(query: DcimFrontPortTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/front-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesUpdateQuery { -} -/// Put a front port template object. -pub fn dcim_front_port_templates_update(query: DcimFrontPortTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/front-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesPartialUpdateQuery { -} -/// Patch a front port template object. -pub fn dcim_front_port_templates_partial_update(query: DcimFrontPortTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/front-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortTemplatesDestroyQuery { -} -/// Delete a front port template object. -pub fn dcim_front_port_templates_destroy(query: DcimFrontPortTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/front-port-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesListQuery { - allocated_draw: Vec, - allocated_draw__empty: bool, - allocated_draw__gt: Vec, - allocated_draw__gte: Vec, - allocated_draw__lt: Vec, - allocated_draw__lte: Vec, - allocated_draw__n: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - maximum_draw: Vec, - maximum_draw__empty: bool, - maximum_draw__gt: Vec, - maximum_draw__gte: Vec, - maximum_draw__lt: Vec, - maximum_draw__lte: Vec, - maximum_draw__n: Vec, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - typ: String, - typ__n: String, - updated_by_request: String -} -/// Get a list of power port template objects. -pub fn dcim_power_port_templates_list(query: DcimPowerPortTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesBulkUpdateQuery { -} -/// Put a list of power port template objects. -pub fn dcim_power_port_templates_bulk_update(query: DcimPowerPortTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesCreateQuery { -} -/// Post a list of power port template objects. -pub fn dcim_power_port_templates_create(query: DcimPowerPortTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of power port template objects. -pub fn dcim_power_port_templates_bulk_partial_update(query: DcimPowerPortTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPortTemplatesBulkDestroyQuery { -} -/// Delete a list of power port template objects. -pub fn dcim_power_port_templates_bulk_destroy(query: DcimPowerPortTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimInterfacesTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_interfaces_trace_retrieve(query: DcimInterfacesTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/interfaces/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasDashboardRetrieveQuery { -} -/// Get a list of dashboard objects. -pub fn extras_dashboard_retrieve(query: ExtrasDashboardRetrieveQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/dashboard/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasDashboardUpdateQuery { -} -/// Put a list of dashboard objects. -pub fn extras_dashboard_update(query: ExtrasDashboardUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/dashboard/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasDashboardPartialUpdateQuery { -} -/// Patch a list of dashboard objects. -pub fn extras_dashboard_partial_update(query: ExtrasDashboardPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/dashboard/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasDashboardDestroyQuery { -} -/// Delete a list of dashboard objects. -pub fn extras_dashboard_destroy(query: ExtrasDashboardDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/dashboard/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConsolePortsTraceRetrieveQuery { -} -/// Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). -pub fn dcim_console_ports_trace_retrieve(query: DcimConsolePortsTraceRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/console-ports/{id}/trace/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - feed_leg: Vec, - feed_leg__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - typ: String, - typ__n: String, - updated_by_request: String -} -/// Get a list of power outlet template objects. -pub fn dcim_power_outlet_templates_list(query: DcimPowerOutletTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-outlet-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesBulkUpdateQuery { -} -/// Put a list of power outlet template objects. -pub fn dcim_power_outlet_templates_bulk_update(query: DcimPowerOutletTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-outlet-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesCreateQuery { -} -/// Post a list of power outlet template objects. -pub fn dcim_power_outlet_templates_create(query: DcimPowerOutletTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/power-outlet-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of power outlet template objects. -pub fn dcim_power_outlet_templates_bulk_partial_update(query: DcimPowerOutletTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-outlet-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesBulkDestroyQuery { -} -/// Delete a list of power outlet template objects. -pub fn dcim_power_outlet_templates_bulk_destroy(query: DcimPowerOutletTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-outlet-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsRetrieveQuery { -} -/// Get a contact object. -pub fn tenancy_contacts_retrieve(query: TenancyContactsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contacts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsUpdateQuery { -} -/// Put a contact object. -pub fn tenancy_contacts_update(query: TenancyContactsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contacts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsPartialUpdateQuery { -} -/// Patch a contact object. -pub fn tenancy_contacts_partial_update(query: TenancyContactsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contacts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactsDestroyQuery { -} -/// Delete a contact object. -pub fn tenancy_contacts_destroy(query: TenancyContactsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contacts/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsRetrieveQuery { -} -/// Get a permission object. -pub fn users_permissions_retrieve(query: UsersPermissionsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/users/permissions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsUpdateQuery { -} -/// Put a permission object. -pub fn users_permissions_update(query: UsersPermissionsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/users/permissions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsPartialUpdateQuery { -} -/// Patch a permission object. -pub fn users_permissions_partial_update(query: UsersPermissionsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/users/permissions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct UsersPermissionsDestroyQuery { -} -/// Delete a permission object. -pub fn users_permissions_destroy(query: UsersPermissionsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/users/permissions/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsRetrieveQuery { -} -/// Get a rack reservation object. -pub fn dcim_rack_reservations_retrieve(query: DcimRackReservationsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rack-reservations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsUpdateQuery { -} -/// Put a rack reservation object. -pub fn dcim_rack_reservations_update(query: DcimRackReservationsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rack-reservations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsPartialUpdateQuery { -} -/// Patch a rack reservation object. -pub fn dcim_rack_reservations_partial_update(query: DcimRackReservationsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rack-reservations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsDestroyQuery { -} -/// Delete a rack reservation object. -pub fn dcim_rack_reservations_destroy(query: DcimRackReservationsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rack-reservations/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct SchemaRetrieveQuery { - format: String -} -/// OpenApi3 schema for this API. Format can be selected via content negotiation. -/// -/// - YAML: application/vnd.oai.openapi -/// - JSON: application/vnd.oai.openapi+json -pub fn schema_retrieve(query: SchemaRetrieveQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/schema/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersRetrieveQuery { -} -/// Get a provider object. -pub fn circuits_providers_retrieve(query: CircuitsProvidersRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/providers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersUpdateQuery { -} -/// Put a provider object. -pub fn circuits_providers_update(query: CircuitsProvidersUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/providers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersPartialUpdateQuery { -} -/// Patch a provider object. -pub fn circuits_providers_partial_update(query: CircuitsProvidersPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/providers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProvidersDestroyQuery { -} -/// Delete a provider object. -pub fn circuits_providers_destroy(query: CircuitsProvidersDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/providers/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - parent: Vec, - parent__n: Vec, - parent_id: Vec, - parent_id__n: Vec, - q: String, - slug: Vec, - slug__empty: bool, - slug__ic: Vec, - slug__ie: Vec, - slug__iew: Vec, - slug__isw: Vec, - slug__n: Vec, - slug__nic: Vec, - slug__nie: Vec, - slug__niew: Vec, - slug__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of contact group objects. -pub fn tenancy_contact_groups_list(query: TenancyContactGroupsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/tenancy/contact-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsBulkUpdateQuery { -} -/// Put a list of contact group objects. -pub fn tenancy_contact_groups_bulk_update(query: TenancyContactGroupsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/tenancy/contact-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsCreateQuery { -} -/// Post a list of contact group objects. -pub fn tenancy_contact_groups_create(query: TenancyContactGroupsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/tenancy/contact-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsBulkPartialUpdateQuery { -} -/// Patch a list of contact group objects. -pub fn tenancy_contact_groups_bulk_partial_update(query: TenancyContactGroupsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/tenancy/contact-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct TenancyContactGroupsBulkDestroyQuery { -} -/// Delete a list of contact group objects. -pub fn tenancy_contact_groups_bulk_destroy(query: TenancyContactGroupsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/tenancy/contact-groups/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - enabled: bool, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - q: String, - status: Vec, - status__n: Vec, - tag: Vec, - tag__n: Vec, - typ: Vec, - typ__n: Vec, - updated_by_request: String -} -/// Get a list of data source objects. -pub fn core_data_sources_list(query: CoreDataSourcesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/core/data-sources/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesBulkUpdateQuery { -} -/// Put a list of data source objects. -pub fn core_data_sources_bulk_update(query: CoreDataSourcesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/core/data-sources/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesCreateQuery { -} -/// Post a list of data source objects. -pub fn core_data_sources_create(query: CoreDataSourcesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/core/data-sources/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesBulkPartialUpdateQuery { -} -/// Patch a list of data source objects. -pub fn core_data_sources_bulk_partial_update(query: CoreDataSourcesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/core/data-sources/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CoreDataSourcesBulkDestroyQuery { -} -/// Delete a list of data source objects. -pub fn core_data_sources_bulk_destroy(query: CoreDataSourcesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/core/data-sources/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsRetrieveQuery { -} -/// Get a front port object. -pub fn dcim_front_ports_retrieve(query: DcimFrontPortsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/front-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsUpdateQuery { -} -/// Put a front port object. -pub fn dcim_front_ports_update(query: DcimFrontPortsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/front-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsPartialUpdateQuery { -} -/// Patch a front port object. -pub fn dcim_front_ports_partial_update(query: DcimFrontPortsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/front-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimFrontPortsDestroyQuery { -} -/// Delete a front port object. -pub fn dcim_front_ports_destroy(query: DcimFrontPortsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/front-ports/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesListQuery { - color: Vec, - color__empty: bool, - color__ic: Vec, - color__ie: Vec, - color__iew: Vec, - color__isw: Vec, - color__n: Vec, - color__nic: Vec, - color__nie: Vec, - color__niew: Vec, - color__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - devicetyp_id: Vec, - devicetyp_id__n: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - moduletyp_id: Vec, - moduletyp_id__n: Vec, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - positions: Vec, - positions__empty: bool, - positions__gt: Vec, - positions__gte: Vec, - positions__lt: Vec, - positions__lte: Vec, - positions__n: Vec, - q: String, - typ: Vec, - typ__n: Vec, - updated_by_request: String -} -/// Get a list of rear port template objects. -pub fn dcim_rear_port_templates_list(query: DcimRearPortTemplatesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rear-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesBulkUpdateQuery { -} -/// Put a list of rear port template objects. -pub fn dcim_rear_port_templates_bulk_update(query: DcimRearPortTemplatesBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rear-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesCreateQuery { -} -/// Post a list of rear port template objects. -pub fn dcim_rear_port_templates_create(query: DcimRearPortTemplatesCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/rear-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesBulkPartialUpdateQuery { -} -/// Patch a list of rear port template objects. -pub fn dcim_rear_port_templates_bulk_partial_update(query: DcimRearPortTemplatesBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rear-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRearPortTemplatesBulkDestroyQuery { -} -/// Delete a list of rear port template objects. -pub fn dcim_rear_port_templates_bulk_destroy(query: DcimRearPortTemplatesBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rear-port-templates/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsRetrieveQuery { -} -/// Get a L2VPN object. -pub fn ipam_l2vpns_retrieve(query: IpamL2VpnsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/ipam/l2vpns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsUpdateQuery { -} -/// Put a L2VPN object. -pub fn ipam_l2vpns_update(query: IpamL2VpnsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/ipam/l2vpns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsPartialUpdateQuery { -} -/// Patch a L2VPN object. -pub fn ipam_l2vpns_partial_update(query: IpamL2VpnsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/ipam/l2vpns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct IpamL2VpnsDestroyQuery { -} -/// Delete a L2VPN object. -pub fn ipam_l2vpns_destroy(query: IpamL2VpnsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/ipam/l2vpns/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsRetrieveQuery { -} -/// Get a wireless LAN group object. -pub fn wireless_wireless_lan_groups_retrieve(query: WirelessWirelessLanGroupsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/wireless/wireless-lan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsUpdateQuery { -} -/// Put a wireless LAN group object. -pub fn wireless_wireless_lan_groups_update(query: WirelessWirelessLanGroupsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/wireless/wireless-lan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsPartialUpdateQuery { -} -/// Patch a wireless LAN group object. -pub fn wireless_wireless_lan_groups_partial_update(query: WirelessWirelessLanGroupsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/wireless/wireless-lan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct WirelessWirelessLanGroupsDestroyQuery { -} -/// Delete a wireless LAN group object. -pub fn wireless_wireless_lan_groups_destroy(query: WirelessWirelessLanGroupsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/wireless/wireless-lan-groups/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsRetrieveQuery { -} -/// Get a platform object. -pub fn dcim_platforms_retrieve(query: DcimPlatformsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/platforms/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsUpdateQuery { -} -/// Put a platform object. -pub fn dcim_platforms_update(query: DcimPlatformsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/platforms/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsPartialUpdateQuery { -} -/// Patch a platform object. -pub fn dcim_platforms_partial_update(query: DcimPlatformsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/platforms/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPlatformsDestroyQuery { -} -/// Delete a platform object. -pub fn dcim_platforms_destroy(query: DcimPlatformsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/platforms/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - provider: Vec, - provider__n: Vec, - provider_id: Vec, - provider_id__n: Vec, - q: String, - service_id: Vec, - service_id__empty: bool, - service_id__ic: Vec, - service_id__ie: Vec, - service_id__iew: Vec, - service_id__isw: Vec, - service_id__n: Vec, - service_id__nic: Vec, - service_id__nie: Vec, - service_id__niew: Vec, - service_id__nisw: Vec, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of provider network objects. -pub fn circuits_provider_networks_list(query: CircuitsProviderNetworksListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/provider-networks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksBulkUpdateQuery { -} -/// Put a list of provider network objects. -pub fn circuits_provider_networks_bulk_update(query: CircuitsProviderNetworksBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/provider-networks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksCreateQuery { -} -/// Post a list of provider network objects. -pub fn circuits_provider_networks_create(query: CircuitsProviderNetworksCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/provider-networks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksBulkPartialUpdateQuery { -} -/// Patch a list of provider network objects. -pub fn circuits_provider_networks_bulk_partial_update(query: CircuitsProviderNetworksBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/provider-networks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderNetworksBulkDestroyQuery { -} -/// Delete a list of provider network objects. -pub fn circuits_provider_networks_bulk_destroy(query: CircuitsProviderNetworksBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/provider-networks/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesRetrieveQuery { -} -/// Get a power outlet template object. -pub fn dcim_power_outlet_templates_retrieve(query: DcimPowerOutletTemplatesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-outlet-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesUpdateQuery { -} -/// Put a power outlet template object. -pub fn dcim_power_outlet_templates_update(query: DcimPowerOutletTemplatesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-outlet-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesPartialUpdateQuery { -} -/// Patch a power outlet template object. -pub fn dcim_power_outlet_templates_partial_update(query: DcimPowerOutletTemplatesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-outlet-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerOutletTemplatesDestroyQuery { -} -/// Delete a power outlet template object. -pub fn dcim_power_outlet_templates_destroy(query: DcimPowerOutletTemplatesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-outlet-templates/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsRetrieveQuery { -} -/// Get a power panel object. -pub fn dcim_power_panels_retrieve(query: DcimPowerPanelsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/power-panels/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsUpdateQuery { -} -/// Put a power panel object. -pub fn dcim_power_panels_update(query: DcimPowerPanelsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/power-panels/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsPartialUpdateQuery { -} -/// Patch a power panel object. -pub fn dcim_power_panels_partial_update(query: DcimPowerPanelsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/power-panels/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimPowerPanelsDestroyQuery { -} -/// Delete a power panel object. -pub fn dcim_power_panels_destroy(query: DcimPowerPanelsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/power-panels/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsListQuery { - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - location: Vec, - location__n: Vec, - location_id: Vec, - location_id__n: Vec, - modified_by_request: String, - offset: i64, - ordering: String, - q: String, - rack_id: Vec, - rack_id__n: Vec, - region: Vec, - region__n: Vec, - region_id: Vec, - region_id__n: Vec, - site: Vec, - site__n: Vec, - site_group: Vec, - site_group__n: Vec, - site_group_id: Vec, - site_group_id__n: Vec, - site_id: Vec, - site_id__n: Vec, - tag: Vec, - tag__n: Vec, - tenant: Vec, - tenant__n: Vec, - tenant_group: Vec, - tenant_group__n: Vec, - tenant_group_id: Vec, - tenant_group_id__n: Vec, - tenant_id: Vec, - tenant_id__n: Vec, - updated_by_request: String, - user: Vec, - user__n: Vec, - user_id: Vec, - user_id__n: Vec -} -/// Get a list of rack reservation objects. -pub fn dcim_rack_reservations_list(query: DcimRackReservationsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/rack-reservations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsBulkUpdateQuery { -} -/// Put a list of rack reservation objects. -pub fn dcim_rack_reservations_bulk_update(query: DcimRackReservationsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/dcim/rack-reservations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsCreateQuery { -} -/// Post a list of rack reservation objects. -pub fn dcim_rack_reservations_create(query: DcimRackReservationsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/dcim/rack-reservations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsBulkPartialUpdateQuery { -} -/// Patch a list of rack reservation objects. -pub fn dcim_rack_reservations_bulk_partial_update(query: DcimRackReservationsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/dcim/rack-reservations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimRackReservationsBulkDestroyQuery { -} -/// Delete a list of rack reservation objects. -pub fn dcim_rack_reservations_bulk_destroy(query: DcimRackReservationsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/dcim/rack-reservations/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasContentTypesListQuery { - app_label: String, - id: i64, - limit: i64, - model: String, - offset: i64, - ordering: String, - q: String -} -/// Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. -pub fn extras_content_types_list(query: ExtrasContentTypesListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/content-types/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct DcimConnectedDeviceListQuery { - peer_device: String, - peer_interface: String -} -/// This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer -/// interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors -/// via a protocol such as LLDP. Two query parameters must be included in the request: -/// -/// * `peer_device`: The name of the peer device -/// * `peer_interface`: The name of the peer interface -pub fn dcim_connected_device_list(query: DcimConnectedDeviceListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/dcim/connected-device/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesRetrieveQuery { -} -/// Get a journal entry object. -pub fn extras_journal_entries_retrieve(query: ExtrasJournalEntriesRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/journal-entries/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesUpdateQuery { -} -/// Put a journal entry object. -pub fn extras_journal_entries_update(query: ExtrasJournalEntriesUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/journal-entries/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesPartialUpdateQuery { -} -/// Patch a journal entry object. -pub fn extras_journal_entries_partial_update(query: ExtrasJournalEntriesPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/journal-entries/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasJournalEntriesDestroyQuery { -} -/// Delete a journal entry object. -pub fn extras_journal_entries_destroy(query: ExtrasJournalEntriesDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/journal-entries/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersRetrieveQuery { -} -/// Get a saved filter object. -pub fn extras_saved_filters_retrieve(query: ExtrasSavedFiltersRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/extras/saved-filters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersUpdateQuery { -} -/// Put a saved filter object. -pub fn extras_saved_filters_update(query: ExtrasSavedFiltersUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/extras/saved-filters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersPartialUpdateQuery { -} -/// Patch a saved filter object. -pub fn extras_saved_filters_partial_update(query: ExtrasSavedFiltersPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/extras/saved-filters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct ExtrasSavedFiltersDestroyQuery { -} -/// Delete a saved filter object. -pub fn extras_saved_filters_destroy(query: ExtrasSavedFiltersDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/extras/saved-filters/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsListQuery { - account: Vec, - account__empty: bool, - account__ic: Vec, - account__ie: Vec, - account__iew: Vec, - account__isw: Vec, - account__n: Vec, - account__nic: Vec, - account__nie: Vec, - account__niew: Vec, - account__nisw: Vec, - created: Vec, - created__empty: Vec, - created__gt: Vec, - created__gte: Vec, - created__lt: Vec, - created__lte: Vec, - created__n: Vec, - created_by_request: String, - description: Vec, - description__empty: bool, - description__ic: Vec, - description__ie: Vec, - description__iew: Vec, - description__isw: Vec, - description__n: Vec, - description__nic: Vec, - description__nie: Vec, - description__niew: Vec, - description__nisw: Vec, - id: Vec, - id__empty: bool, - id__gt: Vec, - id__gte: Vec, - id__lt: Vec, - id__lte: Vec, - id__n: Vec, - last_updated: Vec, - last_updated__empty: Vec, - last_updated__gt: Vec, - last_updated__gte: Vec, - last_updated__lt: Vec, - last_updated__lte: Vec, - last_updated__n: Vec, - limit: i64, - modified_by_request: String, - name: Vec, - name__empty: bool, - name__ic: Vec, - name__ie: Vec, - name__iew: Vec, - name__isw: Vec, - name__n: Vec, - name__nic: Vec, - name__nie: Vec, - name__niew: Vec, - name__nisw: Vec, - offset: i64, - ordering: String, - provider: Vec, - provider__n: Vec, - provider_id: Vec, - provider_id__n: Vec, - q: String, - tag: Vec, - tag__n: Vec, - updated_by_request: String -} -/// Get a list of provider account objects. -pub fn circuits_provider_accounts_list(query: CircuitsProviderAccountsListQuery) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/provider-accounts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsBulkUpdateQuery { -} -/// Put a list of provider account objects. -pub fn circuits_provider_accounts_bulk_update(query: CircuitsProviderAccountsBulkUpdateQuery) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/provider-accounts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsCreateQuery { -} -/// Post a list of provider account objects. -pub fn circuits_provider_accounts_create(query: CircuitsProviderAccountsCreateQuery) -> Result { - return REQWEST_CLIENT.post(format!("{}/api/circuits/provider-accounts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsBulkPartialUpdateQuery { -} -/// Patch a list of provider account objects. -pub fn circuits_provider_accounts_bulk_partial_update(query: CircuitsProviderAccountsBulkPartialUpdateQuery) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/provider-accounts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsProviderAccountsBulkDestroyQuery { -} -/// Delete a list of provider account objects. -pub fn circuits_provider_accounts_bulk_destroy(query: CircuitsProviderAccountsBulkDestroyQuery) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/provider-accounts/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsRetrieveQuery { -} -/// Get a circuit object. -pub fn circuits_circuits_retrieve(query: CircuitsCircuitsRetrieveQuery, id: i64) -> Result { - return REQWEST_CLIENT.get(format!("{}/api/circuits/circuits/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsUpdateQuery { -} -/// Put a circuit object. -pub fn circuits_circuits_update(query: CircuitsCircuitsUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.put(format!("{}/api/circuits/circuits/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsPartialUpdateQuery { -} -/// Patch a circuit object. -pub fn circuits_circuits_partial_update(query: CircuitsCircuitsPartialUpdateQuery, id: i64) -> Result { - return REQWEST_CLIENT.patch(format!("{}/api/circuits/circuits/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} - -pub struct CircuitsCircuitsDestroyQuery { -} -/// Delete a circuit object. -pub fn circuits_circuits_destroy(query: CircuitsCircuitsDestroyQuery, id: i64) -> Result { - return REQWEST_CLIENT.delete(format!("{}/api/circuits/circuits/{id}/?{}", REQWEST_BASE_URL, serde_qs::to_string(query))).send(); -} -