From ad5f8025b1031eaa2f179c94a2a84ab92d483441 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Thu, 18 Apr 2024 15:35:20 -0500 Subject: [PATCH] generate Network Edge code from patched spec --- services/networkedgev1/.gitignore | 24 + .../networkedgev1/.openapi-generator-ignore | 23 + services/networkedgev1/README.md | 351 +++ services/networkedgev1/api_acl_template.go | 1335 +++++++++ services/networkedgev1/api_bgp.go | 666 +++++ .../api_device_backup_restore.go | 1217 +++++++++ services/networkedgev1/api_device_link.go | 794 ++++++ services/networkedgev1/api_device_rma.go | 171 ++ ...api_layer2_connections_service_profiles.go | 1322 +++++++++ services/networkedgev1/api_licensing.go | 557 ++++ services/networkedgev1/api_setup.go | 2429 +++++++++++++++++ services/networkedgev1/api_ssh_user.go | 1119 ++++++++ services/networkedgev1/api_virtual_device.go | 1987 ++++++++++++++ services/networkedgev1/api_vpn.go | 788 ++++++ services/networkedgev1/client.go | 690 +++++ services/networkedgev1/configuration.go | 215 ++ services/networkedgev1/docs/ACLDetails.md | 82 + services/networkedgev1/docs/ACLTemplateApi.md | 665 +++++ .../docs/ACLTemplateDetailsResponse.md | 212 ++ services/networkedgev1/docs/AclObject.md | 82 + .../docs/AdditionalBandwidthRequest.md | 56 + .../docs/AdditionalFieldsConfig.md | 108 + .../docs/AgreementAcceptRequest.md | 82 + .../docs/AgreementAcceptResponse.md | 56 + .../docs/AgreementStatusResponse.md | 134 + .../docs/AllowedInterfaceProfiles.md | 108 + .../docs/AllowedInterfaceResponse.md | 56 + services/networkedgev1/docs/BGPApi.md | 304 +++ .../networkedgev1/docs/BgpAsyncResponse.md | 56 + .../networkedgev1/docs/BgpConfigAddRequest.md | 186 ++ .../networkedgev1/docs/BgpConnectionInfo.md | 290 ++ services/networkedgev1/docs/BgpInfo.md | 602 ++++ .../networkedgev1/docs/BgpUpdateRequest.md | 160 ++ services/networkedgev1/docs/Charges.md | 82 + services/networkedgev1/docs/ClusterConfig.md | 82 + .../networkedgev1/docs/ClusterNodeDetails.md | 82 + .../networkedgev1/docs/ClusteringDetails.md | 82 + .../docs/CompositePriceResponse.md | 108 + services/networkedgev1/docs/CoresConfig.md | 212 ++ .../networkedgev1/docs/CoresDisplayConfig.md | 134 + .../networkedgev1/docs/DNSLookupRequest.md | 108 + .../networkedgev1/docs/DNSLookupResponse.md | 56 + .../docs/DNSLookupResponseDetails.md | 82 + .../networkedgev1/docs/DefaultAclsConfig.md | 82 + .../docs/DeleteConnectionResponse.md | 82 + .../docs/DeviceACLDetailsResponse.md | 212 ++ .../docs/DeviceACLPageResponse.md | 82 + .../docs/DeviceACLTemplateRequest.md | 93 + .../docs/DeviceACLTemplatesResponse.md | 186 ++ .../docs/DeviceBackupCreateRequest.md | 72 + .../docs/DeviceBackupCreateResponse.md | 56 + .../docs/DeviceBackupInfoVerbose.md | 316 +++ .../docs/DeviceBackupPageResponse.md | 82 + .../networkedgev1/docs/DeviceBackupRestore.md | 134 + .../docs/DeviceBackupRestoreApi.md | 590 ++++ .../docs/DeviceBackupUpdateRequest.md | 51 + services/networkedgev1/docs/DeviceElement.md | 134 + services/networkedgev1/docs/DeviceInfo.md | 472 ++++ services/networkedgev1/docs/DeviceLinkApi.md | 375 +++ .../networkedgev1/docs/DeviceLinkGroupDto.md | 316 +++ .../docs/DeviceLinkGroupResponse.md | 56 + .../networkedgev1/docs/DeviceLinkRequest.md | 150 + services/networkedgev1/docs/DeviceRMAApi.md | 81 + services/networkedgev1/docs/DeviceRMAInfo.md | 82 + .../docs/DeviceRMAPostRequest.md | 181 ++ .../docs/DeviceRebootPageResponse.md | 82 + .../docs/DeviceRebootResponse.md | 160 ++ .../docs/DeviceUpgradeDetailsResponse.md | 186 ++ .../docs/DeviceUpgradePageResponse.md | 82 + .../docs/DowntimeNotification.md | 160 ++ .../docs/EquinixConfiguredConfig.md | 160 ++ .../EquinixConfiguredConfigLicenseOptions.md | 82 + .../docs/ErrorMessageResponse.md | 134 + services/networkedgev1/docs/ErrorResponse.md | 134 + .../networkedgev1/docs/FieldErrorResponse.md | 160 ++ .../networkedgev1/docs/FileUploadResponse.md | 56 + .../docs/GETConnectionByUuidResponse.md | 1096 ++++++++ .../docs/GETConnectionsPageResponse.md | 186 ++ .../docs/GetServProfServicesResp.md | 186 ++ .../docs/GetServProfServicesRespContent.md | 602 ++++ .../GetServProfServicesRespContentMetros.md | 160 ++ .../GetServProfServicesRespContentfeatures.md | 82 + .../docs/GetSshUserUsingGET404Response.md | 265 ++ .../docs/GetValidateAuthKeyRes.md | 134 + .../docs/GetValidateAuthkeyresPrimary.md | 56 + .../docs/GetValidateAuthkeyresSecondary.md | 56 + .../docs/GetVpnByUuidUsingGET404Response.md | 193 ++ ...GetVpnsUsingGETStatusListParameterInner.md | 31 + .../networkedgev1/docs/ImpactedServices.md | 160 ++ services/networkedgev1/docs/InboundRules.md | 186 ++ .../docs/InitialDeviceACLResponse.md | 82 + .../docs/InterfaceBasicInfoResponse.md | 238 ++ .../networkedgev1/docs/InterfaceDetails.md | 134 + .../docs/InterfaceStatsDetailObject.md | 160 ++ .../docs/InterfaceStatsObject.md | 56 + .../docs/InterfaceStatsofTraffic.md | 134 + services/networkedgev1/docs/JsonNode.md | 576 ++++ .../networkedgev1/docs/JsonNodeNodeType.md | 27 + .../Layer2ConnectionsServiceProfilesApi.md | 594 ++++ services/networkedgev1/docs/LicenseOptions.md | 108 + .../docs/LicenseOptionsConfig.md | 134 + .../docs/LicenseUpdateRequest.md | 56 + .../docs/LicenseUploadResponse.md | 56 + services/networkedgev1/docs/LicensingApi.md | 233 ++ services/networkedgev1/docs/LinkDeviceInfo.md | 103 + .../networkedgev1/docs/LinkDeviceResponse.md | 342 +++ services/networkedgev1/docs/LinkInfo.md | 134 + .../networkedgev1/docs/LinkInfoResponse.md | 160 ++ .../networkedgev1/docs/LinksPageResponse.md | 82 + services/networkedgev1/docs/Metro.md | 134 + .../docs/MetroAccountResponse.md | 212 ++ services/networkedgev1/docs/MetroResponse.md | 134 + services/networkedgev1/docs/MetroStatus.md | 56 + services/networkedgev1/docs/Node0Details.md | 108 + services/networkedgev1/docs/Node1Details.md | 108 + .../docs/OrderSummaryResponse.md | 758 +++++ .../networkedgev1/docs/OrderTermsResponse.md | 56 + services/networkedgev1/docs/PackageCodes.md | 160 ++ services/networkedgev1/docs/PageResponse.md | 82 + .../networkedgev1/docs/PageResponseDto.md | 108 + .../PageResponseDtoMetroAccountResponse.md | 134 + .../docs/PageResponseDtoMetroResponse.md | 82 + .../docs/PageResponseDtoVirtualDeviceType.md | 82 + .../docs/PageResponsePublicKeys.md | 134 + .../docs/PaginationResponseDto.md | 108 + services/networkedgev1/docs/PatchRequest.md | 82 + .../docs/PolledThroughputMetrics.md | 82 + .../docs/PostConnectionRequest.md | 706 +++++ .../docs/PostConnectionResponse.md | 134 + .../networkedgev1/docs/PreviousBackups.md | 160 ++ services/networkedgev1/docs/PriceResponse.md | 134 + .../networkedgev1/docs/PricingSiebelConfig.md | 264 ++ .../docs/PricingSiebelConfigPrimary.md | 82 + .../docs/PricingSiebelConfigSecondary.md | 82 + .../networkedgev1/docs/PublicKeyRequest.md | 98 + .../networkedgev1/docs/RMAVendorConfig.md | 238 ++ .../docs/RestoreBackupInfoVerbose.md | 108 + .../RestoreBackupInfoVerboseDeviceBackup.md | 56 + .../docs/RestoreBackupInfoVerboseServices.md | 56 + .../networkedgev1/docs/RmaDetailObject.md | 212 ++ services/networkedgev1/docs/SSHUserApi.md | 519 ++++ .../docs/SecondaryDeviceDeleteRequest.md | 56 + .../docs/SelfConfiguredConfig.md | 186 ++ .../SelfConfiguredConfigLicenseOptions.md | 82 + services/networkedgev1/docs/ServiceInfo.md | 108 + services/networkedgev1/docs/SetupApi.md | 1086 ++++++++ .../networkedgev1/docs/SoftwarePackage.md | 134 + services/networkedgev1/docs/SpeedBand.md | 82 + .../docs/SshUserCreateRequest.md | 93 + .../docs/SshUserCreateResponse.md | 56 + .../docs/SshUserInfoDissociateResponse.md | 82 + .../networkedgev1/docs/SshUserInfoVerbose.md | 134 + .../docs/SshUserOperationRequest.md | 129 + .../docs/SshUserOperationRequestAction.md | 15 + .../networkedgev1/docs/SshUserPageResponse.md | 82 + .../docs/SshUserUpdateRequest.md | 51 + services/networkedgev1/docs/SshUsers.md | 134 + .../networkedgev1/docs/StackTraceElement.md | 160 ++ .../docs/SupportedServicesConfig.md | 134 + services/networkedgev1/docs/Throughput.md | 108 + .../networkedgev1/docs/ThroughputConfig.md | 108 + services/networkedgev1/docs/Throwable.md | 160 ++ .../docs/UpdateDeviceACLTemplateRequest.md | 51 + .../docs/UpgradeCoreRequestDetails.md | 82 + .../networkedgev1/docs/UserPublicKeyConfig.md | 108 + .../docs/UserPublicKeyRequest.md | 82 + services/networkedgev1/docs/VPNApi.md | 367 +++ services/networkedgev1/docs/VendorConfig.md | 706 +++++ .../docs/VendorConfigDetailsNode0.md | 186 ++ .../docs/VendorConfigDetailsNode1.md | 108 + .../networkedgev1/docs/VendorTermsResponse.md | 56 + services/networkedgev1/docs/VersionDetails.md | 212 ++ .../docs/VirtualDevicHARequest.md | 483 ++++ ...VirtualDevicHARequestNotificationsInner.md | 13 + .../docs/VirtualDeviceACLDetails.md | 134 + .../networkedgev1/docs/VirtualDeviceApi.md | 982 +++++++ .../docs/VirtualDeviceCreateResponse.md | 56 + .../docs/VirtualDeviceCreateResponseDto.md | 82 + .../docs/VirtualDeviceDeleteRequest.md | 82 + .../docs/VirtualDeviceDetailsResponse.md | 1512 ++++++++++ .../VirtualDeviceInternalPatchRequestDto.md | 212 ++ ...viceInternalPatchRequestDtoVendorConfig.md | 56 + .../docs/VirtualDevicePageResponse.md | 82 + .../docs/VirtualDeviceRequest.md | 1025 +++++++ .../networkedgev1/docs/VirtualDeviceType.md | 342 +++ .../VirtualDeviceTypeDeviceManagementTypes.md | 82 + services/networkedgev1/docs/Vpn.md | 276 ++ services/networkedgev1/docs/VpnRequest.md | 208 ++ services/networkedgev1/docs/VpnResponse.md | 1056 +++++++ services/networkedgev1/docs/VpnResponseDto.md | 82 + services/networkedgev1/model_acl_details.go | 193 ++ services/networkedgev1/model_acl_object.go | 193 ++ .../model_acl_template_details_response.go | 383 +++ .../model_additional_bandwidth_request.go | 154 ++ .../model_additional_fields_config.go | 231 ++ .../model_agreement_accept_request.go | 192 ++ .../model_agreement_accept_response.go | 154 ++ .../model_agreement_status_response.go | 265 ++ .../model_allowed_interface_profiles.go | 230 ++ .../model_allowed_interface_response.go | 154 ++ .../networkedgev1/model_bgp_async_response.go | 154 ++ .../model_bgp_config_add_request.go | 345 +++ .../model_bgp_connection_info.go | 487 ++++ services/networkedgev1/model_bgp_info.go | 931 +++++++ .../networkedgev1/model_bgp_update_request.go | 307 +++ services/networkedgev1/model_charges.go | 193 ++ .../networkedgev1/model_cluster_config.go | 192 ++ .../model_cluster_node_details.go | 191 ++ .../networkedgev1/model_clustering_details.go | 193 ++ .../model_composite_price_response.go | 228 ++ services/networkedgev1/model_cores_config.go | 383 +++ .../model_cores_display_config.go | 269 ++ .../model_default_acls_config.go | 191 ++ .../model_delete_connection_response.go | 191 ++ .../model_device_acl_details_response.go | 383 +++ .../model_device_acl_page_response.go | 191 ++ .../model_device_acl_template_request.go | 228 ++ .../model_device_acl_templates_response.go | 345 +++ .../model_device_backup_create_request.go | 198 ++ .../model_device_backup_create_response.go | 155 ++ .../model_device_backup_info_verbose.go | 534 ++++ .../model_device_backup_page_response.go | 191 ++ .../model_device_backup_restore.go | 269 ++ .../model_device_backup_update_request.go | 168 ++ .../networkedgev1/model_device_element.go | 265 ++ services/networkedgev1/model_device_info.go | 755 +++++ .../model_device_link_group_dto.go | 533 ++++ .../model_device_link_group_response.go | 154 ++ .../model_device_link_request.go | 312 +++ .../model_device_reboot_page_response.go | 191 ++ .../model_device_reboot_response.go | 307 +++ .../networkedgev1/model_device_rma_info.go | 192 ++ .../model_device_rma_post_request.go | 356 +++ .../model_device_upgrade_details_response.go | 345 +++ .../model_device_upgrade_page_response.go | 191 ++ .../networkedgev1/model_dns_lookup_request.go | 231 ++ .../model_dns_lookup_response.go | 154 ++ .../model_dns_lookup_response_details.go | 193 ++ .../model_downtime_notification.go | 307 +++ .../model_equinix_configured_config.go | 303 ++ ...uinix_configured_config_license_options.go | 191 ++ .../model_error_message_response.go | 265 ++ .../networkedgev1/model_error_response.go | 265 ++ .../model_field_error_response.go | 302 ++ .../model_file_upload_response.go | 154 ++ .../model_get_connection_by_uuid_response.go | 1634 +++++++++++ .../model_get_connections_page_response.go | 339 +++ .../model_get_serv_prof_services_resp.go | 339 +++ ...del_get_serv_prof_services_resp_content.go | 931 +++++++ ..._serv_prof_services_resp_content_metros.go | 302 ++ ...serv_prof_services_resp_contentfeatures.go | 191 ++ ...del_get_ssh_user_using_get_404_response.go | 363 +++ .../model_get_validate_auth_key_res.go | 265 ++ .../model_get_validate_authkeyres_primary.go | 154 ++ ...model_get_validate_authkeyres_secondary.go | 154 ++ ..._get_vpn_by_uuid_using_get_404_response.go | 291 ++ ...s_using_get_status_list_parameter_inner.go | 129 + .../networkedgev1/model_impacted_services.go | 307 +++ services/networkedgev1/model_inbound_rules.go | 345 +++ .../model_initial_device_acl_response.go | 191 ++ .../model_interface_basic_info_response.go | 414 +++ .../networkedgev1/model_interface_details.go | 269 ++ .../model_interface_stats_detail_object.go | 305 +++ .../model_interface_stats_object.go | 154 ++ .../model_interface_statsof_traffic.go | 268 ++ services/networkedgev1/model_json_node.go | 894 ++++++ .../model_json_node_node_type.go | 125 + .../networkedgev1/model_license_options.go | 231 ++ .../model_license_options_config.go | 268 ++ .../model_license_update_request.go | 154 ++ .../model_license_upload_response.go | 154 ++ .../networkedgev1/model_link_device_info.go | 244 ++ .../model_link_device_response.go | 568 ++++ services/networkedgev1/model_link_info.go | 269 ++ .../networkedgev1/model_link_info_response.go | 307 +++ .../model_links_page_response.go | 191 ++ services/networkedgev1/model_metro.go | 269 ++ .../model_metro_account_response.go | 383 +++ .../networkedgev1/model_metro_response.go | 269 ++ services/networkedgev1/model_metro_status.go | 155 ++ services/networkedgev1/model_node0_details.go | 230 ++ services/networkedgev1/model_node1_details.go | 230 ++ .../model_order_summary_response.go | 1153 ++++++++ .../model_order_terms_response.go | 154 ++ services/networkedgev1/model_package_codes.go | 304 +++ services/networkedgev1/model_page_response.go | 191 ++ .../networkedgev1/model_page_response_dto.go | 228 ++ ...age_response_dto_metro_account_response.go | 268 ++ .../model_page_response_dto_metro_response.go | 191 ++ ...l_page_response_dto_virtual_device_type.go | 192 ++ .../model_page_response_public_keys.go | 269 ++ .../model_pagination_response_dto.go | 231 ++ services/networkedgev1/model_patch_request.go | 191 ++ .../model_polled_throughput_metrics.go | 193 ++ .../model_post_connection_request.go | 1079 ++++++++ .../model_post_connection_response.go | 265 ++ .../networkedgev1/model_previous_backups.go | 307 +++ .../networkedgev1/model_price_response.go | 266 ++ .../model_pricing_siebel_config.go | 457 ++++ .../model_pricing_siebel_config_primary.go | 192 ++ .../model_pricing_siebel_config_secondary.go | 192 ++ .../networkedgev1/model_public_key_request.go | 236 ++ .../model_restore_backup_info_verbose.go | 229 ++ ...store_backup_info_verbose_device_backup.go | 154 ++ ...el_restore_backup_info_verbose_services.go | 154 ++ .../networkedgev1/model_rma_detail_object.go | 383 +++ .../networkedgev1/model_rma_vendor_config.go | 421 +++ .../model_secondary_device_delete_request.go | 155 ++ .../model_self_configured_config.go | 340 +++ ..._self_configured_config_license_options.go | 191 ++ services/networkedgev1/model_service_info.go | 231 ++ .../networkedgev1/model_software_package.go | 268 ++ services/networkedgev1/model_speed_band.go | 191 ++ .../model_ssh_user_create_request.go | 228 ++ .../model_ssh_user_create_response.go | 155 ++ ...model_ssh_user_info_dissociate_response.go | 192 ++ .../model_ssh_user_info_verbose.go | 269 ++ .../model_ssh_user_operation_request.go | 281 ++ ...model_ssh_user_operation_request_action.go | 113 + .../model_ssh_user_page_response.go | 191 ++ .../model_ssh_user_update_request.go | 168 ++ services/networkedgev1/model_ssh_users.go | 269 ++ .../model_stack_trace_element.go | 302 ++ .../model_supported_services_config.go | 268 ++ services/networkedgev1/model_throughput.go | 229 ++ .../networkedgev1/model_throughput_config.go | 231 ++ services/networkedgev1/model_throwable.go | 302 ++ ...odel_update_device_acl_template_request.go | 168 ++ .../model_upgrade_core_request_details.go | 193 ++ .../model_user_public_key_config.go | 231 ++ .../model_user_public_key_request.go | 193 ++ services/networkedgev1/model_vendor_config.go | 1096 ++++++++ .../model_vendor_config_details_node0.go | 341 +++ .../model_vendor_config_details_node1.go | 230 ++ .../model_vendor_terms_response.go | 154 ++ .../networkedgev1/model_version_details.go | 376 +++ .../model_virtual_devic_ha_request.go | 788 ++++++ ...al_devic_ha_request_notifications_inner.go | 111 + .../model_virtual_device_acl_details.go | 269 ++ .../model_virtual_device_create_response.go | 154 ++ ...odel_virtual_device_create_response_dto.go | 191 ++ .../model_virtual_device_delete_request.go | 192 ++ .../model_virtual_device_details_response.go | 2230 +++++++++++++++ ...rtual_device_internal_patch_request_dto.go | 381 +++ ...nternal_patch_request_dto_vendor_config.go | 155 ++ .../model_virtual_device_page_response.go | 191 ++ .../model_virtual_device_request.go | 1577 +++++++++++ .../model_virtual_device_type.go | 572 ++++ ...ual_device_type_device_management_types.go | 191 ++ services/networkedgev1/model_vpn.go | 487 ++++ services/networkedgev1/model_vpn_request.go | 391 +++ services/networkedgev1/model_vpn_response.go | 1596 +++++++++++ .../networkedgev1/model_vpn_response_dto.go | 191 ++ services/networkedgev1/response.go | 48 + .../test/api_acl_template_test.go | 122 + services/networkedgev1/test/api_bgp_test.go | 68 + .../test/api_device_backup_restore_test.go | 113 + .../test/api_device_link_test.go | 78 + .../networkedgev1/test/api_device_rma_test.go | 35 + ...ayer2_connections_service_profiles_test.go | 112 + .../networkedgev1/test/api_licensing_test.go | 58 + services/networkedgev1/test/api_setup_test.go | 166 ++ .../networkedgev1/test/api_ssh_user_test.go | 101 + .../test/api_virtual_device_test.go | 171 ++ services/networkedgev1/test/api_vpn_test.go | 77 + services/networkedgev1/utils.go | 348 +++ 366 files changed, 101348 insertions(+) create mode 100644 services/networkedgev1/.gitignore create mode 100644 services/networkedgev1/.openapi-generator-ignore create mode 100644 services/networkedgev1/README.md create mode 100644 services/networkedgev1/api_acl_template.go create mode 100644 services/networkedgev1/api_bgp.go create mode 100644 services/networkedgev1/api_device_backup_restore.go create mode 100644 services/networkedgev1/api_device_link.go create mode 100644 services/networkedgev1/api_device_rma.go create mode 100644 services/networkedgev1/api_layer2_connections_service_profiles.go create mode 100644 services/networkedgev1/api_licensing.go create mode 100644 services/networkedgev1/api_setup.go create mode 100644 services/networkedgev1/api_ssh_user.go create mode 100644 services/networkedgev1/api_virtual_device.go create mode 100644 services/networkedgev1/api_vpn.go create mode 100644 services/networkedgev1/client.go create mode 100644 services/networkedgev1/configuration.go create mode 100644 services/networkedgev1/docs/ACLDetails.md create mode 100644 services/networkedgev1/docs/ACLTemplateApi.md create mode 100644 services/networkedgev1/docs/ACLTemplateDetailsResponse.md create mode 100644 services/networkedgev1/docs/AclObject.md create mode 100644 services/networkedgev1/docs/AdditionalBandwidthRequest.md create mode 100644 services/networkedgev1/docs/AdditionalFieldsConfig.md create mode 100644 services/networkedgev1/docs/AgreementAcceptRequest.md create mode 100644 services/networkedgev1/docs/AgreementAcceptResponse.md create mode 100644 services/networkedgev1/docs/AgreementStatusResponse.md create mode 100644 services/networkedgev1/docs/AllowedInterfaceProfiles.md create mode 100644 services/networkedgev1/docs/AllowedInterfaceResponse.md create mode 100644 services/networkedgev1/docs/BGPApi.md create mode 100644 services/networkedgev1/docs/BgpAsyncResponse.md create mode 100644 services/networkedgev1/docs/BgpConfigAddRequest.md create mode 100644 services/networkedgev1/docs/BgpConnectionInfo.md create mode 100644 services/networkedgev1/docs/BgpInfo.md create mode 100644 services/networkedgev1/docs/BgpUpdateRequest.md create mode 100644 services/networkedgev1/docs/Charges.md create mode 100644 services/networkedgev1/docs/ClusterConfig.md create mode 100644 services/networkedgev1/docs/ClusterNodeDetails.md create mode 100644 services/networkedgev1/docs/ClusteringDetails.md create mode 100644 services/networkedgev1/docs/CompositePriceResponse.md create mode 100644 services/networkedgev1/docs/CoresConfig.md create mode 100644 services/networkedgev1/docs/CoresDisplayConfig.md create mode 100644 services/networkedgev1/docs/DNSLookupRequest.md create mode 100644 services/networkedgev1/docs/DNSLookupResponse.md create mode 100644 services/networkedgev1/docs/DNSLookupResponseDetails.md create mode 100644 services/networkedgev1/docs/DefaultAclsConfig.md create mode 100644 services/networkedgev1/docs/DeleteConnectionResponse.md create mode 100644 services/networkedgev1/docs/DeviceACLDetailsResponse.md create mode 100644 services/networkedgev1/docs/DeviceACLPageResponse.md create mode 100644 services/networkedgev1/docs/DeviceACLTemplateRequest.md create mode 100644 services/networkedgev1/docs/DeviceACLTemplatesResponse.md create mode 100644 services/networkedgev1/docs/DeviceBackupCreateRequest.md create mode 100644 services/networkedgev1/docs/DeviceBackupCreateResponse.md create mode 100644 services/networkedgev1/docs/DeviceBackupInfoVerbose.md create mode 100644 services/networkedgev1/docs/DeviceBackupPageResponse.md create mode 100644 services/networkedgev1/docs/DeviceBackupRestore.md create mode 100644 services/networkedgev1/docs/DeviceBackupRestoreApi.md create mode 100644 services/networkedgev1/docs/DeviceBackupUpdateRequest.md create mode 100644 services/networkedgev1/docs/DeviceElement.md create mode 100644 services/networkedgev1/docs/DeviceInfo.md create mode 100644 services/networkedgev1/docs/DeviceLinkApi.md create mode 100644 services/networkedgev1/docs/DeviceLinkGroupDto.md create mode 100644 services/networkedgev1/docs/DeviceLinkGroupResponse.md create mode 100644 services/networkedgev1/docs/DeviceLinkRequest.md create mode 100644 services/networkedgev1/docs/DeviceRMAApi.md create mode 100644 services/networkedgev1/docs/DeviceRMAInfo.md create mode 100644 services/networkedgev1/docs/DeviceRMAPostRequest.md create mode 100644 services/networkedgev1/docs/DeviceRebootPageResponse.md create mode 100644 services/networkedgev1/docs/DeviceRebootResponse.md create mode 100644 services/networkedgev1/docs/DeviceUpgradeDetailsResponse.md create mode 100644 services/networkedgev1/docs/DeviceUpgradePageResponse.md create mode 100644 services/networkedgev1/docs/DowntimeNotification.md create mode 100644 services/networkedgev1/docs/EquinixConfiguredConfig.md create mode 100644 services/networkedgev1/docs/EquinixConfiguredConfigLicenseOptions.md create mode 100644 services/networkedgev1/docs/ErrorMessageResponse.md create mode 100644 services/networkedgev1/docs/ErrorResponse.md create mode 100644 services/networkedgev1/docs/FieldErrorResponse.md create mode 100644 services/networkedgev1/docs/FileUploadResponse.md create mode 100644 services/networkedgev1/docs/GETConnectionByUuidResponse.md create mode 100644 services/networkedgev1/docs/GETConnectionsPageResponse.md create mode 100644 services/networkedgev1/docs/GetServProfServicesResp.md create mode 100644 services/networkedgev1/docs/GetServProfServicesRespContent.md create mode 100644 services/networkedgev1/docs/GetServProfServicesRespContentMetros.md create mode 100644 services/networkedgev1/docs/GetServProfServicesRespContentfeatures.md create mode 100644 services/networkedgev1/docs/GetSshUserUsingGET404Response.md create mode 100644 services/networkedgev1/docs/GetValidateAuthKeyRes.md create mode 100644 services/networkedgev1/docs/GetValidateAuthkeyresPrimary.md create mode 100644 services/networkedgev1/docs/GetValidateAuthkeyresSecondary.md create mode 100644 services/networkedgev1/docs/GetVpnByUuidUsingGET404Response.md create mode 100644 services/networkedgev1/docs/GetVpnsUsingGETStatusListParameterInner.md create mode 100644 services/networkedgev1/docs/ImpactedServices.md create mode 100644 services/networkedgev1/docs/InboundRules.md create mode 100644 services/networkedgev1/docs/InitialDeviceACLResponse.md create mode 100644 services/networkedgev1/docs/InterfaceBasicInfoResponse.md create mode 100644 services/networkedgev1/docs/InterfaceDetails.md create mode 100644 services/networkedgev1/docs/InterfaceStatsDetailObject.md create mode 100644 services/networkedgev1/docs/InterfaceStatsObject.md create mode 100644 services/networkedgev1/docs/InterfaceStatsofTraffic.md create mode 100644 services/networkedgev1/docs/JsonNode.md create mode 100644 services/networkedgev1/docs/JsonNodeNodeType.md create mode 100644 services/networkedgev1/docs/Layer2ConnectionsServiceProfilesApi.md create mode 100644 services/networkedgev1/docs/LicenseOptions.md create mode 100644 services/networkedgev1/docs/LicenseOptionsConfig.md create mode 100644 services/networkedgev1/docs/LicenseUpdateRequest.md create mode 100644 services/networkedgev1/docs/LicenseUploadResponse.md create mode 100644 services/networkedgev1/docs/LicensingApi.md create mode 100644 services/networkedgev1/docs/LinkDeviceInfo.md create mode 100644 services/networkedgev1/docs/LinkDeviceResponse.md create mode 100644 services/networkedgev1/docs/LinkInfo.md create mode 100644 services/networkedgev1/docs/LinkInfoResponse.md create mode 100644 services/networkedgev1/docs/LinksPageResponse.md create mode 100644 services/networkedgev1/docs/Metro.md create mode 100644 services/networkedgev1/docs/MetroAccountResponse.md create mode 100644 services/networkedgev1/docs/MetroResponse.md create mode 100644 services/networkedgev1/docs/MetroStatus.md create mode 100644 services/networkedgev1/docs/Node0Details.md create mode 100644 services/networkedgev1/docs/Node1Details.md create mode 100644 services/networkedgev1/docs/OrderSummaryResponse.md create mode 100644 services/networkedgev1/docs/OrderTermsResponse.md create mode 100644 services/networkedgev1/docs/PackageCodes.md create mode 100644 services/networkedgev1/docs/PageResponse.md create mode 100644 services/networkedgev1/docs/PageResponseDto.md create mode 100644 services/networkedgev1/docs/PageResponseDtoMetroAccountResponse.md create mode 100644 services/networkedgev1/docs/PageResponseDtoMetroResponse.md create mode 100644 services/networkedgev1/docs/PageResponseDtoVirtualDeviceType.md create mode 100644 services/networkedgev1/docs/PageResponsePublicKeys.md create mode 100644 services/networkedgev1/docs/PaginationResponseDto.md create mode 100644 services/networkedgev1/docs/PatchRequest.md create mode 100644 services/networkedgev1/docs/PolledThroughputMetrics.md create mode 100644 services/networkedgev1/docs/PostConnectionRequest.md create mode 100644 services/networkedgev1/docs/PostConnectionResponse.md create mode 100644 services/networkedgev1/docs/PreviousBackups.md create mode 100644 services/networkedgev1/docs/PriceResponse.md create mode 100644 services/networkedgev1/docs/PricingSiebelConfig.md create mode 100644 services/networkedgev1/docs/PricingSiebelConfigPrimary.md create mode 100644 services/networkedgev1/docs/PricingSiebelConfigSecondary.md create mode 100644 services/networkedgev1/docs/PublicKeyRequest.md create mode 100644 services/networkedgev1/docs/RMAVendorConfig.md create mode 100644 services/networkedgev1/docs/RestoreBackupInfoVerbose.md create mode 100644 services/networkedgev1/docs/RestoreBackupInfoVerboseDeviceBackup.md create mode 100644 services/networkedgev1/docs/RestoreBackupInfoVerboseServices.md create mode 100644 services/networkedgev1/docs/RmaDetailObject.md create mode 100644 services/networkedgev1/docs/SSHUserApi.md create mode 100644 services/networkedgev1/docs/SecondaryDeviceDeleteRequest.md create mode 100644 services/networkedgev1/docs/SelfConfiguredConfig.md create mode 100644 services/networkedgev1/docs/SelfConfiguredConfigLicenseOptions.md create mode 100644 services/networkedgev1/docs/ServiceInfo.md create mode 100644 services/networkedgev1/docs/SetupApi.md create mode 100644 services/networkedgev1/docs/SoftwarePackage.md create mode 100644 services/networkedgev1/docs/SpeedBand.md create mode 100644 services/networkedgev1/docs/SshUserCreateRequest.md create mode 100644 services/networkedgev1/docs/SshUserCreateResponse.md create mode 100644 services/networkedgev1/docs/SshUserInfoDissociateResponse.md create mode 100644 services/networkedgev1/docs/SshUserInfoVerbose.md create mode 100644 services/networkedgev1/docs/SshUserOperationRequest.md create mode 100644 services/networkedgev1/docs/SshUserOperationRequestAction.md create mode 100644 services/networkedgev1/docs/SshUserPageResponse.md create mode 100644 services/networkedgev1/docs/SshUserUpdateRequest.md create mode 100644 services/networkedgev1/docs/SshUsers.md create mode 100644 services/networkedgev1/docs/StackTraceElement.md create mode 100644 services/networkedgev1/docs/SupportedServicesConfig.md create mode 100644 services/networkedgev1/docs/Throughput.md create mode 100644 services/networkedgev1/docs/ThroughputConfig.md create mode 100644 services/networkedgev1/docs/Throwable.md create mode 100644 services/networkedgev1/docs/UpdateDeviceACLTemplateRequest.md create mode 100644 services/networkedgev1/docs/UpgradeCoreRequestDetails.md create mode 100644 services/networkedgev1/docs/UserPublicKeyConfig.md create mode 100644 services/networkedgev1/docs/UserPublicKeyRequest.md create mode 100644 services/networkedgev1/docs/VPNApi.md create mode 100644 services/networkedgev1/docs/VendorConfig.md create mode 100644 services/networkedgev1/docs/VendorConfigDetailsNode0.md create mode 100644 services/networkedgev1/docs/VendorConfigDetailsNode1.md create mode 100644 services/networkedgev1/docs/VendorTermsResponse.md create mode 100644 services/networkedgev1/docs/VersionDetails.md create mode 100644 services/networkedgev1/docs/VirtualDevicHARequest.md create mode 100644 services/networkedgev1/docs/VirtualDevicHARequestNotificationsInner.md create mode 100644 services/networkedgev1/docs/VirtualDeviceACLDetails.md create mode 100644 services/networkedgev1/docs/VirtualDeviceApi.md create mode 100644 services/networkedgev1/docs/VirtualDeviceCreateResponse.md create mode 100644 services/networkedgev1/docs/VirtualDeviceCreateResponseDto.md create mode 100644 services/networkedgev1/docs/VirtualDeviceDeleteRequest.md create mode 100644 services/networkedgev1/docs/VirtualDeviceDetailsResponse.md create mode 100644 services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDto.md create mode 100644 services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDtoVendorConfig.md create mode 100644 services/networkedgev1/docs/VirtualDevicePageResponse.md create mode 100644 services/networkedgev1/docs/VirtualDeviceRequest.md create mode 100644 services/networkedgev1/docs/VirtualDeviceType.md create mode 100644 services/networkedgev1/docs/VirtualDeviceTypeDeviceManagementTypes.md create mode 100644 services/networkedgev1/docs/Vpn.md create mode 100644 services/networkedgev1/docs/VpnRequest.md create mode 100644 services/networkedgev1/docs/VpnResponse.md create mode 100644 services/networkedgev1/docs/VpnResponseDto.md create mode 100644 services/networkedgev1/model_acl_details.go create mode 100644 services/networkedgev1/model_acl_object.go create mode 100644 services/networkedgev1/model_acl_template_details_response.go create mode 100644 services/networkedgev1/model_additional_bandwidth_request.go create mode 100644 services/networkedgev1/model_additional_fields_config.go create mode 100644 services/networkedgev1/model_agreement_accept_request.go create mode 100644 services/networkedgev1/model_agreement_accept_response.go create mode 100644 services/networkedgev1/model_agreement_status_response.go create mode 100644 services/networkedgev1/model_allowed_interface_profiles.go create mode 100644 services/networkedgev1/model_allowed_interface_response.go create mode 100644 services/networkedgev1/model_bgp_async_response.go create mode 100644 services/networkedgev1/model_bgp_config_add_request.go create mode 100644 services/networkedgev1/model_bgp_connection_info.go create mode 100644 services/networkedgev1/model_bgp_info.go create mode 100644 services/networkedgev1/model_bgp_update_request.go create mode 100644 services/networkedgev1/model_charges.go create mode 100644 services/networkedgev1/model_cluster_config.go create mode 100644 services/networkedgev1/model_cluster_node_details.go create mode 100644 services/networkedgev1/model_clustering_details.go create mode 100644 services/networkedgev1/model_composite_price_response.go create mode 100644 services/networkedgev1/model_cores_config.go create mode 100644 services/networkedgev1/model_cores_display_config.go create mode 100644 services/networkedgev1/model_default_acls_config.go create mode 100644 services/networkedgev1/model_delete_connection_response.go create mode 100644 services/networkedgev1/model_device_acl_details_response.go create mode 100644 services/networkedgev1/model_device_acl_page_response.go create mode 100644 services/networkedgev1/model_device_acl_template_request.go create mode 100644 services/networkedgev1/model_device_acl_templates_response.go create mode 100644 services/networkedgev1/model_device_backup_create_request.go create mode 100644 services/networkedgev1/model_device_backup_create_response.go create mode 100644 services/networkedgev1/model_device_backup_info_verbose.go create mode 100644 services/networkedgev1/model_device_backup_page_response.go create mode 100644 services/networkedgev1/model_device_backup_restore.go create mode 100644 services/networkedgev1/model_device_backup_update_request.go create mode 100644 services/networkedgev1/model_device_element.go create mode 100644 services/networkedgev1/model_device_info.go create mode 100644 services/networkedgev1/model_device_link_group_dto.go create mode 100644 services/networkedgev1/model_device_link_group_response.go create mode 100644 services/networkedgev1/model_device_link_request.go create mode 100644 services/networkedgev1/model_device_reboot_page_response.go create mode 100644 services/networkedgev1/model_device_reboot_response.go create mode 100644 services/networkedgev1/model_device_rma_info.go create mode 100644 services/networkedgev1/model_device_rma_post_request.go create mode 100644 services/networkedgev1/model_device_upgrade_details_response.go create mode 100644 services/networkedgev1/model_device_upgrade_page_response.go create mode 100644 services/networkedgev1/model_dns_lookup_request.go create mode 100644 services/networkedgev1/model_dns_lookup_response.go create mode 100644 services/networkedgev1/model_dns_lookup_response_details.go create mode 100644 services/networkedgev1/model_downtime_notification.go create mode 100644 services/networkedgev1/model_equinix_configured_config.go create mode 100644 services/networkedgev1/model_equinix_configured_config_license_options.go create mode 100644 services/networkedgev1/model_error_message_response.go create mode 100644 services/networkedgev1/model_error_response.go create mode 100644 services/networkedgev1/model_field_error_response.go create mode 100644 services/networkedgev1/model_file_upload_response.go create mode 100644 services/networkedgev1/model_get_connection_by_uuid_response.go create mode 100644 services/networkedgev1/model_get_connections_page_response.go create mode 100644 services/networkedgev1/model_get_serv_prof_services_resp.go create mode 100644 services/networkedgev1/model_get_serv_prof_services_resp_content.go create mode 100644 services/networkedgev1/model_get_serv_prof_services_resp_content_metros.go create mode 100644 services/networkedgev1/model_get_serv_prof_services_resp_contentfeatures.go create mode 100644 services/networkedgev1/model_get_ssh_user_using_get_404_response.go create mode 100644 services/networkedgev1/model_get_validate_auth_key_res.go create mode 100644 services/networkedgev1/model_get_validate_authkeyres_primary.go create mode 100644 services/networkedgev1/model_get_validate_authkeyres_secondary.go create mode 100644 services/networkedgev1/model_get_vpn_by_uuid_using_get_404_response.go create mode 100644 services/networkedgev1/model_get_vpns_using_get_status_list_parameter_inner.go create mode 100644 services/networkedgev1/model_impacted_services.go create mode 100644 services/networkedgev1/model_inbound_rules.go create mode 100644 services/networkedgev1/model_initial_device_acl_response.go create mode 100644 services/networkedgev1/model_interface_basic_info_response.go create mode 100644 services/networkedgev1/model_interface_details.go create mode 100644 services/networkedgev1/model_interface_stats_detail_object.go create mode 100644 services/networkedgev1/model_interface_stats_object.go create mode 100644 services/networkedgev1/model_interface_statsof_traffic.go create mode 100644 services/networkedgev1/model_json_node.go create mode 100644 services/networkedgev1/model_json_node_node_type.go create mode 100644 services/networkedgev1/model_license_options.go create mode 100644 services/networkedgev1/model_license_options_config.go create mode 100644 services/networkedgev1/model_license_update_request.go create mode 100644 services/networkedgev1/model_license_upload_response.go create mode 100644 services/networkedgev1/model_link_device_info.go create mode 100644 services/networkedgev1/model_link_device_response.go create mode 100644 services/networkedgev1/model_link_info.go create mode 100644 services/networkedgev1/model_link_info_response.go create mode 100644 services/networkedgev1/model_links_page_response.go create mode 100644 services/networkedgev1/model_metro.go create mode 100644 services/networkedgev1/model_metro_account_response.go create mode 100644 services/networkedgev1/model_metro_response.go create mode 100644 services/networkedgev1/model_metro_status.go create mode 100644 services/networkedgev1/model_node0_details.go create mode 100644 services/networkedgev1/model_node1_details.go create mode 100644 services/networkedgev1/model_order_summary_response.go create mode 100644 services/networkedgev1/model_order_terms_response.go create mode 100644 services/networkedgev1/model_package_codes.go create mode 100644 services/networkedgev1/model_page_response.go create mode 100644 services/networkedgev1/model_page_response_dto.go create mode 100644 services/networkedgev1/model_page_response_dto_metro_account_response.go create mode 100644 services/networkedgev1/model_page_response_dto_metro_response.go create mode 100644 services/networkedgev1/model_page_response_dto_virtual_device_type.go create mode 100644 services/networkedgev1/model_page_response_public_keys.go create mode 100644 services/networkedgev1/model_pagination_response_dto.go create mode 100644 services/networkedgev1/model_patch_request.go create mode 100644 services/networkedgev1/model_polled_throughput_metrics.go create mode 100644 services/networkedgev1/model_post_connection_request.go create mode 100644 services/networkedgev1/model_post_connection_response.go create mode 100644 services/networkedgev1/model_previous_backups.go create mode 100644 services/networkedgev1/model_price_response.go create mode 100644 services/networkedgev1/model_pricing_siebel_config.go create mode 100644 services/networkedgev1/model_pricing_siebel_config_primary.go create mode 100644 services/networkedgev1/model_pricing_siebel_config_secondary.go create mode 100644 services/networkedgev1/model_public_key_request.go create mode 100644 services/networkedgev1/model_restore_backup_info_verbose.go create mode 100644 services/networkedgev1/model_restore_backup_info_verbose_device_backup.go create mode 100644 services/networkedgev1/model_restore_backup_info_verbose_services.go create mode 100644 services/networkedgev1/model_rma_detail_object.go create mode 100644 services/networkedgev1/model_rma_vendor_config.go create mode 100644 services/networkedgev1/model_secondary_device_delete_request.go create mode 100644 services/networkedgev1/model_self_configured_config.go create mode 100644 services/networkedgev1/model_self_configured_config_license_options.go create mode 100644 services/networkedgev1/model_service_info.go create mode 100644 services/networkedgev1/model_software_package.go create mode 100644 services/networkedgev1/model_speed_band.go create mode 100644 services/networkedgev1/model_ssh_user_create_request.go create mode 100644 services/networkedgev1/model_ssh_user_create_response.go create mode 100644 services/networkedgev1/model_ssh_user_info_dissociate_response.go create mode 100644 services/networkedgev1/model_ssh_user_info_verbose.go create mode 100644 services/networkedgev1/model_ssh_user_operation_request.go create mode 100644 services/networkedgev1/model_ssh_user_operation_request_action.go create mode 100644 services/networkedgev1/model_ssh_user_page_response.go create mode 100644 services/networkedgev1/model_ssh_user_update_request.go create mode 100644 services/networkedgev1/model_ssh_users.go create mode 100644 services/networkedgev1/model_stack_trace_element.go create mode 100644 services/networkedgev1/model_supported_services_config.go create mode 100644 services/networkedgev1/model_throughput.go create mode 100644 services/networkedgev1/model_throughput_config.go create mode 100644 services/networkedgev1/model_throwable.go create mode 100644 services/networkedgev1/model_update_device_acl_template_request.go create mode 100644 services/networkedgev1/model_upgrade_core_request_details.go create mode 100644 services/networkedgev1/model_user_public_key_config.go create mode 100644 services/networkedgev1/model_user_public_key_request.go create mode 100644 services/networkedgev1/model_vendor_config.go create mode 100644 services/networkedgev1/model_vendor_config_details_node0.go create mode 100644 services/networkedgev1/model_vendor_config_details_node1.go create mode 100644 services/networkedgev1/model_vendor_terms_response.go create mode 100644 services/networkedgev1/model_version_details.go create mode 100644 services/networkedgev1/model_virtual_devic_ha_request.go create mode 100644 services/networkedgev1/model_virtual_devic_ha_request_notifications_inner.go create mode 100644 services/networkedgev1/model_virtual_device_acl_details.go create mode 100644 services/networkedgev1/model_virtual_device_create_response.go create mode 100644 services/networkedgev1/model_virtual_device_create_response_dto.go create mode 100644 services/networkedgev1/model_virtual_device_delete_request.go create mode 100644 services/networkedgev1/model_virtual_device_details_response.go create mode 100644 services/networkedgev1/model_virtual_device_internal_patch_request_dto.go create mode 100644 services/networkedgev1/model_virtual_device_internal_patch_request_dto_vendor_config.go create mode 100644 services/networkedgev1/model_virtual_device_page_response.go create mode 100644 services/networkedgev1/model_virtual_device_request.go create mode 100644 services/networkedgev1/model_virtual_device_type.go create mode 100644 services/networkedgev1/model_virtual_device_type_device_management_types.go create mode 100644 services/networkedgev1/model_vpn.go create mode 100644 services/networkedgev1/model_vpn_request.go create mode 100644 services/networkedgev1/model_vpn_response.go create mode 100644 services/networkedgev1/model_vpn_response_dto.go create mode 100644 services/networkedgev1/response.go create mode 100644 services/networkedgev1/test/api_acl_template_test.go create mode 100644 services/networkedgev1/test/api_bgp_test.go create mode 100644 services/networkedgev1/test/api_device_backup_restore_test.go create mode 100644 services/networkedgev1/test/api_device_link_test.go create mode 100644 services/networkedgev1/test/api_device_rma_test.go create mode 100644 services/networkedgev1/test/api_layer2_connections_service_profiles_test.go create mode 100644 services/networkedgev1/test/api_licensing_test.go create mode 100644 services/networkedgev1/test/api_setup_test.go create mode 100644 services/networkedgev1/test/api_ssh_user_test.go create mode 100644 services/networkedgev1/test/api_virtual_device_test.go create mode 100644 services/networkedgev1/test/api_vpn_test.go create mode 100644 services/networkedgev1/utils.go diff --git a/services/networkedgev1/.gitignore b/services/networkedgev1/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/services/networkedgev1/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/services/networkedgev1/.openapi-generator-ignore b/services/networkedgev1/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/services/networkedgev1/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/services/networkedgev1/README.md b/services/networkedgev1/README.md new file mode 100644 index 00000000..2ba13e1d --- /dev/null +++ b/services/networkedgev1/README.md @@ -0,0 +1,351 @@ +# Go API client for networkedgev1 + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.0 +- Package version: 0.46.0 +- Generator version: 7.4.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import networkedgev1 "github.com/equinix/equinix-sdk-go/services/networkedgev1" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `networkedgev1.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), networkedgev1.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `networkedgev1.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), networkedgev1.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `networkedgev1.ContextOperationServerIndices` and `networkedgev1.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), networkedgev1.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), networkedgev1.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.equinix.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ACLTemplateApi* | [**CreateDeviceACLTemplateUsingPost**](docs/ACLTemplateApi.md#createdeviceacltemplateusingpost) | **Post** /ne/v1/aclTemplates | Create ACL Template +*ACLTemplateApi* | [**DeletedeviceACLUsingDELETE**](docs/ACLTemplateApi.md#deletedeviceaclusingdelete) | **Delete** /ne/v1/aclTemplates/{uuid} | Delete ACL template +*ACLTemplateApi* | [**GetDeviceACLTemplateUsingGET1**](docs/ACLTemplateApi.md#getdeviceacltemplateusingget1) | **Get** /ne/v1/aclTemplates | Get ACL Templates +*ACLTemplateApi* | [**GetDeviceTemplatebyUuid**](docs/ACLTemplateApi.md#getdevicetemplatebyuuid) | **Get** /ne/v1/aclTemplates/{uuid} | Get ACL Template {uuid} +*ACLTemplateApi* | [**GetDeviceTemplatesbyUuid**](docs/ACLTemplateApi.md#getdevicetemplatesbyuuid) | **Get** /ne/v1/devices/{virtualDeviceUuid}/acl | Get ACL of Virtual Device +*ACLTemplateApi* | [**PatchDeviceTemplatesbyUuid**](docs/ACLTemplateApi.md#patchdevicetemplatesbyuuid) | **Patch** /ne/v1/devices/{virtualDeviceUuid}/acl | Update ACL of Virtual Device +*ACLTemplateApi* | [**PostDeviceTemplatesbyUuid**](docs/ACLTemplateApi.md#postdevicetemplatesbyuuid) | **Post** /ne/v1/devices/{virtualDeviceUuid}/acl | Add ACL to Virtual Device +*ACLTemplateApi* | [**SendDnsLookupPOST1**](docs/ACLTemplateApi.md#senddnslookuppost1) | **Post** /ne/v1/dnsLookup | Post DNS Lookup +*ACLTemplateApi* | [**UpdateDeviceACLTemplateUsingPUT**](docs/ACLTemplateApi.md#updatedeviceacltemplateusingput) | **Put** /ne/v1/aclTemplates/{uuid} | Update ACL Template +*BGPApi* | [**AddBgpConfigurationUsingPOST**](docs/BGPApi.md#addbgpconfigurationusingpost) | **Post** /ne/v1/bgp | Create BGP Peering +*BGPApi* | [**GetBgpConfigurationUsingGET**](docs/BGPApi.md#getbgpconfigurationusingget) | **Get** /ne/v1/bgp/{uuid} | Get BGP Peering {uuid} +*BGPApi* | [**GetBgpConfigurationsUsingGET**](docs/BGPApi.md#getbgpconfigurationsusingget) | **Get** /ne/v1/bgp | Get BGP Peering +*BGPApi* | [**UpdateBgpConfigurationUsingPUT**](docs/BGPApi.md#updatebgpconfigurationusingput) | **Put** /ne/v1/bgp/{uuid} | Update BGP Peering +*DeviceBackupRestoreApi* | [**CheckDetailsOfBackupsUsingGET**](docs/DeviceBackupRestoreApi.md#checkdetailsofbackupsusingget) | **Get** /ne/v1/devices/{uuid}/restoreAnalysis | Checks Feasibility of Restore +*DeviceBackupRestoreApi* | [**CreateDeviceBackupUsingPOST**](docs/DeviceBackupRestoreApi.md#createdevicebackupusingpost) | **Post** /ne/v1/deviceBackups | Creates Device Backup +*DeviceBackupRestoreApi* | [**DeleteDeviceBackupUsingDELETE**](docs/DeviceBackupRestoreApi.md#deletedevicebackupusingdelete) | **Delete** /ne/v1/deviceBackups/{uuid} | Delete Backup of Device +*DeviceBackupRestoreApi* | [**DownloadDetailsOfBackupsUsingGET**](docs/DeviceBackupRestoreApi.md#downloaddetailsofbackupsusingget) | **Get** /ne/v1/deviceBackups/{uuid}/download | Download a Backup +*DeviceBackupRestoreApi* | [**GetDetailsOfBackupsUsingGET**](docs/DeviceBackupRestoreApi.md#getdetailsofbackupsusingget) | **Get** /ne/v1/deviceBackups/{uuid} | Get Backups of Device {uuid} +*DeviceBackupRestoreApi* | [**GetDeviceBackupsUsingGET**](docs/DeviceBackupRestoreApi.md#getdevicebackupsusingget) | **Get** /ne/v1/deviceBackups | Get Backups of Device +*DeviceBackupRestoreApi* | [**RestoreDeviceBackupUsingPATCH**](docs/DeviceBackupRestoreApi.md#restoredevicebackupusingpatch) | **Patch** /ne/v1/devices/{uuid}/restore | Restores a backup +*DeviceBackupRestoreApi* | [**UpdateDeviceBackupUsingPATCH**](docs/DeviceBackupRestoreApi.md#updatedevicebackupusingpatch) | **Patch** /ne/v1/deviceBackups/{uuid} | Update Device Backup +*DeviceLinkApi* | [**CreateLinkGroupUsingPOST**](docs/DeviceLinkApi.md#createlinkgroupusingpost) | **Post** /ne/v1/links | Create Device Link +*DeviceLinkApi* | [**DeleteLinkGroupUsingDELETE**](docs/DeviceLinkApi.md#deletelinkgroupusingdelete) | **Delete** /ne/v1/links/{uuid} | Delete Device Link +*DeviceLinkApi* | [**GetLinkGroupByUUIDUsingGET**](docs/DeviceLinkApi.md#getlinkgroupbyuuidusingget) | **Get** /ne/v1/links/{uuid} | Get Device Link {uuid} +*DeviceLinkApi* | [**GetLinkGroupsUsingGET1**](docs/DeviceLinkApi.md#getlinkgroupsusingget1) | **Get** /ne/v1/links | Get Device Links. +*DeviceLinkApi* | [**UpdateLinkGroupUsingPATCH**](docs/DeviceLinkApi.md#updatelinkgroupusingpatch) | **Patch** /ne/v1/links/{uuid} | Update Device Link +*DeviceRMAApi* | [**PostDeviceRMAUsingPOST**](docs/DeviceRMAApi.md#postdevicermausingpost) | **Post** /ne/v1/devices/{virtualDeviceUuid}/rma | Trigger Device RMA +*Layer2ConnectionsServiceProfilesApi* | [**CreateConnectionUsingPOST**](docs/Layer2ConnectionsServiceProfilesApi.md#createconnectionusingpost) | **Post** /ne/v1/l2/connections | Create L2 Connection +*Layer2ConnectionsServiceProfilesApi* | [**DeleteConnectionUsingDELETE**](docs/Layer2ConnectionsServiceProfilesApi.md#deleteconnectionusingdelete) | **Delete** /ne/v1/l2/connections/{uuid} | Delete Connection {uuid} +*Layer2ConnectionsServiceProfilesApi* | [**GetConnectionByUuidUsingGET**](docs/Layer2ConnectionsServiceProfilesApi.md#getconnectionbyuuidusingget) | **Get** /ne/v1/l2/connections/{uuid} | Get L2 Connection {uuid} +*Layer2ConnectionsServiceProfilesApi* | [**GetConnectionsByGET**](docs/Layer2ConnectionsServiceProfilesApi.md#getconnectionsbyget) | **Get** /ne/v1/l2/buyer/connections | Get L2 Buyer Connections +*Layer2ConnectionsServiceProfilesApi* | [**GetProfileByIdUsingGET**](docs/Layer2ConnectionsServiceProfilesApi.md#getprofilebyidusingget) | **Get** /ne/v1/l2/serviceprofiles/services/{uuid} | Get L2 Service Profile {uuid} +*Layer2ConnectionsServiceProfilesApi* | [**GetProfilesByMetroUsingGET**](docs/Layer2ConnectionsServiceProfilesApi.md#getprofilesbymetrousingget) | **Get** /ne/v1/l2/serviceprofiles/services | Get L2 Service Profiles +*Layer2ConnectionsServiceProfilesApi* | [**PerformUserActionUsingPATCH**](docs/Layer2ConnectionsServiceProfilesApi.md#performuseractionusingpatch) | **Patch** /ne/v1/l2/connections/{uuid} | Update Connection {uuid} +*Layer2ConnectionsServiceProfilesApi* | [**ValidateAuthorizationKeyUsingGET**](docs/Layer2ConnectionsServiceProfilesApi.md#validateauthorizationkeyusingget) | **Get** /ne/v1/l2/connections/validateAuthorizationKey | Get L2 Validate Authorization Key +*LicensingApi* | [**UpdateLicenseUsingPOST**](docs/LicensingApi.md#updatelicenseusingpost) | **Put** /ne/v1/devices/{uuid}/licenseTokens | Update License Token/ID/Code +*LicensingApi* | [**UploadLicenseForDeviceUsingPOST**](docs/LicensingApi.md#uploadlicensefordeviceusingpost) | **Post** /ne/v1/devices/licenseFiles/{uuid} | Post License {uuid} +*LicensingApi* | [**UploadLicenseUsingPOST**](docs/LicensingApi.md#uploadlicenseusingpost) | **Post** /ne/v1/devices/licenseFiles | Post License File +*SSHUserApi* | [**AssociateDeviceUsingPOST**](docs/SSHUserApi.md#associatedeviceusingpost) | **Post** /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid} | Update SSH User {uuid} +*SSHUserApi* | [**CreateSshUserUsingPOST**](docs/SSHUserApi.md#createsshuserusingpost) | **Post** /ne/v1/sshUsers | Create SSH User +*SSHUserApi* | [**DissociateDeviceUsingDELETE**](docs/SSHUserApi.md#dissociatedeviceusingdelete) | **Delete** /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid} | Delete SSH User +*SSHUserApi* | [**GetSshUserUsingGET**](docs/SSHUserApi.md#getsshuserusingget) | **Get** /ne/v1/sshUsers/{uuid} | Get SSH User {uuid} +*SSHUserApi* | [**GetSshUsersUsingGET**](docs/SSHUserApi.md#getsshusersusingget) | **Get** /ne/v1/sshUsers | Get SSH Users +*SSHUserApi* | [**IsSshUserAvailableForCreationUsingGET**](docs/SSHUserApi.md#issshuseravailableforcreationusingget) | **Get** /ne/v1/sshUsers/availability | Check SSH Username Availability +*SSHUserApi* | [**UpdateSshUserUsingPUT**](docs/SSHUserApi.md#updatesshuserusingput) | **Put** /ne/v1/sshUsers/{uuid} | Update SSH User Password +*SetupApi* | [**GetAccountsWithStatusUsingGET**](docs/SetupApi.md#getaccountswithstatususingget) | **Get** /ne/v1/accounts/{metro} | Get Accounts {metro} +*SetupApi* | [**GetAgreementStatusUsingGET**](docs/SetupApi.md#getagreementstatususingget) | **Get** /ne/v1/agreements/accounts | Get Agreement Status. +*SetupApi* | [**GetAllowedInterfacesUsingGET**](docs/SetupApi.md#getallowedinterfacesusingget) | **Get** /ne/v1/deviceTypes/{deviceType}/interfaces | Get Allowed Interfaces +*SetupApi* | [**GetMetrosUsingGET**](docs/SetupApi.md#getmetrosusingget) | **Get** /ne/v1/metros | Get Available Metros +*SetupApi* | [**GetNotificationsUsingGET**](docs/SetupApi.md#getnotificationsusingget) | **Get** /ne/v1/notifications | Get Downtime Notifications +*SetupApi* | [**GetOrderSummaryUsingGET**](docs/SetupApi.md#getordersummaryusingget) | **Get** /ne/v1/orderSummaries | Get Order Summary +*SetupApi* | [**GetOrderTermsUsingGET**](docs/SetupApi.md#getordertermsusingget) | **Get** /ne/v1/agreements/orders | Get Order Terms +*SetupApi* | [**GetPublicKeysUsingGET**](docs/SetupApi.md#getpublickeysusingget) | **Get** /ne/v1/publicKeys | Get Public Keys +*SetupApi* | [**GetVendorTermsUsingGET**](docs/SetupApi.md#getvendortermsusingget) | **Get** /ne/v1/agreements/vendors | Get Vendor Terms +*SetupApi* | [**GetVirtualDevicesUsingGET**](docs/SetupApi.md#getvirtualdevicesusingget) | **Get** /ne/v1/deviceTypes | Get Device Types +*SetupApi* | [**PostPublicKeyUsingPOST**](docs/SetupApi.md#postpublickeyusingpost) | **Post** /ne/v1/publicKeys | Create Public Key +*SetupApi* | [**RetrievePriceUsingGET**](docs/SetupApi.md#retrievepriceusingget) | **Get** /ne/v1/prices | Get the Price +*SetupApi* | [**SendAgreementUsingPOST1**](docs/SetupApi.md#sendagreementusingpost1) | **Post** /ne/v1/agreements/accounts | Create an agreement +*SetupApi* | [**UploadFileUsingPOST**](docs/SetupApi.md#uploadfileusingpost) | **Post** /ne/v1/files | Upload File (Post) +*VPNApi* | [**CreateVpnUsingPOST**](docs/VPNApi.md#createvpnusingpost) | **Post** /ne/v1/vpn | Create VPN Configuration +*VPNApi* | [**GetVpnByUuidUsingGET**](docs/VPNApi.md#getvpnbyuuidusingget) | **Get** /ne/v1/vpn/{uuid} | Get VPN Configuration {uuid} +*VPNApi* | [**GetVpnsUsingGET**](docs/VPNApi.md#getvpnsusingget) | **Get** /ne/v1/vpn | Get VPN Configurations +*VPNApi* | [**RemoveVpnConfigurationUsingDELETE**](docs/VPNApi.md#removevpnconfigurationusingdelete) | **Delete** /ne/v1/vpn/{uuid} | Delete VPN Configuration +*VPNApi* | [**UpdateVpnConfigurationUsingPut**](docs/VPNApi.md#updatevpnconfigurationusingput) | **Put** /ne/v1/vpn/{uuid} | Update VPN Configuration +*VirtualDeviceApi* | [**CreateVirtualDeviceUsingPOST**](docs/VirtualDeviceApi.md#createvirtualdeviceusingpost) | **Post** /ne/v1/devices | Create Virtual Device +*VirtualDeviceApi* | [**DeleteVRouterUsingDELETE**](docs/VirtualDeviceApi.md#deletevrouterusingdelete) | **Delete** /ne/v1/devices/{uuid} | Delete Virtual Devices +*VirtualDeviceApi* | [**GetDeviceReloadUsingGET1**](docs/VirtualDeviceApi.md#getdevicereloadusingget1) | **Get** /ne/v1/devices/{virtualDeviceUUID}/softReboot | Device Reload History +*VirtualDeviceApi* | [**GetDeviceUpgradeUsingGET1**](docs/VirtualDeviceApi.md#getdeviceupgradeusingget1) | **Get** /ne/v1/devices/{virtualDeviceUuid}/resourceUpgrade | Get Device Upgrade History +*VirtualDeviceApi* | [**GetInterfaceStatisticsUsingGET**](docs/VirtualDeviceApi.md#getinterfacestatisticsusingget) | **Get** /ne/v1/devices/{virtualDeviceUuid}/interfaces/{interfaceId}/stats | Get Interface Statistics +*VirtualDeviceApi* | [**GetVirtualDeviceInterfacesUsingGET**](docs/VirtualDeviceApi.md#getvirtualdeviceinterfacesusingget) | **Get** /ne/v1/devices/{uuid}/interfaces | Get Device Interfaces +*VirtualDeviceApi* | [**GetVirtualDeviceUsingGET**](docs/VirtualDeviceApi.md#getvirtualdeviceusingget) | **Get** /ne/v1/devices/{uuid} | Get Virtual Device {uuid} +*VirtualDeviceApi* | [**GetVirtualDevicesUsingGET1**](docs/VirtualDeviceApi.md#getvirtualdevicesusingget1) | **Get** /ne/v1/devices | Get Virtual Devices +*VirtualDeviceApi* | [**PingDeviceUsingGET**](docs/VirtualDeviceApi.md#pingdeviceusingget) | **Get** /ne/v1/devices/{uuid}/ping | Ping Virtual Device +*VirtualDeviceApi* | [**PostDeviceReloadUsingPOST1**](docs/VirtualDeviceApi.md#postdevicereloadusingpost1) | **Post** /ne/v1/devices/{virtualDeviceUUID}/softReboot | Trigger Soft Reboot +*VirtualDeviceApi* | [**UpdateAdditionalBandwidth**](docs/VirtualDeviceApi.md#updateadditionalbandwidth) | **Put** /ne/v1/devices/{uuid}/additionalBandwidths | Update Additional Bandwidth +*VirtualDeviceApi* | [**UpdateVirtualDeviceUsingPATCH1**](docs/VirtualDeviceApi.md#updatevirtualdeviceusingpatch1) | **Patch** /ne/v1/devices/{uuid} | Update Virtual Device +*VirtualDeviceApi* | [**UpdateVirtualDeviceUsingPUT**](docs/VirtualDeviceApi.md#updatevirtualdeviceusingput) | **Put** /ne/v1/devices/{uuid} | Update Device Draft + + +## Documentation For Models + + - [ACLDetails](docs/ACLDetails.md) + - [ACLTemplateDetailsResponse](docs/ACLTemplateDetailsResponse.md) + - [AclObject](docs/AclObject.md) + - [AdditionalBandwidthRequest](docs/AdditionalBandwidthRequest.md) + - [AdditionalFieldsConfig](docs/AdditionalFieldsConfig.md) + - [AgreementAcceptRequest](docs/AgreementAcceptRequest.md) + - [AgreementAcceptResponse](docs/AgreementAcceptResponse.md) + - [AgreementStatusResponse](docs/AgreementStatusResponse.md) + - [AllowedInterfaceProfiles](docs/AllowedInterfaceProfiles.md) + - [AllowedInterfaceResponse](docs/AllowedInterfaceResponse.md) + - [BgpAsyncResponse](docs/BgpAsyncResponse.md) + - [BgpConfigAddRequest](docs/BgpConfigAddRequest.md) + - [BgpConnectionInfo](docs/BgpConnectionInfo.md) + - [BgpInfo](docs/BgpInfo.md) + - [BgpUpdateRequest](docs/BgpUpdateRequest.md) + - [Charges](docs/Charges.md) + - [ClusterConfig](docs/ClusterConfig.md) + - [ClusterNodeDetails](docs/ClusterNodeDetails.md) + - [ClusteringDetails](docs/ClusteringDetails.md) + - [CompositePriceResponse](docs/CompositePriceResponse.md) + - [CoresConfig](docs/CoresConfig.md) + - [CoresDisplayConfig](docs/CoresDisplayConfig.md) + - [DNSLookupRequest](docs/DNSLookupRequest.md) + - [DNSLookupResponse](docs/DNSLookupResponse.md) + - [DNSLookupResponseDetails](docs/DNSLookupResponseDetails.md) + - [DefaultAclsConfig](docs/DefaultAclsConfig.md) + - [DeleteConnectionResponse](docs/DeleteConnectionResponse.md) + - [DeviceACLDetailsResponse](docs/DeviceACLDetailsResponse.md) + - [DeviceACLPageResponse](docs/DeviceACLPageResponse.md) + - [DeviceACLTemplateRequest](docs/DeviceACLTemplateRequest.md) + - [DeviceACLTemplatesResponse](docs/DeviceACLTemplatesResponse.md) + - [DeviceBackupCreateRequest](docs/DeviceBackupCreateRequest.md) + - [DeviceBackupCreateResponse](docs/DeviceBackupCreateResponse.md) + - [DeviceBackupInfoVerbose](docs/DeviceBackupInfoVerbose.md) + - [DeviceBackupPageResponse](docs/DeviceBackupPageResponse.md) + - [DeviceBackupRestore](docs/DeviceBackupRestore.md) + - [DeviceBackupUpdateRequest](docs/DeviceBackupUpdateRequest.md) + - [DeviceElement](docs/DeviceElement.md) + - [DeviceInfo](docs/DeviceInfo.md) + - [DeviceLinkGroupDto](docs/DeviceLinkGroupDto.md) + - [DeviceLinkGroupResponse](docs/DeviceLinkGroupResponse.md) + - [DeviceLinkRequest](docs/DeviceLinkRequest.md) + - [DeviceRMAInfo](docs/DeviceRMAInfo.md) + - [DeviceRMAPostRequest](docs/DeviceRMAPostRequest.md) + - [DeviceRebootPageResponse](docs/DeviceRebootPageResponse.md) + - [DeviceRebootResponse](docs/DeviceRebootResponse.md) + - [DeviceUpgradeDetailsResponse](docs/DeviceUpgradeDetailsResponse.md) + - [DeviceUpgradePageResponse](docs/DeviceUpgradePageResponse.md) + - [DowntimeNotification](docs/DowntimeNotification.md) + - [EquinixConfiguredConfig](docs/EquinixConfiguredConfig.md) + - [EquinixConfiguredConfigLicenseOptions](docs/EquinixConfiguredConfigLicenseOptions.md) + - [ErrorMessageResponse](docs/ErrorMessageResponse.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [FieldErrorResponse](docs/FieldErrorResponse.md) + - [FileUploadResponse](docs/FileUploadResponse.md) + - [GETConnectionByUuidResponse](docs/GETConnectionByUuidResponse.md) + - [GETConnectionsPageResponse](docs/GETConnectionsPageResponse.md) + - [GetServProfServicesResp](docs/GetServProfServicesResp.md) + - [GetServProfServicesRespContent](docs/GetServProfServicesRespContent.md) + - [GetServProfServicesRespContentMetros](docs/GetServProfServicesRespContentMetros.md) + - [GetServProfServicesRespContentfeatures](docs/GetServProfServicesRespContentfeatures.md) + - [GetSshUserUsingGET404Response](docs/GetSshUserUsingGET404Response.md) + - [GetValidateAuthKeyRes](docs/GetValidateAuthKeyRes.md) + - [GetValidateAuthkeyresPrimary](docs/GetValidateAuthkeyresPrimary.md) + - [GetValidateAuthkeyresSecondary](docs/GetValidateAuthkeyresSecondary.md) + - [GetVpnByUuidUsingGET404Response](docs/GetVpnByUuidUsingGET404Response.md) + - [GetVpnsUsingGETStatusListParameterInner](docs/GetVpnsUsingGETStatusListParameterInner.md) + - [ImpactedServices](docs/ImpactedServices.md) + - [InboundRules](docs/InboundRules.md) + - [InitialDeviceACLResponse](docs/InitialDeviceACLResponse.md) + - [InterfaceBasicInfoResponse](docs/InterfaceBasicInfoResponse.md) + - [InterfaceDetails](docs/InterfaceDetails.md) + - [InterfaceStatsDetailObject](docs/InterfaceStatsDetailObject.md) + - [InterfaceStatsObject](docs/InterfaceStatsObject.md) + - [InterfaceStatsofTraffic](docs/InterfaceStatsofTraffic.md) + - [JsonNode](docs/JsonNode.md) + - [JsonNodeNodeType](docs/JsonNodeNodeType.md) + - [LicenseOptions](docs/LicenseOptions.md) + - [LicenseOptionsConfig](docs/LicenseOptionsConfig.md) + - [LicenseUpdateRequest](docs/LicenseUpdateRequest.md) + - [LicenseUploadResponse](docs/LicenseUploadResponse.md) + - [LinkDeviceInfo](docs/LinkDeviceInfo.md) + - [LinkDeviceResponse](docs/LinkDeviceResponse.md) + - [LinkInfo](docs/LinkInfo.md) + - [LinkInfoResponse](docs/LinkInfoResponse.md) + - [LinksPageResponse](docs/LinksPageResponse.md) + - [Metro](docs/Metro.md) + - [MetroAccountResponse](docs/MetroAccountResponse.md) + - [MetroResponse](docs/MetroResponse.md) + - [MetroStatus](docs/MetroStatus.md) + - [Node0Details](docs/Node0Details.md) + - [Node1Details](docs/Node1Details.md) + - [OrderSummaryResponse](docs/OrderSummaryResponse.md) + - [OrderTermsResponse](docs/OrderTermsResponse.md) + - [PackageCodes](docs/PackageCodes.md) + - [PageResponse](docs/PageResponse.md) + - [PageResponseDto](docs/PageResponseDto.md) + - [PageResponseDtoMetroAccountResponse](docs/PageResponseDtoMetroAccountResponse.md) + - [PageResponseDtoMetroResponse](docs/PageResponseDtoMetroResponse.md) + - [PageResponseDtoVirtualDeviceType](docs/PageResponseDtoVirtualDeviceType.md) + - [PageResponsePublicKeys](docs/PageResponsePublicKeys.md) + - [PaginationResponseDto](docs/PaginationResponseDto.md) + - [PatchRequest](docs/PatchRequest.md) + - [PolledThroughputMetrics](docs/PolledThroughputMetrics.md) + - [PostConnectionRequest](docs/PostConnectionRequest.md) + - [PostConnectionResponse](docs/PostConnectionResponse.md) + - [PreviousBackups](docs/PreviousBackups.md) + - [PriceResponse](docs/PriceResponse.md) + - [PricingSiebelConfig](docs/PricingSiebelConfig.md) + - [PricingSiebelConfigPrimary](docs/PricingSiebelConfigPrimary.md) + - [PricingSiebelConfigSecondary](docs/PricingSiebelConfigSecondary.md) + - [PublicKeyRequest](docs/PublicKeyRequest.md) + - [RMAVendorConfig](docs/RMAVendorConfig.md) + - [RestoreBackupInfoVerbose](docs/RestoreBackupInfoVerbose.md) + - [RestoreBackupInfoVerboseDeviceBackup](docs/RestoreBackupInfoVerboseDeviceBackup.md) + - [RestoreBackupInfoVerboseServices](docs/RestoreBackupInfoVerboseServices.md) + - [RmaDetailObject](docs/RmaDetailObject.md) + - [SecondaryDeviceDeleteRequest](docs/SecondaryDeviceDeleteRequest.md) + - [SelfConfiguredConfig](docs/SelfConfiguredConfig.md) + - [SelfConfiguredConfigLicenseOptions](docs/SelfConfiguredConfigLicenseOptions.md) + - [ServiceInfo](docs/ServiceInfo.md) + - [SoftwarePackage](docs/SoftwarePackage.md) + - [SpeedBand](docs/SpeedBand.md) + - [SshUserCreateRequest](docs/SshUserCreateRequest.md) + - [SshUserCreateResponse](docs/SshUserCreateResponse.md) + - [SshUserInfoDissociateResponse](docs/SshUserInfoDissociateResponse.md) + - [SshUserInfoVerbose](docs/SshUserInfoVerbose.md) + - [SshUserOperationRequest](docs/SshUserOperationRequest.md) + - [SshUserOperationRequestAction](docs/SshUserOperationRequestAction.md) + - [SshUserPageResponse](docs/SshUserPageResponse.md) + - [SshUserUpdateRequest](docs/SshUserUpdateRequest.md) + - [SshUsers](docs/SshUsers.md) + - [StackTraceElement](docs/StackTraceElement.md) + - [SupportedServicesConfig](docs/SupportedServicesConfig.md) + - [Throughput](docs/Throughput.md) + - [ThroughputConfig](docs/ThroughputConfig.md) + - [Throwable](docs/Throwable.md) + - [UpdateDeviceACLTemplateRequest](docs/UpdateDeviceACLTemplateRequest.md) + - [UpgradeCoreRequestDetails](docs/UpgradeCoreRequestDetails.md) + - [UserPublicKeyConfig](docs/UserPublicKeyConfig.md) + - [UserPublicKeyRequest](docs/UserPublicKeyRequest.md) + - [VendorConfig](docs/VendorConfig.md) + - [VendorConfigDetailsNode0](docs/VendorConfigDetailsNode0.md) + - [VendorConfigDetailsNode1](docs/VendorConfigDetailsNode1.md) + - [VendorTermsResponse](docs/VendorTermsResponse.md) + - [VersionDetails](docs/VersionDetails.md) + - [VirtualDevicHARequest](docs/VirtualDevicHARequest.md) + - [VirtualDevicHARequestNotificationsInner](docs/VirtualDevicHARequestNotificationsInner.md) + - [VirtualDeviceACLDetails](docs/VirtualDeviceACLDetails.md) + - [VirtualDeviceCreateResponse](docs/VirtualDeviceCreateResponse.md) + - [VirtualDeviceCreateResponseDto](docs/VirtualDeviceCreateResponseDto.md) + - [VirtualDeviceDeleteRequest](docs/VirtualDeviceDeleteRequest.md) + - [VirtualDeviceDetailsResponse](docs/VirtualDeviceDetailsResponse.md) + - [VirtualDeviceInternalPatchRequestDto](docs/VirtualDeviceInternalPatchRequestDto.md) + - [VirtualDeviceInternalPatchRequestDtoVendorConfig](docs/VirtualDeviceInternalPatchRequestDtoVendorConfig.md) + - [VirtualDevicePageResponse](docs/VirtualDevicePageResponse.md) + - [VirtualDeviceRequest](docs/VirtualDeviceRequest.md) + - [VirtualDeviceType](docs/VirtualDeviceType.md) + - [VirtualDeviceTypeDeviceManagementTypes](docs/VirtualDeviceTypeDeviceManagementTypes.md) + - [Vpn](docs/Vpn.md) + - [VpnRequest](docs/VpnRequest.md) + - [VpnResponse](docs/VpnResponse.md) + - [VpnResponseDto](docs/VpnResponseDto.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +api-support@equinix.com + diff --git a/services/networkedgev1/api_acl_template.go b/services/networkedgev1/api_acl_template.go new file mode 100644 index 00000000..0ffe5d20 --- /dev/null +++ b/services/networkedgev1/api_acl_template.go @@ -0,0 +1,1335 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ACLTemplateApiService ACLTemplateApi service +type ACLTemplateApiService service + +type ApiCreateDeviceACLTemplateUsingPostRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + authorization *string + aclTemplateRequest *DeviceACLTemplateRequest + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateDeviceACLTemplateUsingPostRequest) Authorization(authorization string) ApiCreateDeviceACLTemplateUsingPostRequest { + r.authorization = &authorization + return r +} + +// Creates an ACL template. +func (r ApiCreateDeviceACLTemplateUsingPostRequest) AclTemplateRequest(aclTemplateRequest DeviceACLTemplateRequest) ApiCreateDeviceACLTemplateUsingPostRequest { + r.aclTemplateRequest = &aclTemplateRequest + return r +} + +// A reseller creating an ACL template for a customer can pass the accountUcmId of the customer. +func (r ApiCreateDeviceACLTemplateUsingPostRequest) AccountUcmId(accountUcmId string) ApiCreateDeviceACLTemplateUsingPostRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiCreateDeviceACLTemplateUsingPostRequest) Execute() (*VirtualDeviceCreateResponse, *http.Response, error) { + return r.ApiService.CreateDeviceACLTemplateUsingPostExecute(r) +} + +/* +CreateDeviceACLTemplateUsingPost Create ACL Template + +Creates ACL templates. You can find the unique ID of the ACL template in the location header. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDeviceACLTemplateUsingPostRequest +*/ +func (a *ACLTemplateApiService) CreateDeviceACLTemplateUsingPost(ctx context.Context) ApiCreateDeviceACLTemplateUsingPostRequest { + return ApiCreateDeviceACLTemplateUsingPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return VirtualDeviceCreateResponse +func (a *ACLTemplateApiService) CreateDeviceACLTemplateUsingPostExecute(r ApiCreateDeviceACLTemplateUsingPostRequest) (*VirtualDeviceCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceCreateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.CreateDeviceACLTemplateUsingPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/aclTemplates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.aclTemplateRequest == nil { + return localVarReturnValue, nil, reportError("aclTemplateRequest is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.aclTemplateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeletedeviceACLUsingDELETERequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + uuid string + authorization *string + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeletedeviceACLUsingDELETERequest) Authorization(authorization string) ApiDeletedeviceACLUsingDELETERequest { + r.authorization = &authorization + return r +} + +// A reseller deleting an ACL template for a customer must pass the accountUcmId of the customer. +func (r ApiDeletedeviceACLUsingDELETERequest) AccountUcmId(accountUcmId string) ApiDeletedeviceACLUsingDELETERequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiDeletedeviceACLUsingDELETERequest) Execute() (*http.Response, error) { + return r.ApiService.DeletedeviceACLUsingDELETEExecute(r) +} + +/* +DeletedeviceACLUsingDELETE Delete ACL template + +Deletes an ACL template. You must provide the unique Id of the ACL template as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of an ACL template + @return ApiDeletedeviceACLUsingDELETERequest +*/ +func (a *ACLTemplateApiService) DeletedeviceACLUsingDELETE(ctx context.Context, uuid string) ApiDeletedeviceACLUsingDELETERequest { + return ApiDeletedeviceACLUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *ACLTemplateApiService) DeletedeviceACLUsingDELETEExecute(r ApiDeletedeviceACLUsingDELETERequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.DeletedeviceACLUsingDELETE") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/aclTemplates/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetDeviceACLTemplateUsingGET1Request struct { + ctx context.Context + ApiService *ACLTemplateApiService + authorization *string + offset *string + limit *string + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceACLTemplateUsingGET1Request) Authorization(authorization string) ApiGetDeviceACLTemplateUsingGET1Request { + r.authorization = &authorization + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetDeviceACLTemplateUsingGET1Request) Offset(offset string) ApiGetDeviceACLTemplateUsingGET1Request { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetDeviceACLTemplateUsingGET1Request) Limit(limit string) ApiGetDeviceACLTemplateUsingGET1Request { + r.limit = &limit + return r +} + +// Unique ID of the account. A reseller querying for the ACLs of a customer should input the accountUcmId of the customer. +func (r ApiGetDeviceACLTemplateUsingGET1Request) AccountUcmId(accountUcmId string) ApiGetDeviceACLTemplateUsingGET1Request { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiGetDeviceACLTemplateUsingGET1Request) Execute() (*DeviceACLPageResponse, *http.Response, error) { + return r.ApiService.GetDeviceACLTemplateUsingGET1Execute(r) +} + +/* +GetDeviceACLTemplateUsingGET1 Get ACL Templates + +Returns all ACL templates. The ACL templates list the networks that require access to the device. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDeviceACLTemplateUsingGET1Request +*/ +func (a *ACLTemplateApiService) GetDeviceACLTemplateUsingGET1(ctx context.Context) ApiGetDeviceACLTemplateUsingGET1Request { + return ApiGetDeviceACLTemplateUsingGET1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DeviceACLPageResponse +func (a *ACLTemplateApiService) GetDeviceACLTemplateUsingGET1Execute(r ApiGetDeviceACLTemplateUsingGET1Request) (*DeviceACLPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceACLPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.GetDeviceACLTemplateUsingGET1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/aclTemplates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDeviceTemplatebyUuidRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceTemplatebyUuidRequest) Authorization(authorization string) ApiGetDeviceTemplatebyUuidRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetDeviceTemplatebyUuidRequest) Execute() (*ACLTemplateDetailsResponse, *http.Response, error) { + return r.ApiService.GetDeviceTemplatebyUuidExecute(r) +} + +/* +GetDeviceTemplatebyUuid Get ACL Template {uuid} + +Returns details of any existing template. You must provide the unique ID of an existing template as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of an ACL template + @return ApiGetDeviceTemplatebyUuidRequest +*/ +func (a *ACLTemplateApiService) GetDeviceTemplatebyUuid(ctx context.Context, uuid string) ApiGetDeviceTemplatebyUuidRequest { + return ApiGetDeviceTemplatebyUuidRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return ACLTemplateDetailsResponse +func (a *ACLTemplateApiService) GetDeviceTemplatebyUuidExecute(r ApiGetDeviceTemplatebyUuidRequest) (*ACLTemplateDetailsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ACLTemplateDetailsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.GetDeviceTemplatebyUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/aclTemplates/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDeviceTemplatesbyUuidRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + virtualDeviceUuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceTemplatesbyUuidRequest) Authorization(authorization string) ApiGetDeviceTemplatesbyUuidRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetDeviceTemplatesbyUuidRequest) Execute() (*InitialDeviceACLResponse, *http.Response, error) { + return r.ApiService.GetDeviceTemplatesbyUuidExecute(r) +} + +/* +GetDeviceTemplatesbyUuid Get ACL of Virtual Device + +Returns the details of ACL templates associated with a device. You must provide the unique ID of an existing virtual device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique Id of a virtual device. + @return ApiGetDeviceTemplatesbyUuidRequest +*/ +func (a *ACLTemplateApiService) GetDeviceTemplatesbyUuid(ctx context.Context, virtualDeviceUuid string) ApiGetDeviceTemplatesbyUuidRequest { + return ApiGetDeviceTemplatesbyUuidRequest{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + } +} + +// Execute executes the request +// +// @return InitialDeviceACLResponse +func (a *ACLTemplateApiService) GetDeviceTemplatesbyUuidExecute(r ApiGetDeviceTemplatesbyUuidRequest) (*InitialDeviceACLResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InitialDeviceACLResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.GetDeviceTemplatesbyUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/acl" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchDeviceTemplatesbyUuidRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + virtualDeviceUuid string + authorization *string + aclTemplateRequest *UpdateDeviceACLTemplateRequest + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPatchDeviceTemplatesbyUuidRequest) Authorization(authorization string) ApiPatchDeviceTemplatesbyUuidRequest { + r.authorization = &authorization + return r +} + +// Update the ACL of a device. +func (r ApiPatchDeviceTemplatesbyUuidRequest) AclTemplateRequest(aclTemplateRequest UpdateDeviceACLTemplateRequest) ApiPatchDeviceTemplatesbyUuidRequest { + r.aclTemplateRequest = &aclTemplateRequest + return r +} + +// A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. +func (r ApiPatchDeviceTemplatesbyUuidRequest) AccountUcmId(accountUcmId string) ApiPatchDeviceTemplatesbyUuidRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiPatchDeviceTemplatesbyUuidRequest) Execute() (*http.Response, error) { + return r.ApiService.PatchDeviceTemplatesbyUuidExecute(r) +} + +/* +PatchDeviceTemplatesbyUuid Update ACL of Virtual Device + +Updates or removes the details of ACL templates associated with a device. You must provide the unique ID of an existing virtual device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique Id of a virtual device. + @return ApiPatchDeviceTemplatesbyUuidRequest +*/ +func (a *ACLTemplateApiService) PatchDeviceTemplatesbyUuid(ctx context.Context, virtualDeviceUuid string) ApiPatchDeviceTemplatesbyUuidRequest { + return ApiPatchDeviceTemplatesbyUuidRequest{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + } +} + +// Execute executes the request +func (a *ACLTemplateApiService) PatchDeviceTemplatesbyUuidExecute(r ApiPatchDeviceTemplatesbyUuidRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.PatchDeviceTemplatesbyUuid") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/acl" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.aclTemplateRequest == nil { + return nil, reportError("aclTemplateRequest is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.aclTemplateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPostDeviceTemplatesbyUuidRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + virtualDeviceUuid string + authorization *string + aclTemplateRequest *UpdateDeviceACLTemplateRequest + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPostDeviceTemplatesbyUuidRequest) Authorization(authorization string) ApiPostDeviceTemplatesbyUuidRequest { + r.authorization = &authorization + return r +} + +// Update the ACL of a device. +func (r ApiPostDeviceTemplatesbyUuidRequest) AclTemplateRequest(aclTemplateRequest UpdateDeviceACLTemplateRequest) ApiPostDeviceTemplatesbyUuidRequest { + r.aclTemplateRequest = &aclTemplateRequest + return r +} + +// A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. +func (r ApiPostDeviceTemplatesbyUuidRequest) AccountUcmId(accountUcmId string) ApiPostDeviceTemplatesbyUuidRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiPostDeviceTemplatesbyUuidRequest) Execute() (*http.Response, error) { + return r.ApiService.PostDeviceTemplatesbyUuidExecute(r) +} + +/* +PostDeviceTemplatesbyUuid Add ACL to Virtual Device + +Updates the details of ACL templates associated with a device. You must provide the unique ID of an existing virtual device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique Id of a virtual device. + @return ApiPostDeviceTemplatesbyUuidRequest +*/ +func (a *ACLTemplateApiService) PostDeviceTemplatesbyUuid(ctx context.Context, virtualDeviceUuid string) ApiPostDeviceTemplatesbyUuidRequest { + return ApiPostDeviceTemplatesbyUuidRequest{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + } +} + +// Execute executes the request +func (a *ACLTemplateApiService) PostDeviceTemplatesbyUuidExecute(r ApiPostDeviceTemplatesbyUuidRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.PostDeviceTemplatesbyUuid") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/acl" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.aclTemplateRequest == nil { + return nil, reportError("aclTemplateRequest is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.aclTemplateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiSendDnsLookupPOST1Request struct { + ctx context.Context + ApiService *ACLTemplateApiService + authorization *string + dnsLookupRequest *DNSLookupRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiSendDnsLookupPOST1Request) Authorization(authorization string) ApiSendDnsLookupPOST1Request { + r.authorization = &authorization + return r +} + +// dnsLookupRequest +func (r ApiSendDnsLookupPOST1Request) DnsLookupRequest(dnsLookupRequest DNSLookupRequest) ApiSendDnsLookupPOST1Request { + r.dnsLookupRequest = &dnsLookupRequest + return r +} + +func (r ApiSendDnsLookupPOST1Request) Execute() (*DNSLookupResponse, *http.Response, error) { + return r.ApiService.SendDnsLookupPOST1Execute(r) +} + +/* +SendDnsLookupPOST1 Post DNS Lookup + +Call this method to lookup IP addresses associated with domains of a metro or a virtual device. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSendDnsLookupPOST1Request +*/ +func (a *ACLTemplateApiService) SendDnsLookupPOST1(ctx context.Context) ApiSendDnsLookupPOST1Request { + return ApiSendDnsLookupPOST1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DNSLookupResponse +func (a *ACLTemplateApiService) SendDnsLookupPOST1Execute(r ApiSendDnsLookupPOST1Request) (*DNSLookupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DNSLookupResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.SendDnsLookupPOST1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/dnsLookup" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.dnsLookupRequest == nil { + return localVarReturnValue, nil, reportError("dnsLookupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.dnsLookupRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateDeviceACLTemplateUsingPUTRequest struct { + ctx context.Context + ApiService *ACLTemplateApiService + uuid string + authorization *string + aclTemplateRequest *DeviceACLTemplateRequest + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateDeviceACLTemplateUsingPUTRequest) Authorization(authorization string) ApiUpdateDeviceACLTemplateUsingPUTRequest { + r.authorization = &authorization + return r +} + +// Update an ACL template. +func (r ApiUpdateDeviceACLTemplateUsingPUTRequest) AclTemplateRequest(aclTemplateRequest DeviceACLTemplateRequest) ApiUpdateDeviceACLTemplateUsingPUTRequest { + r.aclTemplateRequest = &aclTemplateRequest + return r +} + +// A reseller updating an ACL template for a customer must pass the accountUcmId of the customer. +func (r ApiUpdateDeviceACLTemplateUsingPUTRequest) AccountUcmId(accountUcmId string) ApiUpdateDeviceACLTemplateUsingPUTRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiUpdateDeviceACLTemplateUsingPUTRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateDeviceACLTemplateUsingPUTExecute(r) +} + +/* +UpdateDeviceACLTemplateUsingPUT Update ACL Template + +Updates an ACL template. You must pass the unique Id of the ACL template as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of an ACL template + @return ApiUpdateDeviceACLTemplateUsingPUTRequest +*/ +func (a *ACLTemplateApiService) UpdateDeviceACLTemplateUsingPUT(ctx context.Context, uuid string) ApiUpdateDeviceACLTemplateUsingPUTRequest { + return ApiUpdateDeviceACLTemplateUsingPUTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *ACLTemplateApiService) UpdateDeviceACLTemplateUsingPUTExecute(r ApiUpdateDeviceACLTemplateUsingPUTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLTemplateApiService.UpdateDeviceACLTemplateUsingPUT") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/aclTemplates/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.aclTemplateRequest == nil { + return nil, reportError("aclTemplateRequest is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.aclTemplateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_bgp.go b/services/networkedgev1/api_bgp.go new file mode 100644 index 00000000..f235232c --- /dev/null +++ b/services/networkedgev1/api_bgp.go @@ -0,0 +1,666 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// BGPApiService BGPApi service +type BGPApiService service + +type ApiAddBgpConfigurationUsingPOSTRequest struct { + ctx context.Context + ApiService *BGPApiService + authorization *string + request *BgpConfigAddRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiAddBgpConfigurationUsingPOSTRequest) Authorization(authorization string) ApiAddBgpConfigurationUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// BGP configuration details +func (r ApiAddBgpConfigurationUsingPOSTRequest) Request(request BgpConfigAddRequest) ApiAddBgpConfigurationUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiAddBgpConfigurationUsingPOSTRequest) Execute() (*BgpAsyncResponse, *http.Response, error) { + return r.ApiService.AddBgpConfigurationUsingPOSTExecute(r) +} + +/* +AddBgpConfigurationUsingPOST Create BGP Peering + +Creates a BGP session to establish a point-to-point connection between your virtual device and cloud service provider. To create BGP peers, you must have a virtual device that is provisioned and registered and a provisioned connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddBgpConfigurationUsingPOSTRequest +*/ +func (a *BGPApiService) AddBgpConfigurationUsingPOST(ctx context.Context) ApiAddBgpConfigurationUsingPOSTRequest { + return ApiAddBgpConfigurationUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return BgpAsyncResponse +func (a *BGPApiService) AddBgpConfigurationUsingPOSTExecute(r ApiAddBgpConfigurationUsingPOSTRequest) (*BgpAsyncResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BgpAsyncResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BGPApiService.AddBgpConfigurationUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/bgp" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBgpConfigurationUsingGETRequest struct { + ctx context.Context + ApiService *BGPApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetBgpConfigurationUsingGETRequest) Authorization(authorization string) ApiGetBgpConfigurationUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetBgpConfigurationUsingGETRequest) Execute() (*BgpInfo, *http.Response, error) { + return r.ApiService.GetBgpConfigurationUsingGETExecute(r) +} + +/* +GetBgpConfigurationUsingGET Get BGP Peering {uuid} + +Gets a BGP peering configuration by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetBgpConfigurationUsingGETRequest +*/ +func (a *BGPApiService) GetBgpConfigurationUsingGET(ctx context.Context, uuid string) ApiGetBgpConfigurationUsingGETRequest { + return ApiGetBgpConfigurationUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return BgpInfo +func (a *BGPApiService) GetBgpConfigurationUsingGETExecute(r ApiGetBgpConfigurationUsingGETRequest) (*BgpInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BgpInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BGPApiService.GetBgpConfigurationUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/bgp/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBgpConfigurationsUsingGETRequest struct { + ctx context.Context + ApiService *BGPApiService + authorization *string + virtualDeviceUuid *string + connectionUuid *string + status *string + accountUcmId *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetBgpConfigurationsUsingGETRequest) Authorization(authorization string) ApiGetBgpConfigurationsUsingGETRequest { + r.authorization = &authorization + return r +} + +// Unique Id of a virtual device +func (r ApiGetBgpConfigurationsUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetBgpConfigurationsUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// Unique Id of a connection +func (r ApiGetBgpConfigurationsUsingGETRequest) ConnectionUuid(connectionUuid string) ApiGetBgpConfigurationsUsingGETRequest { + r.connectionUuid = &connectionUuid + return r +} + +// Provisioning status of BGP Peering +func (r ApiGetBgpConfigurationsUsingGETRequest) Status(status string) ApiGetBgpConfigurationsUsingGETRequest { + r.status = &status + return r +} + +// Unique Id of an account. A reseller querying for a customer's devices can input the accountUcmId of the customer's account. +func (r ApiGetBgpConfigurationsUsingGETRequest) AccountUcmId(accountUcmId string) ApiGetBgpConfigurationsUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetBgpConfigurationsUsingGETRequest) Offset(offset string) ApiGetBgpConfigurationsUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetBgpConfigurationsUsingGETRequest) Limit(limit string) ApiGetBgpConfigurationsUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetBgpConfigurationsUsingGETRequest) Execute() (*BgpInfo, *http.Response, error) { + return r.ApiService.GetBgpConfigurationsUsingGETExecute(r) +} + +/* +GetBgpConfigurationsUsingGET Get BGP Peering + +Returns BGP configurations on the Network Edge platform. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBgpConfigurationsUsingGETRequest +*/ +func (a *BGPApiService) GetBgpConfigurationsUsingGET(ctx context.Context) ApiGetBgpConfigurationsUsingGETRequest { + return ApiGetBgpConfigurationsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return BgpInfo +func (a *BGPApiService) GetBgpConfigurationsUsingGETExecute(r ApiGetBgpConfigurationsUsingGETRequest) (*BgpInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BgpInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BGPApiService.GetBgpConfigurationsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/bgp" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.connectionUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connectionUuid", r.connectionUuid, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateBgpConfigurationUsingPUTRequest struct { + ctx context.Context + ApiService *BGPApiService + uuid string + authorization *string + request *BgpUpdateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateBgpConfigurationUsingPUTRequest) Authorization(authorization string) ApiUpdateBgpConfigurationUsingPUTRequest { + r.authorization = &authorization + return r +} + +// BGP config +func (r ApiUpdateBgpConfigurationUsingPUTRequest) Request(request BgpUpdateRequest) ApiUpdateBgpConfigurationUsingPUTRequest { + r.request = &request + return r +} + +func (r ApiUpdateBgpConfigurationUsingPUTRequest) Execute() (*BgpAsyncResponse, *http.Response, error) { + return r.ApiService.UpdateBgpConfigurationUsingPUTExecute(r) +} + +/* +UpdateBgpConfigurationUsingPUT Update BGP Peering + +Updates an existing BGP peering configuration identified by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiUpdateBgpConfigurationUsingPUTRequest +*/ +func (a *BGPApiService) UpdateBgpConfigurationUsingPUT(ctx context.Context, uuid string) ApiUpdateBgpConfigurationUsingPUTRequest { + return ApiUpdateBgpConfigurationUsingPUTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return BgpAsyncResponse +func (a *BGPApiService) UpdateBgpConfigurationUsingPUTExecute(r ApiUpdateBgpConfigurationUsingPUTRequest) (*BgpAsyncResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BgpAsyncResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BGPApiService.UpdateBgpConfigurationUsingPUT") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/bgp/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_device_backup_restore.go b/services/networkedgev1/api_device_backup_restore.go new file mode 100644 index 00000000..dcc0042f --- /dev/null +++ b/services/networkedgev1/api_device_backup_restore.go @@ -0,0 +1,1217 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// DeviceBackupRestoreApiService DeviceBackupRestoreApi service +type DeviceBackupRestoreApiService service + +type ApiCheckDetailsOfBackupsUsingGETRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + backupUuid *string + authorization *string +} + +// Unique ID of a backup +func (r ApiCheckDetailsOfBackupsUsingGETRequest) BackupUuid(backupUuid string) ApiCheckDetailsOfBackupsUsingGETRequest { + r.backupUuid = &backupUuid + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCheckDetailsOfBackupsUsingGETRequest) Authorization(authorization string) ApiCheckDetailsOfBackupsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiCheckDetailsOfBackupsUsingGETRequest) Execute() (*RestoreBackupInfoVerbose, *http.Response, error) { + return r.ApiService.CheckDetailsOfBackupsUsingGETExecute(r) +} + +/* +CheckDetailsOfBackupsUsingGET Checks Feasibility of Restore + +Checks the feasibility of restoring the backup of a virtual device. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of a device + @return ApiCheckDetailsOfBackupsUsingGETRequest +*/ +func (a *DeviceBackupRestoreApiService) CheckDetailsOfBackupsUsingGET(ctx context.Context, uuid string) ApiCheckDetailsOfBackupsUsingGETRequest { + return ApiCheckDetailsOfBackupsUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return RestoreBackupInfoVerbose +func (a *DeviceBackupRestoreApiService) CheckDetailsOfBackupsUsingGETExecute(r ApiCheckDetailsOfBackupsUsingGETRequest) (*RestoreBackupInfoVerbose, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RestoreBackupInfoVerbose + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.CheckDetailsOfBackupsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/restoreAnalysis" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.backupUuid == nil { + return localVarReturnValue, nil, reportError("backupUuid is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "backupUuid", r.backupUuid, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateDeviceBackupUsingPOSTRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + authorization *string + request *DeviceBackupCreateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateDeviceBackupUsingPOSTRequest) Authorization(authorization string) ApiCreateDeviceBackupUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// Device backup info +func (r ApiCreateDeviceBackupUsingPOSTRequest) Request(request DeviceBackupCreateRequest) ApiCreateDeviceBackupUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiCreateDeviceBackupUsingPOSTRequest) Execute() (*SshUserCreateResponse, *http.Response, error) { + return r.ApiService.CreateDeviceBackupUsingPOSTExecute(r) +} + +/* +CreateDeviceBackupUsingPOST Creates Device Backup + +Creates the backup of a virtual device. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDeviceBackupUsingPOSTRequest +*/ +func (a *DeviceBackupRestoreApiService) CreateDeviceBackupUsingPOST(ctx context.Context) ApiCreateDeviceBackupUsingPOSTRequest { + return ApiCreateDeviceBackupUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SshUserCreateResponse +func (a *DeviceBackupRestoreApiService) CreateDeviceBackupUsingPOSTExecute(r ApiCreateDeviceBackupUsingPOSTRequest) (*SshUserCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SshUserCreateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.CreateDeviceBackupUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return localVarReturnValue, nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteDeviceBackupUsingDELETERequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeleteDeviceBackupUsingDELETERequest) Authorization(authorization string) ApiDeleteDeviceBackupUsingDELETERequest { + r.authorization = &authorization + return r +} + +func (r ApiDeleteDeviceBackupUsingDELETERequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteDeviceBackupUsingDELETEExecute(r) +} + +/* +DeleteDeviceBackupUsingDELETE Delete Backup of Device + +Deletes a backup by its unique ID. Authorization checks are performed on users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id a backup + @return ApiDeleteDeviceBackupUsingDELETERequest +*/ +func (a *DeviceBackupRestoreApiService) DeleteDeviceBackupUsingDELETE(ctx context.Context, uuid string) ApiDeleteDeviceBackupUsingDELETERequest { + return ApiDeleteDeviceBackupUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *DeviceBackupRestoreApiService) DeleteDeviceBackupUsingDELETEExecute(r ApiDeleteDeviceBackupUsingDELETERequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.DeleteDeviceBackupUsingDELETE") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDownloadDetailsOfBackupsUsingGETRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDownloadDetailsOfBackupsUsingGETRequest) Authorization(authorization string) ApiDownloadDetailsOfBackupsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiDownloadDetailsOfBackupsUsingGETRequest) Execute() (string, *http.Response, error) { + return r.ApiService.DownloadDetailsOfBackupsUsingGETExecute(r) +} + +/* +DownloadDetailsOfBackupsUsingGET Download a Backup + +Downloads the backup of a device by its backup ID. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of a backup + @return ApiDownloadDetailsOfBackupsUsingGETRequest +*/ +func (a *DeviceBackupRestoreApiService) DownloadDetailsOfBackupsUsingGET(ctx context.Context, uuid string) ApiDownloadDetailsOfBackupsUsingGETRequest { + return ApiDownloadDetailsOfBackupsUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return string +func (a *DeviceBackupRestoreApiService) DownloadDetailsOfBackupsUsingGETExecute(r ApiDownloadDetailsOfBackupsUsingGETRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.DownloadDetailsOfBackupsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups/{uuid}/download" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDetailsOfBackupsUsingGETRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDetailsOfBackupsUsingGETRequest) Authorization(authorization string) ApiGetDetailsOfBackupsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetDetailsOfBackupsUsingGETRequest) Execute() (*DeviceBackupInfoVerbose, *http.Response, error) { + return r.ApiService.GetDetailsOfBackupsUsingGETExecute(r) +} + +/* +GetDetailsOfBackupsUsingGET Get Backups of Device {uuid} + +Returns the details of a backup by its unique ID. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of a backup + @return ApiGetDetailsOfBackupsUsingGETRequest +*/ +func (a *DeviceBackupRestoreApiService) GetDetailsOfBackupsUsingGET(ctx context.Context, uuid string) ApiGetDetailsOfBackupsUsingGETRequest { + return ApiGetDetailsOfBackupsUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return DeviceBackupInfoVerbose +func (a *DeviceBackupRestoreApiService) GetDetailsOfBackupsUsingGETExecute(r ApiGetDetailsOfBackupsUsingGETRequest) (*DeviceBackupInfoVerbose, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBackupInfoVerbose + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.GetDetailsOfBackupsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDeviceBackupsUsingGETRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + virtualDeviceUuid *string + authorization *string + status *[]string + offset *string + limit *string +} + +// Unique ID of a virtual device +func (r ApiGetDeviceBackupsUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetDeviceBackupsUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceBackupsUsingGETRequest) Authorization(authorization string) ApiGetDeviceBackupsUsingGETRequest { + r.authorization = &authorization + return r +} + +// An array of status values +func (r ApiGetDeviceBackupsUsingGETRequest) Status(status []string) ApiGetDeviceBackupsUsingGETRequest { + r.status = &status + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetDeviceBackupsUsingGETRequest) Offset(offset string) ApiGetDeviceBackupsUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetDeviceBackupsUsingGETRequest) Limit(limit string) ApiGetDeviceBackupsUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetDeviceBackupsUsingGETRequest) Execute() (*DeviceBackupPageResponse, *http.Response, error) { + return r.ApiService.GetDeviceBackupsUsingGETExecute(r) +} + +/* +GetDeviceBackupsUsingGET Get Backups of Device + +Returns the backups of a virtual device. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDeviceBackupsUsingGETRequest +*/ +func (a *DeviceBackupRestoreApiService) GetDeviceBackupsUsingGET(ctx context.Context) ApiGetDeviceBackupsUsingGETRequest { + return ApiGetDeviceBackupsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DeviceBackupPageResponse +func (a *DeviceBackupRestoreApiService) GetDeviceBackupsUsingGETExecute(r ApiGetDeviceBackupsUsingGETRequest) (*DeviceBackupPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBackupPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.GetDeviceBackupsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.virtualDeviceUuid == nil { + return localVarReturnValue, nil, reportError("virtualDeviceUuid is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "csv") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRestoreDeviceBackupUsingPATCHRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + authorization *string + request *DeviceBackupUpdateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiRestoreDeviceBackupUsingPATCHRequest) Authorization(authorization string) ApiRestoreDeviceBackupUsingPATCHRequest { + r.authorization = &authorization + return r +} + +// Update device backup +func (r ApiRestoreDeviceBackupUsingPATCHRequest) Request(request DeviceBackupUpdateRequest) ApiRestoreDeviceBackupUsingPATCHRequest { + r.request = &request + return r +} + +func (r ApiRestoreDeviceBackupUsingPATCHRequest) Execute() (*http.Response, error) { + return r.ApiService.RestoreDeviceBackupUsingPATCHExecute(r) +} + +/* +RestoreDeviceBackupUsingPATCH Restores a backup + +Restores any backup of a device. Authorization checks are performed on users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of a backup + @return ApiRestoreDeviceBackupUsingPATCHRequest +*/ +func (a *DeviceBackupRestoreApiService) RestoreDeviceBackupUsingPATCH(ctx context.Context, uuid string) ApiRestoreDeviceBackupUsingPATCHRequest { + return ApiRestoreDeviceBackupUsingPATCHRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *DeviceBackupRestoreApiService) RestoreDeviceBackupUsingPATCHExecute(r ApiRestoreDeviceBackupUsingPATCHRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.RestoreDeviceBackupUsingPATCH") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/restore" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateDeviceBackupUsingPATCHRequest struct { + ctx context.Context + ApiService *DeviceBackupRestoreApiService + uuid string + authorization *string + request *DeviceBackupUpdateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateDeviceBackupUsingPATCHRequest) Authorization(authorization string) ApiUpdateDeviceBackupUsingPATCHRequest { + r.authorization = &authorization + return r +} + +// Update device backup +func (r ApiUpdateDeviceBackupUsingPATCHRequest) Request(request DeviceBackupUpdateRequest) ApiUpdateDeviceBackupUsingPATCHRequest { + r.request = &request + return r +} + +func (r ApiUpdateDeviceBackupUsingPATCHRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateDeviceBackupUsingPATCHExecute(r) +} + +/* +UpdateDeviceBackupUsingPATCH Update Device Backup + +Updates the name of a backup. Authorization checks are performed on users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique ID of a backup + @return ApiUpdateDeviceBackupUsingPATCHRequest +*/ +func (a *DeviceBackupRestoreApiService) UpdateDeviceBackupUsingPATCH(ctx context.Context, uuid string) ApiUpdateDeviceBackupUsingPATCHRequest { + return ApiUpdateDeviceBackupUsingPATCHRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *DeviceBackupRestoreApiService) UpdateDeviceBackupUsingPATCHExecute(r ApiUpdateDeviceBackupUsingPATCHRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceBackupRestoreApiService.UpdateDeviceBackupUsingPATCH") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceBackups/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_device_link.go b/services/networkedgev1/api_device_link.go new file mode 100644 index 00000000..fb7fd9fb --- /dev/null +++ b/services/networkedgev1/api_device_link.go @@ -0,0 +1,794 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// DeviceLinkApiService DeviceLinkApi service +type DeviceLinkApiService service + +type ApiCreateLinkGroupUsingPOSTRequest struct { + ctx context.Context + ApiService *DeviceLinkApiService + authorization *string + deviceLinkGroup *DeviceLinkRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateLinkGroupUsingPOSTRequest) Authorization(authorization string) ApiCreateLinkGroupUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// New Device Link Group +func (r ApiCreateLinkGroupUsingPOSTRequest) DeviceLinkGroup(deviceLinkGroup DeviceLinkRequest) ApiCreateLinkGroupUsingPOSTRequest { + r.deviceLinkGroup = &deviceLinkGroup + return r +} + +func (r ApiCreateLinkGroupUsingPOSTRequest) Execute() (*DeviceLinkGroupResponse, *http.Response, error) { + return r.ApiService.CreateLinkGroupUsingPOSTExecute(r) +} + +/* +CreateLinkGroupUsingPOST Create Device Link + +Call this API to create a device link between virtual devices. You can include any devices that are registered and provisioned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateLinkGroupUsingPOSTRequest +*/ +func (a *DeviceLinkApiService) CreateLinkGroupUsingPOST(ctx context.Context) ApiCreateLinkGroupUsingPOSTRequest { + return ApiCreateLinkGroupUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DeviceLinkGroupResponse +func (a *DeviceLinkApiService) CreateLinkGroupUsingPOSTExecute(r ApiCreateLinkGroupUsingPOSTRequest) (*DeviceLinkGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceLinkGroupResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceLinkApiService.CreateLinkGroupUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/links" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.deviceLinkGroup == nil { + return localVarReturnValue, nil, reportError("deviceLinkGroup is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.deviceLinkGroup + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteLinkGroupUsingDELETERequest struct { + ctx context.Context + ApiService *DeviceLinkApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeleteLinkGroupUsingDELETERequest) Authorization(authorization string) ApiDeleteLinkGroupUsingDELETERequest { + r.authorization = &authorization + return r +} + +func (r ApiDeleteLinkGroupUsingDELETERequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteLinkGroupUsingDELETEExecute(r) +} + +/* +DeleteLinkGroupUsingDELETE Delete Device Link + +This method deletes a device link group. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a device link group. + @return ApiDeleteLinkGroupUsingDELETERequest +*/ +func (a *DeviceLinkApiService) DeleteLinkGroupUsingDELETE(ctx context.Context, uuid string) ApiDeleteLinkGroupUsingDELETERequest { + return ApiDeleteLinkGroupUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *DeviceLinkApiService) DeleteLinkGroupUsingDELETEExecute(r ApiDeleteLinkGroupUsingDELETERequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceLinkApiService.DeleteLinkGroupUsingDELETE") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/links/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetLinkGroupByUUIDUsingGETRequest struct { + ctx context.Context + ApiService *DeviceLinkApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetLinkGroupByUUIDUsingGETRequest) Authorization(authorization string) ApiGetLinkGroupByUUIDUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetLinkGroupByUUIDUsingGETRequest) Execute() (*DeviceLinkGroupDto, *http.Response, error) { + return r.ApiService.GetLinkGroupByUUIDUsingGETExecute(r) +} + +/* +GetLinkGroupByUUIDUsingGET Get Device Link {uuid} + +This API will return a device link by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a device link group. + @return ApiGetLinkGroupByUUIDUsingGETRequest +*/ +func (a *DeviceLinkApiService) GetLinkGroupByUUIDUsingGET(ctx context.Context, uuid string) ApiGetLinkGroupByUUIDUsingGETRequest { + return ApiGetLinkGroupByUUIDUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return DeviceLinkGroupDto +func (a *DeviceLinkApiService) GetLinkGroupByUUIDUsingGETExecute(r ApiGetLinkGroupByUUIDUsingGETRequest) (*DeviceLinkGroupDto, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceLinkGroupDto + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceLinkApiService.GetLinkGroupByUUIDUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/links/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetLinkGroupsUsingGET1Request struct { + ctx context.Context + ApiService *DeviceLinkApiService + authorization *string + metro *string + virtualDeviceUuid *string + accountUcmId *string + groupUuid *string + groupName *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetLinkGroupsUsingGET1Request) Authorization(authorization string) ApiGetLinkGroupsUsingGET1Request { + r.authorization = &authorization + return r +} + +// Metro Code +func (r ApiGetLinkGroupsUsingGET1Request) Metro(metro string) ApiGetLinkGroupsUsingGET1Request { + r.metro = &metro + return r +} + +// Unique Id of a virtual device. +func (r ApiGetLinkGroupsUsingGET1Request) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetLinkGroupsUsingGET1Request { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// Unique Id of the account. A reseller querying for a customer's link groups can pass the accountUcmId of the customer's account. To get the accountUcmId of your customer's account, please check the Equinix account creation portal (ECP) or call Get account API. +func (r ApiGetLinkGroupsUsingGET1Request) AccountUcmId(accountUcmId string) ApiGetLinkGroupsUsingGET1Request { + r.accountUcmId = &accountUcmId + return r +} + +// Unique Id of a link group +func (r ApiGetLinkGroupsUsingGET1Request) GroupUuid(groupUuid string) ApiGetLinkGroupsUsingGET1Request { + r.groupUuid = &groupUuid + return r +} + +// The name of a link group +func (r ApiGetLinkGroupsUsingGET1Request) GroupName(groupName string) ApiGetLinkGroupsUsingGET1Request { + r.groupName = &groupName + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetLinkGroupsUsingGET1Request) Offset(offset string) ApiGetLinkGroupsUsingGET1Request { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetLinkGroupsUsingGET1Request) Limit(limit string) ApiGetLinkGroupsUsingGET1Request { + r.limit = &limit + return r +} + +func (r ApiGetLinkGroupsUsingGET1Request) Execute() ([]LinksPageResponse, *http.Response, error) { + return r.ApiService.GetLinkGroupsUsingGET1Execute(r) +} + +/* +GetLinkGroupsUsingGET1 Get Device Links. + +This method returns device links. You can link any two or more devices that are registered and provisioned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetLinkGroupsUsingGET1Request +*/ +func (a *DeviceLinkApiService) GetLinkGroupsUsingGET1(ctx context.Context) ApiGetLinkGroupsUsingGET1Request { + return ApiGetLinkGroupsUsingGET1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []LinksPageResponse +func (a *DeviceLinkApiService) GetLinkGroupsUsingGET1Execute(r ApiGetLinkGroupsUsingGET1Request) ([]LinksPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []LinksPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceLinkApiService.GetLinkGroupsUsingGET1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/links" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.metro != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metro", r.metro, "") + } + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.groupUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "groupUuid", r.groupUuid, "") + } + if r.groupName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "groupName", r.groupName, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateLinkGroupUsingPATCHRequest struct { + ctx context.Context + ApiService *DeviceLinkApiService + uuid string + authorization *string + deviceLinkGroup *DeviceLinkRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateLinkGroupUsingPATCHRequest) Authorization(authorization string) ApiUpdateLinkGroupUsingPATCHRequest { + r.authorization = &authorization + return r +} + +// Device Link Group +func (r ApiUpdateLinkGroupUsingPATCHRequest) DeviceLinkGroup(deviceLinkGroup DeviceLinkRequest) ApiUpdateLinkGroupUsingPATCHRequest { + r.deviceLinkGroup = &deviceLinkGroup + return r +} + +func (r ApiUpdateLinkGroupUsingPATCHRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateLinkGroupUsingPATCHExecute(r) +} + +/* +UpdateLinkGroupUsingPATCH Update Device Link + +Call this API to update a device link. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a device link group. + @return ApiUpdateLinkGroupUsingPATCHRequest +*/ +func (a *DeviceLinkApiService) UpdateLinkGroupUsingPATCH(ctx context.Context, uuid string) ApiUpdateLinkGroupUsingPATCHRequest { + return ApiUpdateLinkGroupUsingPATCHRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *DeviceLinkApiService) UpdateLinkGroupUsingPATCHExecute(r ApiUpdateLinkGroupUsingPATCHRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceLinkApiService.UpdateLinkGroupUsingPATCH") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/links/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.deviceLinkGroup == nil { + return nil, reportError("deviceLinkGroup is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.deviceLinkGroup + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_device_rma.go b/services/networkedgev1/api_device_rma.go new file mode 100644 index 00000000..a605f10f --- /dev/null +++ b/services/networkedgev1/api_device_rma.go @@ -0,0 +1,171 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// DeviceRMAApiService DeviceRMAApi service +type DeviceRMAApiService service + +type ApiPostDeviceRMAUsingPOSTRequest struct { + ctx context.Context + ApiService *DeviceRMAApiService + virtualDeviceUuid string + authorization *string + request *DeviceRMAPostRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPostDeviceRMAUsingPOSTRequest) Authorization(authorization string) ApiPostDeviceRMAUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// Post RMA request +func (r ApiPostDeviceRMAUsingPOSTRequest) Request(request DeviceRMAPostRequest) ApiPostDeviceRMAUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiPostDeviceRMAUsingPOSTRequest) Execute() (*http.Response, error) { + return r.ApiService.PostDeviceRMAUsingPOSTExecute(r) +} + +/* +PostDeviceRMAUsingPOST Trigger Device RMA + +Triggers a request to create an RMA of a device. The payload to create an RMA is different for different vendors. You will need to enter a license to create an RMA. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique ID of a device + @return ApiPostDeviceRMAUsingPOSTRequest +*/ +func (a *DeviceRMAApiService) PostDeviceRMAUsingPOST(ctx context.Context, virtualDeviceUuid string) ApiPostDeviceRMAUsingPOSTRequest { + return ApiPostDeviceRMAUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + } +} + +// Execute executes the request +func (a *DeviceRMAApiService) PostDeviceRMAUsingPOSTExecute(r ApiPostDeviceRMAUsingPOSTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeviceRMAApiService.PostDeviceRMAUsingPOST") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/rma" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_layer2_connections_service_profiles.go b/services/networkedgev1/api_layer2_connections_service_profiles.go new file mode 100644 index 00000000..64d45521 --- /dev/null +++ b/services/networkedgev1/api_layer2_connections_service_profiles.go @@ -0,0 +1,1322 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "reflect" + "strings" +) + +// Layer2ConnectionsServiceProfilesApiService Layer2ConnectionsServiceProfilesApi service +type Layer2ConnectionsServiceProfilesApiService service + +type ApiCreateConnectionUsingPOSTRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + request *PostConnectionRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateConnectionUsingPOSTRequest) Authorization(authorization string) ApiCreateConnectionUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// request +func (r ApiCreateConnectionUsingPOSTRequest) Request(request PostConnectionRequest) ApiCreateConnectionUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiCreateConnectionUsingPOSTRequest) Execute() (*PostConnectionResponse, *http.Response, error) { + return r.ApiService.CreateConnectionUsingPOSTExecute(r) +} + +/* +CreateConnectionUsingPOST Create L2 Connection + +Create a new Layer 2 connection on a virtual device to a cloud service provider, another ECX participant or to your own assets in another metro. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateConnectionUsingPOSTRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) CreateConnectionUsingPOST(ctx context.Context) ApiCreateConnectionUsingPOSTRequest { + return ApiCreateConnectionUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PostConnectionResponse +func (a *Layer2ConnectionsServiceProfilesApiService) CreateConnectionUsingPOSTExecute(r ApiCreateConnectionUsingPOSTRequest) (*PostConnectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostConnectionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.CreateConnectionUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/connections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return localVarReturnValue, nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteConnectionUsingDELETERequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + uuid string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeleteConnectionUsingDELETERequest) Authorization(authorization string) ApiDeleteConnectionUsingDELETERequest { + r.authorization = &authorization + return r +} + +func (r ApiDeleteConnectionUsingDELETERequest) Execute() (*DeleteConnectionResponse, *http.Response, error) { + return r.ApiService.DeleteConnectionUsingDELETEExecute(r) +} + +/* +DeleteConnectionUsingDELETE Delete Connection {uuid} + +Deletes a virtual connection specified by its unique Id. Once a connection has been successfully deleted, billing for that connections will also be stopped. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid connId + @return ApiDeleteConnectionUsingDELETERequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) DeleteConnectionUsingDELETE(ctx context.Context, uuid string) ApiDeleteConnectionUsingDELETERequest { + return ApiDeleteConnectionUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return DeleteConnectionResponse +func (a *Layer2ConnectionsServiceProfilesApiService) DeleteConnectionUsingDELETEExecute(r ApiDeleteConnectionUsingDELETERequest) (*DeleteConnectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteConnectionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.DeleteConnectionUsingDELETE") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/connections/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectionByUuidUsingGETRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + uuid string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetConnectionByUuidUsingGETRequest) Authorization(authorization string) ApiGetConnectionByUuidUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetConnectionByUuidUsingGETRequest) Execute() (*GETConnectionByUuidResponse, *http.Response, error) { + return r.ApiService.GetConnectionByUuidUsingGETExecute(r) +} + +/* +GetConnectionByUuidUsingGET Get L2 Connection {uuid} + +Get connection details including its status, allocated bandwidth, VLAN tag, the service profile (or cloud provider). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Connection UUID + @return ApiGetConnectionByUuidUsingGETRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) GetConnectionByUuidUsingGET(ctx context.Context, uuid string) ApiGetConnectionByUuidUsingGETRequest { + return ApiGetConnectionByUuidUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return GETConnectionByUuidResponse +func (a *Layer2ConnectionsServiceProfilesApiService) GetConnectionByUuidUsingGETExecute(r ApiGetConnectionByUuidUsingGETRequest) (*GETConnectionByUuidResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETConnectionByUuidResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.GetConnectionByUuidUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/connections/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectionsByGETRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + pageNumber *int32 + pageSize *int32 +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetConnectionsByGETRequest) Authorization(authorization string) ApiGetConnectionsByGETRequest { + r.authorization = &authorization + return r +} + +// page number +func (r ApiGetConnectionsByGETRequest) PageNumber(pageNumber int32) ApiGetConnectionsByGETRequest { + r.pageNumber = &pageNumber + return r +} + +// total number of records +func (r ApiGetConnectionsByGETRequest) PageSize(pageSize int32) ApiGetConnectionsByGETRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetConnectionsByGETRequest) Execute() (*GETConnectionsPageResponse, *http.Response, error) { + return r.ApiService.GetConnectionsByGETExecute(r) +} + +/* +GetConnectionsByGET Get L2 Buyer Connections + +Fetches all connections of this user. To get the details of a connection, call Get Connections {uuid} API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetConnectionsByGETRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) GetConnectionsByGET(ctx context.Context) ApiGetConnectionsByGETRequest { + return ApiGetConnectionsByGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETConnectionsPageResponse +func (a *Layer2ConnectionsServiceProfilesApiService) GetConnectionsByGETExecute(r ApiGetConnectionsByGETRequest) (*GETConnectionsPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETConnectionsPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.GetConnectionsByGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/buyer/connections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.pageNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageNumber", r.pageNumber, "") + } else { + var defaultValue int32 = 0 + r.pageNumber = &defaultValue + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "") + } else { + var defaultValue int32 = 20 + r.pageSize = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetProfileByIdUsingGETRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + uuid string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetProfileByIdUsingGETRequest) Authorization(authorization string) ApiGetProfileByIdUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetProfileByIdUsingGETRequest) Execute() (*GetServProfServicesResp, *http.Response, error) { + return r.ApiService.GetProfileByIdUsingGETExecute(r) +} + +/* +GetProfileByIdUsingGET Get L2 Service Profile {uuid} + +Get all the pertinent details for a Layer 2 service profile specified by its uuid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetProfileByIdUsingGETRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) GetProfileByIdUsingGET(ctx context.Context, uuid string) ApiGetProfileByIdUsingGETRequest { + return ApiGetProfileByIdUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return GetServProfServicesResp +func (a *Layer2ConnectionsServiceProfilesApiService) GetProfileByIdUsingGETExecute(r ApiGetProfileByIdUsingGETRequest) (*GetServProfServicesResp, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetServProfServicesResp + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.GetProfileByIdUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/serviceprofiles/services/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetProfilesByMetroUsingGETRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + metroCode *[]string + pageNumber *int32 + pageSize *int32 +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetProfilesByMetroUsingGETRequest) Authorization(authorization string) ApiGetProfilesByMetroUsingGETRequest { + r.authorization = &authorization + return r +} + +// metroCode +func (r ApiGetProfilesByMetroUsingGETRequest) MetroCode(metroCode []string) ApiGetProfilesByMetroUsingGETRequest { + r.metroCode = &metroCode + return r +} + +// page number +func (r ApiGetProfilesByMetroUsingGETRequest) PageNumber(pageNumber int32) ApiGetProfilesByMetroUsingGETRequest { + r.pageNumber = &pageNumber + return r +} + +// total number of records +func (r ApiGetProfilesByMetroUsingGETRequest) PageSize(pageSize int32) ApiGetProfilesByMetroUsingGETRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetProfilesByMetroUsingGETRequest) Execute() (*GetServProfServicesResp, *http.Response, error) { + return r.ApiService.GetProfilesByMetroUsingGETExecute(r) +} + +/* +GetProfilesByMetroUsingGET Get L2 Service Profiles + +Get the list of all active and valid Layer 2 service profiles to which connections can be created. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetProfilesByMetroUsingGETRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) GetProfilesByMetroUsingGET(ctx context.Context) ApiGetProfilesByMetroUsingGETRequest { + return ApiGetProfilesByMetroUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetServProfServicesResp +func (a *Layer2ConnectionsServiceProfilesApiService) GetProfilesByMetroUsingGETExecute(r ApiGetProfilesByMetroUsingGETRequest) (*GetServProfServicesResp, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetServProfServicesResp + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.GetProfilesByMetroUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/serviceprofiles/services" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.metroCode != nil { + t := *r.metroCode + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "metroCode", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "metroCode", t, "multi") + } + } + if r.pageNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageNumber", r.pageNumber, "") + } else { + var defaultValue int32 = 0 + r.pageNumber = &defaultValue + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "") + } else { + var defaultValue int32 = 20 + r.pageSize = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPerformUserActionUsingPATCHRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + action *string + uuid string + request *PatchRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPerformUserActionUsingPATCHRequest) Authorization(authorization string) ApiPerformUserActionUsingPATCHRequest { + r.authorization = &authorization + return r +} + +// action +func (r ApiPerformUserActionUsingPATCHRequest) Action(action string) ApiPerformUserActionUsingPATCHRequest { + r.action = &action + return r +} + +// request +func (r ApiPerformUserActionUsingPATCHRequest) Request(request PatchRequest) ApiPerformUserActionUsingPATCHRequest { + r.request = &request + return r +} + +func (r ApiPerformUserActionUsingPATCHRequest) Execute() (*DeleteConnectionResponse, *http.Response, error) { + return r.ApiService.PerformUserActionUsingPATCHExecute(r) +} + +/* +PerformUserActionUsingPATCH Update Connection {uuid} + +Update (or approve) connection to complete the provisioning or to perform any updates to the Layer 2 connection. It is typically used to accept a hosted connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid connId + @return ApiPerformUserActionUsingPATCHRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) PerformUserActionUsingPATCH(ctx context.Context, uuid string) ApiPerformUserActionUsingPATCHRequest { + return ApiPerformUserActionUsingPATCHRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return DeleteConnectionResponse +func (a *Layer2ConnectionsServiceProfilesApiService) PerformUserActionUsingPATCHExecute(r ApiPerformUserActionUsingPATCHRequest) (*DeleteConnectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteConnectionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.PerformUserActionUsingPATCH") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/connections/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.action == nil { + return localVarReturnValue, nil, reportError("action is required and must be specified") + } + if r.request == nil { + return localVarReturnValue, nil, reportError("request is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiValidateAuthorizationKeyUsingGETRequest struct { + ctx context.Context + ApiService *Layer2ConnectionsServiceProfilesApiService + authorization *string + authorizationKey *string + metroCode *string + profileId *string + region *string + contentType *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiValidateAuthorizationKeyUsingGETRequest) Authorization(authorization string) ApiValidateAuthorizationKeyUsingGETRequest { + r.authorization = &authorization + return r +} + +// Could be AWS Account ID or Azure Service Key or Google Pairing Key or Oracle connection Id or any other authorization key +func (r ApiValidateAuthorizationKeyUsingGETRequest) AuthorizationKey(authorizationKey string) ApiValidateAuthorizationKeyUsingGETRequest { + r.authorizationKey = &authorizationKey + return r +} + +// metroCode +func (r ApiValidateAuthorizationKeyUsingGETRequest) MetroCode(metroCode string) ApiValidateAuthorizationKeyUsingGETRequest { + r.metroCode = &metroCode + return r +} + +// profileId +func (r ApiValidateAuthorizationKeyUsingGETRequest) ProfileId(profileId string) ApiValidateAuthorizationKeyUsingGETRequest { + r.profileId = &profileId + return r +} + +// region +func (r ApiValidateAuthorizationKeyUsingGETRequest) Region(region string) ApiValidateAuthorizationKeyUsingGETRequest { + r.region = ®ion + return r +} + +// Content-Type +func (r ApiValidateAuthorizationKeyUsingGETRequest) ContentType(contentType string) ApiValidateAuthorizationKeyUsingGETRequest { + r.contentType = &contentType + return r +} + +func (r ApiValidateAuthorizationKeyUsingGETRequest) Execute() (*GetValidateAuthKeyRes, *http.Response, error) { + return r.ApiService.ValidateAuthorizationKeyUsingGETExecute(r) +} + +/* +ValidateAuthorizationKeyUsingGET Get L2 Validate Authorization Key + +Validates authorization/service key or account ID to connect to cloud service providers. The participant must first use the provider console to establish a connection and obtain a valid account or service which could then be used to create connections to CSPs. Participants may validate their keys using this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiValidateAuthorizationKeyUsingGETRequest +*/ +func (a *Layer2ConnectionsServiceProfilesApiService) ValidateAuthorizationKeyUsingGET(ctx context.Context) ApiValidateAuthorizationKeyUsingGETRequest { + return ApiValidateAuthorizationKeyUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetValidateAuthKeyRes +func (a *Layer2ConnectionsServiceProfilesApiService) ValidateAuthorizationKeyUsingGETExecute(r ApiValidateAuthorizationKeyUsingGETRequest) (*GetValidateAuthKeyRes, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetValidateAuthKeyRes + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Layer2ConnectionsServiceProfilesApiService.ValidateAuthorizationKeyUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/l2/connections/validateAuthorizationKey" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.authorizationKey == nil { + return localVarReturnValue, nil, reportError("authorizationKey is required and must be specified") + } + if r.metroCode == nil { + return localVarReturnValue, nil, reportError("metroCode is required and must be specified") + } + if r.profileId == nil { + return localVarReturnValue, nil, reportError("profileId is required and must be specified") + } + if r.region == nil { + return localVarReturnValue, nil, reportError("region is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "authorizationKey", r.authorizationKey, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "metroCode", r.metroCode, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "profileId", r.profileId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + if r.contentType != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "Content-Type", r.contentType, "") + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_licensing.go b/services/networkedgev1/api_licensing.go new file mode 100644 index 00000000..72b620fb --- /dev/null +++ b/services/networkedgev1/api_licensing.go @@ -0,0 +1,557 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" +) + +// LicensingApiService LicensingApi service +type LicensingApiService service + +type ApiUpdateLicenseUsingPOSTRequest struct { + ctx context.Context + ApiService *LicensingApiService + uuid string + authorization *string + request *LicenseUpdateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateLicenseUsingPOSTRequest) Authorization(authorization string) ApiUpdateLicenseUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// License token +func (r ApiUpdateLicenseUsingPOSTRequest) Request(request LicenseUpdateRequest) ApiUpdateLicenseUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiUpdateLicenseUsingPOSTRequest) Execute() (*LicenseUploadResponse, *http.Response, error) { + return r.ApiService.UpdateLicenseUsingPOSTExecute(r) +} + +/* +UpdateLicenseUsingPOST Update License Token/ID/Code + +If you want to bring your own license (BYOL), you can use this API to post or update a license token after a virtual device is created. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a virtual device + @return ApiUpdateLicenseUsingPOSTRequest +*/ +func (a *LicensingApiService) UpdateLicenseUsingPOST(ctx context.Context, uuid string) ApiUpdateLicenseUsingPOSTRequest { + return ApiUpdateLicenseUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return LicenseUploadResponse +func (a *LicensingApiService) UpdateLicenseUsingPOSTExecute(r ApiUpdateLicenseUsingPOSTRequest) (*LicenseUploadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LicenseUploadResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LicensingApiService.UpdateLicenseUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/licenseTokens" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return localVarReturnValue, nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUploadLicenseForDeviceUsingPOSTRequest struct { + ctx context.Context + ApiService *LicensingApiService + uuid string + authorization *string + file *os.File +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUploadLicenseForDeviceUsingPOSTRequest) Authorization(authorization string) ApiUploadLicenseForDeviceUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// License file +func (r ApiUploadLicenseForDeviceUsingPOSTRequest) File(file *os.File) ApiUploadLicenseForDeviceUsingPOSTRequest { + r.file = file + return r +} + +func (r ApiUploadLicenseForDeviceUsingPOSTRequest) Execute() (*LicenseUploadResponse, *http.Response, error) { + return r.ApiService.UploadLicenseForDeviceUsingPOSTExecute(r) +} + +/* +UploadLicenseForDeviceUsingPOST Post License {uuid} + +In case you want to bring your own license and have already created a virtual device, use this API to post a license file. You can also use this API to renew a license that is about to expire. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a virtual device + @return ApiUploadLicenseForDeviceUsingPOSTRequest +*/ +func (a *LicensingApiService) UploadLicenseForDeviceUsingPOST(ctx context.Context, uuid string) ApiUploadLicenseForDeviceUsingPOSTRequest { + return ApiUploadLicenseForDeviceUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return LicenseUploadResponse +func (a *LicensingApiService) UploadLicenseForDeviceUsingPOSTExecute(r ApiUploadLicenseForDeviceUsingPOSTRequest) (*LicenseUploadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LicenseUploadResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LicensingApiService.UploadLicenseForDeviceUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/licenseFiles/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.file == nil { + return localVarReturnValue, nil, reportError("file is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + var fileLocalVarFormFileName string + var fileLocalVarFileName string + var fileLocalVarFileBytes []byte + + fileLocalVarFormFileName = "file" + fileLocalVarFile := r.file + + if fileLocalVarFile != nil { + fbs, _ := io.ReadAll(fileLocalVarFile) + + fileLocalVarFileBytes = fbs + fileLocalVarFileName = fileLocalVarFile.Name() + fileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUploadLicenseUsingPOSTRequest struct { + ctx context.Context + ApiService *LicensingApiService + metroCode *string + deviceTypeCode *string + licenseType *string + authorization *string + file *os.File +} + +// metroCode +func (r ApiUploadLicenseUsingPOSTRequest) MetroCode(metroCode string) ApiUploadLicenseUsingPOSTRequest { + r.metroCode = &metroCode + return r +} + +// deviceTypeCode +func (r ApiUploadLicenseUsingPOSTRequest) DeviceTypeCode(deviceTypeCode string) ApiUploadLicenseUsingPOSTRequest { + r.deviceTypeCode = &deviceTypeCode + return r +} + +// licenseType +func (r ApiUploadLicenseUsingPOSTRequest) LicenseType(licenseType string) ApiUploadLicenseUsingPOSTRequest { + r.licenseType = &licenseType + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUploadLicenseUsingPOSTRequest) Authorization(authorization string) ApiUploadLicenseUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// file +func (r ApiUploadLicenseUsingPOSTRequest) File(file *os.File) ApiUploadLicenseUsingPOSTRequest { + r.file = file + return r +} + +func (r ApiUploadLicenseUsingPOSTRequest) Execute() (*LicenseUploadResponse, *http.Response, error) { + return r.ApiService.UploadLicenseUsingPOSTExecute(r) +} + +/* +UploadLicenseUsingPOST Post License File + +In case you want to bring your own license (BYOL), you can use this API to post a license file before creating a virtual device. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadLicenseUsingPOSTRequest +*/ +func (a *LicensingApiService) UploadLicenseUsingPOST(ctx context.Context) ApiUploadLicenseUsingPOSTRequest { + return ApiUploadLicenseUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return LicenseUploadResponse +func (a *LicensingApiService) UploadLicenseUsingPOSTExecute(r ApiUploadLicenseUsingPOSTRequest) (*LicenseUploadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LicenseUploadResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LicensingApiService.UploadLicenseUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/licenseFiles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.metroCode == nil { + return localVarReturnValue, nil, reportError("metroCode is required and must be specified") + } + if r.deviceTypeCode == nil { + return localVarReturnValue, nil, reportError("deviceTypeCode is required and must be specified") + } + if r.licenseType == nil { + return localVarReturnValue, nil, reportError("licenseType is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.file == nil { + return localVarReturnValue, nil, reportError("file is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "metroCode", r.metroCode, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "deviceTypeCode", r.deviceTypeCode, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "licenseType", r.licenseType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + var fileLocalVarFormFileName string + var fileLocalVarFileName string + var fileLocalVarFileBytes []byte + + fileLocalVarFormFileName = "file" + fileLocalVarFile := r.file + + if fileLocalVarFile != nil { + fbs, _ := io.ReadAll(fileLocalVarFile) + + fileLocalVarFileBytes = fbs + fileLocalVarFileName = fileLocalVarFile.Name() + fileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_setup.go b/services/networkedgev1/api_setup.go new file mode 100644 index 00000000..6a17a9b1 --- /dev/null +++ b/services/networkedgev1/api_setup.go @@ -0,0 +1,2429 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" +) + +// SetupApiService SetupApi service +type SetupApiService service + +type ApiGetAccountsWithStatusUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + metro string + authorization *string + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAccountsWithStatusUsingGETRequest) Authorization(authorization string) ApiGetAccountsWithStatusUsingGETRequest { + r.authorization = &authorization + return r +} + +// Unique ID of an account +func (r ApiGetAccountsWithStatusUsingGETRequest) AccountUcmId(accountUcmId string) ApiGetAccountsWithStatusUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiGetAccountsWithStatusUsingGETRequest) Execute() (*PageResponseDtoMetroAccountResponse, *http.Response, error) { + return r.ApiService.GetAccountsWithStatusUsingGETExecute(r) +} + +/* +GetAccountsWithStatusUsingGET Get Accounts {metro} + +Gets accounts by metro. You must have an account in a metro to create a virtual device there. To create an account go to "accountCreateUrl". + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param metro Metro region for which you want to check your account status + @return ApiGetAccountsWithStatusUsingGETRequest +*/ +func (a *SetupApiService) GetAccountsWithStatusUsingGET(ctx context.Context, metro string) ApiGetAccountsWithStatusUsingGETRequest { + return ApiGetAccountsWithStatusUsingGETRequest{ + ApiService: a, + ctx: ctx, + metro: metro, + } +} + +// Execute executes the request +// +// @return PageResponseDtoMetroAccountResponse +func (a *SetupApiService) GetAccountsWithStatusUsingGETExecute(r ApiGetAccountsWithStatusUsingGETRequest) (*PageResponseDtoMetroAccountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PageResponseDtoMetroAccountResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetAccountsWithStatusUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/accounts/{metro}" + localVarPath = strings.Replace(localVarPath, "{"+"metro"+"}", url.PathEscape(parameterValueToString(r.metro, "metro")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAgreementStatusUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + accountNumber *string + authorization *string +} + +// account_number +func (r ApiGetAgreementStatusUsingGETRequest) AccountNumber(accountNumber string) ApiGetAgreementStatusUsingGETRequest { + r.accountNumber = &accountNumber + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAgreementStatusUsingGETRequest) Authorization(authorization string) ApiGetAgreementStatusUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetAgreementStatusUsingGETRequest) Execute() (*AgreementStatusResponse, *http.Response, error) { + return r.ApiService.GetAgreementStatusUsingGETExecute(r) +} + +/* +GetAgreementStatusUsingGET Get Agreement Status. + +Call this API to find out the status of your agreement, whether it is valid or not, or to just read the agreement terms. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAgreementStatusUsingGETRequest +*/ +func (a *SetupApiService) GetAgreementStatusUsingGET(ctx context.Context) ApiGetAgreementStatusUsingGETRequest { + return ApiGetAgreementStatusUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return AgreementStatusResponse +func (a *SetupApiService) GetAgreementStatusUsingGETExecute(r ApiGetAgreementStatusUsingGETRequest) (*AgreementStatusResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AgreementStatusResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetAgreementStatusUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/agreements/accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.accountNumber == nil { + return localVarReturnValue, nil, reportError("accountNumber is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "account_number", r.accountNumber, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAllowedInterfacesUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + deviceType string + deviceManagementType *string + core *int32 + authorization *string + mode *string + licenseCategory *string + cluster *bool + sdwan *bool + connectivity *string + memory *int32 + unit *string + flavor *string + version *string + softwarePkg *string +} + +// Device management type. SELF-CONFIGURED +func (r ApiGetAllowedInterfacesUsingGETRequest) DeviceManagementType(deviceManagementType string) ApiGetAllowedInterfacesUsingGETRequest { + r.deviceManagementType = &deviceManagementType + return r +} + +// The desired number of cores. +func (r ApiGetAllowedInterfacesUsingGETRequest) Core(core int32) ApiGetAllowedInterfacesUsingGETRequest { + r.core = &core + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAllowedInterfacesUsingGETRequest) Authorization(authorization string) ApiGetAllowedInterfacesUsingGETRequest { + r.authorization = &authorization + return r +} + +// License mode, either Subscription or BYOL. +func (r ApiGetAllowedInterfacesUsingGETRequest) Mode(mode string) ApiGetAllowedInterfacesUsingGETRequest { + r.mode = &mode + return r +} + +// Relevant for Fortinet devices. Choose \"flex\" if you want to enter a token and \"classic\" if you want to upload a license file. +func (r ApiGetAllowedInterfacesUsingGETRequest) LicenseCategory(licenseCategory string) ApiGetAllowedInterfacesUsingGETRequest { + r.licenseCategory = &licenseCategory + return r +} + +// Whether you want a cluster device. +func (r ApiGetAllowedInterfacesUsingGETRequest) Cluster(cluster bool) ApiGetAllowedInterfacesUsingGETRequest { + r.cluster = &cluster + return r +} + +// Whether you want an SD-WAN device. +func (r ApiGetAllowedInterfacesUsingGETRequest) Sdwan(sdwan bool) ApiGetAllowedInterfacesUsingGETRequest { + r.sdwan = &sdwan + return r +} + +// Type of connectivity you want. INTERNET-ACCESS, PRIVATE, or INTERNET-ACCESS-WITH-PRVT-MGMT. PRIVATE devices do not have ACLs or bandwidth. +func (r ApiGetAllowedInterfacesUsingGETRequest) Connectivity(connectivity string) ApiGetAllowedInterfacesUsingGETRequest { + r.connectivity = &connectivity + return r +} + +// Desired memory. +func (r ApiGetAllowedInterfacesUsingGETRequest) Memory(memory int32) ApiGetAllowedInterfacesUsingGETRequest { + r.memory = &memory + return r +} + +// Unit of memory. GB or MB. +func (r ApiGetAllowedInterfacesUsingGETRequest) Unit(unit string) ApiGetAllowedInterfacesUsingGETRequest { + r.unit = &unit + return r +} + +// Flavor of device. +func (r ApiGetAllowedInterfacesUsingGETRequest) Flavor(flavor string) ApiGetAllowedInterfacesUsingGETRequest { + r.flavor = &flavor + return r +} + +// Version. +func (r ApiGetAllowedInterfacesUsingGETRequest) Version(version string) ApiGetAllowedInterfacesUsingGETRequest { + r.version = &version + return r +} + +// Software package. +func (r ApiGetAllowedInterfacesUsingGETRequest) SoftwarePkg(softwarePkg string) ApiGetAllowedInterfacesUsingGETRequest { + r.softwarePkg = &softwarePkg + return r +} + +func (r ApiGetAllowedInterfacesUsingGETRequest) Execute() (*AllowedInterfaceResponse, *http.Response, error) { + return r.ApiService.GetAllowedInterfacesUsingGETExecute(r) +} + +/* +GetAllowedInterfacesUsingGET Get Allowed Interfaces + +Returns the interface details for a device type with a chosen configuration. You must pass the device type as the path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deviceType Device type code. PA-VM. + @return ApiGetAllowedInterfacesUsingGETRequest +*/ +func (a *SetupApiService) GetAllowedInterfacesUsingGET(ctx context.Context, deviceType string) ApiGetAllowedInterfacesUsingGETRequest { + return ApiGetAllowedInterfacesUsingGETRequest{ + ApiService: a, + ctx: ctx, + deviceType: deviceType, + } +} + +// Execute executes the request +// +// @return AllowedInterfaceResponse +func (a *SetupApiService) GetAllowedInterfacesUsingGETExecute(r ApiGetAllowedInterfacesUsingGETRequest) (*AllowedInterfaceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AllowedInterfaceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetAllowedInterfacesUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceTypes/{deviceType}/interfaces" + localVarPath = strings.Replace(localVarPath, "{"+"deviceType"+"}", url.PathEscape(parameterValueToString(r.deviceType, "deviceType")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deviceManagementType == nil { + return localVarReturnValue, nil, reportError("deviceManagementType is required and must be specified") + } + if r.core == nil { + return localVarReturnValue, nil, reportError("core is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "deviceManagementType", r.deviceManagementType, "") + if r.mode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "") + } + if r.licenseCategory != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "licenseCategory", r.licenseCategory, "") + } + if r.cluster != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "") + } + if r.sdwan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sdwan", r.sdwan, "") + } + if r.connectivity != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connectivity", r.connectivity, "") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "core", r.core, "") + if r.memory != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "memory", r.memory, "") + } + if r.unit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unit", r.unit, "") + } + if r.flavor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "flavor", r.flavor, "") + } + if r.version != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "version", r.version, "") + } + if r.softwarePkg != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "softwarePkg", r.softwarePkg, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetMetrosUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + region *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetMetrosUsingGETRequest) Authorization(authorization string) ApiGetMetrosUsingGETRequest { + r.authorization = &authorization + return r +} + +// Name of the region for which you want metros (e.g., AMER) +func (r ApiGetMetrosUsingGETRequest) Region(region string) ApiGetMetrosUsingGETRequest { + r.region = ®ion + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetMetrosUsingGETRequest) Offset(offset string) ApiGetMetrosUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetMetrosUsingGETRequest) Limit(limit string) ApiGetMetrosUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetMetrosUsingGETRequest) Execute() (*PageResponseDtoMetroResponse, *http.Response, error) { + return r.ApiService.GetMetrosUsingGETExecute(r) +} + +/* +GetMetrosUsingGET Get Available Metros + +Gets the available list of metros where NE platform is available. Please note that an account must be created for each country where virtual devices are being purchased. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMetrosUsingGETRequest +*/ +func (a *SetupApiService) GetMetrosUsingGET(ctx context.Context) ApiGetMetrosUsingGETRequest { + return ApiGetMetrosUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PageResponseDtoMetroResponse +func (a *SetupApiService) GetMetrosUsingGETExecute(r ApiGetMetrosUsingGETRequest) (*PageResponseDtoMetroResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PageResponseDtoMetroResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetMetrosUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/metros" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.region != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetNotificationsUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetNotificationsUsingGETRequest) Authorization(authorization string) ApiGetNotificationsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetNotificationsUsingGETRequest) Execute() (*DowntimeNotification, *http.Response, error) { + return r.ApiService.GetNotificationsUsingGETExecute(r) +} + +/* +GetNotificationsUsingGET Get Downtime Notifications + +Returns all planned and unplanned downtime notifications related to APIs and infrastructure. Please pass a token in the header. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetNotificationsUsingGETRequest +*/ +func (a *SetupApiService) GetNotificationsUsingGET(ctx context.Context) ApiGetNotificationsUsingGETRequest { + return ApiGetNotificationsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DowntimeNotification +func (a *SetupApiService) GetNotificationsUsingGETExecute(r ApiGetNotificationsUsingGETRequest) (*DowntimeNotification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DowntimeNotification + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetNotificationsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/notifications" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOrderSummaryUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + accountNumber *int32 + metro *string + vendorPackage *string + licenseType *string + softwarePackage *string + throughput *int32 + throughputUnit *string + termLength *string + additionalBandwidth *int32 + virtualDeviceUuid *string + deviceManagementType *string + core *int32 + secondaryAccountNumber *int32 + secondaryMetro *string + secondaryAdditionalBandwidth *int32 + accountUcmId *string + orderingContact *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetOrderSummaryUsingGETRequest) Authorization(authorization string) ApiGetOrderSummaryUsingGETRequest { + r.authorization = &authorization + return r +} + +// Account number +func (r ApiGetOrderSummaryUsingGETRequest) AccountNumber(accountNumber int32) ApiGetOrderSummaryUsingGETRequest { + r.accountNumber = &accountNumber + return r +} + +// Metro +func (r ApiGetOrderSummaryUsingGETRequest) Metro(metro string) ApiGetOrderSummaryUsingGETRequest { + r.metro = &metro + return r +} + +// Vendor package +func (r ApiGetOrderSummaryUsingGETRequest) VendorPackage(vendorPackage string) ApiGetOrderSummaryUsingGETRequest { + r.vendorPackage = &vendorPackage + return r +} + +// License type +func (r ApiGetOrderSummaryUsingGETRequest) LicenseType(licenseType string) ApiGetOrderSummaryUsingGETRequest { + r.licenseType = &licenseType + return r +} + +// Software package +func (r ApiGetOrderSummaryUsingGETRequest) SoftwarePackage(softwarePackage string) ApiGetOrderSummaryUsingGETRequest { + r.softwarePackage = &softwarePackage + return r +} + +// Throughput +func (r ApiGetOrderSummaryUsingGETRequest) Throughput(throughput int32) ApiGetOrderSummaryUsingGETRequest { + r.throughput = &throughput + return r +} + +// Throughput unit +func (r ApiGetOrderSummaryUsingGETRequest) ThroughputUnit(throughputUnit string) ApiGetOrderSummaryUsingGETRequest { + r.throughputUnit = &throughputUnit + return r +} + +// Term length (in months) +func (r ApiGetOrderSummaryUsingGETRequest) TermLength(termLength string) ApiGetOrderSummaryUsingGETRequest { + r.termLength = &termLength + return r +} + +// Additional bandwidth (in Mbps) +func (r ApiGetOrderSummaryUsingGETRequest) AdditionalBandwidth(additionalBandwidth int32) ApiGetOrderSummaryUsingGETRequest { + r.additionalBandwidth = &additionalBandwidth + return r +} + +// Virtual device unique Id (only required if existing device is being modified) +func (r ApiGetOrderSummaryUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetOrderSummaryUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// The device management type +func (r ApiGetOrderSummaryUsingGETRequest) DeviceManagementType(deviceManagementType string) ApiGetOrderSummaryUsingGETRequest { + r.deviceManagementType = &deviceManagementType + return r +} + +// The number of cores +func (r ApiGetOrderSummaryUsingGETRequest) Core(core int32) ApiGetOrderSummaryUsingGETRequest { + r.core = &core + return r +} + +// Secondary account number (in case you have a device pair) +func (r ApiGetOrderSummaryUsingGETRequest) SecondaryAccountNumber(secondaryAccountNumber int32) ApiGetOrderSummaryUsingGETRequest { + r.secondaryAccountNumber = &secondaryAccountNumber + return r +} + +// Secondary metro (in case you have a device pair) +func (r ApiGetOrderSummaryUsingGETRequest) SecondaryMetro(secondaryMetro string) ApiGetOrderSummaryUsingGETRequest { + r.secondaryMetro = &secondaryMetro + return r +} + +// Secondary additional bandwidth (in Mbps) +func (r ApiGetOrderSummaryUsingGETRequest) SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth int32) ApiGetOrderSummaryUsingGETRequest { + r.secondaryAdditionalBandwidth = &secondaryAdditionalBandwidth + return r +} + +// Account unique ID +func (r ApiGetOrderSummaryUsingGETRequest) AccountUcmId(accountUcmId string) ApiGetOrderSummaryUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +// Reseller customer username +func (r ApiGetOrderSummaryUsingGETRequest) OrderingContact(orderingContact string) ApiGetOrderSummaryUsingGETRequest { + r.orderingContact = &orderingContact + return r +} + +func (r ApiGetOrderSummaryUsingGETRequest) Execute() (*http.Response, error) { + return r.ApiService.GetOrderSummaryUsingGETExecute(r) +} + +/* +GetOrderSummaryUsingGET Get Order Summary + +Gets the order summary as a printable pdf file. This API helps customers who have to go through a PO process at their end to make a purchase and need a formal quote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOrderSummaryUsingGETRequest +*/ +func (a *SetupApiService) GetOrderSummaryUsingGET(ctx context.Context) ApiGetOrderSummaryUsingGETRequest { + return ApiGetOrderSummaryUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *SetupApiService) GetOrderSummaryUsingGETExecute(r ApiGetOrderSummaryUsingGETRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetOrderSummaryUsingGET") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/orderSummaries" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + if r.accountNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNumber", r.accountNumber, "") + } + if r.metro != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metro", r.metro, "") + } + if r.vendorPackage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vendorPackage", r.vendorPackage, "") + } + if r.licenseType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "licenseType", r.licenseType, "") + } + if r.softwarePackage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "softwarePackage", r.softwarePackage, "") + } + if r.throughput != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "throughput", r.throughput, "") + } + if r.throughputUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "throughputUnit", r.throughputUnit, "") + } + if r.termLength != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termLength", r.termLength, "") + } + if r.additionalBandwidth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "additionalBandwidth", r.additionalBandwidth, "") + } + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.deviceManagementType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deviceManagementType", r.deviceManagementType, "") + } + if r.core != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "core", r.core, "") + } + if r.secondaryAccountNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryAccountNumber", r.secondaryAccountNumber, "") + } + if r.secondaryMetro != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryMetro", r.secondaryMetro, "") + } + if r.secondaryAdditionalBandwidth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryAdditionalBandwidth", r.secondaryAdditionalBandwidth, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.orderingContact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "orderingContact", r.orderingContact, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetOrderTermsUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetOrderTermsUsingGETRequest) Authorization(authorization string) ApiGetOrderTermsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetOrderTermsUsingGETRequest) Execute() (*OrderTermsResponse, *http.Response, error) { + return r.ApiService.GetOrderTermsUsingGETExecute(r) +} + +/* +GetOrderTermsUsingGET Get Order Terms + +Retrieves the terms and conditions of orders. Please read the terms and conditions before placing an order. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOrderTermsUsingGETRequest +*/ +func (a *SetupApiService) GetOrderTermsUsingGET(ctx context.Context) ApiGetOrderTermsUsingGETRequest { + return ApiGetOrderTermsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return OrderTermsResponse +func (a *SetupApiService) GetOrderTermsUsingGETExecute(r ApiGetOrderTermsUsingGETRequest) (*OrderTermsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrderTermsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetOrderTermsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/agreements/orders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPublicKeysUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + accountUcmId *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetPublicKeysUsingGETRequest) Authorization(authorization string) ApiGetPublicKeysUsingGETRequest { + r.authorization = &authorization + return r +} + +// This field is for resellers. Please pass the accountUcmId of your customer to get the public keys. +func (r ApiGetPublicKeysUsingGETRequest) AccountUcmId(accountUcmId string) ApiGetPublicKeysUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +func (r ApiGetPublicKeysUsingGETRequest) Execute() ([]PageResponsePublicKeys, *http.Response, error) { + return r.ApiService.GetPublicKeysUsingGETExecute(r) +} + +/* +GetPublicKeysUsingGET Get Public Keys + +Returns the SSH public keys associated with this organization. If you are a reseller, please pass the account number of you customer to get the public keys. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPublicKeysUsingGETRequest +*/ +func (a *SetupApiService) GetPublicKeysUsingGET(ctx context.Context) ApiGetPublicKeysUsingGETRequest { + return ApiGetPublicKeysUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []PageResponsePublicKeys +func (a *SetupApiService) GetPublicKeysUsingGETExecute(r ApiGetPublicKeysUsingGETRequest) ([]PageResponsePublicKeys, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PageResponsePublicKeys + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetPublicKeysUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/publicKeys" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVendorTermsUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + vendorPackage *string + licenseType *string + authorization *string +} + +// vendorPackage +func (r ApiGetVendorTermsUsingGETRequest) VendorPackage(vendorPackage string) ApiGetVendorTermsUsingGETRequest { + r.vendorPackage = &vendorPackage + return r +} + +// licenseType +func (r ApiGetVendorTermsUsingGETRequest) LicenseType(licenseType string) ApiGetVendorTermsUsingGETRequest { + r.licenseType = &licenseType + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVendorTermsUsingGETRequest) Authorization(authorization string) ApiGetVendorTermsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetVendorTermsUsingGETRequest) Execute() (*VendorTermsResponse, *http.Response, error) { + return r.ApiService.GetVendorTermsUsingGETExecute(r) +} + +/* +GetVendorTermsUsingGET Get Vendor Terms + +Returns a link to a vendor's terms. The term "vendor" refers to the vendor of a virtual device on the Network Edge platform. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetVendorTermsUsingGETRequest +*/ +func (a *SetupApiService) GetVendorTermsUsingGET(ctx context.Context) ApiGetVendorTermsUsingGETRequest { + return ApiGetVendorTermsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return VendorTermsResponse +func (a *SetupApiService) GetVendorTermsUsingGETExecute(r ApiGetVendorTermsUsingGETRequest) (*VendorTermsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorTermsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetVendorTermsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/agreements/vendors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.vendorPackage == nil { + return localVarReturnValue, nil, reportError("vendorPackage is required and must be specified") + } + if r.licenseType == nil { + return localVarReturnValue, nil, reportError("licenseType is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "vendorPackage", r.vendorPackage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "licenseType", r.licenseType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVirtualDevicesUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + deviceTypeCode *string + category *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVirtualDevicesUsingGETRequest) Authorization(authorization string) ApiGetVirtualDevicesUsingGETRequest { + r.authorization = &authorization + return r +} + +// Device type code (e.g., C8000V) +func (r ApiGetVirtualDevicesUsingGETRequest) DeviceTypeCode(deviceTypeCode string) ApiGetVirtualDevicesUsingGETRequest { + r.deviceTypeCode = &deviceTypeCode + return r +} + +// Category. One of FIREWALL, ROUTER or SD-WAN +func (r ApiGetVirtualDevicesUsingGETRequest) Category(category string) ApiGetVirtualDevicesUsingGETRequest { + r.category = &category + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetVirtualDevicesUsingGETRequest) Offset(offset string) ApiGetVirtualDevicesUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetVirtualDevicesUsingGETRequest) Limit(limit string) ApiGetVirtualDevicesUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetVirtualDevicesUsingGETRequest) Execute() (*PageResponseDtoVirtualDeviceType, *http.Response, error) { + return r.ApiService.GetVirtualDevicesUsingGETExecute(r) +} + +/* +GetVirtualDevicesUsingGET Get Device Types + +Returns device types (e.g., routers and firewalls) that can be launched on the NE platform. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetVirtualDevicesUsingGETRequest +*/ +func (a *SetupApiService) GetVirtualDevicesUsingGET(ctx context.Context) ApiGetVirtualDevicesUsingGETRequest { + return ApiGetVirtualDevicesUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PageResponseDtoVirtualDeviceType +func (a *SetupApiService) GetVirtualDevicesUsingGETExecute(r ApiGetVirtualDevicesUsingGETRequest) (*PageResponseDtoVirtualDeviceType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PageResponseDtoVirtualDeviceType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.GetVirtualDevicesUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/deviceTypes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.deviceTypeCode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deviceTypeCode", r.deviceTypeCode, "") + } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostPublicKeyUsingPOSTRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + publicKeyRequest *PublicKeyRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPostPublicKeyUsingPOSTRequest) Authorization(authorization string) ApiPostPublicKeyUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// keyName, keyValue, and keyType +func (r ApiPostPublicKeyUsingPOSTRequest) PublicKeyRequest(publicKeyRequest PublicKeyRequest) ApiPostPublicKeyUsingPOSTRequest { + r.publicKeyRequest = &publicKeyRequest + return r +} + +func (r ApiPostPublicKeyUsingPOSTRequest) Execute() (*http.Response, error) { + return r.ApiService.PostPublicKeyUsingPOSTExecute(r) +} + +/* +PostPublicKeyUsingPOST Create Public Key + +Creates a public key. If you are a reseller, pass the account number of your customer to create a key-name and key-value pair. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostPublicKeyUsingPOSTRequest +*/ +func (a *SetupApiService) PostPublicKeyUsingPOST(ctx context.Context) ApiPostPublicKeyUsingPOSTRequest { + return ApiPostPublicKeyUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *SetupApiService) PostPublicKeyUsingPOSTExecute(r ApiPostPublicKeyUsingPOSTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.PostPublicKeyUsingPOST") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/publicKeys" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.publicKeyRequest == nil { + return nil, reportError("publicKeyRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.publicKeyRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRetrievePriceUsingGETRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + accountNumber *int32 + metro *string + vendorPackage *string + licenseType *string + softwarePackage *string + throughput *int32 + throughputUnit *string + termLength *string + additionalBandwidth *int32 + virtualDeviceUuid *string + deviceManagementType *string + core *int32 + secondaryAccountNumber *int32 + secondaryMetro *string + secondaryAdditionalBandwidth *int32 + accountUcmId *string + orderingContact *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiRetrievePriceUsingGETRequest) Authorization(authorization string) ApiRetrievePriceUsingGETRequest { + r.authorization = &authorization + return r +} + +// Account number +func (r ApiRetrievePriceUsingGETRequest) AccountNumber(accountNumber int32) ApiRetrievePriceUsingGETRequest { + r.accountNumber = &accountNumber + return r +} + +// Metro +func (r ApiRetrievePriceUsingGETRequest) Metro(metro string) ApiRetrievePriceUsingGETRequest { + r.metro = &metro + return r +} + +// Vendor package +func (r ApiRetrievePriceUsingGETRequest) VendorPackage(vendorPackage string) ApiRetrievePriceUsingGETRequest { + r.vendorPackage = &vendorPackage + return r +} + +// License type +func (r ApiRetrievePriceUsingGETRequest) LicenseType(licenseType string) ApiRetrievePriceUsingGETRequest { + r.licenseType = &licenseType + return r +} + +// Software package +func (r ApiRetrievePriceUsingGETRequest) SoftwarePackage(softwarePackage string) ApiRetrievePriceUsingGETRequest { + r.softwarePackage = &softwarePackage + return r +} + +// Throughput +func (r ApiRetrievePriceUsingGETRequest) Throughput(throughput int32) ApiRetrievePriceUsingGETRequest { + r.throughput = &throughput + return r +} + +// Throughput unit +func (r ApiRetrievePriceUsingGETRequest) ThroughputUnit(throughputUnit string) ApiRetrievePriceUsingGETRequest { + r.throughputUnit = &throughputUnit + return r +} + +// Term length (in months) +func (r ApiRetrievePriceUsingGETRequest) TermLength(termLength string) ApiRetrievePriceUsingGETRequest { + r.termLength = &termLength + return r +} + +// Additional bandwidth (in Mbps) +func (r ApiRetrievePriceUsingGETRequest) AdditionalBandwidth(additionalBandwidth int32) ApiRetrievePriceUsingGETRequest { + r.additionalBandwidth = &additionalBandwidth + return r +} + +// Virtual device unique Id (only required if existing device is being modified) +func (r ApiRetrievePriceUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiRetrievePriceUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// The device management type +func (r ApiRetrievePriceUsingGETRequest) DeviceManagementType(deviceManagementType string) ApiRetrievePriceUsingGETRequest { + r.deviceManagementType = &deviceManagementType + return r +} + +// The number of cores +func (r ApiRetrievePriceUsingGETRequest) Core(core int32) ApiRetrievePriceUsingGETRequest { + r.core = &core + return r +} + +// The secondary account number (for HA) +func (r ApiRetrievePriceUsingGETRequest) SecondaryAccountNumber(secondaryAccountNumber int32) ApiRetrievePriceUsingGETRequest { + r.secondaryAccountNumber = &secondaryAccountNumber + return r +} + +// Secondary metro (for HA) +func (r ApiRetrievePriceUsingGETRequest) SecondaryMetro(secondaryMetro string) ApiRetrievePriceUsingGETRequest { + r.secondaryMetro = &secondaryMetro + return r +} + +// Secondary additional bandwidth (in Mbps for HA) +func (r ApiRetrievePriceUsingGETRequest) SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth int32) ApiRetrievePriceUsingGETRequest { + r.secondaryAdditionalBandwidth = &secondaryAdditionalBandwidth + return r +} + +// Account unique ID +func (r ApiRetrievePriceUsingGETRequest) AccountUcmId(accountUcmId string) ApiRetrievePriceUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +// Reseller customer username +func (r ApiRetrievePriceUsingGETRequest) OrderingContact(orderingContact string) ApiRetrievePriceUsingGETRequest { + r.orderingContact = &orderingContact + return r +} + +func (r ApiRetrievePriceUsingGETRequest) Execute() (*CompositePriceResponse, *http.Response, error) { + return r.ApiService.RetrievePriceUsingGETExecute(r) +} + +/* +RetrievePriceUsingGET Get the Price + +Returns the price of a virtual device and license based on account number and other fields. Please note that the listed price does not include the price of any optional features added to the device, some of which are charged. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRetrievePriceUsingGETRequest +*/ +func (a *SetupApiService) RetrievePriceUsingGET(ctx context.Context) ApiRetrievePriceUsingGETRequest { + return ApiRetrievePriceUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CompositePriceResponse +func (a *SetupApiService) RetrievePriceUsingGETExecute(r ApiRetrievePriceUsingGETRequest) (*CompositePriceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CompositePriceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.RetrievePriceUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/prices" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.accountNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNumber", r.accountNumber, "") + } + if r.metro != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metro", r.metro, "") + } + if r.vendorPackage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vendorPackage", r.vendorPackage, "") + } + if r.licenseType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "licenseType", r.licenseType, "") + } + if r.softwarePackage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "softwarePackage", r.softwarePackage, "") + } + if r.throughput != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "throughput", r.throughput, "") + } + if r.throughputUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "throughputUnit", r.throughputUnit, "") + } + if r.termLength != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termLength", r.termLength, "") + } + if r.additionalBandwidth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "additionalBandwidth", r.additionalBandwidth, "") + } + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.deviceManagementType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deviceManagementType", r.deviceManagementType, "") + } + if r.core != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "core", r.core, "") + } + if r.secondaryAccountNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryAccountNumber", r.secondaryAccountNumber, "") + } + if r.secondaryMetro != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryMetro", r.secondaryMetro, "") + } + if r.secondaryAdditionalBandwidth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "secondaryAdditionalBandwidth", r.secondaryAdditionalBandwidth, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.orderingContact != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "orderingContact", r.orderingContact, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSendAgreementUsingPOST1Request struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + agreementAcceptRequest *AgreementAcceptRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiSendAgreementUsingPOST1Request) Authorization(authorization string) ApiSendAgreementUsingPOST1Request { + r.authorization = &authorization + return r +} + +// agreementAcceptRequest +func (r ApiSendAgreementUsingPOST1Request) AgreementAcceptRequest(agreementAcceptRequest AgreementAcceptRequest) ApiSendAgreementUsingPOST1Request { + r.agreementAcceptRequest = &agreementAcceptRequest + return r +} + +func (r ApiSendAgreementUsingPOST1Request) Execute() (*AgreementAcceptResponse, *http.Response, error) { + return r.ApiService.SendAgreementUsingPOST1Execute(r) +} + +/* +SendAgreementUsingPOST1 Create an agreement + +Call this API to post an agreement. The authorization token and content-type are the only headers that are passed to this API and a response is received based on the values passed. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSendAgreementUsingPOST1Request +*/ +func (a *SetupApiService) SendAgreementUsingPOST1(ctx context.Context) ApiSendAgreementUsingPOST1Request { + return ApiSendAgreementUsingPOST1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return AgreementAcceptResponse +func (a *SetupApiService) SendAgreementUsingPOST1Execute(r ApiSendAgreementUsingPOST1Request) (*AgreementAcceptResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AgreementAcceptResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.SendAgreementUsingPOST1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/agreements/accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.agreementAcceptRequest == nil { + return localVarReturnValue, nil, reportError("agreementAcceptRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.agreementAcceptRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUploadFileUsingPOSTRequest struct { + ctx context.Context + ApiService *SetupApiService + authorization *string + file *os.File + metroCode *string + deviceTypeCode *string + processType *string + deviceManagementType *string + licenseType *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUploadFileUsingPOSTRequest) Authorization(authorization string) ApiUploadFileUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// A license or a cloud_init file. For example, for Aviatrix, this is your bootsrap config file generated from the Aviatrix Controller portal. +func (r ApiUploadFileUsingPOSTRequest) File(file *os.File) ApiUploadFileUsingPOSTRequest { + r.file = file + return r +} + +// Two-letter metro code. +func (r ApiUploadFileUsingPOSTRequest) MetroCode(metroCode string) ApiUploadFileUsingPOSTRequest { + r.metroCode = &metroCode + return r +} + +// Device type code, e.g., AVIATRIX_EDGE +func (r ApiUploadFileUsingPOSTRequest) DeviceTypeCode(deviceTypeCode string) ApiUploadFileUsingPOSTRequest { + r.deviceTypeCode = &deviceTypeCode + return r +} + +// Whether you are uploading a license or a cloud_init file. LICENSE or CLOUD_INIT +func (r ApiUploadFileUsingPOSTRequest) ProcessType(processType string) ApiUploadFileUsingPOSTRequest { + r.processType = &processType + return r +} + +// Device management type, whether SELF-CONFIGURED or not +func (r ApiUploadFileUsingPOSTRequest) DeviceManagementType(deviceManagementType string) ApiUploadFileUsingPOSTRequest { + r.deviceManagementType = &deviceManagementType + return r +} + +// Type of license (BYOL-Bring Your Own License) +func (r ApiUploadFileUsingPOSTRequest) LicenseType(licenseType string) ApiUploadFileUsingPOSTRequest { + r.licenseType = &licenseType + return r +} + +func (r ApiUploadFileUsingPOSTRequest) Execute() (*FileUploadResponse, *http.Response, error) { + return r.ApiService.UploadFileUsingPOSTExecute(r) +} + +/* +UploadFileUsingPOST Upload File (Post) + +Uploads a license or an initialization file. You can use this API to upload your bootstrap file generated from the Aviatrix controller portal. The response includes the unique ID of the uploaded file. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadFileUsingPOSTRequest +*/ +func (a *SetupApiService) UploadFileUsingPOST(ctx context.Context) ApiUploadFileUsingPOSTRequest { + return ApiUploadFileUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FileUploadResponse +func (a *SetupApiService) UploadFileUsingPOSTExecute(r ApiUploadFileUsingPOSTRequest) (*FileUploadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FileUploadResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SetupApiService.UploadFileUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/files" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.file == nil { + return localVarReturnValue, nil, reportError("file is required and must be specified") + } + if r.metroCode == nil { + return localVarReturnValue, nil, reportError("metroCode is required and must be specified") + } + if r.deviceTypeCode == nil { + return localVarReturnValue, nil, reportError("deviceTypeCode is required and must be specified") + } + if r.processType == nil { + return localVarReturnValue, nil, reportError("processType is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + if r.deviceManagementType != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "deviceManagementType", r.deviceManagementType, "") + } + var fileLocalVarFormFileName string + var fileLocalVarFileName string + var fileLocalVarFileBytes []byte + + fileLocalVarFormFileName = "file" + fileLocalVarFile := r.file + + if fileLocalVarFile != nil { + fbs, _ := io.ReadAll(fileLocalVarFile) + + fileLocalVarFileBytes = fbs + fileLocalVarFileName = fileLocalVarFile.Name() + fileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) + } + if r.licenseType != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "licenseType", r.licenseType, "") + } + parameterAddToHeaderOrQuery(localVarFormParams, "metroCode", r.metroCode, "") + parameterAddToHeaderOrQuery(localVarFormParams, "deviceTypeCode", r.deviceTypeCode, "") + parameterAddToHeaderOrQuery(localVarFormParams, "processType", r.processType, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_ssh_user.go b/services/networkedgev1/api_ssh_user.go new file mode 100644 index 00000000..43f0adc7 --- /dev/null +++ b/services/networkedgev1/api_ssh_user.go @@ -0,0 +1,1119 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// SSHUserApiService SSHUserApi service +type SSHUserApiService service + +type ApiAssociateDeviceUsingPOSTRequest struct { + ctx context.Context + ApiService *SSHUserApiService + sshUserUuid string + deviceUuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiAssociateDeviceUsingPOSTRequest) Authorization(authorization string) ApiAssociateDeviceUsingPOSTRequest { + r.authorization = &authorization + return r +} + +func (r ApiAssociateDeviceUsingPOSTRequest) Execute() (*http.Response, error) { + return r.ApiService.AssociateDeviceUsingPOSTExecute(r) +} + +/* +AssociateDeviceUsingPOST Update SSH User {uuid} + +Call this API to associate a device to an SSH user. The ssh user should be able to log onto the device if this operation is successful. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sshUserUuid The id of the SSH user + @param deviceUuid The unique Id of the device + @return ApiAssociateDeviceUsingPOSTRequest +*/ +func (a *SSHUserApiService) AssociateDeviceUsingPOST(ctx context.Context, sshUserUuid string, deviceUuid string) ApiAssociateDeviceUsingPOSTRequest { + return ApiAssociateDeviceUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + sshUserUuid: sshUserUuid, + deviceUuid: deviceUuid, + } +} + +// Execute executes the request +func (a *SSHUserApiService) AssociateDeviceUsingPOSTExecute(r ApiAssociateDeviceUsingPOSTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.AssociateDeviceUsingPOST") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"sshUserUuid"+"}", url.PathEscape(parameterValueToString(r.sshUserUuid, "sshUserUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"deviceUuid"+"}", url.PathEscape(parameterValueToString(r.deviceUuid, "deviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCreateSshUserUsingPOSTRequest struct { + ctx context.Context + ApiService *SSHUserApiService + authorization *string + request *SshUserCreateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateSshUserUsingPOSTRequest) Authorization(authorization string) ApiCreateSshUserUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// SSH user info +func (r ApiCreateSshUserUsingPOSTRequest) Request(request SshUserCreateRequest) ApiCreateSshUserUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiCreateSshUserUsingPOSTRequest) Execute() (*SshUserCreateResponse, *http.Response, error) { + return r.ApiService.CreateSshUserUsingPOSTExecute(r) +} + +/* +CreateSshUserUsingPOST Create SSH User + +Creates a new SSH user and associates the user with a virtual device. Authorization checks are performed on users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSshUserUsingPOSTRequest +*/ +func (a *SSHUserApiService) CreateSshUserUsingPOST(ctx context.Context) ApiCreateSshUserUsingPOSTRequest { + return ApiCreateSshUserUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SshUserCreateResponse +func (a *SSHUserApiService) CreateSshUserUsingPOSTExecute(r ApiCreateSshUserUsingPOSTRequest) (*SshUserCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SshUserCreateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.CreateSshUserUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDissociateDeviceUsingDELETERequest struct { + ctx context.Context + ApiService *SSHUserApiService + sshUserUuid string + deviceUuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDissociateDeviceUsingDELETERequest) Authorization(authorization string) ApiDissociateDeviceUsingDELETERequest { + r.authorization = &authorization + return r +} + +func (r ApiDissociateDeviceUsingDELETERequest) Execute() (*SshUserInfoDissociateResponse, *http.Response, error) { + return r.ApiService.DissociateDeviceUsingDELETEExecute(r) +} + +/* +DissociateDeviceUsingDELETE Delete SSH User + +The given SSH user is dissociated from the given device. The ssh user is deleted if there are no other devices associated with this user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sshUserUuid uuid + @param deviceUuid device unique Id + @return ApiDissociateDeviceUsingDELETERequest +*/ +func (a *SSHUserApiService) DissociateDeviceUsingDELETE(ctx context.Context, sshUserUuid string, deviceUuid string) ApiDissociateDeviceUsingDELETERequest { + return ApiDissociateDeviceUsingDELETERequest{ + ApiService: a, + ctx: ctx, + sshUserUuid: sshUserUuid, + deviceUuid: deviceUuid, + } +} + +// Execute executes the request +// +// @return SshUserInfoDissociateResponse +func (a *SSHUserApiService) DissociateDeviceUsingDELETEExecute(r ApiDissociateDeviceUsingDELETERequest) (*SshUserInfoDissociateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SshUserInfoDissociateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.DissociateDeviceUsingDELETE") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"sshUserUuid"+"}", url.PathEscape(parameterValueToString(r.sshUserUuid, "sshUserUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"deviceUuid"+"}", url.PathEscape(parameterValueToString(r.deviceUuid, "deviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSshUserUsingGETRequest struct { + ctx context.Context + ApiService *SSHUserApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSshUserUsingGETRequest) Authorization(authorization string) ApiGetSshUserUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetSshUserUsingGETRequest) Execute() (*SshUserInfoVerbose, *http.Response, error) { + return r.ApiService.GetSshUserUsingGETExecute(r) +} + +/* +GetSshUserUsingGET Get SSH User {uuid} + +Returns the ssh user details by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetSshUserUsingGETRequest +*/ +func (a *SSHUserApiService) GetSshUserUsingGET(ctx context.Context, uuid string) ApiGetSshUserUsingGETRequest { + return ApiGetSshUserUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return SshUserInfoVerbose +func (a *SSHUserApiService) GetSshUserUsingGETExecute(r ApiGetSshUserUsingGETRequest) (*SshUserInfoVerbose, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SshUserInfoVerbose + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.GetSshUserUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetSshUserUsingGET404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSshUsersUsingGETRequest struct { + ctx context.Context + ApiService *SSHUserApiService + authorization *string + username *string + virtualDeviceUuid *string + verbose *bool + accountUcmId *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSshUsersUsingGETRequest) Authorization(authorization string) ApiGetSshUsersUsingGETRequest { + r.authorization = &authorization + return r +} + +// SSH user name +func (r ApiGetSshUsersUsingGETRequest) Username(username string) ApiGetSshUsersUsingGETRequest { + r.username = &username + return r +} + +// Virtual Device unique Id +func (r ApiGetSshUsersUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetSshUsersUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// Is detailed info required +func (r ApiGetSshUsersUsingGETRequest) Verbose(verbose bool) ApiGetSshUsersUsingGETRequest { + r.verbose = &verbose + return r +} + +// Unique ID of an account +func (r ApiGetSshUsersUsingGETRequest) AccountUcmId(accountUcmId string) ApiGetSshUsersUsingGETRequest { + r.accountUcmId = &accountUcmId + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetSshUsersUsingGETRequest) Offset(offset string) ApiGetSshUsersUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetSshUsersUsingGETRequest) Limit(limit string) ApiGetSshUsersUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetSshUsersUsingGETRequest) Execute() (*SshUserPageResponse, *http.Response, error) { + return r.ApiService.GetSshUsersUsingGETExecute(r) +} + +/* +GetSshUsersUsingGET Get SSH Users + +Returns a list of all SSH Users associated with this account. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSshUsersUsingGETRequest +*/ +func (a *SSHUserApiService) GetSshUsersUsingGET(ctx context.Context) ApiGetSshUsersUsingGETRequest { + return ApiGetSshUsersUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SshUserPageResponse +func (a *SSHUserApiService) GetSshUsersUsingGETExecute(r ApiGetSshUsersUsingGETRequest) (*SshUserPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SshUserPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.GetSshUsersUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.username != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + } + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.verbose != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "verbose", r.verbose, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIsSshUserAvailableForCreationUsingGETRequest struct { + ctx context.Context + ApiService *SSHUserApiService + username *string + authorization *string +} + +// user name +func (r ApiIsSshUserAvailableForCreationUsingGETRequest) Username(username string) ApiIsSshUserAvailableForCreationUsingGETRequest { + r.username = &username + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiIsSshUserAvailableForCreationUsingGETRequest) Authorization(authorization string) ApiIsSshUserAvailableForCreationUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiIsSshUserAvailableForCreationUsingGETRequest) Execute() (*http.Response, error) { + return r.ApiService.IsSshUserAvailableForCreationUsingGETExecute(r) +} + +/* +IsSshUserAvailableForCreationUsingGET Check SSH Username Availability + +Checks if an SSH username is available. Failed response indicates that the given username already exists or is restricted. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIsSshUserAvailableForCreationUsingGETRequest +*/ +func (a *SSHUserApiService) IsSshUserAvailableForCreationUsingGET(ctx context.Context) ApiIsSshUserAvailableForCreationUsingGETRequest { + return ApiIsSshUserAvailableForCreationUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *SSHUserApiService) IsSshUserAvailableForCreationUsingGETExecute(r ApiIsSshUserAvailableForCreationUsingGETRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.IsSshUserAvailableForCreationUsingGET") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers/availability" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.username == nil { + return nil, reportError("username is required and must be specified") + } + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateSshUserUsingPUTRequest struct { + ctx context.Context + ApiService *SSHUserApiService + uuid string + authorization *string + request *SshUserUpdateRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateSshUserUsingPUTRequest) Authorization(authorization string) ApiUpdateSshUserUsingPUTRequest { + r.authorization = &authorization + return r +} + +// SSH user info +func (r ApiUpdateSshUserUsingPUTRequest) Request(request SshUserUpdateRequest) ApiUpdateSshUserUsingPUTRequest { + r.request = &request + return r +} + +func (r ApiUpdateSshUserUsingPUTRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSshUserUsingPUTExecute(r) +} + +/* +UpdateSshUserUsingPUT Update SSH User Password + +Updates the password of an SSH user. Please pass the unique Id of the ssh user as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiUpdateSshUserUsingPUTRequest +*/ +func (a *SSHUserApiService) UpdateSshUserUsingPUT(ctx context.Context, uuid string) ApiUpdateSshUserUsingPUTRequest { + return ApiUpdateSshUserUsingPUTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *SSHUserApiService) UpdateSshUserUsingPUTExecute(r ApiUpdateSshUserUsingPUTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SSHUserApiService.UpdateSshUserUsingPUT") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/sshUsers/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_virtual_device.go b/services/networkedgev1/api_virtual_device.go new file mode 100644 index 00000000..1648ec2b --- /dev/null +++ b/services/networkedgev1/api_virtual_device.go @@ -0,0 +1,1987 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// VirtualDeviceApiService VirtualDeviceApi service +type VirtualDeviceApiService service + +type ApiCreateVirtualDeviceUsingPOSTRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + authorization *string + virtualDevice *VirtualDeviceRequest + draft *bool + draftUuid *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateVirtualDeviceUsingPOSTRequest) Authorization(authorization string) ApiCreateVirtualDeviceUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// Create a virtual device (e.g., a router or a firewall) +func (r ApiCreateVirtualDeviceUsingPOSTRequest) VirtualDevice(virtualDevice VirtualDeviceRequest) ApiCreateVirtualDeviceUsingPOSTRequest { + r.virtualDevice = &virtualDevice + return r +} + +// draft +func (r ApiCreateVirtualDeviceUsingPOSTRequest) Draft(draft bool) ApiCreateVirtualDeviceUsingPOSTRequest { + r.draft = &draft + return r +} + +// draftUuid +func (r ApiCreateVirtualDeviceUsingPOSTRequest) DraftUuid(draftUuid string) ApiCreateVirtualDeviceUsingPOSTRequest { + r.draftUuid = &draftUuid + return r +} + +func (r ApiCreateVirtualDeviceUsingPOSTRequest) Execute() (*VirtualDeviceCreateResponse, *http.Response, error) { + return r.ApiService.CreateVirtualDeviceUsingPOSTExecute(r) +} + +/* +CreateVirtualDeviceUsingPOST Create Virtual Device + +Creates a virtual device. Sub-customers cannot choose the subscription licensing option. To create a device, you must accept the Order Terms. Call Get Order Terms to review the details. If you are creating an Equinix-Configured device, read your vendor's terms by calling Get Vendor Terms. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateVirtualDeviceUsingPOSTRequest +*/ +func (a *VirtualDeviceApiService) CreateVirtualDeviceUsingPOST(ctx context.Context) ApiCreateVirtualDeviceUsingPOSTRequest { + return ApiCreateVirtualDeviceUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return VirtualDeviceCreateResponse +func (a *VirtualDeviceApiService) CreateVirtualDeviceUsingPOSTExecute(r ApiCreateVirtualDeviceUsingPOSTRequest) (*VirtualDeviceCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceCreateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.CreateVirtualDeviceUsingPOST") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.virtualDevice == nil { + return localVarReturnValue, nil, reportError("virtualDevice is required and must be specified") + } + + if r.draft != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "draft", r.draft, "") + } else { + var defaultValue bool = false + r.draft = &defaultValue + } + if r.draftUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "draftUuid", r.draftUuid, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.virtualDevice + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteVRouterUsingDELETERequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string + deleteRedundantDevice *bool + deletionInfo *VirtualDeviceDeleteRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeleteVRouterUsingDELETERequest) Authorization(authorization string) ApiDeleteVRouterUsingDELETERequest { + r.authorization = &authorization + return r +} + +// Optional parameter in case you have a secondary device. As both primary and secondary devices are deleted simultaneously, this field must be marked True so we delete both the devices simultaneously. +func (r ApiDeleteVRouterUsingDELETERequest) DeleteRedundantDevice(deleteRedundantDevice bool) ApiDeleteVRouterUsingDELETERequest { + r.deleteRedundantDevice = &deleteRedundantDevice + return r +} + +// deletionInfo +func (r ApiDeleteVRouterUsingDELETERequest) DeletionInfo(deletionInfo VirtualDeviceDeleteRequest) ApiDeleteVRouterUsingDELETERequest { + r.deletionInfo = &deletionInfo + return r +} + +func (r ApiDeleteVRouterUsingDELETERequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteVRouterUsingDELETEExecute(r) +} + +/* +DeleteVRouterUsingDELETE Delete Virtual Devices + +Delete a virtual device. For some device types (e.g., Palo Alto devices), you also need to provide a deactivation key as a body parameter. For a device pair, the deleteRedundantDevice field must be marked True so we delete both the devices simultaneously. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of the virtual device. + @return ApiDeleteVRouterUsingDELETERequest +*/ +func (a *VirtualDeviceApiService) DeleteVRouterUsingDELETE(ctx context.Context, uuid string) ApiDeleteVRouterUsingDELETERequest { + return ApiDeleteVRouterUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) DeleteVRouterUsingDELETEExecute(r ApiDeleteVRouterUsingDELETERequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.DeleteVRouterUsingDELETE") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + if r.deleteRedundantDevice != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deleteRedundantDevice", r.deleteRedundantDevice, "") + } else { + var defaultValue bool = false + r.deleteRedundantDevice = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.deletionInfo + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetDeviceReloadUsingGET1Request struct { + ctx context.Context + ApiService *VirtualDeviceApiService + virtualDeviceUUID string + authorization *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceReloadUsingGET1Request) Authorization(authorization string) ApiGetDeviceReloadUsingGET1Request { + r.authorization = &authorization + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetDeviceReloadUsingGET1Request) Offset(offset string) ApiGetDeviceReloadUsingGET1Request { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetDeviceReloadUsingGET1Request) Limit(limit string) ApiGetDeviceReloadUsingGET1Request { + r.limit = &limit + return r +} + +func (r ApiGetDeviceReloadUsingGET1Request) Execute() (*DeviceRebootPageResponse, *http.Response, error) { + return r.ApiService.GetDeviceReloadUsingGET1Execute(r) +} + +/* +GetDeviceReloadUsingGET1 Device Reload History + +Returns the reload history of a device. Please send the unique Id of the device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUUID Unique ID of a virtual device. + @return ApiGetDeviceReloadUsingGET1Request +*/ +func (a *VirtualDeviceApiService) GetDeviceReloadUsingGET1(ctx context.Context, virtualDeviceUUID string) ApiGetDeviceReloadUsingGET1Request { + return ApiGetDeviceReloadUsingGET1Request{ + ApiService: a, + ctx: ctx, + virtualDeviceUUID: virtualDeviceUUID, + } +} + +// Execute executes the request +// +// @return DeviceRebootPageResponse +func (a *VirtualDeviceApiService) GetDeviceReloadUsingGET1Execute(r ApiGetDeviceReloadUsingGET1Request) (*DeviceRebootPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRebootPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetDeviceReloadUsingGET1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUUID}/softReboot" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUUID"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUUID, "virtualDeviceUUID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDeviceUpgradeUsingGET1Request struct { + ctx context.Context + ApiService *VirtualDeviceApiService + virtualDeviceUuid string + authorization *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetDeviceUpgradeUsingGET1Request) Authorization(authorization string) ApiGetDeviceUpgradeUsingGET1Request { + r.authorization = &authorization + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetDeviceUpgradeUsingGET1Request) Offset(offset string) ApiGetDeviceUpgradeUsingGET1Request { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetDeviceUpgradeUsingGET1Request) Limit(limit string) ApiGetDeviceUpgradeUsingGET1Request { + r.limit = &limit + return r +} + +func (r ApiGetDeviceUpgradeUsingGET1Request) Execute() (*DeviceUpgradePageResponse, *http.Response, error) { + return r.ApiService.GetDeviceUpgradeUsingGET1Execute(r) +} + +/* +GetDeviceUpgradeUsingGET1 Get Device Upgrade History + +Returns the upgrade history of a device. Please send the unique Id of the device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique ID of a virtual device. + @return ApiGetDeviceUpgradeUsingGET1Request +*/ +func (a *VirtualDeviceApiService) GetDeviceUpgradeUsingGET1(ctx context.Context, virtualDeviceUuid string) ApiGetDeviceUpgradeUsingGET1Request { + return ApiGetDeviceUpgradeUsingGET1Request{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + } +} + +// Execute executes the request +// +// @return DeviceUpgradePageResponse +func (a *VirtualDeviceApiService) GetDeviceUpgradeUsingGET1Execute(r ApiGetDeviceUpgradeUsingGET1Request) (*DeviceUpgradePageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceUpgradePageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetDeviceUpgradeUsingGET1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/resourceUpgrade" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetInterfaceStatisticsUsingGETRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + virtualDeviceUuid string + interfaceId string + startDateTime *string + endDateTime *string + authorization *string +} + +// Start time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) +func (r ApiGetInterfaceStatisticsUsingGETRequest) StartDateTime(startDateTime string) ApiGetInterfaceStatisticsUsingGETRequest { + r.startDateTime = &startDateTime + return r +} + +// End time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) +func (r ApiGetInterfaceStatisticsUsingGETRequest) EndDateTime(endDateTime string) ApiGetInterfaceStatisticsUsingGETRequest { + r.endDateTime = &endDateTime + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetInterfaceStatisticsUsingGETRequest) Authorization(authorization string) ApiGetInterfaceStatisticsUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetInterfaceStatisticsUsingGETRequest) Execute() (*InterfaceStatsObject, *http.Response, error) { + return r.ApiService.GetInterfaceStatisticsUsingGETExecute(r) +} + +/* +GetInterfaceStatisticsUsingGET Get Interface Statistics + +Returns the throughput statistics of a device interface. Pass the unique Id of the device and the interface Id as path parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUuid Unique Id of a device + @param interfaceId Interface Id + @return ApiGetInterfaceStatisticsUsingGETRequest +*/ +func (a *VirtualDeviceApiService) GetInterfaceStatisticsUsingGET(ctx context.Context, virtualDeviceUuid string, interfaceId string) ApiGetInterfaceStatisticsUsingGETRequest { + return ApiGetInterfaceStatisticsUsingGETRequest{ + ApiService: a, + ctx: ctx, + virtualDeviceUuid: virtualDeviceUuid, + interfaceId: interfaceId, + } +} + +// Execute executes the request +// +// @return InterfaceStatsObject +func (a *VirtualDeviceApiService) GetInterfaceStatisticsUsingGETExecute(r ApiGetInterfaceStatisticsUsingGETRequest) (*InterfaceStatsObject, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceStatsObject + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetInterfaceStatisticsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUuid}/interfaces/{interfaceId}/stats" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUuid"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUuid, "virtualDeviceUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"interfaceId"+"}", url.PathEscape(parameterValueToString(r.interfaceId, "interfaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.startDateTime == nil { + return localVarReturnValue, nil, reportError("startDateTime is required and must be specified") + } + if r.endDateTime == nil { + return localVarReturnValue, nil, reportError("endDateTime is required and must be specified") + } + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "startDateTime", r.startDateTime, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "endDateTime", r.endDateTime, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVirtualDeviceInterfacesUsingGETRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVirtualDeviceInterfacesUsingGETRequest) Authorization(authorization string) ApiGetVirtualDeviceInterfacesUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetVirtualDeviceInterfacesUsingGETRequest) Execute() ([]InterfaceBasicInfoResponse, *http.Response, error) { + return r.ApiService.GetVirtualDeviceInterfacesUsingGETExecute(r) +} + +/* +GetVirtualDeviceInterfacesUsingGET Get Device Interfaces + +Returns the status of the interfaces of a device. You must pass the unique Id of the device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetVirtualDeviceInterfacesUsingGETRequest +*/ +func (a *VirtualDeviceApiService) GetVirtualDeviceInterfacesUsingGET(ctx context.Context, uuid string) ApiGetVirtualDeviceInterfacesUsingGETRequest { + return ApiGetVirtualDeviceInterfacesUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return []InterfaceBasicInfoResponse +func (a *VirtualDeviceApiService) GetVirtualDeviceInterfacesUsingGETExecute(r ApiGetVirtualDeviceInterfacesUsingGETRequest) ([]InterfaceBasicInfoResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InterfaceBasicInfoResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetVirtualDeviceInterfacesUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/interfaces" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVirtualDeviceUsingGETRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVirtualDeviceUsingGETRequest) Authorization(authorization string) ApiGetVirtualDeviceUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetVirtualDeviceUsingGETRequest) Execute() (*VirtualDeviceDetailsResponse, *http.Response, error) { + return r.ApiService.GetVirtualDeviceUsingGETExecute(r) +} + +/* +GetVirtualDeviceUsingGET Get Virtual Device {uuid} + +Returns the virtual device details of an existing device on the Network Edge platform. You must provide the unique ID of the existing device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetVirtualDeviceUsingGETRequest +*/ +func (a *VirtualDeviceApiService) GetVirtualDeviceUsingGET(ctx context.Context, uuid string) ApiGetVirtualDeviceUsingGETRequest { + return ApiGetVirtualDeviceUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return VirtualDeviceDetailsResponse +func (a *VirtualDeviceApiService) GetVirtualDeviceUsingGETExecute(r ApiGetVirtualDeviceUsingGETRequest) (*VirtualDeviceDetailsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceDetailsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetVirtualDeviceUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVirtualDevicesUsingGET1Request struct { + ctx context.Context + ApiService *VirtualDeviceApiService + authorization *string + offset *string + limit *string + metroCode *string + status *string + showOnlySubCustomerDevices *bool + accountUcmId *string + searchText *string + sort *[]string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVirtualDevicesUsingGET1Request) Authorization(authorization string) ApiGetVirtualDevicesUsingGET1Request { + r.authorization = &authorization + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetVirtualDevicesUsingGET1Request) Offset(offset string) ApiGetVirtualDevicesUsingGET1Request { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetVirtualDevicesUsingGET1Request) Limit(limit string) ApiGetVirtualDevicesUsingGET1Request { + r.limit = &limit + return r +} + +// metroCode +func (r ApiGetVirtualDevicesUsingGET1Request) MetroCode(metroCode string) ApiGetVirtualDevicesUsingGET1Request { + r.metroCode = &metroCode + return r +} + +// status +func (r ApiGetVirtualDevicesUsingGET1Request) Status(status string) ApiGetVirtualDevicesUsingGET1Request { + r.status = &status + return r +} + +// Resellers may mark this Yes to see sub customer devices. +func (r ApiGetVirtualDevicesUsingGET1Request) ShowOnlySubCustomerDevices(showOnlySubCustomerDevices bool) ApiGetVirtualDevicesUsingGET1Request { + r.showOnlySubCustomerDevices = &showOnlySubCustomerDevices + return r +} + +// Unique ID of the account. +func (r ApiGetVirtualDevicesUsingGET1Request) AccountUcmId(accountUcmId string) ApiGetVirtualDevicesUsingGET1Request { + r.accountUcmId = &accountUcmId + return r +} + +// Enter text to fetch only matching device names +func (r ApiGetVirtualDevicesUsingGET1Request) SearchText(searchText string) ApiGetVirtualDevicesUsingGET1Request { + r.searchText = &searchText + return r +} + +// Sorts the output based on field names. +func (r ApiGetVirtualDevicesUsingGET1Request) Sort(sort []string) ApiGetVirtualDevicesUsingGET1Request { + r.sort = &sort + return r +} + +func (r ApiGetVirtualDevicesUsingGET1Request) Execute() (*VirtualDevicePageResponse, *http.Response, error) { + return r.ApiService.GetVirtualDevicesUsingGET1Execute(r) +} + +/* +GetVirtualDevicesUsingGET1 Get Virtual Devices + +Returns all the available virtual devices, i.e. routers and routers, on the Network Edge platform. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetVirtualDevicesUsingGET1Request +*/ +func (a *VirtualDeviceApiService) GetVirtualDevicesUsingGET1(ctx context.Context) ApiGetVirtualDevicesUsingGET1Request { + return ApiGetVirtualDevicesUsingGET1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return VirtualDevicePageResponse +func (a *VirtualDeviceApiService) GetVirtualDevicesUsingGET1Execute(r ApiGetVirtualDevicesUsingGET1Request) (*VirtualDevicePageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDevicePageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.GetVirtualDevicesUsingGET1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + if r.metroCode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metroCode", r.metroCode, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.showOnlySubCustomerDevices != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "showOnlySubCustomerDevices", r.showOnlySubCustomerDevices, "") + } + if r.accountUcmId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountUcmId", r.accountUcmId, "") + } + if r.searchText != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchText", r.searchText, "") + } + if r.sort != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPingDeviceUsingGETRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPingDeviceUsingGETRequest) Authorization(authorization string) ApiPingDeviceUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiPingDeviceUsingGETRequest) Execute() (*http.Response, error) { + return r.ApiService.PingDeviceUsingGETExecute(r) +} + +/* +PingDeviceUsingGET Ping Virtual Device + +Pings a virtual device to ensure it's reachable. At this point, you can only ping a few SELF-CONFIGURED devices. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Virtual Device unique Id + @return ApiPingDeviceUsingGETRequest +*/ +func (a *VirtualDeviceApiService) PingDeviceUsingGET(ctx context.Context, uuid string) ApiPingDeviceUsingGETRequest { + return ApiPingDeviceUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) PingDeviceUsingGETExecute(r ApiPingDeviceUsingGETRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.PingDeviceUsingGET") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/ping" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPostDeviceReloadUsingPOST1Request struct { + ctx context.Context + ApiService *VirtualDeviceApiService + virtualDeviceUUID string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiPostDeviceReloadUsingPOST1Request) Authorization(authorization string) ApiPostDeviceReloadUsingPOST1Request { + r.authorization = &authorization + return r +} + +func (r ApiPostDeviceReloadUsingPOST1Request) Execute() (*http.Response, error) { + return r.ApiService.PostDeviceReloadUsingPOST1Execute(r) +} + +/* +PostDeviceReloadUsingPOST1 Trigger Soft Reboot + +Triggers the soft reboot of a device. Please send the unique Id of the device as a path parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualDeviceUUID Unique ID of a virtual device. + @return ApiPostDeviceReloadUsingPOST1Request +*/ +func (a *VirtualDeviceApiService) PostDeviceReloadUsingPOST1(ctx context.Context, virtualDeviceUUID string) ApiPostDeviceReloadUsingPOST1Request { + return ApiPostDeviceReloadUsingPOST1Request{ + ApiService: a, + ctx: ctx, + virtualDeviceUUID: virtualDeviceUUID, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) PostDeviceReloadUsingPOST1Execute(r ApiPostDeviceReloadUsingPOST1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.PostDeviceReloadUsingPOST1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{virtualDeviceUUID}/softReboot" + localVarPath = strings.Replace(localVarPath, "{"+"virtualDeviceUUID"+"}", url.PathEscape(parameterValueToString(r.virtualDeviceUUID, "virtualDeviceUUID")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateAdditionalBandwidthRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string + request *AdditionalBandwidthRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateAdditionalBandwidthRequest) Authorization(authorization string) ApiUpdateAdditionalBandwidthRequest { + r.authorization = &authorization + return r +} + +// Additional Bandwidth +func (r ApiUpdateAdditionalBandwidthRequest) Request(request AdditionalBandwidthRequest) ApiUpdateAdditionalBandwidthRequest { + r.request = &request + return r +} + +func (r ApiUpdateAdditionalBandwidthRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateAdditionalBandwidthExecute(r) +} + +/* +UpdateAdditionalBandwidth Update Additional Bandwidth + +You can use this method to change or add additional bandwidth to a virtual device. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid The unique Id of a virtual device + @return ApiUpdateAdditionalBandwidthRequest +*/ +func (a *VirtualDeviceApiService) UpdateAdditionalBandwidth(ctx context.Context, uuid string) ApiUpdateAdditionalBandwidthRequest { + return ApiUpdateAdditionalBandwidthRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) UpdateAdditionalBandwidthExecute(r ApiUpdateAdditionalBandwidthRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.UpdateAdditionalBandwidth") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}/additionalBandwidths" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.request == nil { + return nil, reportError("request is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateVirtualDeviceUsingPATCH1Request struct { + ctx context.Context + ApiService *VirtualDeviceApiService + uuid string + authorization *string + virtualDeviceUpdateRequestDto *VirtualDeviceInternalPatchRequestDto +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateVirtualDeviceUsingPATCH1Request) Authorization(authorization string) ApiUpdateVirtualDeviceUsingPATCH1Request { + r.authorization = &authorization + return r +} + +func (r ApiUpdateVirtualDeviceUsingPATCH1Request) VirtualDeviceUpdateRequestDto(virtualDeviceUpdateRequestDto VirtualDeviceInternalPatchRequestDto) ApiUpdateVirtualDeviceUsingPATCH1Request { + r.virtualDeviceUpdateRequestDto = &virtualDeviceUpdateRequestDto + return r +} + +func (r ApiUpdateVirtualDeviceUsingPATCH1Request) Execute() (*http.Response, error) { + return r.ApiService.UpdateVirtualDeviceUsingPATCH1Execute(r) +} + +/* +UpdateVirtualDeviceUsingPATCH1 Update Virtual Device + +Updates certain fields of a virtual device. You can only update the name, term length, status, and notification list of a virtual device. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid The unique Id of the device. + @return ApiUpdateVirtualDeviceUsingPATCH1Request +*/ +func (a *VirtualDeviceApiService) UpdateVirtualDeviceUsingPATCH1(ctx context.Context, uuid string) ApiUpdateVirtualDeviceUsingPATCH1Request { + return ApiUpdateVirtualDeviceUsingPATCH1Request{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) UpdateVirtualDeviceUsingPATCH1Execute(r ApiUpdateVirtualDeviceUsingPATCH1Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.UpdateVirtualDeviceUsingPATCH1") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.virtualDeviceUpdateRequestDto + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateVirtualDeviceUsingPUTRequest struct { + ctx context.Context + ApiService *VirtualDeviceApiService + draft *bool + uuid string + authorization *string + virtualDevice *VirtualDeviceRequest +} + +// draft +func (r ApiUpdateVirtualDeviceUsingPUTRequest) Draft(draft bool) ApiUpdateVirtualDeviceUsingPUTRequest { + r.draft = &draft + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateVirtualDeviceUsingPUTRequest) Authorization(authorization string) ApiUpdateVirtualDeviceUsingPUTRequest { + r.authorization = &authorization + return r +} + +// Update virtual device details +func (r ApiUpdateVirtualDeviceUsingPUTRequest) VirtualDevice(virtualDevice VirtualDeviceRequest) ApiUpdateVirtualDeviceUsingPUTRequest { + r.virtualDevice = &virtualDevice + return r +} + +func (r ApiUpdateVirtualDeviceUsingPUTRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateVirtualDeviceUsingPUTExecute(r) +} + +/* +UpdateVirtualDeviceUsingPUT Update Device Draft + +This API is for updating a virtual device draft
and does not support device update as of now. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid Unique Id of a Virtual Device + @return ApiUpdateVirtualDeviceUsingPUTRequest +*/ +func (a *VirtualDeviceApiService) UpdateVirtualDeviceUsingPUT(ctx context.Context, uuid string) ApiUpdateVirtualDeviceUsingPUTRequest { + return ApiUpdateVirtualDeviceUsingPUTRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VirtualDeviceApiService) UpdateVirtualDeviceUsingPUTExecute(r ApiUpdateVirtualDeviceUsingPUTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualDeviceApiService.UpdateVirtualDeviceUsingPUT") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/devices/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.draft == nil { + return nil, reportError("draft is required and must be specified") + } + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + if r.virtualDevice == nil { + return nil, reportError("virtualDevice is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "draft", r.draft, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.virtualDevice + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/api_vpn.go b/services/networkedgev1/api_vpn.go new file mode 100644 index 00000000..98eeb935 --- /dev/null +++ b/services/networkedgev1/api_vpn.go @@ -0,0 +1,788 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "reflect" + "strings" +) + +// VPNApiService VPNApi service +type VPNApiService service + +type ApiCreateVpnUsingPOSTRequest struct { + ctx context.Context + ApiService *VPNApiService + authorization *string + request *Vpn +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateVpnUsingPOSTRequest) Authorization(authorization string) ApiCreateVpnUsingPOSTRequest { + r.authorization = &authorization + return r +} + +// VPN info +func (r ApiCreateVpnUsingPOSTRequest) Request(request Vpn) ApiCreateVpnUsingPOSTRequest { + r.request = &request + return r +} + +func (r ApiCreateVpnUsingPOSTRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateVpnUsingPOSTExecute(r) +} + +/* +CreateVpnUsingPOST Create VPN Configuration + +Creates a VPN configuration. You must have a provisioned virtual device with a registered license to create a VPN. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateVpnUsingPOSTRequest +*/ +func (a *VPNApiService) CreateVpnUsingPOST(ctx context.Context) ApiCreateVpnUsingPOSTRequest { + return ApiCreateVpnUsingPOSTRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *VPNApiService) CreateVpnUsingPOSTExecute(r ApiCreateVpnUsingPOSTRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VPNApiService.CreateVpnUsingPOST") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/vpn" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetVpnByUuidUsingGETRequest struct { + ctx context.Context + ApiService *VPNApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVpnByUuidUsingGETRequest) Authorization(authorization string) ApiGetVpnByUuidUsingGETRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetVpnByUuidUsingGETRequest) Execute() (*VpnResponse, *http.Response, error) { + return r.ApiService.GetVpnByUuidUsingGETExecute(r) +} + +/* +GetVpnByUuidUsingGET Get VPN Configuration {uuid} + +Gets a VPN configuration by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiGetVpnByUuidUsingGETRequest +*/ +func (a *VPNApiService) GetVpnByUuidUsingGET(ctx context.Context, uuid string) ApiGetVpnByUuidUsingGETRequest { + return ApiGetVpnByUuidUsingGETRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return VpnResponse +func (a *VPNApiService) GetVpnByUuidUsingGETExecute(r ApiGetVpnByUuidUsingGETRequest) (*VpnResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VpnResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VPNApiService.GetVpnByUuidUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/vpn/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetVpnByUuidUsingGET404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVpnsUsingGETRequest struct { + ctx context.Context + ApiService *VPNApiService + authorization *string + statusList *[]GetVpnsUsingGETStatusListParameterInner + virtualDeviceUuid *string + offset *string + limit *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetVpnsUsingGETRequest) Authorization(authorization string) ApiGetVpnsUsingGETRequest { + r.authorization = &authorization + return r +} + +// One or more desired status +func (r ApiGetVpnsUsingGETRequest) StatusList(statusList []GetVpnsUsingGETStatusListParameterInner) ApiGetVpnsUsingGETRequest { + r.statusList = &statusList + return r +} + +// Unique Id of a virtual device +func (r ApiGetVpnsUsingGETRequest) VirtualDeviceUuid(virtualDeviceUuid string) ApiGetVpnsUsingGETRequest { + r.virtualDeviceUuid = &virtualDeviceUuid + return r +} + +// Specifies where to start a page. It is the starting point of the collection returned from the server. +func (r ApiGetVpnsUsingGETRequest) Offset(offset string) ApiGetVpnsUsingGETRequest { + r.offset = &offset + return r +} + +// Specifies the page size. +func (r ApiGetVpnsUsingGETRequest) Limit(limit string) ApiGetVpnsUsingGETRequest { + r.limit = &limit + return r +} + +func (r ApiGetVpnsUsingGETRequest) Execute() (*VpnResponseDto, *http.Response, error) { + return r.ApiService.GetVpnsUsingGETExecute(r) +} + +/* +GetVpnsUsingGET Get VPN Configurations + +Gets all VPN configurations by user name and specified parameter(s). Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetVpnsUsingGETRequest +*/ +func (a *VPNApiService) GetVpnsUsingGET(ctx context.Context) ApiGetVpnsUsingGETRequest { + return ApiGetVpnsUsingGETRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return VpnResponseDto +func (a *VPNApiService) GetVpnsUsingGETExecute(r ApiGetVpnsUsingGETRequest) (*VpnResponseDto, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VpnResponseDto + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VPNApiService.GetVpnsUsingGET") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/vpn" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.statusList != nil { + t := *r.statusList + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "statusList", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "statusList", t, "multi") + } + } + if r.virtualDeviceUuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtualDeviceUuid", r.virtualDeviceUuid, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } else { + var defaultValue string = "0" + r.offset = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue string = "20" + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRemoveVpnConfigurationUsingDELETERequest struct { + ctx context.Context + ApiService *VPNApiService + uuid string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiRemoveVpnConfigurationUsingDELETERequest) Authorization(authorization string) ApiRemoveVpnConfigurationUsingDELETERequest { + r.authorization = &authorization + return r +} + +func (r ApiRemoveVpnConfigurationUsingDELETERequest) Execute() (*http.Response, error) { + return r.ApiService.RemoveVpnConfigurationUsingDELETEExecute(r) +} + +/* +RemoveVpnConfigurationUsingDELETE Delete VPN Configuration + +Deletes a VPN configuration by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiRemoveVpnConfigurationUsingDELETERequest +*/ +func (a *VPNApiService) RemoveVpnConfigurationUsingDELETE(ctx context.Context, uuid string) ApiRemoveVpnConfigurationUsingDELETERequest { + return ApiRemoveVpnConfigurationUsingDELETERequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VPNApiService) RemoveVpnConfigurationUsingDELETEExecute(r ApiRemoveVpnConfigurationUsingDELETERequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VPNApiService.RemoveVpnConfigurationUsingDELETE") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/vpn/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateVpnConfigurationUsingPutRequest struct { + ctx context.Context + ApiService *VPNApiService + uuid string + authorization *string + request *Vpn +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateVpnConfigurationUsingPutRequest) Authorization(authorization string) ApiUpdateVpnConfigurationUsingPutRequest { + r.authorization = &authorization + return r +} + +// VPN info +func (r ApiUpdateVpnConfigurationUsingPutRequest) Request(request Vpn) ApiUpdateVpnConfigurationUsingPutRequest { + r.request = &request + return r +} + +func (r ApiUpdateVpnConfigurationUsingPutRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateVpnConfigurationUsingPutExecute(r) +} + +/* +UpdateVpnConfigurationUsingPut Update VPN Configuration + +Update a VPN configuration by its unique Id. Authorization checks are performed on the users of this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid uuid + @return ApiUpdateVpnConfigurationUsingPutRequest +*/ +func (a *VPNApiService) UpdateVpnConfigurationUsingPut(ctx context.Context, uuid string) ApiUpdateVpnConfigurationUsingPutRequest { + return ApiUpdateVpnConfigurationUsingPutRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +func (a *VPNApiService) UpdateVpnConfigurationUsingPutExecute(r ApiUpdateVpnConfigurationUsingPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VPNApiService.UpdateVpnConfigurationUsingPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ne/v1/vpn/{uuid}" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterValueToString(r.uuid, "uuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FieldErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/networkedgev1/client.go b/services/networkedgev1/client.go new file mode 100644 index 00000000..6d659f42 --- /dev/null +++ b/services/networkedgev1/client.go @@ -0,0 +1,690 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the Network Edge APIs API v1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ACLTemplateApi *ACLTemplateApiService + + BGPApi *BGPApiService + + DeviceBackupRestoreApi *DeviceBackupRestoreApiService + + DeviceLinkApi *DeviceLinkApiService + + DeviceRMAApi *DeviceRMAApiService + + Layer2ConnectionsServiceProfilesApi *Layer2ConnectionsServiceProfilesApiService + + LicensingApi *LicensingApiService + + SSHUserApi *SSHUserApiService + + SetupApi *SetupApiService + + VPNApi *VPNApiService + + VirtualDeviceApi *VirtualDeviceApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ACLTemplateApi = (*ACLTemplateApiService)(&c.common) + c.BGPApi = (*BGPApiService)(&c.common) + c.DeviceBackupRestoreApi = (*DeviceBackupRestoreApiService)(&c.common) + c.DeviceLinkApi = (*DeviceLinkApiService)(&c.common) + c.DeviceRMAApi = (*DeviceRMAApiService)(&c.common) + c.Layer2ConnectionsServiceProfilesApi = (*Layer2ConnectionsServiceProfilesApiService)(&c.common) + c.LicensingApi = (*LicensingApiService)(&c.common) + c.SSHUserApi = (*SSHUserApiService)(&c.common) + c.SetupApi = (*SetupApiService)(&c.common) + c.VPNApi = (*VPNApiService)(&c.common) + c.VirtualDeviceApi = (*VirtualDeviceApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/networkedgev1/configuration.go b/services/networkedgev1/configuration.go new file mode 100644 index 00000000..37db4906 --- /dev/null +++ b/services/networkedgev1/configuration.go @@ -0,0 +1,215 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "equinix-sdk-go/0.46.0", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.equinix.com", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{}, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/services/networkedgev1/docs/ACLDetails.md b/services/networkedgev1/docs/ACLDetails.md new file mode 100644 index 00000000..5e434f5b --- /dev/null +++ b/services/networkedgev1/docs/ACLDetails.md @@ -0,0 +1,82 @@ +# ACLDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InterfaceType** | Pointer to **string** | Interface type, whether MGMT or WAN. | [optional] +**Uuid** | Pointer to **string** | The unique ID of ACL. | [optional] + +## Methods + +### NewACLDetails + +`func NewACLDetails() *ACLDetails` + +NewACLDetails instantiates a new ACLDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewACLDetailsWithDefaults + +`func NewACLDetailsWithDefaults() *ACLDetails` + +NewACLDetailsWithDefaults instantiates a new ACLDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInterfaceType + +`func (o *ACLDetails) GetInterfaceType() string` + +GetInterfaceType returns the InterfaceType field if non-nil, zero value otherwise. + +### GetInterfaceTypeOk + +`func (o *ACLDetails) GetInterfaceTypeOk() (*string, bool)` + +GetInterfaceTypeOk returns a tuple with the InterfaceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceType + +`func (o *ACLDetails) SetInterfaceType(v string)` + +SetInterfaceType sets InterfaceType field to given value. + +### HasInterfaceType + +`func (o *ACLDetails) HasInterfaceType() bool` + +HasInterfaceType returns a boolean if a field has been set. + +### GetUuid + +`func (o *ACLDetails) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *ACLDetails) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *ACLDetails) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *ACLDetails) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ACLTemplateApi.md b/services/networkedgev1/docs/ACLTemplateApi.md new file mode 100644 index 00000000..29dff445 --- /dev/null +++ b/services/networkedgev1/docs/ACLTemplateApi.md @@ -0,0 +1,665 @@ +# \ACLTemplateApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateDeviceACLTemplateUsingPost**](ACLTemplateApi.md#CreateDeviceACLTemplateUsingPost) | **Post** /ne/v1/aclTemplates | Create ACL Template +[**DeletedeviceACLUsingDELETE**](ACLTemplateApi.md#DeletedeviceACLUsingDELETE) | **Delete** /ne/v1/aclTemplates/{uuid} | Delete ACL template +[**GetDeviceACLTemplateUsingGET1**](ACLTemplateApi.md#GetDeviceACLTemplateUsingGET1) | **Get** /ne/v1/aclTemplates | Get ACL Templates +[**GetDeviceTemplatebyUuid**](ACLTemplateApi.md#GetDeviceTemplatebyUuid) | **Get** /ne/v1/aclTemplates/{uuid} | Get ACL Template {uuid} +[**GetDeviceTemplatesbyUuid**](ACLTemplateApi.md#GetDeviceTemplatesbyUuid) | **Get** /ne/v1/devices/{virtualDeviceUuid}/acl | Get ACL of Virtual Device +[**PatchDeviceTemplatesbyUuid**](ACLTemplateApi.md#PatchDeviceTemplatesbyUuid) | **Patch** /ne/v1/devices/{virtualDeviceUuid}/acl | Update ACL of Virtual Device +[**PostDeviceTemplatesbyUuid**](ACLTemplateApi.md#PostDeviceTemplatesbyUuid) | **Post** /ne/v1/devices/{virtualDeviceUuid}/acl | Add ACL to Virtual Device +[**SendDnsLookupPOST1**](ACLTemplateApi.md#SendDnsLookupPOST1) | **Post** /ne/v1/dnsLookup | Post DNS Lookup +[**UpdateDeviceACLTemplateUsingPUT**](ACLTemplateApi.md#UpdateDeviceACLTemplateUsingPUT) | **Put** /ne/v1/aclTemplates/{uuid} | Update ACL Template + + + +## CreateDeviceACLTemplateUsingPost + +> VirtualDeviceCreateResponse CreateDeviceACLTemplateUsingPost(ctx).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + +Create ACL Template + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + aclTemplateRequest := *openapiclient.NewDeviceACLTemplateRequest("Test Template", "Test Template Description", []openapiclient.InboundRules{*openapiclient.NewInboundRules()}) // DeviceACLTemplateRequest | Creates an ACL template. + accountUcmId := "accountUcmId_example" // string | A reseller creating an ACL template for a customer can pass the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ACLTemplateApi.CreateDeviceACLTemplateUsingPost(context.Background()).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.CreateDeviceACLTemplateUsingPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDeviceACLTemplateUsingPost`: VirtualDeviceCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ACLTemplateApi.CreateDeviceACLTemplateUsingPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateDeviceACLTemplateUsingPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **aclTemplateRequest** | [**DeviceACLTemplateRequest**](DeviceACLTemplateRequest.md) | Creates an ACL template. | + **accountUcmId** | **string** | A reseller creating an ACL template for a customer can pass the accountUcmId of the customer. | + +### Return type + +[**VirtualDeviceCreateResponse**](VirtualDeviceCreateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletedeviceACLUsingDELETE + +> DeletedeviceACLUsingDELETE(ctx, uuid).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + +Delete ACL template + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of an ACL template + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountUcmId := "accountUcmId_example" // string | A reseller deleting an ACL template for a customer must pass the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ACLTemplateApi.DeletedeviceACLUsingDELETE(context.Background(), uuid).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.DeletedeviceACLUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of an ACL template | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletedeviceACLUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountUcmId** | **string** | A reseller deleting an ACL template for a customer must pass the accountUcmId of the customer. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceACLTemplateUsingGET1 + +> DeviceACLPageResponse GetDeviceACLTemplateUsingGET1(ctx).Authorization(authorization).Offset(offset).Limit(limit).AccountUcmId(accountUcmId).Execute() + +Get ACL Templates + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + accountUcmId := "accountUcmId_example" // string | Unique ID of the account. A reseller querying for the ACLs of a customer should input the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ACLTemplateApi.GetDeviceACLTemplateUsingGET1(context.Background()).Authorization(authorization).Offset(offset).Limit(limit).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.GetDeviceACLTemplateUsingGET1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceACLTemplateUsingGET1`: DeviceACLPageResponse + fmt.Fprintf(os.Stdout, "Response from `ACLTemplateApi.GetDeviceACLTemplateUsingGET1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceACLTemplateUsingGET1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + **accountUcmId** | **string** | Unique ID of the account. A reseller querying for the ACLs of a customer should input the accountUcmId of the customer. | + +### Return type + +[**DeviceACLPageResponse**](DeviceACLPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceTemplatebyUuid + +> ACLTemplateDetailsResponse GetDeviceTemplatebyUuid(ctx, uuid).Authorization(authorization).Execute() + +Get ACL Template {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of an ACL template + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ACLTemplateApi.GetDeviceTemplatebyUuid(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.GetDeviceTemplatebyUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceTemplatebyUuid`: ACLTemplateDetailsResponse + fmt.Fprintf(os.Stdout, "Response from `ACLTemplateApi.GetDeviceTemplatebyUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of an ACL template | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceTemplatebyUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**ACLTemplateDetailsResponse**](ACLTemplateDetailsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceTemplatesbyUuid + +> InitialDeviceACLResponse GetDeviceTemplatesbyUuid(ctx, virtualDeviceUuid).Authorization(authorization).Execute() + +Get ACL of Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ACLTemplateApi.GetDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.GetDeviceTemplatesbyUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceTemplatesbyUuid`: InitialDeviceACLResponse + fmt.Fprintf(os.Stdout, "Response from `ACLTemplateApi.GetDeviceTemplatesbyUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique Id of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceTemplatesbyUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**InitialDeviceACLResponse**](InitialDeviceACLResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchDeviceTemplatesbyUuid + +> PatchDeviceTemplatesbyUuid(ctx, virtualDeviceUuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + +Update ACL of Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + aclTemplateRequest := *openapiclient.NewUpdateDeviceACLTemplateRequest([]openapiclient.ACLDetails{*openapiclient.NewACLDetails()}) // UpdateDeviceACLTemplateRequest | Update the ACL of a device. + accountUcmId := "accountUcmId_example" // string | A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ACLTemplateApi.PatchDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.PatchDeviceTemplatesbyUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique Id of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchDeviceTemplatesbyUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **aclTemplateRequest** | [**UpdateDeviceACLTemplateRequest**](UpdateDeviceACLTemplateRequest.md) | Update the ACL of a device. | + **accountUcmId** | **string** | A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostDeviceTemplatesbyUuid + +> PostDeviceTemplatesbyUuid(ctx, virtualDeviceUuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + +Add ACL to Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + aclTemplateRequest := *openapiclient.NewUpdateDeviceACLTemplateRequest([]openapiclient.ACLDetails{*openapiclient.NewACLDetails()}) // UpdateDeviceACLTemplateRequest | Update the ACL of a device. + accountUcmId := "accountUcmId_example" // string | A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ACLTemplateApi.PostDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.PostDeviceTemplatesbyUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique Id of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostDeviceTemplatesbyUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **aclTemplateRequest** | [**UpdateDeviceACLTemplateRequest**](UpdateDeviceACLTemplateRequest.md) | Update the ACL of a device. | + **accountUcmId** | **string** | A reseller updating a device ACL template for a customer can pass the accountUcmId of the customer. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SendDnsLookupPOST1 + +> DNSLookupResponse SendDnsLookupPOST1(ctx).Authorization(authorization).DnsLookupRequest(dnsLookupRequest).Execute() + +Post DNS Lookup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + dnsLookupRequest := *openapiclient.NewDNSLookupRequest() // DNSLookupRequest | dnsLookupRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ACLTemplateApi.SendDnsLookupPOST1(context.Background()).Authorization(authorization).DnsLookupRequest(dnsLookupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.SendDnsLookupPOST1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendDnsLookupPOST1`: DNSLookupResponse + fmt.Fprintf(os.Stdout, "Response from `ACLTemplateApi.SendDnsLookupPOST1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSendDnsLookupPOST1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **dnsLookupRequest** | [**DNSLookupRequest**](DNSLookupRequest.md) | dnsLookupRequest | + +### Return type + +[**DNSLookupResponse**](DNSLookupResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateDeviceACLTemplateUsingPUT + +> UpdateDeviceACLTemplateUsingPUT(ctx, uuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + +Update ACL Template + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of an ACL template + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + aclTemplateRequest := *openapiclient.NewDeviceACLTemplateRequest("Test Template", "Test Template Description", []openapiclient.InboundRules{*openapiclient.NewInboundRules()}) // DeviceACLTemplateRequest | Update an ACL template. + accountUcmId := "accountUcmId_example" // string | A reseller updating an ACL template for a customer must pass the accountUcmId of the customer. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ACLTemplateApi.UpdateDeviceACLTemplateUsingPUT(context.Background(), uuid).Authorization(authorization).AclTemplateRequest(aclTemplateRequest).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ACLTemplateApi.UpdateDeviceACLTemplateUsingPUT``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of an ACL template | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateDeviceACLTemplateUsingPUTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **aclTemplateRequest** | [**DeviceACLTemplateRequest**](DeviceACLTemplateRequest.md) | Update an ACL template. | + **accountUcmId** | **string** | A reseller updating an ACL template for a customer must pass the accountUcmId of the customer. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/ACLTemplateDetailsResponse.md b/services/networkedgev1/docs/ACLTemplateDetailsResponse.md new file mode 100644 index 00000000..8efdad88 --- /dev/null +++ b/services/networkedgev1/docs/ACLTemplateDetailsResponse.md @@ -0,0 +1,212 @@ +# ACLTemplateDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the ACL template. | [optional] +**Uuid** | Pointer to **string** | The unique Id of the ACL template. | [optional] +**Description** | Pointer to **string** | The description of the ACL template. | [optional] +**InboundRules** | Pointer to [**[]InboundRules**](InboundRules.md) | An array of inbound rules | [optional] +**VirtualDeviceDetails** | Pointer to [**[]VirtualDeviceACLDetails**](VirtualDeviceACLDetails.md) | The array of devices associated with this ACL template | [optional] +**CreatedBy** | Pointer to **string** | Created by | [optional] +**CreatedDate** | Pointer to **string** | Created date | [optional] + +## Methods + +### NewACLTemplateDetailsResponse + +`func NewACLTemplateDetailsResponse() *ACLTemplateDetailsResponse` + +NewACLTemplateDetailsResponse instantiates a new ACLTemplateDetailsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewACLTemplateDetailsResponseWithDefaults + +`func NewACLTemplateDetailsResponseWithDefaults() *ACLTemplateDetailsResponse` + +NewACLTemplateDetailsResponseWithDefaults instantiates a new ACLTemplateDetailsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ACLTemplateDetailsResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ACLTemplateDetailsResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ACLTemplateDetailsResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ACLTemplateDetailsResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUuid + +`func (o *ACLTemplateDetailsResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *ACLTemplateDetailsResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *ACLTemplateDetailsResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *ACLTemplateDetailsResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetDescription + +`func (o *ACLTemplateDetailsResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ACLTemplateDetailsResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ACLTemplateDetailsResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ACLTemplateDetailsResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInboundRules + +`func (o *ACLTemplateDetailsResponse) GetInboundRules() []InboundRules` + +GetInboundRules returns the InboundRules field if non-nil, zero value otherwise. + +### GetInboundRulesOk + +`func (o *ACLTemplateDetailsResponse) GetInboundRulesOk() (*[]InboundRules, bool)` + +GetInboundRulesOk returns a tuple with the InboundRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundRules + +`func (o *ACLTemplateDetailsResponse) SetInboundRules(v []InboundRules)` + +SetInboundRules sets InboundRules field to given value. + +### HasInboundRules + +`func (o *ACLTemplateDetailsResponse) HasInboundRules() bool` + +HasInboundRules returns a boolean if a field has been set. + +### GetVirtualDeviceDetails + +`func (o *ACLTemplateDetailsResponse) GetVirtualDeviceDetails() []VirtualDeviceACLDetails` + +GetVirtualDeviceDetails returns the VirtualDeviceDetails field if non-nil, zero value otherwise. + +### GetVirtualDeviceDetailsOk + +`func (o *ACLTemplateDetailsResponse) GetVirtualDeviceDetailsOk() (*[]VirtualDeviceACLDetails, bool)` + +GetVirtualDeviceDetailsOk returns a tuple with the VirtualDeviceDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceDetails + +`func (o *ACLTemplateDetailsResponse) SetVirtualDeviceDetails(v []VirtualDeviceACLDetails)` + +SetVirtualDeviceDetails sets VirtualDeviceDetails field to given value. + +### HasVirtualDeviceDetails + +`func (o *ACLTemplateDetailsResponse) HasVirtualDeviceDetails() bool` + +HasVirtualDeviceDetails returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ACLTemplateDetailsResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ACLTemplateDetailsResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ACLTemplateDetailsResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ACLTemplateDetailsResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *ACLTemplateDetailsResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *ACLTemplateDetailsResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *ACLTemplateDetailsResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *ACLTemplateDetailsResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AclObject.md b/services/networkedgev1/docs/AclObject.md new file mode 100644 index 00000000..7f9c2c9e --- /dev/null +++ b/services/networkedgev1/docs/AclObject.md @@ -0,0 +1,82 @@ +# AclObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InterfaceType** | Pointer to **string** | Type of interface, whether MGMT or WAN. | [optional] +**Uuid** | Pointer to **string** | The unique ID of template. | [optional] + +## Methods + +### NewAclObject + +`func NewAclObject() *AclObject` + +NewAclObject instantiates a new AclObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAclObjectWithDefaults + +`func NewAclObjectWithDefaults() *AclObject` + +NewAclObjectWithDefaults instantiates a new AclObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInterfaceType + +`func (o *AclObject) GetInterfaceType() string` + +GetInterfaceType returns the InterfaceType field if non-nil, zero value otherwise. + +### GetInterfaceTypeOk + +`func (o *AclObject) GetInterfaceTypeOk() (*string, bool)` + +GetInterfaceTypeOk returns a tuple with the InterfaceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceType + +`func (o *AclObject) SetInterfaceType(v string)` + +SetInterfaceType sets InterfaceType field to given value. + +### HasInterfaceType + +`func (o *AclObject) HasInterfaceType() bool` + +HasInterfaceType returns a boolean if a field has been set. + +### GetUuid + +`func (o *AclObject) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *AclObject) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *AclObject) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *AclObject) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AdditionalBandwidthRequest.md b/services/networkedgev1/docs/AdditionalBandwidthRequest.md new file mode 100644 index 00000000..56feec8e --- /dev/null +++ b/services/networkedgev1/docs/AdditionalBandwidthRequest.md @@ -0,0 +1,56 @@ +# AdditionalBandwidthRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalBandwidth** | Pointer to **int32** | | [optional] + +## Methods + +### NewAdditionalBandwidthRequest + +`func NewAdditionalBandwidthRequest() *AdditionalBandwidthRequest` + +NewAdditionalBandwidthRequest instantiates a new AdditionalBandwidthRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdditionalBandwidthRequestWithDefaults + +`func NewAdditionalBandwidthRequestWithDefaults() *AdditionalBandwidthRequest` + +NewAdditionalBandwidthRequestWithDefaults instantiates a new AdditionalBandwidthRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdditionalBandwidth + +`func (o *AdditionalBandwidthRequest) GetAdditionalBandwidth() int32` + +GetAdditionalBandwidth returns the AdditionalBandwidth field if non-nil, zero value otherwise. + +### GetAdditionalBandwidthOk + +`func (o *AdditionalBandwidthRequest) GetAdditionalBandwidthOk() (*int32, bool)` + +GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalBandwidth + +`func (o *AdditionalBandwidthRequest) SetAdditionalBandwidth(v int32)` + +SetAdditionalBandwidth sets AdditionalBandwidth field to given value. + +### HasAdditionalBandwidth + +`func (o *AdditionalBandwidthRequest) HasAdditionalBandwidth() bool` + +HasAdditionalBandwidth returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AdditionalFieldsConfig.md b/services/networkedgev1/docs/AdditionalFieldsConfig.md new file mode 100644 index 00000000..80a704fa --- /dev/null +++ b/services/networkedgev1/docs/AdditionalFieldsConfig.md @@ -0,0 +1,108 @@ +# AdditionalFieldsConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of field. | [optional] +**Required** | Pointer to **bool** | Whether or not the field is required at the time of device creation. | [optional] +**IsSameValueAllowedForPrimaryAndSecondary** | Pointer to **bool** | Whether or not you need two distinct values for primary and secondary devices at the time of device creation. This field is only useful for HA devices. | [optional] + +## Methods + +### NewAdditionalFieldsConfig + +`func NewAdditionalFieldsConfig() *AdditionalFieldsConfig` + +NewAdditionalFieldsConfig instantiates a new AdditionalFieldsConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdditionalFieldsConfigWithDefaults + +`func NewAdditionalFieldsConfigWithDefaults() *AdditionalFieldsConfig` + +NewAdditionalFieldsConfigWithDefaults instantiates a new AdditionalFieldsConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *AdditionalFieldsConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AdditionalFieldsConfig) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AdditionalFieldsConfig) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AdditionalFieldsConfig) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRequired + +`func (o *AdditionalFieldsConfig) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *AdditionalFieldsConfig) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *AdditionalFieldsConfig) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *AdditionalFieldsConfig) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetIsSameValueAllowedForPrimaryAndSecondary + +`func (o *AdditionalFieldsConfig) GetIsSameValueAllowedForPrimaryAndSecondary() bool` + +GetIsSameValueAllowedForPrimaryAndSecondary returns the IsSameValueAllowedForPrimaryAndSecondary field if non-nil, zero value otherwise. + +### GetIsSameValueAllowedForPrimaryAndSecondaryOk + +`func (o *AdditionalFieldsConfig) GetIsSameValueAllowedForPrimaryAndSecondaryOk() (*bool, bool)` + +GetIsSameValueAllowedForPrimaryAndSecondaryOk returns a tuple with the IsSameValueAllowedForPrimaryAndSecondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSameValueAllowedForPrimaryAndSecondary + +`func (o *AdditionalFieldsConfig) SetIsSameValueAllowedForPrimaryAndSecondary(v bool)` + +SetIsSameValueAllowedForPrimaryAndSecondary sets IsSameValueAllowedForPrimaryAndSecondary field to given value. + +### HasIsSameValueAllowedForPrimaryAndSecondary + +`func (o *AdditionalFieldsConfig) HasIsSameValueAllowedForPrimaryAndSecondary() bool` + +HasIsSameValueAllowedForPrimaryAndSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AgreementAcceptRequest.md b/services/networkedgev1/docs/AgreementAcceptRequest.md new file mode 100644 index 00000000..f2a50ecd --- /dev/null +++ b/services/networkedgev1/docs/AgreementAcceptRequest.md @@ -0,0 +1,82 @@ +# AgreementAcceptRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**ApttusId** | Pointer to **string** | The version number of the agreement | [optional] + +## Methods + +### NewAgreementAcceptRequest + +`func NewAgreementAcceptRequest() *AgreementAcceptRequest` + +NewAgreementAcceptRequest instantiates a new AgreementAcceptRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAgreementAcceptRequestWithDefaults + +`func NewAgreementAcceptRequestWithDefaults() *AgreementAcceptRequest` + +NewAgreementAcceptRequestWithDefaults instantiates a new AgreementAcceptRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *AgreementAcceptRequest) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *AgreementAcceptRequest) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *AgreementAcceptRequest) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *AgreementAcceptRequest) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetApttusId + +`func (o *AgreementAcceptRequest) GetApttusId() string` + +GetApttusId returns the ApttusId field if non-nil, zero value otherwise. + +### GetApttusIdOk + +`func (o *AgreementAcceptRequest) GetApttusIdOk() (*string, bool)` + +GetApttusIdOk returns a tuple with the ApttusId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApttusId + +`func (o *AgreementAcceptRequest) SetApttusId(v string)` + +SetApttusId sets ApttusId field to given value. + +### HasApttusId + +`func (o *AgreementAcceptRequest) HasApttusId() bool` + +HasApttusId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AgreementAcceptResponse.md b/services/networkedgev1/docs/AgreementAcceptResponse.md new file mode 100644 index 00000000..fb1b9925 --- /dev/null +++ b/services/networkedgev1/docs/AgreementAcceptResponse.md @@ -0,0 +1,56 @@ +# AgreementAcceptResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewAgreementAcceptResponse + +`func NewAgreementAcceptResponse() *AgreementAcceptResponse` + +NewAgreementAcceptResponse instantiates a new AgreementAcceptResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAgreementAcceptResponseWithDefaults + +`func NewAgreementAcceptResponseWithDefaults() *AgreementAcceptResponse` + +NewAgreementAcceptResponseWithDefaults instantiates a new AgreementAcceptResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *AgreementAcceptResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AgreementAcceptResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AgreementAcceptResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AgreementAcceptResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AgreementStatusResponse.md b/services/networkedgev1/docs/AgreementStatusResponse.md new file mode 100644 index 00000000..4fb8605f --- /dev/null +++ b/services/networkedgev1/docs/AgreementStatusResponse.md @@ -0,0 +1,134 @@ +# AgreementStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMessage** | Pointer to **string** | | [optional] +**IsValid** | Pointer to **string** | | [optional] +**Terms** | Pointer to **string** | | [optional] +**TermsVersionID** | Pointer to **string** | | [optional] + +## Methods + +### NewAgreementStatusResponse + +`func NewAgreementStatusResponse() *AgreementStatusResponse` + +NewAgreementStatusResponse instantiates a new AgreementStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAgreementStatusResponseWithDefaults + +`func NewAgreementStatusResponseWithDefaults() *AgreementStatusResponse` + +NewAgreementStatusResponseWithDefaults instantiates a new AgreementStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorMessage + +`func (o *AgreementStatusResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *AgreementStatusResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *AgreementStatusResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *AgreementStatusResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetIsValid + +`func (o *AgreementStatusResponse) GetIsValid() string` + +GetIsValid returns the IsValid field if non-nil, zero value otherwise. + +### GetIsValidOk + +`func (o *AgreementStatusResponse) GetIsValidOk() (*string, bool)` + +GetIsValidOk returns a tuple with the IsValid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsValid + +`func (o *AgreementStatusResponse) SetIsValid(v string)` + +SetIsValid sets IsValid field to given value. + +### HasIsValid + +`func (o *AgreementStatusResponse) HasIsValid() bool` + +HasIsValid returns a boolean if a field has been set. + +### GetTerms + +`func (o *AgreementStatusResponse) GetTerms() string` + +GetTerms returns the Terms field if non-nil, zero value otherwise. + +### GetTermsOk + +`func (o *AgreementStatusResponse) GetTermsOk() (*string, bool)` + +GetTermsOk returns a tuple with the Terms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerms + +`func (o *AgreementStatusResponse) SetTerms(v string)` + +SetTerms sets Terms field to given value. + +### HasTerms + +`func (o *AgreementStatusResponse) HasTerms() bool` + +HasTerms returns a boolean if a field has been set. + +### GetTermsVersionID + +`func (o *AgreementStatusResponse) GetTermsVersionID() string` + +GetTermsVersionID returns the TermsVersionID field if non-nil, zero value otherwise. + +### GetTermsVersionIDOk + +`func (o *AgreementStatusResponse) GetTermsVersionIDOk() (*string, bool)` + +GetTermsVersionIDOk returns a tuple with the TermsVersionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsVersionID + +`func (o *AgreementStatusResponse) SetTermsVersionID(v string)` + +SetTermsVersionID sets TermsVersionID field to given value. + +### HasTermsVersionID + +`func (o *AgreementStatusResponse) HasTermsVersionID() bool` + +HasTermsVersionID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AllowedInterfaceProfiles.md b/services/networkedgev1/docs/AllowedInterfaceProfiles.md new file mode 100644 index 00000000..a79c4cca --- /dev/null +++ b/services/networkedgev1/docs/AllowedInterfaceProfiles.md @@ -0,0 +1,108 @@ +# AllowedInterfaceProfiles + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **float32** | Allowed interface count | [optional] +**Interfaces** | Pointer to [**[]InterfaceDetails**](InterfaceDetails.md) | | [optional] +**Default** | Pointer to **bool** | Whether this will be the default interface count if you do not provide a number. | [optional] + +## Methods + +### NewAllowedInterfaceProfiles + +`func NewAllowedInterfaceProfiles() *AllowedInterfaceProfiles` + +NewAllowedInterfaceProfiles instantiates a new AllowedInterfaceProfiles object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAllowedInterfaceProfilesWithDefaults + +`func NewAllowedInterfaceProfilesWithDefaults() *AllowedInterfaceProfiles` + +NewAllowedInterfaceProfilesWithDefaults instantiates a new AllowedInterfaceProfiles object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AllowedInterfaceProfiles) GetCount() float32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AllowedInterfaceProfiles) GetCountOk() (*float32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AllowedInterfaceProfiles) SetCount(v float32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AllowedInterfaceProfiles) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetInterfaces + +`func (o *AllowedInterfaceProfiles) GetInterfaces() []InterfaceDetails` + +GetInterfaces returns the Interfaces field if non-nil, zero value otherwise. + +### GetInterfacesOk + +`func (o *AllowedInterfaceProfiles) GetInterfacesOk() (*[]InterfaceDetails, bool)` + +GetInterfacesOk returns a tuple with the Interfaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaces + +`func (o *AllowedInterfaceProfiles) SetInterfaces(v []InterfaceDetails)` + +SetInterfaces sets Interfaces field to given value. + +### HasInterfaces + +`func (o *AllowedInterfaceProfiles) HasInterfaces() bool` + +HasInterfaces returns a boolean if a field has been set. + +### GetDefault + +`func (o *AllowedInterfaceProfiles) GetDefault() bool` + +GetDefault returns the Default field if non-nil, zero value otherwise. + +### GetDefaultOk + +`func (o *AllowedInterfaceProfiles) GetDefaultOk() (*bool, bool)` + +GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefault + +`func (o *AllowedInterfaceProfiles) SetDefault(v bool)` + +SetDefault sets Default field to given value. + +### HasDefault + +`func (o *AllowedInterfaceProfiles) HasDefault() bool` + +HasDefault returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/AllowedInterfaceResponse.md b/services/networkedgev1/docs/AllowedInterfaceResponse.md new file mode 100644 index 00000000..1f94b889 --- /dev/null +++ b/services/networkedgev1/docs/AllowedInterfaceResponse.md @@ -0,0 +1,56 @@ +# AllowedInterfaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InterfaceProfiles** | Pointer to [**[]AllowedInterfaceProfiles**](AllowedInterfaceProfiles.md) | | [optional] + +## Methods + +### NewAllowedInterfaceResponse + +`func NewAllowedInterfaceResponse() *AllowedInterfaceResponse` + +NewAllowedInterfaceResponse instantiates a new AllowedInterfaceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAllowedInterfaceResponseWithDefaults + +`func NewAllowedInterfaceResponseWithDefaults() *AllowedInterfaceResponse` + +NewAllowedInterfaceResponseWithDefaults instantiates a new AllowedInterfaceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInterfaceProfiles + +`func (o *AllowedInterfaceResponse) GetInterfaceProfiles() []AllowedInterfaceProfiles` + +GetInterfaceProfiles returns the InterfaceProfiles field if non-nil, zero value otherwise. + +### GetInterfaceProfilesOk + +`func (o *AllowedInterfaceResponse) GetInterfaceProfilesOk() (*[]AllowedInterfaceProfiles, bool)` + +GetInterfaceProfilesOk returns a tuple with the InterfaceProfiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceProfiles + +`func (o *AllowedInterfaceResponse) SetInterfaceProfiles(v []AllowedInterfaceProfiles)` + +SetInterfaceProfiles sets InterfaceProfiles field to given value. + +### HasInterfaceProfiles + +`func (o *AllowedInterfaceResponse) HasInterfaceProfiles() bool` + +HasInterfaceProfiles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/BGPApi.md b/services/networkedgev1/docs/BGPApi.md new file mode 100644 index 00000000..46ea672f --- /dev/null +++ b/services/networkedgev1/docs/BGPApi.md @@ -0,0 +1,304 @@ +# \BGPApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddBgpConfigurationUsingPOST**](BGPApi.md#AddBgpConfigurationUsingPOST) | **Post** /ne/v1/bgp | Create BGP Peering +[**GetBgpConfigurationUsingGET**](BGPApi.md#GetBgpConfigurationUsingGET) | **Get** /ne/v1/bgp/{uuid} | Get BGP Peering {uuid} +[**GetBgpConfigurationsUsingGET**](BGPApi.md#GetBgpConfigurationsUsingGET) | **Get** /ne/v1/bgp | Get BGP Peering +[**UpdateBgpConfigurationUsingPUT**](BGPApi.md#UpdateBgpConfigurationUsingPUT) | **Put** /ne/v1/bgp/{uuid} | Update BGP Peering + + + +## AddBgpConfigurationUsingPOST + +> BgpAsyncResponse AddBgpConfigurationUsingPOST(ctx).Authorization(authorization).Request(request).Execute() + +Create BGP Peering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewBgpConfigAddRequest() // BgpConfigAddRequest | BGP configuration details (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BGPApi.AddBgpConfigurationUsingPOST(context.Background()).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BGPApi.AddBgpConfigurationUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddBgpConfigurationUsingPOST`: BgpAsyncResponse + fmt.Fprintf(os.Stdout, "Response from `BGPApi.AddBgpConfigurationUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddBgpConfigurationUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**BgpConfigAddRequest**](BgpConfigAddRequest.md) | BGP configuration details | + +### Return type + +[**BgpAsyncResponse**](BgpAsyncResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBgpConfigurationUsingGET + +> BgpInfo GetBgpConfigurationUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get BGP Peering {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BGPApi.GetBgpConfigurationUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BGPApi.GetBgpConfigurationUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBgpConfigurationUsingGET`: BgpInfo + fmt.Fprintf(os.Stdout, "Response from `BGPApi.GetBgpConfigurationUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBgpConfigurationUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**BgpInfo**](BgpInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBgpConfigurationsUsingGET + +> BgpInfo GetBgpConfigurationsUsingGET(ctx).Authorization(authorization).VirtualDeviceUuid(virtualDeviceUuid).ConnectionUuid(connectionUuid).Status(status).AccountUcmId(accountUcmId).Offset(offset).Limit(limit).Execute() + +Get BGP Peering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device (optional) + connectionUuid := "connectionUuid_example" // string | Unique Id of a connection (optional) + status := "status_example" // string | Provisioning status of BGP Peering (optional) + accountUcmId := "accountUcmId_example" // string | Unique Id of an account. A reseller querying for a customer's devices can input the accountUcmId of the customer's account. (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BGPApi.GetBgpConfigurationsUsingGET(context.Background()).Authorization(authorization).VirtualDeviceUuid(virtualDeviceUuid).ConnectionUuid(connectionUuid).Status(status).AccountUcmId(accountUcmId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BGPApi.GetBgpConfigurationsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBgpConfigurationsUsingGET`: BgpInfo + fmt.Fprintf(os.Stdout, "Response from `BGPApi.GetBgpConfigurationsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBgpConfigurationsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **virtualDeviceUuid** | **string** | Unique Id of a virtual device | + **connectionUuid** | **string** | Unique Id of a connection | + **status** | **string** | Provisioning status of BGP Peering | + **accountUcmId** | **string** | Unique Id of an account. A reseller querying for a customer's devices can input the accountUcmId of the customer's account. | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**BgpInfo**](BgpInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateBgpConfigurationUsingPUT + +> BgpAsyncResponse UpdateBgpConfigurationUsingPUT(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update BGP Peering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewBgpUpdateRequest() // BgpUpdateRequest | BGP config (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BGPApi.UpdateBgpConfigurationUsingPUT(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BGPApi.UpdateBgpConfigurationUsingPUT``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateBgpConfigurationUsingPUT`: BgpAsyncResponse + fmt.Fprintf(os.Stdout, "Response from `BGPApi.UpdateBgpConfigurationUsingPUT`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateBgpConfigurationUsingPUTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**BgpUpdateRequest**](BgpUpdateRequest.md) | BGP config | + +### Return type + +[**BgpAsyncResponse**](BgpAsyncResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/BgpAsyncResponse.md b/services/networkedgev1/docs/BgpAsyncResponse.md new file mode 100644 index 00000000..fc7e7934 --- /dev/null +++ b/services/networkedgev1/docs/BgpAsyncResponse.md @@ -0,0 +1,56 @@ +# BgpAsyncResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewBgpAsyncResponse + +`func NewBgpAsyncResponse() *BgpAsyncResponse` + +NewBgpAsyncResponse instantiates a new BgpAsyncResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBgpAsyncResponseWithDefaults + +`func NewBgpAsyncResponseWithDefaults() *BgpAsyncResponse` + +NewBgpAsyncResponseWithDefaults instantiates a new BgpAsyncResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *BgpAsyncResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *BgpAsyncResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *BgpAsyncResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *BgpAsyncResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/BgpConfigAddRequest.md b/services/networkedgev1/docs/BgpConfigAddRequest.md new file mode 100644 index 00000000..23c93448 --- /dev/null +++ b/services/networkedgev1/docs/BgpConfigAddRequest.md @@ -0,0 +1,186 @@ +# BgpConfigAddRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticationKey** | Pointer to **string** | Provide a key value that you can use later to authenticate. | [optional] +**ConnectionUuid** | Pointer to **string** | The unique Id of a connection between the virtual device and the cloud service provider | [optional] +**LocalAsn** | Pointer to **int64** | Local ASN (autonomous system network). This is the ASN of the virtual device. | [optional] +**LocalIpAddress** | Pointer to **string** | Local IP Address. This is the IP address of the virtual device in CIDR format. | [optional] +**RemoteAsn** | Pointer to **int64** | Remote ASN (autonomous system network). This is the ASN of the cloud service provider. | [optional] +**RemoteIpAddress** | Pointer to **string** | Remote IP Address. This is the IP address of the cloud service provider. | [optional] + +## Methods + +### NewBgpConfigAddRequest + +`func NewBgpConfigAddRequest() *BgpConfigAddRequest` + +NewBgpConfigAddRequest instantiates a new BgpConfigAddRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBgpConfigAddRequestWithDefaults + +`func NewBgpConfigAddRequestWithDefaults() *BgpConfigAddRequest` + +NewBgpConfigAddRequestWithDefaults instantiates a new BgpConfigAddRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticationKey + +`func (o *BgpConfigAddRequest) GetAuthenticationKey() string` + +GetAuthenticationKey returns the AuthenticationKey field if non-nil, zero value otherwise. + +### GetAuthenticationKeyOk + +`func (o *BgpConfigAddRequest) GetAuthenticationKeyOk() (*string, bool)` + +GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationKey + +`func (o *BgpConfigAddRequest) SetAuthenticationKey(v string)` + +SetAuthenticationKey sets AuthenticationKey field to given value. + +### HasAuthenticationKey + +`func (o *BgpConfigAddRequest) HasAuthenticationKey() bool` + +HasAuthenticationKey returns a boolean if a field has been set. + +### GetConnectionUuid + +`func (o *BgpConfigAddRequest) GetConnectionUuid() string` + +GetConnectionUuid returns the ConnectionUuid field if non-nil, zero value otherwise. + +### GetConnectionUuidOk + +`func (o *BgpConfigAddRequest) GetConnectionUuidOk() (*string, bool)` + +GetConnectionUuidOk returns a tuple with the ConnectionUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionUuid + +`func (o *BgpConfigAddRequest) SetConnectionUuid(v string)` + +SetConnectionUuid sets ConnectionUuid field to given value. + +### HasConnectionUuid + +`func (o *BgpConfigAddRequest) HasConnectionUuid() bool` + +HasConnectionUuid returns a boolean if a field has been set. + +### GetLocalAsn + +`func (o *BgpConfigAddRequest) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *BgpConfigAddRequest) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *BgpConfigAddRequest) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *BgpConfigAddRequest) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetLocalIpAddress + +`func (o *BgpConfigAddRequest) GetLocalIpAddress() string` + +GetLocalIpAddress returns the LocalIpAddress field if non-nil, zero value otherwise. + +### GetLocalIpAddressOk + +`func (o *BgpConfigAddRequest) GetLocalIpAddressOk() (*string, bool)` + +GetLocalIpAddressOk returns a tuple with the LocalIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalIpAddress + +`func (o *BgpConfigAddRequest) SetLocalIpAddress(v string)` + +SetLocalIpAddress sets LocalIpAddress field to given value. + +### HasLocalIpAddress + +`func (o *BgpConfigAddRequest) HasLocalIpAddress() bool` + +HasLocalIpAddress returns a boolean if a field has been set. + +### GetRemoteAsn + +`func (o *BgpConfigAddRequest) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *BgpConfigAddRequest) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *BgpConfigAddRequest) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + +### HasRemoteAsn + +`func (o *BgpConfigAddRequest) HasRemoteAsn() bool` + +HasRemoteAsn returns a boolean if a field has been set. + +### GetRemoteIpAddress + +`func (o *BgpConfigAddRequest) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *BgpConfigAddRequest) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *BgpConfigAddRequest) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + +### HasRemoteIpAddress + +`func (o *BgpConfigAddRequest) HasRemoteIpAddress() bool` + +HasRemoteIpAddress returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/BgpConnectionInfo.md b/services/networkedgev1/docs/BgpConnectionInfo.md new file mode 100644 index 00000000..fe2c2050 --- /dev/null +++ b/services/networkedgev1/docs/BgpConnectionInfo.md @@ -0,0 +1,290 @@ +# BgpConnectionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BgpStatus** | Pointer to **string** | | [optional] +**IsPrimary** | Pointer to **bool** | | [optional] +**Metro** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProviderStatus** | Pointer to **string** | | [optional] +**RedundantConnection** | Pointer to [**BgpConnectionInfo**](BgpConnectionInfo.md) | | [optional] +**RedundantUUID** | Pointer to **string** | | [optional] +**SellerOrganizationName** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewBgpConnectionInfo + +`func NewBgpConnectionInfo() *BgpConnectionInfo` + +NewBgpConnectionInfo instantiates a new BgpConnectionInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBgpConnectionInfoWithDefaults + +`func NewBgpConnectionInfoWithDefaults() *BgpConnectionInfo` + +NewBgpConnectionInfoWithDefaults instantiates a new BgpConnectionInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBgpStatus + +`func (o *BgpConnectionInfo) GetBgpStatus() string` + +GetBgpStatus returns the BgpStatus field if non-nil, zero value otherwise. + +### GetBgpStatusOk + +`func (o *BgpConnectionInfo) GetBgpStatusOk() (*string, bool)` + +GetBgpStatusOk returns a tuple with the BgpStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBgpStatus + +`func (o *BgpConnectionInfo) SetBgpStatus(v string)` + +SetBgpStatus sets BgpStatus field to given value. + +### HasBgpStatus + +`func (o *BgpConnectionInfo) HasBgpStatus() bool` + +HasBgpStatus returns a boolean if a field has been set. + +### GetIsPrimary + +`func (o *BgpConnectionInfo) GetIsPrimary() bool` + +GetIsPrimary returns the IsPrimary field if non-nil, zero value otherwise. + +### GetIsPrimaryOk + +`func (o *BgpConnectionInfo) GetIsPrimaryOk() (*bool, bool)` + +GetIsPrimaryOk returns a tuple with the IsPrimary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrimary + +`func (o *BgpConnectionInfo) SetIsPrimary(v bool)` + +SetIsPrimary sets IsPrimary field to given value. + +### HasIsPrimary + +`func (o *BgpConnectionInfo) HasIsPrimary() bool` + +HasIsPrimary returns a boolean if a field has been set. + +### GetMetro + +`func (o *BgpConnectionInfo) GetMetro() string` + +GetMetro returns the Metro field if non-nil, zero value otherwise. + +### GetMetroOk + +`func (o *BgpConnectionInfo) GetMetroOk() (*string, bool)` + +GetMetroOk returns a tuple with the Metro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetro + +`func (o *BgpConnectionInfo) SetMetro(v string)` + +SetMetro sets Metro field to given value. + +### HasMetro + +`func (o *BgpConnectionInfo) HasMetro() bool` + +HasMetro returns a boolean if a field has been set. + +### GetName + +`func (o *BgpConnectionInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BgpConnectionInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BgpConnectionInfo) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BgpConnectionInfo) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderStatus + +`func (o *BgpConnectionInfo) GetProviderStatus() string` + +GetProviderStatus returns the ProviderStatus field if non-nil, zero value otherwise. + +### GetProviderStatusOk + +`func (o *BgpConnectionInfo) GetProviderStatusOk() (*string, bool)` + +GetProviderStatusOk returns a tuple with the ProviderStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderStatus + +`func (o *BgpConnectionInfo) SetProviderStatus(v string)` + +SetProviderStatus sets ProviderStatus field to given value. + +### HasProviderStatus + +`func (o *BgpConnectionInfo) HasProviderStatus() bool` + +HasProviderStatus returns a boolean if a field has been set. + +### GetRedundantConnection + +`func (o *BgpConnectionInfo) GetRedundantConnection() BgpConnectionInfo` + +GetRedundantConnection returns the RedundantConnection field if non-nil, zero value otherwise. + +### GetRedundantConnectionOk + +`func (o *BgpConnectionInfo) GetRedundantConnectionOk() (*BgpConnectionInfo, bool)` + +GetRedundantConnectionOk returns a tuple with the RedundantConnection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantConnection + +`func (o *BgpConnectionInfo) SetRedundantConnection(v BgpConnectionInfo)` + +SetRedundantConnection sets RedundantConnection field to given value. + +### HasRedundantConnection + +`func (o *BgpConnectionInfo) HasRedundantConnection() bool` + +HasRedundantConnection returns a boolean if a field has been set. + +### GetRedundantUUID + +`func (o *BgpConnectionInfo) GetRedundantUUID() string` + +GetRedundantUUID returns the RedundantUUID field if non-nil, zero value otherwise. + +### GetRedundantUUIDOk + +`func (o *BgpConnectionInfo) GetRedundantUUIDOk() (*string, bool)` + +GetRedundantUUIDOk returns a tuple with the RedundantUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantUUID + +`func (o *BgpConnectionInfo) SetRedundantUUID(v string)` + +SetRedundantUUID sets RedundantUUID field to given value. + +### HasRedundantUUID + +`func (o *BgpConnectionInfo) HasRedundantUUID() bool` + +HasRedundantUUID returns a boolean if a field has been set. + +### GetSellerOrganizationName + +`func (o *BgpConnectionInfo) GetSellerOrganizationName() string` + +GetSellerOrganizationName returns the SellerOrganizationName field if non-nil, zero value otherwise. + +### GetSellerOrganizationNameOk + +`func (o *BgpConnectionInfo) GetSellerOrganizationNameOk() (*string, bool)` + +GetSellerOrganizationNameOk returns a tuple with the SellerOrganizationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerOrganizationName + +`func (o *BgpConnectionInfo) SetSellerOrganizationName(v string)` + +SetSellerOrganizationName sets SellerOrganizationName field to given value. + +### HasSellerOrganizationName + +`func (o *BgpConnectionInfo) HasSellerOrganizationName() bool` + +HasSellerOrganizationName returns a boolean if a field has been set. + +### GetStatus + +`func (o *BgpConnectionInfo) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BgpConnectionInfo) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BgpConnectionInfo) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *BgpConnectionInfo) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUuid + +`func (o *BgpConnectionInfo) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *BgpConnectionInfo) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *BgpConnectionInfo) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *BgpConnectionInfo) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/BgpInfo.md b/services/networkedgev1/docs/BgpInfo.md new file mode 100644 index 00000000..e4b5c304 --- /dev/null +++ b/services/networkedgev1/docs/BgpInfo.md @@ -0,0 +1,602 @@ +# BgpInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticationKey** | Pointer to **string** | | [optional] +**ConnectionUuid** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedByEmail** | Pointer to **string** | | [optional] +**CreatedByFullName** | Pointer to **string** | | [optional] +**CreatedDate** | Pointer to **string** | | [optional] +**DeletedBy** | Pointer to **string** | | [optional] +**DeletedByEmail** | Pointer to **string** | | [optional] +**DeletedByFullName** | Pointer to **string** | | [optional] +**DeletedDate** | Pointer to **string** | | [optional] +**LastUpdatedBy** | Pointer to **string** | | [optional] +**LastUpdatedByEmail** | Pointer to **string** | | [optional] +**LastUpdatedByFullName** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**LocalAsn** | Pointer to **int64** | | [optional] +**LocalIpAddress** | Pointer to **string** | | [optional] +**ProvisioningStatus** | Pointer to **string** | | [optional] +**RemoteAsn** | Pointer to **int64** | | [optional] +**RemoteIpAddress** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**Uuid** | Pointer to **string** | | [optional] +**VirtualDeviceUuid** | Pointer to **string** | | [optional] + +## Methods + +### NewBgpInfo + +`func NewBgpInfo() *BgpInfo` + +NewBgpInfo instantiates a new BgpInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBgpInfoWithDefaults + +`func NewBgpInfoWithDefaults() *BgpInfo` + +NewBgpInfoWithDefaults instantiates a new BgpInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticationKey + +`func (o *BgpInfo) GetAuthenticationKey() string` + +GetAuthenticationKey returns the AuthenticationKey field if non-nil, zero value otherwise. + +### GetAuthenticationKeyOk + +`func (o *BgpInfo) GetAuthenticationKeyOk() (*string, bool)` + +GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationKey + +`func (o *BgpInfo) SetAuthenticationKey(v string)` + +SetAuthenticationKey sets AuthenticationKey field to given value. + +### HasAuthenticationKey + +`func (o *BgpInfo) HasAuthenticationKey() bool` + +HasAuthenticationKey returns a boolean if a field has been set. + +### GetConnectionUuid + +`func (o *BgpInfo) GetConnectionUuid() string` + +GetConnectionUuid returns the ConnectionUuid field if non-nil, zero value otherwise. + +### GetConnectionUuidOk + +`func (o *BgpInfo) GetConnectionUuidOk() (*string, bool)` + +GetConnectionUuidOk returns a tuple with the ConnectionUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionUuid + +`func (o *BgpInfo) SetConnectionUuid(v string)` + +SetConnectionUuid sets ConnectionUuid field to given value. + +### HasConnectionUuid + +`func (o *BgpInfo) HasConnectionUuid() bool` + +HasConnectionUuid returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *BgpInfo) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *BgpInfo) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *BgpInfo) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *BgpInfo) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByEmail + +`func (o *BgpInfo) GetCreatedByEmail() string` + +GetCreatedByEmail returns the CreatedByEmail field if non-nil, zero value otherwise. + +### GetCreatedByEmailOk + +`func (o *BgpInfo) GetCreatedByEmailOk() (*string, bool)` + +GetCreatedByEmailOk returns a tuple with the CreatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByEmail + +`func (o *BgpInfo) SetCreatedByEmail(v string)` + +SetCreatedByEmail sets CreatedByEmail field to given value. + +### HasCreatedByEmail + +`func (o *BgpInfo) HasCreatedByEmail() bool` + +HasCreatedByEmail returns a boolean if a field has been set. + +### GetCreatedByFullName + +`func (o *BgpInfo) GetCreatedByFullName() string` + +GetCreatedByFullName returns the CreatedByFullName field if non-nil, zero value otherwise. + +### GetCreatedByFullNameOk + +`func (o *BgpInfo) GetCreatedByFullNameOk() (*string, bool)` + +GetCreatedByFullNameOk returns a tuple with the CreatedByFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByFullName + +`func (o *BgpInfo) SetCreatedByFullName(v string)` + +SetCreatedByFullName sets CreatedByFullName field to given value. + +### HasCreatedByFullName + +`func (o *BgpInfo) HasCreatedByFullName() bool` + +HasCreatedByFullName returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *BgpInfo) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *BgpInfo) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *BgpInfo) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *BgpInfo) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetDeletedBy + +`func (o *BgpInfo) GetDeletedBy() string` + +GetDeletedBy returns the DeletedBy field if non-nil, zero value otherwise. + +### GetDeletedByOk + +`func (o *BgpInfo) GetDeletedByOk() (*string, bool)` + +GetDeletedByOk returns a tuple with the DeletedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedBy + +`func (o *BgpInfo) SetDeletedBy(v string)` + +SetDeletedBy sets DeletedBy field to given value. + +### HasDeletedBy + +`func (o *BgpInfo) HasDeletedBy() bool` + +HasDeletedBy returns a boolean if a field has been set. + +### GetDeletedByEmail + +`func (o *BgpInfo) GetDeletedByEmail() string` + +GetDeletedByEmail returns the DeletedByEmail field if non-nil, zero value otherwise. + +### GetDeletedByEmailOk + +`func (o *BgpInfo) GetDeletedByEmailOk() (*string, bool)` + +GetDeletedByEmailOk returns a tuple with the DeletedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedByEmail + +`func (o *BgpInfo) SetDeletedByEmail(v string)` + +SetDeletedByEmail sets DeletedByEmail field to given value. + +### HasDeletedByEmail + +`func (o *BgpInfo) HasDeletedByEmail() bool` + +HasDeletedByEmail returns a boolean if a field has been set. + +### GetDeletedByFullName + +`func (o *BgpInfo) GetDeletedByFullName() string` + +GetDeletedByFullName returns the DeletedByFullName field if non-nil, zero value otherwise. + +### GetDeletedByFullNameOk + +`func (o *BgpInfo) GetDeletedByFullNameOk() (*string, bool)` + +GetDeletedByFullNameOk returns a tuple with the DeletedByFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedByFullName + +`func (o *BgpInfo) SetDeletedByFullName(v string)` + +SetDeletedByFullName sets DeletedByFullName field to given value. + +### HasDeletedByFullName + +`func (o *BgpInfo) HasDeletedByFullName() bool` + +HasDeletedByFullName returns a boolean if a field has been set. + +### GetDeletedDate + +`func (o *BgpInfo) GetDeletedDate() string` + +GetDeletedDate returns the DeletedDate field if non-nil, zero value otherwise. + +### GetDeletedDateOk + +`func (o *BgpInfo) GetDeletedDateOk() (*string, bool)` + +GetDeletedDateOk returns a tuple with the DeletedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedDate + +`func (o *BgpInfo) SetDeletedDate(v string)` + +SetDeletedDate sets DeletedDate field to given value. + +### HasDeletedDate + +`func (o *BgpInfo) HasDeletedDate() bool` + +HasDeletedDate returns a boolean if a field has been set. + +### GetLastUpdatedBy + +`func (o *BgpInfo) GetLastUpdatedBy() string` + +GetLastUpdatedBy returns the LastUpdatedBy field if non-nil, zero value otherwise. + +### GetLastUpdatedByOk + +`func (o *BgpInfo) GetLastUpdatedByOk() (*string, bool)` + +GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedBy + +`func (o *BgpInfo) SetLastUpdatedBy(v string)` + +SetLastUpdatedBy sets LastUpdatedBy field to given value. + +### HasLastUpdatedBy + +`func (o *BgpInfo) HasLastUpdatedBy() bool` + +HasLastUpdatedBy returns a boolean if a field has been set. + +### GetLastUpdatedByEmail + +`func (o *BgpInfo) GetLastUpdatedByEmail() string` + +GetLastUpdatedByEmail returns the LastUpdatedByEmail field if non-nil, zero value otherwise. + +### GetLastUpdatedByEmailOk + +`func (o *BgpInfo) GetLastUpdatedByEmailOk() (*string, bool)` + +GetLastUpdatedByEmailOk returns a tuple with the LastUpdatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedByEmail + +`func (o *BgpInfo) SetLastUpdatedByEmail(v string)` + +SetLastUpdatedByEmail sets LastUpdatedByEmail field to given value. + +### HasLastUpdatedByEmail + +`func (o *BgpInfo) HasLastUpdatedByEmail() bool` + +HasLastUpdatedByEmail returns a boolean if a field has been set. + +### GetLastUpdatedByFullName + +`func (o *BgpInfo) GetLastUpdatedByFullName() string` + +GetLastUpdatedByFullName returns the LastUpdatedByFullName field if non-nil, zero value otherwise. + +### GetLastUpdatedByFullNameOk + +`func (o *BgpInfo) GetLastUpdatedByFullNameOk() (*string, bool)` + +GetLastUpdatedByFullNameOk returns a tuple with the LastUpdatedByFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedByFullName + +`func (o *BgpInfo) SetLastUpdatedByFullName(v string)` + +SetLastUpdatedByFullName sets LastUpdatedByFullName field to given value. + +### HasLastUpdatedByFullName + +`func (o *BgpInfo) HasLastUpdatedByFullName() bool` + +HasLastUpdatedByFullName returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *BgpInfo) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *BgpInfo) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *BgpInfo) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *BgpInfo) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetLocalAsn + +`func (o *BgpInfo) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *BgpInfo) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *BgpInfo) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *BgpInfo) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetLocalIpAddress + +`func (o *BgpInfo) GetLocalIpAddress() string` + +GetLocalIpAddress returns the LocalIpAddress field if non-nil, zero value otherwise. + +### GetLocalIpAddressOk + +`func (o *BgpInfo) GetLocalIpAddressOk() (*string, bool)` + +GetLocalIpAddressOk returns a tuple with the LocalIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalIpAddress + +`func (o *BgpInfo) SetLocalIpAddress(v string)` + +SetLocalIpAddress sets LocalIpAddress field to given value. + +### HasLocalIpAddress + +`func (o *BgpInfo) HasLocalIpAddress() bool` + +HasLocalIpAddress returns a boolean if a field has been set. + +### GetProvisioningStatus + +`func (o *BgpInfo) GetProvisioningStatus() string` + +GetProvisioningStatus returns the ProvisioningStatus field if non-nil, zero value otherwise. + +### GetProvisioningStatusOk + +`func (o *BgpInfo) GetProvisioningStatusOk() (*string, bool)` + +GetProvisioningStatusOk returns a tuple with the ProvisioningStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningStatus + +`func (o *BgpInfo) SetProvisioningStatus(v string)` + +SetProvisioningStatus sets ProvisioningStatus field to given value. + +### HasProvisioningStatus + +`func (o *BgpInfo) HasProvisioningStatus() bool` + +HasProvisioningStatus returns a boolean if a field has been set. + +### GetRemoteAsn + +`func (o *BgpInfo) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *BgpInfo) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *BgpInfo) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + +### HasRemoteAsn + +`func (o *BgpInfo) HasRemoteAsn() bool` + +HasRemoteAsn returns a boolean if a field has been set. + +### GetRemoteIpAddress + +`func (o *BgpInfo) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *BgpInfo) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *BgpInfo) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + +### HasRemoteIpAddress + +`func (o *BgpInfo) HasRemoteIpAddress() bool` + +HasRemoteIpAddress returns a boolean if a field has been set. + +### GetState + +`func (o *BgpInfo) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *BgpInfo) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *BgpInfo) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *BgpInfo) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUuid + +`func (o *BgpInfo) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *BgpInfo) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *BgpInfo) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *BgpInfo) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetVirtualDeviceUuid + +`func (o *BgpInfo) GetVirtualDeviceUuid() string` + +GetVirtualDeviceUuid returns the VirtualDeviceUuid field if non-nil, zero value otherwise. + +### GetVirtualDeviceUuidOk + +`func (o *BgpInfo) GetVirtualDeviceUuidOk() (*string, bool)` + +GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceUuid + +`func (o *BgpInfo) SetVirtualDeviceUuid(v string)` + +SetVirtualDeviceUuid sets VirtualDeviceUuid field to given value. + +### HasVirtualDeviceUuid + +`func (o *BgpInfo) HasVirtualDeviceUuid() bool` + +HasVirtualDeviceUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/BgpUpdateRequest.md b/services/networkedgev1/docs/BgpUpdateRequest.md new file mode 100644 index 00000000..c1738d30 --- /dev/null +++ b/services/networkedgev1/docs/BgpUpdateRequest.md @@ -0,0 +1,160 @@ +# BgpUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticationKey** | Pointer to **string** | Authentication Key | [optional] +**LocalAsn** | Pointer to **int64** | Local ASN | [optional] +**LocalIpAddress** | Pointer to **string** | Local IP Address with subnet | [optional] +**RemoteAsn** | Pointer to **int64** | Remote ASN | [optional] +**RemoteIpAddress** | Pointer to **string** | Remote IP Address | [optional] + +## Methods + +### NewBgpUpdateRequest + +`func NewBgpUpdateRequest() *BgpUpdateRequest` + +NewBgpUpdateRequest instantiates a new BgpUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBgpUpdateRequestWithDefaults + +`func NewBgpUpdateRequestWithDefaults() *BgpUpdateRequest` + +NewBgpUpdateRequestWithDefaults instantiates a new BgpUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticationKey + +`func (o *BgpUpdateRequest) GetAuthenticationKey() string` + +GetAuthenticationKey returns the AuthenticationKey field if non-nil, zero value otherwise. + +### GetAuthenticationKeyOk + +`func (o *BgpUpdateRequest) GetAuthenticationKeyOk() (*string, bool)` + +GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationKey + +`func (o *BgpUpdateRequest) SetAuthenticationKey(v string)` + +SetAuthenticationKey sets AuthenticationKey field to given value. + +### HasAuthenticationKey + +`func (o *BgpUpdateRequest) HasAuthenticationKey() bool` + +HasAuthenticationKey returns a boolean if a field has been set. + +### GetLocalAsn + +`func (o *BgpUpdateRequest) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *BgpUpdateRequest) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *BgpUpdateRequest) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *BgpUpdateRequest) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetLocalIpAddress + +`func (o *BgpUpdateRequest) GetLocalIpAddress() string` + +GetLocalIpAddress returns the LocalIpAddress field if non-nil, zero value otherwise. + +### GetLocalIpAddressOk + +`func (o *BgpUpdateRequest) GetLocalIpAddressOk() (*string, bool)` + +GetLocalIpAddressOk returns a tuple with the LocalIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalIpAddress + +`func (o *BgpUpdateRequest) SetLocalIpAddress(v string)` + +SetLocalIpAddress sets LocalIpAddress field to given value. + +### HasLocalIpAddress + +`func (o *BgpUpdateRequest) HasLocalIpAddress() bool` + +HasLocalIpAddress returns a boolean if a field has been set. + +### GetRemoteAsn + +`func (o *BgpUpdateRequest) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *BgpUpdateRequest) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *BgpUpdateRequest) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + +### HasRemoteAsn + +`func (o *BgpUpdateRequest) HasRemoteAsn() bool` + +HasRemoteAsn returns a boolean if a field has been set. + +### GetRemoteIpAddress + +`func (o *BgpUpdateRequest) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *BgpUpdateRequest) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *BgpUpdateRequest) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + +### HasRemoteIpAddress + +`func (o *BgpUpdateRequest) HasRemoteIpAddress() bool` + +HasRemoteIpAddress returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Charges.md b/services/networkedgev1/docs/Charges.md new file mode 100644 index 00000000..aed6d443 --- /dev/null +++ b/services/networkedgev1/docs/Charges.md @@ -0,0 +1,82 @@ +# Charges + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | The description of the charge, whether it is for the virtual device, the device license, or the additional bandwidth. | [optional] +**MonthlyRecurringCharges** | Pointer to **string** | The monthly charges. | [optional] + +## Methods + +### NewCharges + +`func NewCharges() *Charges` + +NewCharges instantiates a new Charges object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewChargesWithDefaults + +`func NewChargesWithDefaults() *Charges` + +NewChargesWithDefaults instantiates a new Charges object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *Charges) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Charges) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Charges) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Charges) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMonthlyRecurringCharges + +`func (o *Charges) GetMonthlyRecurringCharges() string` + +GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field if non-nil, zero value otherwise. + +### GetMonthlyRecurringChargesOk + +`func (o *Charges) GetMonthlyRecurringChargesOk() (*string, bool)` + +GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyRecurringCharges + +`func (o *Charges) SetMonthlyRecurringCharges(v string)` + +SetMonthlyRecurringCharges sets MonthlyRecurringCharges field to given value. + +### HasMonthlyRecurringCharges + +`func (o *Charges) HasMonthlyRecurringCharges() bool` + +HasMonthlyRecurringCharges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ClusterConfig.md b/services/networkedgev1/docs/ClusterConfig.md new file mode 100644 index 00000000..ec50df7d --- /dev/null +++ b/services/networkedgev1/docs/ClusterConfig.md @@ -0,0 +1,82 @@ +# ClusterConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterName** | Pointer to **string** | The cluster name. | [optional] +**ClusterNodeDetails** | Pointer to [**ClusterNodeDetails**](ClusterNodeDetails.md) | | [optional] + +## Methods + +### NewClusterConfig + +`func NewClusterConfig() *ClusterConfig` + +NewClusterConfig instantiates a new ClusterConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClusterConfigWithDefaults + +`func NewClusterConfigWithDefaults() *ClusterConfig` + +NewClusterConfigWithDefaults instantiates a new ClusterConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClusterName + +`func (o *ClusterConfig) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *ClusterConfig) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *ClusterConfig) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + +### HasClusterName + +`func (o *ClusterConfig) HasClusterName() bool` + +HasClusterName returns a boolean if a field has been set. + +### GetClusterNodeDetails + +`func (o *ClusterConfig) GetClusterNodeDetails() ClusterNodeDetails` + +GetClusterNodeDetails returns the ClusterNodeDetails field if non-nil, zero value otherwise. + +### GetClusterNodeDetailsOk + +`func (o *ClusterConfig) GetClusterNodeDetailsOk() (*ClusterNodeDetails, bool)` + +GetClusterNodeDetailsOk returns a tuple with the ClusterNodeDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterNodeDetails + +`func (o *ClusterConfig) SetClusterNodeDetails(v ClusterNodeDetails)` + +SetClusterNodeDetails sets ClusterNodeDetails field to given value. + +### HasClusterNodeDetails + +`func (o *ClusterConfig) HasClusterNodeDetails() bool` + +HasClusterNodeDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ClusterNodeDetails.md b/services/networkedgev1/docs/ClusterNodeDetails.md new file mode 100644 index 00000000..b41a3c36 --- /dev/null +++ b/services/networkedgev1/docs/ClusterNodeDetails.md @@ -0,0 +1,82 @@ +# ClusterNodeDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Node0** | Pointer to [**Node0Details**](Node0Details.md) | | [optional] +**Node1** | Pointer to [**Node1Details**](Node1Details.md) | | [optional] + +## Methods + +### NewClusterNodeDetails + +`func NewClusterNodeDetails() *ClusterNodeDetails` + +NewClusterNodeDetails instantiates a new ClusterNodeDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClusterNodeDetailsWithDefaults + +`func NewClusterNodeDetailsWithDefaults() *ClusterNodeDetails` + +NewClusterNodeDetailsWithDefaults instantiates a new ClusterNodeDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNode0 + +`func (o *ClusterNodeDetails) GetNode0() Node0Details` + +GetNode0 returns the Node0 field if non-nil, zero value otherwise. + +### GetNode0Ok + +`func (o *ClusterNodeDetails) GetNode0Ok() (*Node0Details, bool)` + +GetNode0Ok returns a tuple with the Node0 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNode0 + +`func (o *ClusterNodeDetails) SetNode0(v Node0Details)` + +SetNode0 sets Node0 field to given value. + +### HasNode0 + +`func (o *ClusterNodeDetails) HasNode0() bool` + +HasNode0 returns a boolean if a field has been set. + +### GetNode1 + +`func (o *ClusterNodeDetails) GetNode1() Node1Details` + +GetNode1 returns the Node1 field if non-nil, zero value otherwise. + +### GetNode1Ok + +`func (o *ClusterNodeDetails) GetNode1Ok() (*Node1Details, bool)` + +GetNode1Ok returns a tuple with the Node1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNode1 + +`func (o *ClusterNodeDetails) SetNode1(v Node1Details)` + +SetNode1 sets Node1 field to given value. + +### HasNode1 + +`func (o *ClusterNodeDetails) HasNode1() bool` + +HasNode1 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ClusteringDetails.md b/services/networkedgev1/docs/ClusteringDetails.md new file mode 100644 index 00000000..db1eb2ca --- /dev/null +++ b/services/networkedgev1/docs/ClusteringDetails.md @@ -0,0 +1,82 @@ +# ClusteringDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusteringEnabled** | Pointer to **bool** | Whether this device management type supports clustering. | [optional] +**MaxAllowedNodes** | Pointer to **int32** | The number of nodes you can have for a cluster device. | [optional] + +## Methods + +### NewClusteringDetails + +`func NewClusteringDetails() *ClusteringDetails` + +NewClusteringDetails instantiates a new ClusteringDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClusteringDetailsWithDefaults + +`func NewClusteringDetailsWithDefaults() *ClusteringDetails` + +NewClusteringDetailsWithDefaults instantiates a new ClusteringDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClusteringEnabled + +`func (o *ClusteringDetails) GetClusteringEnabled() bool` + +GetClusteringEnabled returns the ClusteringEnabled field if non-nil, zero value otherwise. + +### GetClusteringEnabledOk + +`func (o *ClusteringDetails) GetClusteringEnabledOk() (*bool, bool)` + +GetClusteringEnabledOk returns a tuple with the ClusteringEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusteringEnabled + +`func (o *ClusteringDetails) SetClusteringEnabled(v bool)` + +SetClusteringEnabled sets ClusteringEnabled field to given value. + +### HasClusteringEnabled + +`func (o *ClusteringDetails) HasClusteringEnabled() bool` + +HasClusteringEnabled returns a boolean if a field has been set. + +### GetMaxAllowedNodes + +`func (o *ClusteringDetails) GetMaxAllowedNodes() int32` + +GetMaxAllowedNodes returns the MaxAllowedNodes field if non-nil, zero value otherwise. + +### GetMaxAllowedNodesOk + +`func (o *ClusteringDetails) GetMaxAllowedNodesOk() (*int32, bool)` + +GetMaxAllowedNodesOk returns a tuple with the MaxAllowedNodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAllowedNodes + +`func (o *ClusteringDetails) SetMaxAllowedNodes(v int32)` + +SetMaxAllowedNodes sets MaxAllowedNodes field to given value. + +### HasMaxAllowedNodes + +`func (o *ClusteringDetails) HasMaxAllowedNodes() bool` + +HasMaxAllowedNodes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/CompositePriceResponse.md b/services/networkedgev1/docs/CompositePriceResponse.md new file mode 100644 index 00000000..7940d831 --- /dev/null +++ b/services/networkedgev1/docs/CompositePriceResponse.md @@ -0,0 +1,108 @@ +# CompositePriceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Primary** | Pointer to [**PriceResponse**](PriceResponse.md) | | [optional] +**Secondary** | Pointer to [**PriceResponse**](PriceResponse.md) | | [optional] +**TermLength** | Pointer to **string** | | [optional] + +## Methods + +### NewCompositePriceResponse + +`func NewCompositePriceResponse() *CompositePriceResponse` + +NewCompositePriceResponse instantiates a new CompositePriceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCompositePriceResponseWithDefaults + +`func NewCompositePriceResponseWithDefaults() *CompositePriceResponse` + +NewCompositePriceResponseWithDefaults instantiates a new CompositePriceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrimary + +`func (o *CompositePriceResponse) GetPrimary() PriceResponse` + +GetPrimary returns the Primary field if non-nil, zero value otherwise. + +### GetPrimaryOk + +`func (o *CompositePriceResponse) GetPrimaryOk() (*PriceResponse, bool)` + +GetPrimaryOk returns a tuple with the Primary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimary + +`func (o *CompositePriceResponse) SetPrimary(v PriceResponse)` + +SetPrimary sets Primary field to given value. + +### HasPrimary + +`func (o *CompositePriceResponse) HasPrimary() bool` + +HasPrimary returns a boolean if a field has been set. + +### GetSecondary + +`func (o *CompositePriceResponse) GetSecondary() PriceResponse` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *CompositePriceResponse) GetSecondaryOk() (*PriceResponse, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *CompositePriceResponse) SetSecondary(v PriceResponse)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *CompositePriceResponse) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + +### GetTermLength + +`func (o *CompositePriceResponse) GetTermLength() string` + +GetTermLength returns the TermLength field if non-nil, zero value otherwise. + +### GetTermLengthOk + +`func (o *CompositePriceResponse) GetTermLengthOk() (*string, bool)` + +GetTermLengthOk returns a tuple with the TermLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermLength + +`func (o *CompositePriceResponse) SetTermLength(v string)` + +SetTermLength sets TermLength field to given value. + +### HasTermLength + +`func (o *CompositePriceResponse) HasTermLength() bool` + +HasTermLength returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/CoresConfig.md b/services/networkedgev1/docs/CoresConfig.md new file mode 100644 index 00000000..d818d5c1 --- /dev/null +++ b/services/networkedgev1/docs/CoresConfig.md @@ -0,0 +1,212 @@ +# CoresConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Core** | Pointer to **int32** | The number of cores. | [optional] +**Memory** | Pointer to **int32** | The amount of memory. | [optional] +**Unit** | Pointer to **string** | The unit of memory. | [optional] +**Flavor** | Pointer to **string** | Small, medium or large. | [optional] +**PackageCodes** | Pointer to [**[]PackageCodes**](PackageCodes.md) | An array that has all the software packages and throughput options. | [optional] +**Supported** | Pointer to **bool** | Whether or not this core is supported. | [optional] +**Tier** | Pointer to **int32** | Tier is relevant only for Cisco 8000V devices | [optional] + +## Methods + +### NewCoresConfig + +`func NewCoresConfig() *CoresConfig` + +NewCoresConfig instantiates a new CoresConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCoresConfigWithDefaults + +`func NewCoresConfigWithDefaults() *CoresConfig` + +NewCoresConfigWithDefaults instantiates a new CoresConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCore + +`func (o *CoresConfig) GetCore() int32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *CoresConfig) GetCoreOk() (*int32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *CoresConfig) SetCore(v int32)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *CoresConfig) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetMemory + +`func (o *CoresConfig) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *CoresConfig) GetMemoryOk() (*int32, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *CoresConfig) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *CoresConfig) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetUnit + +`func (o *CoresConfig) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *CoresConfig) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *CoresConfig) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *CoresConfig) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetFlavor + +`func (o *CoresConfig) GetFlavor() string` + +GetFlavor returns the Flavor field if non-nil, zero value otherwise. + +### GetFlavorOk + +`func (o *CoresConfig) GetFlavorOk() (*string, bool)` + +GetFlavorOk returns a tuple with the Flavor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlavor + +`func (o *CoresConfig) SetFlavor(v string)` + +SetFlavor sets Flavor field to given value. + +### HasFlavor + +`func (o *CoresConfig) HasFlavor() bool` + +HasFlavor returns a boolean if a field has been set. + +### GetPackageCodes + +`func (o *CoresConfig) GetPackageCodes() []PackageCodes` + +GetPackageCodes returns the PackageCodes field if non-nil, zero value otherwise. + +### GetPackageCodesOk + +`func (o *CoresConfig) GetPackageCodesOk() (*[]PackageCodes, bool)` + +GetPackageCodesOk returns a tuple with the PackageCodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCodes + +`func (o *CoresConfig) SetPackageCodes(v []PackageCodes)` + +SetPackageCodes sets PackageCodes field to given value. + +### HasPackageCodes + +`func (o *CoresConfig) HasPackageCodes() bool` + +HasPackageCodes returns a boolean if a field has been set. + +### GetSupported + +`func (o *CoresConfig) GetSupported() bool` + +GetSupported returns the Supported field if non-nil, zero value otherwise. + +### GetSupportedOk + +`func (o *CoresConfig) GetSupportedOk() (*bool, bool)` + +GetSupportedOk returns a tuple with the Supported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupported + +`func (o *CoresConfig) SetSupported(v bool)` + +SetSupported sets Supported field to given value. + +### HasSupported + +`func (o *CoresConfig) HasSupported() bool` + +HasSupported returns a boolean if a field has been set. + +### GetTier + +`func (o *CoresConfig) GetTier() int32` + +GetTier returns the Tier field if non-nil, zero value otherwise. + +### GetTierOk + +`func (o *CoresConfig) GetTierOk() (*int32, bool)` + +GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTier + +`func (o *CoresConfig) SetTier(v int32)` + +SetTier sets Tier field to given value. + +### HasTier + +`func (o *CoresConfig) HasTier() bool` + +HasTier returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/CoresDisplayConfig.md b/services/networkedgev1/docs/CoresDisplayConfig.md new file mode 100644 index 00000000..cc1e9d92 --- /dev/null +++ b/services/networkedgev1/docs/CoresDisplayConfig.md @@ -0,0 +1,134 @@ +# CoresDisplayConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Core** | Pointer to **int32** | The number of cores. | [optional] +**Memory** | Pointer to **int32** | The amount of memory. | [optional] +**Unit** | Pointer to **string** | The unit of memory. | [optional] +**Tier** | Pointer to **int32** | Tier is only relevant for Cisco8000V devices. | [optional] + +## Methods + +### NewCoresDisplayConfig + +`func NewCoresDisplayConfig() *CoresDisplayConfig` + +NewCoresDisplayConfig instantiates a new CoresDisplayConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCoresDisplayConfigWithDefaults + +`func NewCoresDisplayConfigWithDefaults() *CoresDisplayConfig` + +NewCoresDisplayConfigWithDefaults instantiates a new CoresDisplayConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCore + +`func (o *CoresDisplayConfig) GetCore() int32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *CoresDisplayConfig) GetCoreOk() (*int32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *CoresDisplayConfig) SetCore(v int32)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *CoresDisplayConfig) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetMemory + +`func (o *CoresDisplayConfig) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *CoresDisplayConfig) GetMemoryOk() (*int32, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *CoresDisplayConfig) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *CoresDisplayConfig) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetUnit + +`func (o *CoresDisplayConfig) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *CoresDisplayConfig) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *CoresDisplayConfig) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *CoresDisplayConfig) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetTier + +`func (o *CoresDisplayConfig) GetTier() int32` + +GetTier returns the Tier field if non-nil, zero value otherwise. + +### GetTierOk + +`func (o *CoresDisplayConfig) GetTierOk() (*int32, bool)` + +GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTier + +`func (o *CoresDisplayConfig) SetTier(v int32)` + +SetTier sets Tier field to given value. + +### HasTier + +`func (o *CoresDisplayConfig) HasTier() bool` + +HasTier returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DNSLookupRequest.md b/services/networkedgev1/docs/DNSLookupRequest.md new file mode 100644 index 00000000..23fce6b6 --- /dev/null +++ b/services/networkedgev1/docs/DNSLookupRequest.md @@ -0,0 +1,108 @@ +# DNSLookupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fqdns** | Pointer to **[]string** | Domain names | [optional] +**Uuid** | Pointer to **string** | The unique Id of a virtual device | [optional] +**MetroCode** | Pointer to **string** | Metro code | [optional] + +## Methods + +### NewDNSLookupRequest + +`func NewDNSLookupRequest() *DNSLookupRequest` + +NewDNSLookupRequest instantiates a new DNSLookupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDNSLookupRequestWithDefaults + +`func NewDNSLookupRequestWithDefaults() *DNSLookupRequest` + +NewDNSLookupRequestWithDefaults instantiates a new DNSLookupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFqdns + +`func (o *DNSLookupRequest) GetFqdns() []string` + +GetFqdns returns the Fqdns field if non-nil, zero value otherwise. + +### GetFqdnsOk + +`func (o *DNSLookupRequest) GetFqdnsOk() (*[]string, bool)` + +GetFqdnsOk returns a tuple with the Fqdns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFqdns + +`func (o *DNSLookupRequest) SetFqdns(v []string)` + +SetFqdns sets Fqdns field to given value. + +### HasFqdns + +`func (o *DNSLookupRequest) HasFqdns() bool` + +HasFqdns returns a boolean if a field has been set. + +### GetUuid + +`func (o *DNSLookupRequest) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DNSLookupRequest) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DNSLookupRequest) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DNSLookupRequest) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *DNSLookupRequest) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *DNSLookupRequest) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *DNSLookupRequest) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *DNSLookupRequest) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DNSLookupResponse.md b/services/networkedgev1/docs/DNSLookupResponse.md new file mode 100644 index 00000000..f0a5e24f --- /dev/null +++ b/services/networkedgev1/docs/DNSLookupResponse.md @@ -0,0 +1,56 @@ +# DNSLookupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalProp** | Pointer to [**DNSLookupResponseDetails**](DNSLookupResponseDetails.md) | | [optional] + +## Methods + +### NewDNSLookupResponse + +`func NewDNSLookupResponse() *DNSLookupResponse` + +NewDNSLookupResponse instantiates a new DNSLookupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDNSLookupResponseWithDefaults + +`func NewDNSLookupResponseWithDefaults() *DNSLookupResponse` + +NewDNSLookupResponseWithDefaults instantiates a new DNSLookupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdditionalProp + +`func (o *DNSLookupResponse) GetAdditionalProp() DNSLookupResponseDetails` + +GetAdditionalProp returns the AdditionalProp field if non-nil, zero value otherwise. + +### GetAdditionalPropOk + +`func (o *DNSLookupResponse) GetAdditionalPropOk() (*DNSLookupResponseDetails, bool)` + +GetAdditionalPropOk returns a tuple with the AdditionalProp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalProp + +`func (o *DNSLookupResponse) SetAdditionalProp(v DNSLookupResponseDetails)` + +SetAdditionalProp sets AdditionalProp field to given value. + +### HasAdditionalProp + +`func (o *DNSLookupResponse) HasAdditionalProp() bool` + +HasAdditionalProp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DNSLookupResponseDetails.md b/services/networkedgev1/docs/DNSLookupResponseDetails.md new file mode 100644 index 00000000..e9ecc387 --- /dev/null +++ b/services/networkedgev1/docs/DNSLookupResponseDetails.md @@ -0,0 +1,82 @@ +# DNSLookupResponseDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cdn** | Pointer to **bool** | True or false | [optional] +**Ips** | Pointer to **[]string** | Domain names | [optional] + +## Methods + +### NewDNSLookupResponseDetails + +`func NewDNSLookupResponseDetails() *DNSLookupResponseDetails` + +NewDNSLookupResponseDetails instantiates a new DNSLookupResponseDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDNSLookupResponseDetailsWithDefaults + +`func NewDNSLookupResponseDetailsWithDefaults() *DNSLookupResponseDetails` + +NewDNSLookupResponseDetailsWithDefaults instantiates a new DNSLookupResponseDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCdn + +`func (o *DNSLookupResponseDetails) GetCdn() bool` + +GetCdn returns the Cdn field if non-nil, zero value otherwise. + +### GetCdnOk + +`func (o *DNSLookupResponseDetails) GetCdnOk() (*bool, bool)` + +GetCdnOk returns a tuple with the Cdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCdn + +`func (o *DNSLookupResponseDetails) SetCdn(v bool)` + +SetCdn sets Cdn field to given value. + +### HasCdn + +`func (o *DNSLookupResponseDetails) HasCdn() bool` + +HasCdn returns a boolean if a field has been set. + +### GetIps + +`func (o *DNSLookupResponseDetails) GetIps() []string` + +GetIps returns the Ips field if non-nil, zero value otherwise. + +### GetIpsOk + +`func (o *DNSLookupResponseDetails) GetIpsOk() (*[]string, bool)` + +GetIpsOk returns a tuple with the Ips field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIps + +`func (o *DNSLookupResponseDetails) SetIps(v []string)` + +SetIps sets Ips field to given value. + +### HasIps + +`func (o *DNSLookupResponseDetails) HasIps() bool` + +HasIps returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DefaultAclsConfig.md b/services/networkedgev1/docs/DefaultAclsConfig.md new file mode 100644 index 00000000..75a657c6 --- /dev/null +++ b/services/networkedgev1/docs/DefaultAclsConfig.md @@ -0,0 +1,82 @@ +# DefaultAclsConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DnsServers** | Pointer to **[]string** | | [optional] +**NtpServers** | Pointer to **[]string** | | [optional] + +## Methods + +### NewDefaultAclsConfig + +`func NewDefaultAclsConfig() *DefaultAclsConfig` + +NewDefaultAclsConfig instantiates a new DefaultAclsConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDefaultAclsConfigWithDefaults + +`func NewDefaultAclsConfigWithDefaults() *DefaultAclsConfig` + +NewDefaultAclsConfigWithDefaults instantiates a new DefaultAclsConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDnsServers + +`func (o *DefaultAclsConfig) GetDnsServers() []string` + +GetDnsServers returns the DnsServers field if non-nil, zero value otherwise. + +### GetDnsServersOk + +`func (o *DefaultAclsConfig) GetDnsServersOk() (*[]string, bool)` + +GetDnsServersOk returns a tuple with the DnsServers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsServers + +`func (o *DefaultAclsConfig) SetDnsServers(v []string)` + +SetDnsServers sets DnsServers field to given value. + +### HasDnsServers + +`func (o *DefaultAclsConfig) HasDnsServers() bool` + +HasDnsServers returns a boolean if a field has been set. + +### GetNtpServers + +`func (o *DefaultAclsConfig) GetNtpServers() []string` + +GetNtpServers returns the NtpServers field if non-nil, zero value otherwise. + +### GetNtpServersOk + +`func (o *DefaultAclsConfig) GetNtpServersOk() (*[]string, bool)` + +GetNtpServersOk returns a tuple with the NtpServers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNtpServers + +`func (o *DefaultAclsConfig) SetNtpServers(v []string)` + +SetNtpServers sets NtpServers field to given value. + +### HasNtpServers + +`func (o *DefaultAclsConfig) HasNtpServers() bool` + +HasNtpServers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeleteConnectionResponse.md b/services/networkedgev1/docs/DeleteConnectionResponse.md new file mode 100644 index 00000000..c733ff4a --- /dev/null +++ b/services/networkedgev1/docs/DeleteConnectionResponse.md @@ -0,0 +1,82 @@ +# DeleteConnectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**PrimaryConnectionId** | Pointer to **string** | | [optional] + +## Methods + +### NewDeleteConnectionResponse + +`func NewDeleteConnectionResponse() *DeleteConnectionResponse` + +NewDeleteConnectionResponse instantiates a new DeleteConnectionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteConnectionResponseWithDefaults + +`func NewDeleteConnectionResponseWithDefaults() *DeleteConnectionResponse` + +NewDeleteConnectionResponseWithDefaults instantiates a new DeleteConnectionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *DeleteConnectionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteConnectionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *DeleteConnectionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteConnectionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetPrimaryConnectionId + +`func (o *DeleteConnectionResponse) GetPrimaryConnectionId() string` + +GetPrimaryConnectionId returns the PrimaryConnectionId field if non-nil, zero value otherwise. + +### GetPrimaryConnectionIdOk + +`func (o *DeleteConnectionResponse) GetPrimaryConnectionIdOk() (*string, bool)` + +GetPrimaryConnectionIdOk returns a tuple with the PrimaryConnectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryConnectionId + +`func (o *DeleteConnectionResponse) SetPrimaryConnectionId(v string)` + +SetPrimaryConnectionId sets PrimaryConnectionId field to given value. + +### HasPrimaryConnectionId + +`func (o *DeleteConnectionResponse) HasPrimaryConnectionId() bool` + +HasPrimaryConnectionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceACLDetailsResponse.md b/services/networkedgev1/docs/DeviceACLDetailsResponse.md new file mode 100644 index 00000000..2c5a6bbb --- /dev/null +++ b/services/networkedgev1/docs/DeviceACLDetailsResponse.md @@ -0,0 +1,212 @@ +# DeviceACLDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the ACL template. | [optional] +**Uuid** | Pointer to **string** | The unique Id of the ACL template. | [optional] +**Description** | Pointer to **string** | The description of the ACL template. | [optional] +**InboundRules** | Pointer to [**[]InboundRules**](InboundRules.md) | An array of inbound rules | [optional] +**CreatedBy** | Pointer to **string** | Created by | [optional] +**CreatedDate** | Pointer to **string** | Created date | [optional] +**Status** | Pointer to **string** | The status of the ACL template on the device. Possible values are PROVISIONED, DEPROVISIONED, DEVICE_NOT_READY, FAILED, NOT_APPLIED, PROVISIONING. | [optional] + +## Methods + +### NewDeviceACLDetailsResponse + +`func NewDeviceACLDetailsResponse() *DeviceACLDetailsResponse` + +NewDeviceACLDetailsResponse instantiates a new DeviceACLDetailsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceACLDetailsResponseWithDefaults + +`func NewDeviceACLDetailsResponseWithDefaults() *DeviceACLDetailsResponse` + +NewDeviceACLDetailsResponseWithDefaults instantiates a new DeviceACLDetailsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *DeviceACLDetailsResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceACLDetailsResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceACLDetailsResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *DeviceACLDetailsResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUuid + +`func (o *DeviceACLDetailsResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceACLDetailsResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceACLDetailsResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceACLDetailsResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetDescription + +`func (o *DeviceACLDetailsResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DeviceACLDetailsResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DeviceACLDetailsResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DeviceACLDetailsResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInboundRules + +`func (o *DeviceACLDetailsResponse) GetInboundRules() []InboundRules` + +GetInboundRules returns the InboundRules field if non-nil, zero value otherwise. + +### GetInboundRulesOk + +`func (o *DeviceACLDetailsResponse) GetInboundRulesOk() (*[]InboundRules, bool)` + +GetInboundRulesOk returns a tuple with the InboundRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundRules + +`func (o *DeviceACLDetailsResponse) SetInboundRules(v []InboundRules)` + +SetInboundRules sets InboundRules field to given value. + +### HasInboundRules + +`func (o *DeviceACLDetailsResponse) HasInboundRules() bool` + +HasInboundRules returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *DeviceACLDetailsResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *DeviceACLDetailsResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *DeviceACLDetailsResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *DeviceACLDetailsResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *DeviceACLDetailsResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *DeviceACLDetailsResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *DeviceACLDetailsResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *DeviceACLDetailsResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceACLDetailsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceACLDetailsResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceACLDetailsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceACLDetailsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceACLPageResponse.md b/services/networkedgev1/docs/DeviceACLPageResponse.md new file mode 100644 index 00000000..ebfce89f --- /dev/null +++ b/services/networkedgev1/docs/DeviceACLPageResponse.md @@ -0,0 +1,82 @@ +# DeviceACLPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]DeviceACLTemplatesResponse**](DeviceACLTemplatesResponse.md) | | [optional] + +## Methods + +### NewDeviceACLPageResponse + +`func NewDeviceACLPageResponse() *DeviceACLPageResponse` + +NewDeviceACLPageResponse instantiates a new DeviceACLPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceACLPageResponseWithDefaults + +`func NewDeviceACLPageResponseWithDefaults() *DeviceACLPageResponse` + +NewDeviceACLPageResponseWithDefaults instantiates a new DeviceACLPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *DeviceACLPageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *DeviceACLPageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *DeviceACLPageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *DeviceACLPageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *DeviceACLPageResponse) GetData() []DeviceACLTemplatesResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeviceACLPageResponse) GetDataOk() (*[]DeviceACLTemplatesResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeviceACLPageResponse) SetData(v []DeviceACLTemplatesResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeviceACLPageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceACLTemplateRequest.md b/services/networkedgev1/docs/DeviceACLTemplateRequest.md new file mode 100644 index 00000000..ac305255 --- /dev/null +++ b/services/networkedgev1/docs/DeviceACLTemplateRequest.md @@ -0,0 +1,93 @@ +# DeviceACLTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The ACL template name. | +**Description** | **string** | The ACL template description. | +**InboundRules** | [**[]InboundRules**](InboundRules.md) | An array of inbound rules. | + +## Methods + +### NewDeviceACLTemplateRequest + +`func NewDeviceACLTemplateRequest(name string, description string, inboundRules []InboundRules, ) *DeviceACLTemplateRequest` + +NewDeviceACLTemplateRequest instantiates a new DeviceACLTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceACLTemplateRequestWithDefaults + +`func NewDeviceACLTemplateRequestWithDefaults() *DeviceACLTemplateRequest` + +NewDeviceACLTemplateRequestWithDefaults instantiates a new DeviceACLTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *DeviceACLTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceACLTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceACLTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *DeviceACLTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DeviceACLTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DeviceACLTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetInboundRules + +`func (o *DeviceACLTemplateRequest) GetInboundRules() []InboundRules` + +GetInboundRules returns the InboundRules field if non-nil, zero value otherwise. + +### GetInboundRulesOk + +`func (o *DeviceACLTemplateRequest) GetInboundRulesOk() (*[]InboundRules, bool)` + +GetInboundRulesOk returns a tuple with the InboundRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundRules + +`func (o *DeviceACLTemplateRequest) SetInboundRules(v []InboundRules)` + +SetInboundRules sets InboundRules field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceACLTemplatesResponse.md b/services/networkedgev1/docs/DeviceACLTemplatesResponse.md new file mode 100644 index 00000000..9f3c99ce --- /dev/null +++ b/services/networkedgev1/docs/DeviceACLTemplatesResponse.md @@ -0,0 +1,186 @@ +# DeviceACLTemplatesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the ACL template. | [optional] +**Uuid** | Pointer to **string** | The unique Id of the ACL template. | [optional] +**Description** | Pointer to **string** | The description of the ACL template. | [optional] +**InboundRules** | Pointer to [**[]InboundRules**](InboundRules.md) | An array of inbound rules | [optional] +**CreatedBy** | Pointer to **string** | Created by | [optional] +**CreatedDate** | Pointer to **string** | Created date | [optional] + +## Methods + +### NewDeviceACLTemplatesResponse + +`func NewDeviceACLTemplatesResponse() *DeviceACLTemplatesResponse` + +NewDeviceACLTemplatesResponse instantiates a new DeviceACLTemplatesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceACLTemplatesResponseWithDefaults + +`func NewDeviceACLTemplatesResponseWithDefaults() *DeviceACLTemplatesResponse` + +NewDeviceACLTemplatesResponseWithDefaults instantiates a new DeviceACLTemplatesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *DeviceACLTemplatesResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceACLTemplatesResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceACLTemplatesResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *DeviceACLTemplatesResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUuid + +`func (o *DeviceACLTemplatesResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceACLTemplatesResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceACLTemplatesResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceACLTemplatesResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetDescription + +`func (o *DeviceACLTemplatesResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DeviceACLTemplatesResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DeviceACLTemplatesResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DeviceACLTemplatesResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInboundRules + +`func (o *DeviceACLTemplatesResponse) GetInboundRules() []InboundRules` + +GetInboundRules returns the InboundRules field if non-nil, zero value otherwise. + +### GetInboundRulesOk + +`func (o *DeviceACLTemplatesResponse) GetInboundRulesOk() (*[]InboundRules, bool)` + +GetInboundRulesOk returns a tuple with the InboundRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundRules + +`func (o *DeviceACLTemplatesResponse) SetInboundRules(v []InboundRules)` + +SetInboundRules sets InboundRules field to given value. + +### HasInboundRules + +`func (o *DeviceACLTemplatesResponse) HasInboundRules() bool` + +HasInboundRules returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *DeviceACLTemplatesResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *DeviceACLTemplatesResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *DeviceACLTemplatesResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *DeviceACLTemplatesResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *DeviceACLTemplatesResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *DeviceACLTemplatesResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *DeviceACLTemplatesResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *DeviceACLTemplatesResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupCreateRequest.md b/services/networkedgev1/docs/DeviceBackupCreateRequest.md new file mode 100644 index 00000000..99df7fe9 --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupCreateRequest.md @@ -0,0 +1,72 @@ +# DeviceBackupCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceUuid** | **string** | The unique Id of a virtual device. | +**Name** | **string** | The name of backup. | + +## Methods + +### NewDeviceBackupCreateRequest + +`func NewDeviceBackupCreateRequest(deviceUuid string, name string, ) *DeviceBackupCreateRequest` + +NewDeviceBackupCreateRequest instantiates a new DeviceBackupCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupCreateRequestWithDefaults + +`func NewDeviceBackupCreateRequestWithDefaults() *DeviceBackupCreateRequest` + +NewDeviceBackupCreateRequestWithDefaults instantiates a new DeviceBackupCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceUuid + +`func (o *DeviceBackupCreateRequest) GetDeviceUuid() string` + +GetDeviceUuid returns the DeviceUuid field if non-nil, zero value otherwise. + +### GetDeviceUuidOk + +`func (o *DeviceBackupCreateRequest) GetDeviceUuidOk() (*string, bool)` + +GetDeviceUuidOk returns a tuple with the DeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuid + +`func (o *DeviceBackupCreateRequest) SetDeviceUuid(v string)` + +SetDeviceUuid sets DeviceUuid field to given value. + + +### GetName + +`func (o *DeviceBackupCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceBackupCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceBackupCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupCreateResponse.md b/services/networkedgev1/docs/DeviceBackupCreateResponse.md new file mode 100644 index 00000000..0c88e77b --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupCreateResponse.md @@ -0,0 +1,56 @@ +# DeviceBackupCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The ID of the backup that is being created. | [optional] + +## Methods + +### NewDeviceBackupCreateResponse + +`func NewDeviceBackupCreateResponse() *DeviceBackupCreateResponse` + +NewDeviceBackupCreateResponse instantiates a new DeviceBackupCreateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupCreateResponseWithDefaults + +`func NewDeviceBackupCreateResponseWithDefaults() *DeviceBackupCreateResponse` + +NewDeviceBackupCreateResponseWithDefaults instantiates a new DeviceBackupCreateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceBackupCreateResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceBackupCreateResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceBackupCreateResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceBackupCreateResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupInfoVerbose.md b/services/networkedgev1/docs/DeviceBackupInfoVerbose.md new file mode 100644 index 00000000..3cedcf9d --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupInfoVerbose.md @@ -0,0 +1,316 @@ +# DeviceBackupInfoVerbose + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The unique Id of the device backup. | [optional] +**Name** | Pointer to **string** | The name of the backup. | [optional] +**Version** | Pointer to **string** | Version of the device | [optional] +**Type** | Pointer to **string** | The type of backup. | [optional] +**Status** | Pointer to **string** | The status of the backup. | [optional] +**CreatedBy** | Pointer to **string** | Created by. | [optional] +**LastUpdatedDate** | Pointer to **string** | Last updated date. | [optional] +**DownloadUrl** | Pointer to **string** | URL where you can download the backup. | [optional] +**DeleteAllowed** | Pointer to **bool** | Whether or not you can delete the backup. | [optional] +**Restores** | Pointer to [**[]PreviousBackups**](PreviousBackups.md) | | [optional] +**DeviceUuid** | Pointer to **string** | Unique Id of the device | [optional] + +## Methods + +### NewDeviceBackupInfoVerbose + +`func NewDeviceBackupInfoVerbose() *DeviceBackupInfoVerbose` + +NewDeviceBackupInfoVerbose instantiates a new DeviceBackupInfoVerbose object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupInfoVerboseWithDefaults + +`func NewDeviceBackupInfoVerboseWithDefaults() *DeviceBackupInfoVerbose` + +NewDeviceBackupInfoVerboseWithDefaults instantiates a new DeviceBackupInfoVerbose object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceBackupInfoVerbose) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceBackupInfoVerbose) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceBackupInfoVerbose) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceBackupInfoVerbose) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetName + +`func (o *DeviceBackupInfoVerbose) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceBackupInfoVerbose) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceBackupInfoVerbose) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *DeviceBackupInfoVerbose) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *DeviceBackupInfoVerbose) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *DeviceBackupInfoVerbose) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *DeviceBackupInfoVerbose) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *DeviceBackupInfoVerbose) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetType + +`func (o *DeviceBackupInfoVerbose) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DeviceBackupInfoVerbose) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DeviceBackupInfoVerbose) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *DeviceBackupInfoVerbose) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceBackupInfoVerbose) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceBackupInfoVerbose) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceBackupInfoVerbose) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceBackupInfoVerbose) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *DeviceBackupInfoVerbose) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *DeviceBackupInfoVerbose) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *DeviceBackupInfoVerbose) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *DeviceBackupInfoVerbose) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *DeviceBackupInfoVerbose) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *DeviceBackupInfoVerbose) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *DeviceBackupInfoVerbose) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *DeviceBackupInfoVerbose) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetDownloadUrl + +`func (o *DeviceBackupInfoVerbose) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *DeviceBackupInfoVerbose) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *DeviceBackupInfoVerbose) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *DeviceBackupInfoVerbose) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + +### GetDeleteAllowed + +`func (o *DeviceBackupInfoVerbose) GetDeleteAllowed() bool` + +GetDeleteAllowed returns the DeleteAllowed field if non-nil, zero value otherwise. + +### GetDeleteAllowedOk + +`func (o *DeviceBackupInfoVerbose) GetDeleteAllowedOk() (*bool, bool)` + +GetDeleteAllowedOk returns a tuple with the DeleteAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeleteAllowed + +`func (o *DeviceBackupInfoVerbose) SetDeleteAllowed(v bool)` + +SetDeleteAllowed sets DeleteAllowed field to given value. + +### HasDeleteAllowed + +`func (o *DeviceBackupInfoVerbose) HasDeleteAllowed() bool` + +HasDeleteAllowed returns a boolean if a field has been set. + +### GetRestores + +`func (o *DeviceBackupInfoVerbose) GetRestores() []PreviousBackups` + +GetRestores returns the Restores field if non-nil, zero value otherwise. + +### GetRestoresOk + +`func (o *DeviceBackupInfoVerbose) GetRestoresOk() (*[]PreviousBackups, bool)` + +GetRestoresOk returns a tuple with the Restores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestores + +`func (o *DeviceBackupInfoVerbose) SetRestores(v []PreviousBackups)` + +SetRestores sets Restores field to given value. + +### HasRestores + +`func (o *DeviceBackupInfoVerbose) HasRestores() bool` + +HasRestores returns a boolean if a field has been set. + +### GetDeviceUuid + +`func (o *DeviceBackupInfoVerbose) GetDeviceUuid() string` + +GetDeviceUuid returns the DeviceUuid field if non-nil, zero value otherwise. + +### GetDeviceUuidOk + +`func (o *DeviceBackupInfoVerbose) GetDeviceUuidOk() (*string, bool)` + +GetDeviceUuidOk returns a tuple with the DeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuid + +`func (o *DeviceBackupInfoVerbose) SetDeviceUuid(v string)` + +SetDeviceUuid sets DeviceUuid field to given value. + +### HasDeviceUuid + +`func (o *DeviceBackupInfoVerbose) HasDeviceUuid() bool` + +HasDeviceUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupPageResponse.md b/services/networkedgev1/docs/DeviceBackupPageResponse.md new file mode 100644 index 00000000..0bfcacb1 --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupPageResponse.md @@ -0,0 +1,82 @@ +# DeviceBackupPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]DeviceBackupInfoVerbose**](DeviceBackupInfoVerbose.md) | | [optional] + +## Methods + +### NewDeviceBackupPageResponse + +`func NewDeviceBackupPageResponse() *DeviceBackupPageResponse` + +NewDeviceBackupPageResponse instantiates a new DeviceBackupPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupPageResponseWithDefaults + +`func NewDeviceBackupPageResponseWithDefaults() *DeviceBackupPageResponse` + +NewDeviceBackupPageResponseWithDefaults instantiates a new DeviceBackupPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *DeviceBackupPageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *DeviceBackupPageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *DeviceBackupPageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *DeviceBackupPageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *DeviceBackupPageResponse) GetData() []DeviceBackupInfoVerbose` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeviceBackupPageResponse) GetDataOk() (*[]DeviceBackupInfoVerbose, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeviceBackupPageResponse) SetData(v []DeviceBackupInfoVerbose)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeviceBackupPageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupRestore.md b/services/networkedgev1/docs/DeviceBackupRestore.md new file mode 100644 index 00000000..5033c239 --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupRestore.md @@ -0,0 +1,134 @@ +# DeviceBackupRestore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The unique ID of the backup. | [optional] +**Name** | Pointer to **string** | The name of the backup. | [optional] +**Status** | Pointer to **string** | The status of the backup. | [optional] +**DeleteAllowed** | Pointer to **bool** | Whether you can delete the backup. Only backups in the COMPELTED or FAILED states can be deleted. | [optional] + +## Methods + +### NewDeviceBackupRestore + +`func NewDeviceBackupRestore() *DeviceBackupRestore` + +NewDeviceBackupRestore instantiates a new DeviceBackupRestore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupRestoreWithDefaults + +`func NewDeviceBackupRestoreWithDefaults() *DeviceBackupRestore` + +NewDeviceBackupRestoreWithDefaults instantiates a new DeviceBackupRestore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceBackupRestore) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceBackupRestore) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceBackupRestore) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceBackupRestore) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetName + +`func (o *DeviceBackupRestore) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceBackupRestore) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceBackupRestore) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *DeviceBackupRestore) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceBackupRestore) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceBackupRestore) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceBackupRestore) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceBackupRestore) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDeleteAllowed + +`func (o *DeviceBackupRestore) GetDeleteAllowed() bool` + +GetDeleteAllowed returns the DeleteAllowed field if non-nil, zero value otherwise. + +### GetDeleteAllowedOk + +`func (o *DeviceBackupRestore) GetDeleteAllowedOk() (*bool, bool)` + +GetDeleteAllowedOk returns a tuple with the DeleteAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeleteAllowed + +`func (o *DeviceBackupRestore) SetDeleteAllowed(v bool)` + +SetDeleteAllowed sets DeleteAllowed field to given value. + +### HasDeleteAllowed + +`func (o *DeviceBackupRestore) HasDeleteAllowed() bool` + +HasDeleteAllowed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceBackupRestoreApi.md b/services/networkedgev1/docs/DeviceBackupRestoreApi.md new file mode 100644 index 00000000..08c49b53 --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupRestoreApi.md @@ -0,0 +1,590 @@ +# \DeviceBackupRestoreApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CheckDetailsOfBackupsUsingGET**](DeviceBackupRestoreApi.md#CheckDetailsOfBackupsUsingGET) | **Get** /ne/v1/devices/{uuid}/restoreAnalysis | Checks Feasibility of Restore +[**CreateDeviceBackupUsingPOST**](DeviceBackupRestoreApi.md#CreateDeviceBackupUsingPOST) | **Post** /ne/v1/deviceBackups | Creates Device Backup +[**DeleteDeviceBackupUsingDELETE**](DeviceBackupRestoreApi.md#DeleteDeviceBackupUsingDELETE) | **Delete** /ne/v1/deviceBackups/{uuid} | Delete Backup of Device +[**DownloadDetailsOfBackupsUsingGET**](DeviceBackupRestoreApi.md#DownloadDetailsOfBackupsUsingGET) | **Get** /ne/v1/deviceBackups/{uuid}/download | Download a Backup +[**GetDetailsOfBackupsUsingGET**](DeviceBackupRestoreApi.md#GetDetailsOfBackupsUsingGET) | **Get** /ne/v1/deviceBackups/{uuid} | Get Backups of Device {uuid} +[**GetDeviceBackupsUsingGET**](DeviceBackupRestoreApi.md#GetDeviceBackupsUsingGET) | **Get** /ne/v1/deviceBackups | Get Backups of Device +[**RestoreDeviceBackupUsingPATCH**](DeviceBackupRestoreApi.md#RestoreDeviceBackupUsingPATCH) | **Patch** /ne/v1/devices/{uuid}/restore | Restores a backup +[**UpdateDeviceBackupUsingPATCH**](DeviceBackupRestoreApi.md#UpdateDeviceBackupUsingPATCH) | **Patch** /ne/v1/deviceBackups/{uuid} | Update Device Backup + + + +## CheckDetailsOfBackupsUsingGET + +> RestoreBackupInfoVerbose CheckDetailsOfBackupsUsingGET(ctx, uuid).BackupUuid(backupUuid).Authorization(authorization).Execute() + +Checks Feasibility of Restore + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of a device + backupUuid := "backupUuid_example" // string | Unique ID of a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceBackupRestoreApi.CheckDetailsOfBackupsUsingGET(context.Background(), uuid).BackupUuid(backupUuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.CheckDetailsOfBackupsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CheckDetailsOfBackupsUsingGET`: RestoreBackupInfoVerbose + fmt.Fprintf(os.Stdout, "Response from `DeviceBackupRestoreApi.CheckDetailsOfBackupsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of a device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCheckDetailsOfBackupsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **backupUuid** | **string** | Unique ID of a backup | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**RestoreBackupInfoVerbose**](RestoreBackupInfoVerbose.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateDeviceBackupUsingPOST + +> SshUserCreateResponse CreateDeviceBackupUsingPOST(ctx).Authorization(authorization).Request(request).Execute() + +Creates Device Backup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewDeviceBackupCreateRequest("3da0a663-20d9-4b8f-8c5d-d5cf706840c8", "My New Backup") // DeviceBackupCreateRequest | Device backup info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceBackupRestoreApi.CreateDeviceBackupUsingPOST(context.Background()).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.CreateDeviceBackupUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDeviceBackupUsingPOST`: SshUserCreateResponse + fmt.Fprintf(os.Stdout, "Response from `DeviceBackupRestoreApi.CreateDeviceBackupUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateDeviceBackupUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**DeviceBackupCreateRequest**](DeviceBackupCreateRequest.md) | Device backup info | + +### Return type + +[**SshUserCreateResponse**](SshUserCreateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteDeviceBackupUsingDELETE + +> DeleteDeviceBackupUsingDELETE(ctx, uuid).Authorization(authorization).Execute() + +Delete Backup of Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceBackupRestoreApi.DeleteDeviceBackupUsingDELETE(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.DeleteDeviceBackupUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id a backup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteDeviceBackupUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DownloadDetailsOfBackupsUsingGET + +> string DownloadDetailsOfBackupsUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Download a Backup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceBackupRestoreApi.DownloadDetailsOfBackupsUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.DownloadDetailsOfBackupsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadDetailsOfBackupsUsingGET`: string + fmt.Fprintf(os.Stdout, "Response from `DeviceBackupRestoreApi.DownloadDetailsOfBackupsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of a backup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDownloadDetailsOfBackupsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDetailsOfBackupsUsingGET + +> DeviceBackupInfoVerbose GetDetailsOfBackupsUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get Backups of Device {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceBackupRestoreApi.GetDetailsOfBackupsUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.GetDetailsOfBackupsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDetailsOfBackupsUsingGET`: DeviceBackupInfoVerbose + fmt.Fprintf(os.Stdout, "Response from `DeviceBackupRestoreApi.GetDetailsOfBackupsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of a backup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDetailsOfBackupsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**DeviceBackupInfoVerbose**](DeviceBackupInfoVerbose.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceBackupsUsingGET + +> DeviceBackupPageResponse GetDeviceBackupsUsingGET(ctx).VirtualDeviceUuid(virtualDeviceUuid).Authorization(authorization).Status(status).Offset(offset).Limit(limit).Execute() + +Get Backups of Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique ID of a virtual device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + status := []string{"Inner_example"} // []string | An array of status values (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceBackupRestoreApi.GetDeviceBackupsUsingGET(context.Background()).VirtualDeviceUuid(virtualDeviceUuid).Authorization(authorization).Status(status).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.GetDeviceBackupsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceBackupsUsingGET`: DeviceBackupPageResponse + fmt.Fprintf(os.Stdout, "Response from `DeviceBackupRestoreApi.GetDeviceBackupsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceBackupsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **virtualDeviceUuid** | **string** | Unique ID of a virtual device | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **status** | **[]string** | An array of status values | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**DeviceBackupPageResponse**](DeviceBackupPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RestoreDeviceBackupUsingPATCH + +> RestoreDeviceBackupUsingPATCH(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Restores a backup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewDeviceBackupUpdateRequest("My New Backup") // DeviceBackupUpdateRequest | Update device backup + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceBackupRestoreApi.RestoreDeviceBackupUsingPATCH(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.RestoreDeviceBackupUsingPATCH``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of a backup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRestoreDeviceBackupUsingPATCHRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**DeviceBackupUpdateRequest**](DeviceBackupUpdateRequest.md) | Update device backup | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateDeviceBackupUsingPATCH + +> UpdateDeviceBackupUsingPATCH(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update Device Backup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique ID of a backup + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewDeviceBackupUpdateRequest("My New Backup") // DeviceBackupUpdateRequest | Update device backup + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceBackupRestoreApi.UpdateDeviceBackupUsingPATCH(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceBackupRestoreApi.UpdateDeviceBackupUsingPATCH``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique ID of a backup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateDeviceBackupUsingPATCHRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**DeviceBackupUpdateRequest**](DeviceBackupUpdateRequest.md) | Update device backup | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/DeviceBackupUpdateRequest.md b/services/networkedgev1/docs/DeviceBackupUpdateRequest.md new file mode 100644 index 00000000..009c4bca --- /dev/null +++ b/services/networkedgev1/docs/DeviceBackupUpdateRequest.md @@ -0,0 +1,51 @@ +# DeviceBackupUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of backup. | + +## Methods + +### NewDeviceBackupUpdateRequest + +`func NewDeviceBackupUpdateRequest(name string, ) *DeviceBackupUpdateRequest` + +NewDeviceBackupUpdateRequest instantiates a new DeviceBackupUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceBackupUpdateRequestWithDefaults + +`func NewDeviceBackupUpdateRequestWithDefaults() *DeviceBackupUpdateRequest` + +NewDeviceBackupUpdateRequestWithDefaults instantiates a new DeviceBackupUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *DeviceBackupUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceBackupUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceBackupUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceElement.md b/services/networkedgev1/docs/DeviceElement.md new file mode 100644 index 00000000..e194ee93 --- /dev/null +++ b/services/networkedgev1/docs/DeviceElement.md @@ -0,0 +1,134 @@ +# DeviceElement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**MonthlyRecurringCharges** | Pointer to **float64** | | [optional] +**NonRecurringCharges** | Pointer to **float64** | | [optional] +**ProductCode** | Pointer to **string** | | [optional] + +## Methods + +### NewDeviceElement + +`func NewDeviceElement() *DeviceElement` + +NewDeviceElement instantiates a new DeviceElement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceElementWithDefaults + +`func NewDeviceElementWithDefaults() *DeviceElement` + +NewDeviceElementWithDefaults instantiates a new DeviceElement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *DeviceElement) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DeviceElement) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DeviceElement) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DeviceElement) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMonthlyRecurringCharges + +`func (o *DeviceElement) GetMonthlyRecurringCharges() float64` + +GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field if non-nil, zero value otherwise. + +### GetMonthlyRecurringChargesOk + +`func (o *DeviceElement) GetMonthlyRecurringChargesOk() (*float64, bool)` + +GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyRecurringCharges + +`func (o *DeviceElement) SetMonthlyRecurringCharges(v float64)` + +SetMonthlyRecurringCharges sets MonthlyRecurringCharges field to given value. + +### HasMonthlyRecurringCharges + +`func (o *DeviceElement) HasMonthlyRecurringCharges() bool` + +HasMonthlyRecurringCharges returns a boolean if a field has been set. + +### GetNonRecurringCharges + +`func (o *DeviceElement) GetNonRecurringCharges() float64` + +GetNonRecurringCharges returns the NonRecurringCharges field if non-nil, zero value otherwise. + +### GetNonRecurringChargesOk + +`func (o *DeviceElement) GetNonRecurringChargesOk() (*float64, bool)` + +GetNonRecurringChargesOk returns a tuple with the NonRecurringCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonRecurringCharges + +`func (o *DeviceElement) SetNonRecurringCharges(v float64)` + +SetNonRecurringCharges sets NonRecurringCharges field to given value. + +### HasNonRecurringCharges + +`func (o *DeviceElement) HasNonRecurringCharges() bool` + +HasNonRecurringCharges returns a boolean if a field has been set. + +### GetProductCode + +`func (o *DeviceElement) GetProductCode() string` + +GetProductCode returns the ProductCode field if non-nil, zero value otherwise. + +### GetProductCodeOk + +`func (o *DeviceElement) GetProductCodeOk() (*string, bool)` + +GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductCode + +`func (o *DeviceElement) SetProductCode(v string)` + +SetProductCode sets ProductCode field to given value. + +### HasProductCode + +`func (o *DeviceElement) HasProductCode() bool` + +HasProductCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceInfo.md b/services/networkedgev1/docs/DeviceInfo.md new file mode 100644 index 00000000..c1e1b4b1 --- /dev/null +++ b/services/networkedgev1/docs/DeviceInfo.md @@ -0,0 +1,472 @@ +# DeviceInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Aside** | Pointer to [**JsonNode**](JsonNode.md) | | [optional] +**Category** | Pointer to **string** | Category of the device. | [optional] +**CloudProfileProvisioningStatus** | Pointer to **string** | | [optional] +**ConnectionStatus** | Pointer to **string** | | [optional] +**ConnectionUuid** | Pointer to **string** | | [optional] +**DeviceName** | Pointer to **string** | Name of the device. | [optional] +**DeviceTypeCode** | Pointer to **string** | Device type code. | [optional] +**DeviceUUID** | Pointer to **string** | Unique Id of the device. | [optional] +**InterfaceId** | Pointer to **string** | | [optional] +**InterfaceOverlayStatus** | Pointer to **string** | | [optional] +**InterfaceUUID** | Pointer to **string** | Unique Id of the interface used to link the device. | [optional] +**IpAssigned** | Pointer to **string** | Assigned IP address of the device. | [optional] +**NetworkDetails** | Pointer to [**JsonNode**](JsonNode.md) | | [optional] +**Status** | Pointer to **string** | Status of the device. | [optional] +**Throughput** | Pointer to **string** | Throughput of the device. | [optional] +**ThroughputUnit** | Pointer to **string** | Throughput unit of the device. | [optional] +**Vxlan** | Pointer to **string** | | [optional] + +## Methods + +### NewDeviceInfo + +`func NewDeviceInfo() *DeviceInfo` + +NewDeviceInfo instantiates a new DeviceInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceInfoWithDefaults + +`func NewDeviceInfoWithDefaults() *DeviceInfo` + +NewDeviceInfoWithDefaults instantiates a new DeviceInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAside + +`func (o *DeviceInfo) GetAside() JsonNode` + +GetAside returns the Aside field if non-nil, zero value otherwise. + +### GetAsideOk + +`func (o *DeviceInfo) GetAsideOk() (*JsonNode, bool)` + +GetAsideOk returns a tuple with the Aside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAside + +`func (o *DeviceInfo) SetAside(v JsonNode)` + +SetAside sets Aside field to given value. + +### HasAside + +`func (o *DeviceInfo) HasAside() bool` + +HasAside returns a boolean if a field has been set. + +### GetCategory + +`func (o *DeviceInfo) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *DeviceInfo) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *DeviceInfo) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *DeviceInfo) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetCloudProfileProvisioningStatus + +`func (o *DeviceInfo) GetCloudProfileProvisioningStatus() string` + +GetCloudProfileProvisioningStatus returns the CloudProfileProvisioningStatus field if non-nil, zero value otherwise. + +### GetCloudProfileProvisioningStatusOk + +`func (o *DeviceInfo) GetCloudProfileProvisioningStatusOk() (*string, bool)` + +GetCloudProfileProvisioningStatusOk returns a tuple with the CloudProfileProvisioningStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProfileProvisioningStatus + +`func (o *DeviceInfo) SetCloudProfileProvisioningStatus(v string)` + +SetCloudProfileProvisioningStatus sets CloudProfileProvisioningStatus field to given value. + +### HasCloudProfileProvisioningStatus + +`func (o *DeviceInfo) HasCloudProfileProvisioningStatus() bool` + +HasCloudProfileProvisioningStatus returns a boolean if a field has been set. + +### GetConnectionStatus + +`func (o *DeviceInfo) GetConnectionStatus() string` + +GetConnectionStatus returns the ConnectionStatus field if non-nil, zero value otherwise. + +### GetConnectionStatusOk + +`func (o *DeviceInfo) GetConnectionStatusOk() (*string, bool)` + +GetConnectionStatusOk returns a tuple with the ConnectionStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionStatus + +`func (o *DeviceInfo) SetConnectionStatus(v string)` + +SetConnectionStatus sets ConnectionStatus field to given value. + +### HasConnectionStatus + +`func (o *DeviceInfo) HasConnectionStatus() bool` + +HasConnectionStatus returns a boolean if a field has been set. + +### GetConnectionUuid + +`func (o *DeviceInfo) GetConnectionUuid() string` + +GetConnectionUuid returns the ConnectionUuid field if non-nil, zero value otherwise. + +### GetConnectionUuidOk + +`func (o *DeviceInfo) GetConnectionUuidOk() (*string, bool)` + +GetConnectionUuidOk returns a tuple with the ConnectionUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionUuid + +`func (o *DeviceInfo) SetConnectionUuid(v string)` + +SetConnectionUuid sets ConnectionUuid field to given value. + +### HasConnectionUuid + +`func (o *DeviceInfo) HasConnectionUuid() bool` + +HasConnectionUuid returns a boolean if a field has been set. + +### GetDeviceName + +`func (o *DeviceInfo) GetDeviceName() string` + +GetDeviceName returns the DeviceName field if non-nil, zero value otherwise. + +### GetDeviceNameOk + +`func (o *DeviceInfo) GetDeviceNameOk() (*string, bool)` + +GetDeviceNameOk returns a tuple with the DeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceName + +`func (o *DeviceInfo) SetDeviceName(v string)` + +SetDeviceName sets DeviceName field to given value. + +### HasDeviceName + +`func (o *DeviceInfo) HasDeviceName() bool` + +HasDeviceName returns a boolean if a field has been set. + +### GetDeviceTypeCode + +`func (o *DeviceInfo) GetDeviceTypeCode() string` + +GetDeviceTypeCode returns the DeviceTypeCode field if non-nil, zero value otherwise. + +### GetDeviceTypeCodeOk + +`func (o *DeviceInfo) GetDeviceTypeCodeOk() (*string, bool)` + +GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCode + +`func (o *DeviceInfo) SetDeviceTypeCode(v string)` + +SetDeviceTypeCode sets DeviceTypeCode field to given value. + +### HasDeviceTypeCode + +`func (o *DeviceInfo) HasDeviceTypeCode() bool` + +HasDeviceTypeCode returns a boolean if a field has been set. + +### GetDeviceUUID + +`func (o *DeviceInfo) GetDeviceUUID() string` + +GetDeviceUUID returns the DeviceUUID field if non-nil, zero value otherwise. + +### GetDeviceUUIDOk + +`func (o *DeviceInfo) GetDeviceUUIDOk() (*string, bool)` + +GetDeviceUUIDOk returns a tuple with the DeviceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUUID + +`func (o *DeviceInfo) SetDeviceUUID(v string)` + +SetDeviceUUID sets DeviceUUID field to given value. + +### HasDeviceUUID + +`func (o *DeviceInfo) HasDeviceUUID() bool` + +HasDeviceUUID returns a boolean if a field has been set. + +### GetInterfaceId + +`func (o *DeviceInfo) GetInterfaceId() string` + +GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise. + +### GetInterfaceIdOk + +`func (o *DeviceInfo) GetInterfaceIdOk() (*string, bool)` + +GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceId + +`func (o *DeviceInfo) SetInterfaceId(v string)` + +SetInterfaceId sets InterfaceId field to given value. + +### HasInterfaceId + +`func (o *DeviceInfo) HasInterfaceId() bool` + +HasInterfaceId returns a boolean if a field has been set. + +### GetInterfaceOverlayStatus + +`func (o *DeviceInfo) GetInterfaceOverlayStatus() string` + +GetInterfaceOverlayStatus returns the InterfaceOverlayStatus field if non-nil, zero value otherwise. + +### GetInterfaceOverlayStatusOk + +`func (o *DeviceInfo) GetInterfaceOverlayStatusOk() (*string, bool)` + +GetInterfaceOverlayStatusOk returns a tuple with the InterfaceOverlayStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceOverlayStatus + +`func (o *DeviceInfo) SetInterfaceOverlayStatus(v string)` + +SetInterfaceOverlayStatus sets InterfaceOverlayStatus field to given value. + +### HasInterfaceOverlayStatus + +`func (o *DeviceInfo) HasInterfaceOverlayStatus() bool` + +HasInterfaceOverlayStatus returns a boolean if a field has been set. + +### GetInterfaceUUID + +`func (o *DeviceInfo) GetInterfaceUUID() string` + +GetInterfaceUUID returns the InterfaceUUID field if non-nil, zero value otherwise. + +### GetInterfaceUUIDOk + +`func (o *DeviceInfo) GetInterfaceUUIDOk() (*string, bool)` + +GetInterfaceUUIDOk returns a tuple with the InterfaceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceUUID + +`func (o *DeviceInfo) SetInterfaceUUID(v string)` + +SetInterfaceUUID sets InterfaceUUID field to given value. + +### HasInterfaceUUID + +`func (o *DeviceInfo) HasInterfaceUUID() bool` + +HasInterfaceUUID returns a boolean if a field has been set. + +### GetIpAssigned + +`func (o *DeviceInfo) GetIpAssigned() string` + +GetIpAssigned returns the IpAssigned field if non-nil, zero value otherwise. + +### GetIpAssignedOk + +`func (o *DeviceInfo) GetIpAssignedOk() (*string, bool)` + +GetIpAssignedOk returns a tuple with the IpAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAssigned + +`func (o *DeviceInfo) SetIpAssigned(v string)` + +SetIpAssigned sets IpAssigned field to given value. + +### HasIpAssigned + +`func (o *DeviceInfo) HasIpAssigned() bool` + +HasIpAssigned returns a boolean if a field has been set. + +### GetNetworkDetails + +`func (o *DeviceInfo) GetNetworkDetails() JsonNode` + +GetNetworkDetails returns the NetworkDetails field if non-nil, zero value otherwise. + +### GetNetworkDetailsOk + +`func (o *DeviceInfo) GetNetworkDetailsOk() (*JsonNode, bool)` + +GetNetworkDetailsOk returns a tuple with the NetworkDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkDetails + +`func (o *DeviceInfo) SetNetworkDetails(v JsonNode)` + +SetNetworkDetails sets NetworkDetails field to given value. + +### HasNetworkDetails + +`func (o *DeviceInfo) HasNetworkDetails() bool` + +HasNetworkDetails returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceInfo) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceInfo) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceInfo) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceInfo) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetThroughput + +`func (o *DeviceInfo) GetThroughput() string` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *DeviceInfo) GetThroughputOk() (*string, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *DeviceInfo) SetThroughput(v string)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *DeviceInfo) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *DeviceInfo) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *DeviceInfo) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *DeviceInfo) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *DeviceInfo) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetVxlan + +`func (o *DeviceInfo) GetVxlan() string` + +GetVxlan returns the Vxlan field if non-nil, zero value otherwise. + +### GetVxlanOk + +`func (o *DeviceInfo) GetVxlanOk() (*string, bool)` + +GetVxlanOk returns a tuple with the Vxlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVxlan + +`func (o *DeviceInfo) SetVxlan(v string)` + +SetVxlan sets Vxlan field to given value. + +### HasVxlan + +`func (o *DeviceInfo) HasVxlan() bool` + +HasVxlan returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceLinkApi.md b/services/networkedgev1/docs/DeviceLinkApi.md new file mode 100644 index 00000000..8017a388 --- /dev/null +++ b/services/networkedgev1/docs/DeviceLinkApi.md @@ -0,0 +1,375 @@ +# \DeviceLinkApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLinkGroupUsingPOST**](DeviceLinkApi.md#CreateLinkGroupUsingPOST) | **Post** /ne/v1/links | Create Device Link +[**DeleteLinkGroupUsingDELETE**](DeviceLinkApi.md#DeleteLinkGroupUsingDELETE) | **Delete** /ne/v1/links/{uuid} | Delete Device Link +[**GetLinkGroupByUUIDUsingGET**](DeviceLinkApi.md#GetLinkGroupByUUIDUsingGET) | **Get** /ne/v1/links/{uuid} | Get Device Link {uuid} +[**GetLinkGroupsUsingGET1**](DeviceLinkApi.md#GetLinkGroupsUsingGET1) | **Get** /ne/v1/links | Get Device Links. +[**UpdateLinkGroupUsingPATCH**](DeviceLinkApi.md#UpdateLinkGroupUsingPATCH) | **Patch** /ne/v1/links/{uuid} | Update Device Link + + + +## CreateLinkGroupUsingPOST + +> DeviceLinkGroupResponse CreateLinkGroupUsingPOST(ctx).Authorization(authorization).DeviceLinkGroup(deviceLinkGroup).Execute() + +Create Device Link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + deviceLinkGroup := *openapiclient.NewDeviceLinkRequest("linkGroup", "192.164.0.0/29") // DeviceLinkRequest | New Device Link Group + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceLinkApi.CreateLinkGroupUsingPOST(context.Background()).Authorization(authorization).DeviceLinkGroup(deviceLinkGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceLinkApi.CreateLinkGroupUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLinkGroupUsingPOST`: DeviceLinkGroupResponse + fmt.Fprintf(os.Stdout, "Response from `DeviceLinkApi.CreateLinkGroupUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateLinkGroupUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **deviceLinkGroup** | [**DeviceLinkRequest**](DeviceLinkRequest.md) | New Device Link Group | + +### Return type + +[**DeviceLinkGroupResponse**](DeviceLinkGroupResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteLinkGroupUsingDELETE + +> DeleteLinkGroupUsingDELETE(ctx, uuid).Authorization(authorization).Execute() + +Delete Device Link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of a device link group. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceLinkApi.DeleteLinkGroupUsingDELETE(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceLinkApi.DeleteLinkGroupUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a device link group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteLinkGroupUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetLinkGroupByUUIDUsingGET + +> DeviceLinkGroupDto GetLinkGroupByUUIDUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get Device Link {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of a device link group. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceLinkApi.GetLinkGroupByUUIDUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceLinkApi.GetLinkGroupByUUIDUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLinkGroupByUUIDUsingGET`: DeviceLinkGroupDto + fmt.Fprintf(os.Stdout, "Response from `DeviceLinkApi.GetLinkGroupByUUIDUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a device link group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLinkGroupByUUIDUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**DeviceLinkGroupDto**](DeviceLinkGroupDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetLinkGroupsUsingGET1 + +> []LinksPageResponse GetLinkGroupsUsingGET1(ctx).Authorization(authorization).Metro(metro).VirtualDeviceUuid(virtualDeviceUuid).AccountUcmId(accountUcmId).GroupUuid(groupUuid).GroupName(groupName).Offset(offset).Limit(limit).Execute() + +Get Device Links. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + metro := "metro_example" // string | Metro Code (optional) + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device. (optional) + accountUcmId := "accountUcmId_example" // string | Unique Id of the account. A reseller querying for a customer's link groups can pass the accountUcmId of the customer's account. To get the accountUcmId of your customer's account, please check the Equinix account creation portal (ECP) or call Get account API. (optional) + groupUuid := "groupUuid_example" // string | Unique Id of a link group (optional) + groupName := "groupName_example" // string | The name of a link group (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeviceLinkApi.GetLinkGroupsUsingGET1(context.Background()).Authorization(authorization).Metro(metro).VirtualDeviceUuid(virtualDeviceUuid).AccountUcmId(accountUcmId).GroupUuid(groupUuid).GroupName(groupName).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceLinkApi.GetLinkGroupsUsingGET1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLinkGroupsUsingGET1`: []LinksPageResponse + fmt.Fprintf(os.Stdout, "Response from `DeviceLinkApi.GetLinkGroupsUsingGET1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLinkGroupsUsingGET1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **metro** | **string** | Metro Code | + **virtualDeviceUuid** | **string** | Unique Id of a virtual device. | + **accountUcmId** | **string** | Unique Id of the account. A reseller querying for a customer's link groups can pass the accountUcmId of the customer's account. To get the accountUcmId of your customer's account, please check the Equinix account creation portal (ECP) or call Get account API. | + **groupUuid** | **string** | Unique Id of a link group | + **groupName** | **string** | The name of a link group | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**[]LinksPageResponse**](LinksPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateLinkGroupUsingPATCH + +> UpdateLinkGroupUsingPATCH(ctx, uuid).Authorization(authorization).DeviceLinkGroup(deviceLinkGroup).Execute() + +Update Device Link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of a device link group. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + deviceLinkGroup := *openapiclient.NewDeviceLinkRequest("linkGroup", "192.164.0.0/29") // DeviceLinkRequest | Device Link Group + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceLinkApi.UpdateLinkGroupUsingPATCH(context.Background(), uuid).Authorization(authorization).DeviceLinkGroup(deviceLinkGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceLinkApi.UpdateLinkGroupUsingPATCH``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a device link group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateLinkGroupUsingPATCHRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **deviceLinkGroup** | [**DeviceLinkRequest**](DeviceLinkRequest.md) | Device Link Group | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/DeviceLinkGroupDto.md b/services/networkedgev1/docs/DeviceLinkGroupDto.md new file mode 100644 index 00000000..6707bfd9 --- /dev/null +++ b/services/networkedgev1/docs/DeviceLinkGroupDto.md @@ -0,0 +1,316 @@ +# DeviceLinkGroupDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | Unique Id of the linked group. | [optional] +**GroupName** | Pointer to **string** | The name of the linked group | [optional] +**Subnet** | Pointer to **string** | Subnet of the link group. | [optional] +**RedundancyType** | Pointer to **string** | Whether the connection is through Fabric's primary or secondary port. | [optional] +**Status** | Pointer to **string** | Status of the linked group | [optional] +**CreatedBy** | Pointer to **string** | Created by username. | [optional] +**CreatedDate** | Pointer to **string** | Created date. | [optional] +**LastUpdatedBy** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**MetroLinks** | Pointer to [**[]LinkInfoResponse**](LinkInfoResponse.md) | An array of links | [optional] +**LinkDevices** | Pointer to [**[]LinkDeviceResponse**](LinkDeviceResponse.md) | An array of metros and the devices in the metros belonging to the group. | [optional] + +## Methods + +### NewDeviceLinkGroupDto + +`func NewDeviceLinkGroupDto() *DeviceLinkGroupDto` + +NewDeviceLinkGroupDto instantiates a new DeviceLinkGroupDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceLinkGroupDtoWithDefaults + +`func NewDeviceLinkGroupDtoWithDefaults() *DeviceLinkGroupDto` + +NewDeviceLinkGroupDtoWithDefaults instantiates a new DeviceLinkGroupDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceLinkGroupDto) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceLinkGroupDto) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceLinkGroupDto) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceLinkGroupDto) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetGroupName + +`func (o *DeviceLinkGroupDto) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *DeviceLinkGroupDto) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *DeviceLinkGroupDto) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *DeviceLinkGroupDto) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetSubnet + +`func (o *DeviceLinkGroupDto) GetSubnet() string` + +GetSubnet returns the Subnet field if non-nil, zero value otherwise. + +### GetSubnetOk + +`func (o *DeviceLinkGroupDto) GetSubnetOk() (*string, bool)` + +GetSubnetOk returns a tuple with the Subnet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnet + +`func (o *DeviceLinkGroupDto) SetSubnet(v string)` + +SetSubnet sets Subnet field to given value. + +### HasSubnet + +`func (o *DeviceLinkGroupDto) HasSubnet() bool` + +HasSubnet returns a boolean if a field has been set. + +### GetRedundancyType + +`func (o *DeviceLinkGroupDto) GetRedundancyType() string` + +GetRedundancyType returns the RedundancyType field if non-nil, zero value otherwise. + +### GetRedundancyTypeOk + +`func (o *DeviceLinkGroupDto) GetRedundancyTypeOk() (*string, bool)` + +GetRedundancyTypeOk returns a tuple with the RedundancyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancyType + +`func (o *DeviceLinkGroupDto) SetRedundancyType(v string)` + +SetRedundancyType sets RedundancyType field to given value. + +### HasRedundancyType + +`func (o *DeviceLinkGroupDto) HasRedundancyType() bool` + +HasRedundancyType returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceLinkGroupDto) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceLinkGroupDto) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceLinkGroupDto) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceLinkGroupDto) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *DeviceLinkGroupDto) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *DeviceLinkGroupDto) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *DeviceLinkGroupDto) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *DeviceLinkGroupDto) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *DeviceLinkGroupDto) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *DeviceLinkGroupDto) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *DeviceLinkGroupDto) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *DeviceLinkGroupDto) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetLastUpdatedBy + +`func (o *DeviceLinkGroupDto) GetLastUpdatedBy() string` + +GetLastUpdatedBy returns the LastUpdatedBy field if non-nil, zero value otherwise. + +### GetLastUpdatedByOk + +`func (o *DeviceLinkGroupDto) GetLastUpdatedByOk() (*string, bool)` + +GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedBy + +`func (o *DeviceLinkGroupDto) SetLastUpdatedBy(v string)` + +SetLastUpdatedBy sets LastUpdatedBy field to given value. + +### HasLastUpdatedBy + +`func (o *DeviceLinkGroupDto) HasLastUpdatedBy() bool` + +HasLastUpdatedBy returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *DeviceLinkGroupDto) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *DeviceLinkGroupDto) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *DeviceLinkGroupDto) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *DeviceLinkGroupDto) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetMetroLinks + +`func (o *DeviceLinkGroupDto) GetMetroLinks() []LinkInfoResponse` + +GetMetroLinks returns the MetroLinks field if non-nil, zero value otherwise. + +### GetMetroLinksOk + +`func (o *DeviceLinkGroupDto) GetMetroLinksOk() (*[]LinkInfoResponse, bool)` + +GetMetroLinksOk returns a tuple with the MetroLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroLinks + +`func (o *DeviceLinkGroupDto) SetMetroLinks(v []LinkInfoResponse)` + +SetMetroLinks sets MetroLinks field to given value. + +### HasMetroLinks + +`func (o *DeviceLinkGroupDto) HasMetroLinks() bool` + +HasMetroLinks returns a boolean if a field has been set. + +### GetLinkDevices + +`func (o *DeviceLinkGroupDto) GetLinkDevices() []LinkDeviceResponse` + +GetLinkDevices returns the LinkDevices field if non-nil, zero value otherwise. + +### GetLinkDevicesOk + +`func (o *DeviceLinkGroupDto) GetLinkDevicesOk() (*[]LinkDeviceResponse, bool)` + +GetLinkDevicesOk returns a tuple with the LinkDevices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkDevices + +`func (o *DeviceLinkGroupDto) SetLinkDevices(v []LinkDeviceResponse)` + +SetLinkDevices sets LinkDevices field to given value. + +### HasLinkDevices + +`func (o *DeviceLinkGroupDto) HasLinkDevices() bool` + +HasLinkDevices returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceLinkGroupResponse.md b/services/networkedgev1/docs/DeviceLinkGroupResponse.md new file mode 100644 index 00000000..864a2329 --- /dev/null +++ b/services/networkedgev1/docs/DeviceLinkGroupResponse.md @@ -0,0 +1,56 @@ +# DeviceLinkGroupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewDeviceLinkGroupResponse + +`func NewDeviceLinkGroupResponse() *DeviceLinkGroupResponse` + +NewDeviceLinkGroupResponse instantiates a new DeviceLinkGroupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceLinkGroupResponseWithDefaults + +`func NewDeviceLinkGroupResponseWithDefaults() *DeviceLinkGroupResponse` + +NewDeviceLinkGroupResponseWithDefaults instantiates a new DeviceLinkGroupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceLinkGroupResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceLinkGroupResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceLinkGroupResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceLinkGroupResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceLinkRequest.md b/services/networkedgev1/docs/DeviceLinkRequest.md new file mode 100644 index 00000000..3afa11d3 --- /dev/null +++ b/services/networkedgev1/docs/DeviceLinkRequest.md @@ -0,0 +1,150 @@ +# DeviceLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupName** | **string** | Group name. | +**Subnet** | **string** | Subnet of the link group. | +**RedundancyType** | Pointer to **string** | Whether the connection should be created through Fabric's primary or secondary port. | [optional] +**LinkDevices** | Pointer to [**[]LinkDeviceInfo**](LinkDeviceInfo.md) | An array of devices to link. | [optional] +**MetroLinks** | Pointer to [**[]LinkInfo**](LinkInfo.md) | An array of links. | [optional] + +## Methods + +### NewDeviceLinkRequest + +`func NewDeviceLinkRequest(groupName string, subnet string, ) *DeviceLinkRequest` + +NewDeviceLinkRequest instantiates a new DeviceLinkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceLinkRequestWithDefaults + +`func NewDeviceLinkRequestWithDefaults() *DeviceLinkRequest` + +NewDeviceLinkRequestWithDefaults instantiates a new DeviceLinkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupName + +`func (o *DeviceLinkRequest) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *DeviceLinkRequest) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *DeviceLinkRequest) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetSubnet + +`func (o *DeviceLinkRequest) GetSubnet() string` + +GetSubnet returns the Subnet field if non-nil, zero value otherwise. + +### GetSubnetOk + +`func (o *DeviceLinkRequest) GetSubnetOk() (*string, bool)` + +GetSubnetOk returns a tuple with the Subnet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnet + +`func (o *DeviceLinkRequest) SetSubnet(v string)` + +SetSubnet sets Subnet field to given value. + + +### GetRedundancyType + +`func (o *DeviceLinkRequest) GetRedundancyType() string` + +GetRedundancyType returns the RedundancyType field if non-nil, zero value otherwise. + +### GetRedundancyTypeOk + +`func (o *DeviceLinkRequest) GetRedundancyTypeOk() (*string, bool)` + +GetRedundancyTypeOk returns a tuple with the RedundancyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancyType + +`func (o *DeviceLinkRequest) SetRedundancyType(v string)` + +SetRedundancyType sets RedundancyType field to given value. + +### HasRedundancyType + +`func (o *DeviceLinkRequest) HasRedundancyType() bool` + +HasRedundancyType returns a boolean if a field has been set. + +### GetLinkDevices + +`func (o *DeviceLinkRequest) GetLinkDevices() []LinkDeviceInfo` + +GetLinkDevices returns the LinkDevices field if non-nil, zero value otherwise. + +### GetLinkDevicesOk + +`func (o *DeviceLinkRequest) GetLinkDevicesOk() (*[]LinkDeviceInfo, bool)` + +GetLinkDevicesOk returns a tuple with the LinkDevices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkDevices + +`func (o *DeviceLinkRequest) SetLinkDevices(v []LinkDeviceInfo)` + +SetLinkDevices sets LinkDevices field to given value. + +### HasLinkDevices + +`func (o *DeviceLinkRequest) HasLinkDevices() bool` + +HasLinkDevices returns a boolean if a field has been set. + +### GetMetroLinks + +`func (o *DeviceLinkRequest) GetMetroLinks() []LinkInfo` + +GetMetroLinks returns the MetroLinks field if non-nil, zero value otherwise. + +### GetMetroLinksOk + +`func (o *DeviceLinkRequest) GetMetroLinksOk() (*[]LinkInfo, bool)` + +GetMetroLinksOk returns a tuple with the MetroLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroLinks + +`func (o *DeviceLinkRequest) SetMetroLinks(v []LinkInfo)` + +SetMetroLinks sets MetroLinks field to given value. + +### HasMetroLinks + +`func (o *DeviceLinkRequest) HasMetroLinks() bool` + +HasMetroLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceRMAApi.md b/services/networkedgev1/docs/DeviceRMAApi.md new file mode 100644 index 00000000..59f88a3d --- /dev/null +++ b/services/networkedgev1/docs/DeviceRMAApi.md @@ -0,0 +1,81 @@ +# \DeviceRMAApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PostDeviceRMAUsingPOST**](DeviceRMAApi.md#PostDeviceRMAUsingPOST) | **Post** /ne/v1/devices/{virtualDeviceUuid}/rma | Trigger Device RMA + + + +## PostDeviceRMAUsingPOST + +> PostDeviceRMAUsingPOST(ctx, virtualDeviceUuid).Authorization(authorization).Request(request).Execute() + +Trigger Device RMA + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique ID of a device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewDeviceRMAPostRequest("17.09.01a") // DeviceRMAPostRequest | Post RMA request + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DeviceRMAApi.PostDeviceRMAUsingPOST(context.Background(), virtualDeviceUuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeviceRMAApi.PostDeviceRMAUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique ID of a device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostDeviceRMAUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**DeviceRMAPostRequest**](DeviceRMAPostRequest.md) | Post RMA request | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/DeviceRMAInfo.md b/services/networkedgev1/docs/DeviceRMAInfo.md new file mode 100644 index 00000000..523fcd09 --- /dev/null +++ b/services/networkedgev1/docs/DeviceRMAInfo.md @@ -0,0 +1,82 @@ +# DeviceRMAInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]RmaDetailObject**](RmaDetailObject.md) | Array of previous RMA requests | [optional] +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] + +## Methods + +### NewDeviceRMAInfo + +`func NewDeviceRMAInfo() *DeviceRMAInfo` + +NewDeviceRMAInfo instantiates a new DeviceRMAInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceRMAInfoWithDefaults + +`func NewDeviceRMAInfoWithDefaults() *DeviceRMAInfo` + +NewDeviceRMAInfoWithDefaults instantiates a new DeviceRMAInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *DeviceRMAInfo) GetData() []RmaDetailObject` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeviceRMAInfo) GetDataOk() (*[]RmaDetailObject, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeviceRMAInfo) SetData(v []RmaDetailObject)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeviceRMAInfo) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPagination + +`func (o *DeviceRMAInfo) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *DeviceRMAInfo) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *DeviceRMAInfo) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *DeviceRMAInfo) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceRMAPostRequest.md b/services/networkedgev1/docs/DeviceRMAPostRequest.md new file mode 100644 index 00000000..f81dcac4 --- /dev/null +++ b/services/networkedgev1/docs/DeviceRMAPostRequest.md @@ -0,0 +1,181 @@ +# DeviceRMAPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | Any version you want. | +**CloudInitFileId** | Pointer to **string** | For a C8KV device, this is the Id of the uploaded bootstrap file. Upload your Cisco bootstrap file by calling Upload File. In the response, you'll get a fileUuid that you can enter here as cloudInitFileId. This field may be required for some vendors. | [optional] +**LicenseFileId** | Pointer to **string** | This is the Id of the uploaded license file. For a CSR1KV SDWAN device, upload your license file by calling Post License File. In the response, you'll get a fileId that you can enter here as licenseFileId. This field may be required for some vendors. | [optional] +**Token** | Pointer to **string** | License token. For a cluster, you will need to provide license tokens for both node0 and node1. To get the exact payload for different vendors, check the Postman script on the API Reference page of online documentation. | [optional] +**VendorConfig** | Pointer to [**RMAVendorConfig**](RMAVendorConfig.md) | | [optional] +**UserPublicKey** | Pointer to [**UserPublicKeyRequest**](UserPublicKeyRequest.md) | | [optional] + +## Methods + +### NewDeviceRMAPostRequest + +`func NewDeviceRMAPostRequest(version string, ) *DeviceRMAPostRequest` + +NewDeviceRMAPostRequest instantiates a new DeviceRMAPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceRMAPostRequestWithDefaults + +`func NewDeviceRMAPostRequestWithDefaults() *DeviceRMAPostRequest` + +NewDeviceRMAPostRequestWithDefaults instantiates a new DeviceRMAPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVersion + +`func (o *DeviceRMAPostRequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *DeviceRMAPostRequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *DeviceRMAPostRequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetCloudInitFileId + +`func (o *DeviceRMAPostRequest) GetCloudInitFileId() string` + +GetCloudInitFileId returns the CloudInitFileId field if non-nil, zero value otherwise. + +### GetCloudInitFileIdOk + +`func (o *DeviceRMAPostRequest) GetCloudInitFileIdOk() (*string, bool)` + +GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudInitFileId + +`func (o *DeviceRMAPostRequest) SetCloudInitFileId(v string)` + +SetCloudInitFileId sets CloudInitFileId field to given value. + +### HasCloudInitFileId + +`func (o *DeviceRMAPostRequest) HasCloudInitFileId() bool` + +HasCloudInitFileId returns a boolean if a field has been set. + +### GetLicenseFileId + +`func (o *DeviceRMAPostRequest) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *DeviceRMAPostRequest) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *DeviceRMAPostRequest) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *DeviceRMAPostRequest) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetToken + +`func (o *DeviceRMAPostRequest) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *DeviceRMAPostRequest) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *DeviceRMAPostRequest) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *DeviceRMAPostRequest) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *DeviceRMAPostRequest) GetVendorConfig() RMAVendorConfig` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *DeviceRMAPostRequest) GetVendorConfigOk() (*RMAVendorConfig, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *DeviceRMAPostRequest) SetVendorConfig(v RMAVendorConfig)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *DeviceRMAPostRequest) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + +### GetUserPublicKey + +`func (o *DeviceRMAPostRequest) GetUserPublicKey() UserPublicKeyRequest` + +GetUserPublicKey returns the UserPublicKey field if non-nil, zero value otherwise. + +### GetUserPublicKeyOk + +`func (o *DeviceRMAPostRequest) GetUserPublicKeyOk() (*UserPublicKeyRequest, bool)` + +GetUserPublicKeyOk returns a tuple with the UserPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPublicKey + +`func (o *DeviceRMAPostRequest) SetUserPublicKey(v UserPublicKeyRequest)` + +SetUserPublicKey sets UserPublicKey field to given value. + +### HasUserPublicKey + +`func (o *DeviceRMAPostRequest) HasUserPublicKey() bool` + +HasUserPublicKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceRebootPageResponse.md b/services/networkedgev1/docs/DeviceRebootPageResponse.md new file mode 100644 index 00000000..a1858911 --- /dev/null +++ b/services/networkedgev1/docs/DeviceRebootPageResponse.md @@ -0,0 +1,82 @@ +# DeviceRebootPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]DeviceRebootResponse**](DeviceRebootResponse.md) | | [optional] + +## Methods + +### NewDeviceRebootPageResponse + +`func NewDeviceRebootPageResponse() *DeviceRebootPageResponse` + +NewDeviceRebootPageResponse instantiates a new DeviceRebootPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceRebootPageResponseWithDefaults + +`func NewDeviceRebootPageResponseWithDefaults() *DeviceRebootPageResponse` + +NewDeviceRebootPageResponseWithDefaults instantiates a new DeviceRebootPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *DeviceRebootPageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *DeviceRebootPageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *DeviceRebootPageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *DeviceRebootPageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *DeviceRebootPageResponse) GetData() []DeviceRebootResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeviceRebootPageResponse) GetDataOk() (*[]DeviceRebootResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeviceRebootPageResponse) SetData(v []DeviceRebootResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeviceRebootPageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceRebootResponse.md b/services/networkedgev1/docs/DeviceRebootResponse.md new file mode 100644 index 00000000..8c701dd0 --- /dev/null +++ b/services/networkedgev1/docs/DeviceRebootResponse.md @@ -0,0 +1,160 @@ +# DeviceRebootResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceUUID** | Pointer to **string** | Unique Id of the device. | [optional] +**Status** | Pointer to **string** | The status of the reboot. | [optional] +**RequestedBy** | Pointer to **string** | Requested by | [optional] +**RequestedDate** | Pointer to **string** | Requested date | [optional] +**CompletiondDate** | Pointer to **string** | Requested date | [optional] + +## Methods + +### NewDeviceRebootResponse + +`func NewDeviceRebootResponse() *DeviceRebootResponse` + +NewDeviceRebootResponse instantiates a new DeviceRebootResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceRebootResponseWithDefaults + +`func NewDeviceRebootResponseWithDefaults() *DeviceRebootResponse` + +NewDeviceRebootResponseWithDefaults instantiates a new DeviceRebootResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceUUID + +`func (o *DeviceRebootResponse) GetDeviceUUID() string` + +GetDeviceUUID returns the DeviceUUID field if non-nil, zero value otherwise. + +### GetDeviceUUIDOk + +`func (o *DeviceRebootResponse) GetDeviceUUIDOk() (*string, bool)` + +GetDeviceUUIDOk returns a tuple with the DeviceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUUID + +`func (o *DeviceRebootResponse) SetDeviceUUID(v string)` + +SetDeviceUUID sets DeviceUUID field to given value. + +### HasDeviceUUID + +`func (o *DeviceRebootResponse) HasDeviceUUID() bool` + +HasDeviceUUID returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceRebootResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceRebootResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceRebootResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceRebootResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRequestedBy + +`func (o *DeviceRebootResponse) GetRequestedBy() string` + +GetRequestedBy returns the RequestedBy field if non-nil, zero value otherwise. + +### GetRequestedByOk + +`func (o *DeviceRebootResponse) GetRequestedByOk() (*string, bool)` + +GetRequestedByOk returns a tuple with the RequestedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedBy + +`func (o *DeviceRebootResponse) SetRequestedBy(v string)` + +SetRequestedBy sets RequestedBy field to given value. + +### HasRequestedBy + +`func (o *DeviceRebootResponse) HasRequestedBy() bool` + +HasRequestedBy returns a boolean if a field has been set. + +### GetRequestedDate + +`func (o *DeviceRebootResponse) GetRequestedDate() string` + +GetRequestedDate returns the RequestedDate field if non-nil, zero value otherwise. + +### GetRequestedDateOk + +`func (o *DeviceRebootResponse) GetRequestedDateOk() (*string, bool)` + +GetRequestedDateOk returns a tuple with the RequestedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedDate + +`func (o *DeviceRebootResponse) SetRequestedDate(v string)` + +SetRequestedDate sets RequestedDate field to given value. + +### HasRequestedDate + +`func (o *DeviceRebootResponse) HasRequestedDate() bool` + +HasRequestedDate returns a boolean if a field has been set. + +### GetCompletiondDate + +`func (o *DeviceRebootResponse) GetCompletiondDate() string` + +GetCompletiondDate returns the CompletiondDate field if non-nil, zero value otherwise. + +### GetCompletiondDateOk + +`func (o *DeviceRebootResponse) GetCompletiondDateOk() (*string, bool)` + +GetCompletiondDateOk returns a tuple with the CompletiondDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletiondDate + +`func (o *DeviceRebootResponse) SetCompletiondDate(v string)` + +SetCompletiondDate sets CompletiondDate field to given value. + +### HasCompletiondDate + +`func (o *DeviceRebootResponse) HasCompletiondDate() bool` + +HasCompletiondDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceUpgradeDetailsResponse.md b/services/networkedgev1/docs/DeviceUpgradeDetailsResponse.md new file mode 100644 index 00000000..c9e477c3 --- /dev/null +++ b/services/networkedgev1/docs/DeviceUpgradeDetailsResponse.md @@ -0,0 +1,186 @@ +# DeviceUpgradeDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | Unique Id of the upgrade. | [optional] +**VirtualDeviceUuid** | Pointer to **string** | Unique Id of the device. | [optional] +**Status** | Pointer to **string** | The status of the upgrade. REQUEST_ACCEPTED, IN_PROGRESS, SUCCESS, FAILED, CANCELLED | [optional] +**RequestedDate** | Pointer to **string** | Requested date | [optional] +**CompletiondDate** | Pointer to **string** | Requested date | [optional] +**RequestedBy** | Pointer to **string** | Requested by. | [optional] + +## Methods + +### NewDeviceUpgradeDetailsResponse + +`func NewDeviceUpgradeDetailsResponse() *DeviceUpgradeDetailsResponse` + +NewDeviceUpgradeDetailsResponse instantiates a new DeviceUpgradeDetailsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceUpgradeDetailsResponseWithDefaults + +`func NewDeviceUpgradeDetailsResponseWithDefaults() *DeviceUpgradeDetailsResponse` + +NewDeviceUpgradeDetailsResponseWithDefaults instantiates a new DeviceUpgradeDetailsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *DeviceUpgradeDetailsResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *DeviceUpgradeDetailsResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *DeviceUpgradeDetailsResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *DeviceUpgradeDetailsResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetVirtualDeviceUuid + +`func (o *DeviceUpgradeDetailsResponse) GetVirtualDeviceUuid() string` + +GetVirtualDeviceUuid returns the VirtualDeviceUuid field if non-nil, zero value otherwise. + +### GetVirtualDeviceUuidOk + +`func (o *DeviceUpgradeDetailsResponse) GetVirtualDeviceUuidOk() (*string, bool)` + +GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceUuid + +`func (o *DeviceUpgradeDetailsResponse) SetVirtualDeviceUuid(v string)` + +SetVirtualDeviceUuid sets VirtualDeviceUuid field to given value. + +### HasVirtualDeviceUuid + +`func (o *DeviceUpgradeDetailsResponse) HasVirtualDeviceUuid() bool` + +HasVirtualDeviceUuid returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeviceUpgradeDetailsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeviceUpgradeDetailsResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeviceUpgradeDetailsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeviceUpgradeDetailsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRequestedDate + +`func (o *DeviceUpgradeDetailsResponse) GetRequestedDate() string` + +GetRequestedDate returns the RequestedDate field if non-nil, zero value otherwise. + +### GetRequestedDateOk + +`func (o *DeviceUpgradeDetailsResponse) GetRequestedDateOk() (*string, bool)` + +GetRequestedDateOk returns a tuple with the RequestedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedDate + +`func (o *DeviceUpgradeDetailsResponse) SetRequestedDate(v string)` + +SetRequestedDate sets RequestedDate field to given value. + +### HasRequestedDate + +`func (o *DeviceUpgradeDetailsResponse) HasRequestedDate() bool` + +HasRequestedDate returns a boolean if a field has been set. + +### GetCompletiondDate + +`func (o *DeviceUpgradeDetailsResponse) GetCompletiondDate() string` + +GetCompletiondDate returns the CompletiondDate field if non-nil, zero value otherwise. + +### GetCompletiondDateOk + +`func (o *DeviceUpgradeDetailsResponse) GetCompletiondDateOk() (*string, bool)` + +GetCompletiondDateOk returns a tuple with the CompletiondDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletiondDate + +`func (o *DeviceUpgradeDetailsResponse) SetCompletiondDate(v string)` + +SetCompletiondDate sets CompletiondDate field to given value. + +### HasCompletiondDate + +`func (o *DeviceUpgradeDetailsResponse) HasCompletiondDate() bool` + +HasCompletiondDate returns a boolean if a field has been set. + +### GetRequestedBy + +`func (o *DeviceUpgradeDetailsResponse) GetRequestedBy() string` + +GetRequestedBy returns the RequestedBy field if non-nil, zero value otherwise. + +### GetRequestedByOk + +`func (o *DeviceUpgradeDetailsResponse) GetRequestedByOk() (*string, bool)` + +GetRequestedByOk returns a tuple with the RequestedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedBy + +`func (o *DeviceUpgradeDetailsResponse) SetRequestedBy(v string)` + +SetRequestedBy sets RequestedBy field to given value. + +### HasRequestedBy + +`func (o *DeviceUpgradeDetailsResponse) HasRequestedBy() bool` + +HasRequestedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DeviceUpgradePageResponse.md b/services/networkedgev1/docs/DeviceUpgradePageResponse.md new file mode 100644 index 00000000..f0602ec2 --- /dev/null +++ b/services/networkedgev1/docs/DeviceUpgradePageResponse.md @@ -0,0 +1,82 @@ +# DeviceUpgradePageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]DeviceUpgradeDetailsResponse**](DeviceUpgradeDetailsResponse.md) | | [optional] + +## Methods + +### NewDeviceUpgradePageResponse + +`func NewDeviceUpgradePageResponse() *DeviceUpgradePageResponse` + +NewDeviceUpgradePageResponse instantiates a new DeviceUpgradePageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceUpgradePageResponseWithDefaults + +`func NewDeviceUpgradePageResponseWithDefaults() *DeviceUpgradePageResponse` + +NewDeviceUpgradePageResponseWithDefaults instantiates a new DeviceUpgradePageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *DeviceUpgradePageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *DeviceUpgradePageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *DeviceUpgradePageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *DeviceUpgradePageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *DeviceUpgradePageResponse) GetData() []DeviceUpgradeDetailsResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeviceUpgradePageResponse) GetDataOk() (*[]DeviceUpgradeDetailsResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeviceUpgradePageResponse) SetData(v []DeviceUpgradeDetailsResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeviceUpgradePageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/DowntimeNotification.md b/services/networkedgev1/docs/DowntimeNotification.md new file mode 100644 index 00000000..47187ca6 --- /dev/null +++ b/services/networkedgev1/docs/DowntimeNotification.md @@ -0,0 +1,160 @@ +# DowntimeNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NotificationType** | Pointer to **string** | Type of notification, whether planned or unplanned. | [optional] +**StartTime** | Pointer to **string** | Start of the downtime. | [optional] +**EndTime** | Pointer to **string** | End of the downtime. | [optional] +**ImpactedServices** | Pointer to [**[]ImpactedServices**](ImpactedServices.md) | An array of services impacted by the downtime. | [optional] +**AdditionalMessage** | Pointer to **string** | Any additional messages. | [optional] + +## Methods + +### NewDowntimeNotification + +`func NewDowntimeNotification() *DowntimeNotification` + +NewDowntimeNotification instantiates a new DowntimeNotification object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDowntimeNotificationWithDefaults + +`func NewDowntimeNotificationWithDefaults() *DowntimeNotification` + +NewDowntimeNotificationWithDefaults instantiates a new DowntimeNotification object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNotificationType + +`func (o *DowntimeNotification) GetNotificationType() string` + +GetNotificationType returns the NotificationType field if non-nil, zero value otherwise. + +### GetNotificationTypeOk + +`func (o *DowntimeNotification) GetNotificationTypeOk() (*string, bool)` + +GetNotificationTypeOk returns a tuple with the NotificationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationType + +`func (o *DowntimeNotification) SetNotificationType(v string)` + +SetNotificationType sets NotificationType field to given value. + +### HasNotificationType + +`func (o *DowntimeNotification) HasNotificationType() bool` + +HasNotificationType returns a boolean if a field has been set. + +### GetStartTime + +`func (o *DowntimeNotification) GetStartTime() string` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *DowntimeNotification) GetStartTimeOk() (*string, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *DowntimeNotification) SetStartTime(v string)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *DowntimeNotification) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndTime + +`func (o *DowntimeNotification) GetEndTime() string` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *DowntimeNotification) GetEndTimeOk() (*string, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *DowntimeNotification) SetEndTime(v string)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *DowntimeNotification) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### GetImpactedServices + +`func (o *DowntimeNotification) GetImpactedServices() []ImpactedServices` + +GetImpactedServices returns the ImpactedServices field if non-nil, zero value otherwise. + +### GetImpactedServicesOk + +`func (o *DowntimeNotification) GetImpactedServicesOk() (*[]ImpactedServices, bool)` + +GetImpactedServicesOk returns a tuple with the ImpactedServices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImpactedServices + +`func (o *DowntimeNotification) SetImpactedServices(v []ImpactedServices)` + +SetImpactedServices sets ImpactedServices field to given value. + +### HasImpactedServices + +`func (o *DowntimeNotification) HasImpactedServices() bool` + +HasImpactedServices returns a boolean if a field has been set. + +### GetAdditionalMessage + +`func (o *DowntimeNotification) GetAdditionalMessage() string` + +GetAdditionalMessage returns the AdditionalMessage field if non-nil, zero value otherwise. + +### GetAdditionalMessageOk + +`func (o *DowntimeNotification) GetAdditionalMessageOk() (*string, bool)` + +GetAdditionalMessageOk returns a tuple with the AdditionalMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalMessage + +`func (o *DowntimeNotification) SetAdditionalMessage(v string)` + +SetAdditionalMessage sets AdditionalMessage field to given value. + +### HasAdditionalMessage + +`func (o *DowntimeNotification) HasAdditionalMessage() bool` + +HasAdditionalMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/EquinixConfiguredConfig.md b/services/networkedgev1/docs/EquinixConfiguredConfig.md new file mode 100644 index 00000000..2588b081 --- /dev/null +++ b/services/networkedgev1/docs/EquinixConfiguredConfig.md @@ -0,0 +1,160 @@ +# EquinixConfiguredConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | Whether the device is EQUINIX-CONFIGURED or SELF-MANAGED. | [optional] +**LicenseOptions** | Pointer to [**EquinixConfiguredConfigLicenseOptions**](EquinixConfiguredConfigLicenseOptions.md) | | [optional] +**SupportedServices** | Pointer to [**[]SupportedServicesConfig**](SupportedServicesConfig.md) | | [optional] +**AdditionalFields** | Pointer to [**[]AdditionalFieldsConfig**](AdditionalFieldsConfig.md) | | [optional] +**ClusteringDetails** | Pointer to [**ClusteringDetails**](ClusteringDetails.md) | | [optional] + +## Methods + +### NewEquinixConfiguredConfig + +`func NewEquinixConfiguredConfig() *EquinixConfiguredConfig` + +NewEquinixConfiguredConfig instantiates a new EquinixConfiguredConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEquinixConfiguredConfigWithDefaults + +`func NewEquinixConfiguredConfigWithDefaults() *EquinixConfiguredConfig` + +NewEquinixConfiguredConfigWithDefaults instantiates a new EquinixConfiguredConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *EquinixConfiguredConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EquinixConfiguredConfig) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *EquinixConfiguredConfig) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *EquinixConfiguredConfig) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetLicenseOptions + +`func (o *EquinixConfiguredConfig) GetLicenseOptions() EquinixConfiguredConfigLicenseOptions` + +GetLicenseOptions returns the LicenseOptions field if non-nil, zero value otherwise. + +### GetLicenseOptionsOk + +`func (o *EquinixConfiguredConfig) GetLicenseOptionsOk() (*EquinixConfiguredConfigLicenseOptions, bool)` + +GetLicenseOptionsOk returns a tuple with the LicenseOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseOptions + +`func (o *EquinixConfiguredConfig) SetLicenseOptions(v EquinixConfiguredConfigLicenseOptions)` + +SetLicenseOptions sets LicenseOptions field to given value. + +### HasLicenseOptions + +`func (o *EquinixConfiguredConfig) HasLicenseOptions() bool` + +HasLicenseOptions returns a boolean if a field has been set. + +### GetSupportedServices + +`func (o *EquinixConfiguredConfig) GetSupportedServices() []SupportedServicesConfig` + +GetSupportedServices returns the SupportedServices field if non-nil, zero value otherwise. + +### GetSupportedServicesOk + +`func (o *EquinixConfiguredConfig) GetSupportedServicesOk() (*[]SupportedServicesConfig, bool)` + +GetSupportedServicesOk returns a tuple with the SupportedServices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedServices + +`func (o *EquinixConfiguredConfig) SetSupportedServices(v []SupportedServicesConfig)` + +SetSupportedServices sets SupportedServices field to given value. + +### HasSupportedServices + +`func (o *EquinixConfiguredConfig) HasSupportedServices() bool` + +HasSupportedServices returns a boolean if a field has been set. + +### GetAdditionalFields + +`func (o *EquinixConfiguredConfig) GetAdditionalFields() []AdditionalFieldsConfig` + +GetAdditionalFields returns the AdditionalFields field if non-nil, zero value otherwise. + +### GetAdditionalFieldsOk + +`func (o *EquinixConfiguredConfig) GetAdditionalFieldsOk() (*[]AdditionalFieldsConfig, bool)` + +GetAdditionalFieldsOk returns a tuple with the AdditionalFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalFields + +`func (o *EquinixConfiguredConfig) SetAdditionalFields(v []AdditionalFieldsConfig)` + +SetAdditionalFields sets AdditionalFields field to given value. + +### HasAdditionalFields + +`func (o *EquinixConfiguredConfig) HasAdditionalFields() bool` + +HasAdditionalFields returns a boolean if a field has been set. + +### GetClusteringDetails + +`func (o *EquinixConfiguredConfig) GetClusteringDetails() ClusteringDetails` + +GetClusteringDetails returns the ClusteringDetails field if non-nil, zero value otherwise. + +### GetClusteringDetailsOk + +`func (o *EquinixConfiguredConfig) GetClusteringDetailsOk() (*ClusteringDetails, bool)` + +GetClusteringDetailsOk returns a tuple with the ClusteringDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusteringDetails + +`func (o *EquinixConfiguredConfig) SetClusteringDetails(v ClusteringDetails)` + +SetClusteringDetails sets ClusteringDetails field to given value. + +### HasClusteringDetails + +`func (o *EquinixConfiguredConfig) HasClusteringDetails() bool` + +HasClusteringDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/EquinixConfiguredConfigLicenseOptions.md b/services/networkedgev1/docs/EquinixConfiguredConfigLicenseOptions.md new file mode 100644 index 00000000..3482e248 --- /dev/null +++ b/services/networkedgev1/docs/EquinixConfiguredConfigLicenseOptions.md @@ -0,0 +1,82 @@ +# EquinixConfiguredConfigLicenseOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SUB** | Pointer to [**LicenseOptionsConfig**](LicenseOptionsConfig.md) | | [optional] +**BYOL** | Pointer to [**LicenseOptionsConfig**](LicenseOptionsConfig.md) | | [optional] + +## Methods + +### NewEquinixConfiguredConfigLicenseOptions + +`func NewEquinixConfiguredConfigLicenseOptions() *EquinixConfiguredConfigLicenseOptions` + +NewEquinixConfiguredConfigLicenseOptions instantiates a new EquinixConfiguredConfigLicenseOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEquinixConfiguredConfigLicenseOptionsWithDefaults + +`func NewEquinixConfiguredConfigLicenseOptionsWithDefaults() *EquinixConfiguredConfigLicenseOptions` + +NewEquinixConfiguredConfigLicenseOptionsWithDefaults instantiates a new EquinixConfiguredConfigLicenseOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSUB + +`func (o *EquinixConfiguredConfigLicenseOptions) GetSUB() LicenseOptionsConfig` + +GetSUB returns the SUB field if non-nil, zero value otherwise. + +### GetSUBOk + +`func (o *EquinixConfiguredConfigLicenseOptions) GetSUBOk() (*LicenseOptionsConfig, bool)` + +GetSUBOk returns a tuple with the SUB field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSUB + +`func (o *EquinixConfiguredConfigLicenseOptions) SetSUB(v LicenseOptionsConfig)` + +SetSUB sets SUB field to given value. + +### HasSUB + +`func (o *EquinixConfiguredConfigLicenseOptions) HasSUB() bool` + +HasSUB returns a boolean if a field has been set. + +### GetBYOL + +`func (o *EquinixConfiguredConfigLicenseOptions) GetBYOL() LicenseOptionsConfig` + +GetBYOL returns the BYOL field if non-nil, zero value otherwise. + +### GetBYOLOk + +`func (o *EquinixConfiguredConfigLicenseOptions) GetBYOLOk() (*LicenseOptionsConfig, bool)` + +GetBYOLOk returns a tuple with the BYOL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBYOL + +`func (o *EquinixConfiguredConfigLicenseOptions) SetBYOL(v LicenseOptionsConfig)` + +SetBYOL sets BYOL field to given value. + +### HasBYOL + +`func (o *EquinixConfiguredConfigLicenseOptions) HasBYOL() bool` + +HasBYOL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ErrorMessageResponse.md b/services/networkedgev1/docs/ErrorMessageResponse.md new file mode 100644 index 00000000..95c046b5 --- /dev/null +++ b/services/networkedgev1/docs/ErrorMessageResponse.md @@ -0,0 +1,134 @@ +# ErrorMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorCode** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**MoreInfo** | Pointer to **string** | | [optional] +**Property** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorMessageResponse + +`func NewErrorMessageResponse() *ErrorMessageResponse` + +NewErrorMessageResponse instantiates a new ErrorMessageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorMessageResponseWithDefaults + +`func NewErrorMessageResponseWithDefaults() *ErrorMessageResponse` + +NewErrorMessageResponseWithDefaults instantiates a new ErrorMessageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorCode + +`func (o *ErrorMessageResponse) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *ErrorMessageResponse) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *ErrorMessageResponse) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *ErrorMessageResponse) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *ErrorMessageResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *ErrorMessageResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *ErrorMessageResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *ErrorMessageResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetMoreInfo + +`func (o *ErrorMessageResponse) GetMoreInfo() string` + +GetMoreInfo returns the MoreInfo field if non-nil, zero value otherwise. + +### GetMoreInfoOk + +`func (o *ErrorMessageResponse) GetMoreInfoOk() (*string, bool)` + +GetMoreInfoOk returns a tuple with the MoreInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMoreInfo + +`func (o *ErrorMessageResponse) SetMoreInfo(v string)` + +SetMoreInfo sets MoreInfo field to given value. + +### HasMoreInfo + +`func (o *ErrorMessageResponse) HasMoreInfo() bool` + +HasMoreInfo returns a boolean if a field has been set. + +### GetProperty + +`func (o *ErrorMessageResponse) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *ErrorMessageResponse) GetPropertyOk() (*string, bool)` + +GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperty + +`func (o *ErrorMessageResponse) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *ErrorMessageResponse) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ErrorResponse.md b/services/networkedgev1/docs/ErrorResponse.md new file mode 100644 index 00000000..6d661458 --- /dev/null +++ b/services/networkedgev1/docs/ErrorResponse.md @@ -0,0 +1,134 @@ +# ErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorCode** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**MoreInfo** | Pointer to **string** | | [optional] +**Property** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorResponse + +`func NewErrorResponse() *ErrorResponse` + +NewErrorResponse instantiates a new ErrorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorResponseWithDefaults + +`func NewErrorResponseWithDefaults() *ErrorResponse` + +NewErrorResponseWithDefaults instantiates a new ErrorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorCode + +`func (o *ErrorResponse) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *ErrorResponse) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *ErrorResponse) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *ErrorResponse) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *ErrorResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *ErrorResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *ErrorResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *ErrorResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetMoreInfo + +`func (o *ErrorResponse) GetMoreInfo() string` + +GetMoreInfo returns the MoreInfo field if non-nil, zero value otherwise. + +### GetMoreInfoOk + +`func (o *ErrorResponse) GetMoreInfoOk() (*string, bool)` + +GetMoreInfoOk returns a tuple with the MoreInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMoreInfo + +`func (o *ErrorResponse) SetMoreInfo(v string)` + +SetMoreInfo sets MoreInfo field to given value. + +### HasMoreInfo + +`func (o *ErrorResponse) HasMoreInfo() bool` + +HasMoreInfo returns a boolean if a field has been set. + +### GetProperty + +`func (o *ErrorResponse) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *ErrorResponse) GetPropertyOk() (*string, bool)` + +GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperty + +`func (o *ErrorResponse) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *ErrorResponse) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/FieldErrorResponse.md b/services/networkedgev1/docs/FieldErrorResponse.md new file mode 100644 index 00000000..0f0d9596 --- /dev/null +++ b/services/networkedgev1/docs/FieldErrorResponse.md @@ -0,0 +1,160 @@ +# FieldErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorCode** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**MoreInfo** | Pointer to **string** | | [optional] +**Property** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewFieldErrorResponse + +`func NewFieldErrorResponse() *FieldErrorResponse` + +NewFieldErrorResponse instantiates a new FieldErrorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFieldErrorResponseWithDefaults + +`func NewFieldErrorResponseWithDefaults() *FieldErrorResponse` + +NewFieldErrorResponseWithDefaults instantiates a new FieldErrorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorCode + +`func (o *FieldErrorResponse) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *FieldErrorResponse) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *FieldErrorResponse) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *FieldErrorResponse) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *FieldErrorResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *FieldErrorResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *FieldErrorResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *FieldErrorResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetMoreInfo + +`func (o *FieldErrorResponse) GetMoreInfo() string` + +GetMoreInfo returns the MoreInfo field if non-nil, zero value otherwise. + +### GetMoreInfoOk + +`func (o *FieldErrorResponse) GetMoreInfoOk() (*string, bool)` + +GetMoreInfoOk returns a tuple with the MoreInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMoreInfo + +`func (o *FieldErrorResponse) SetMoreInfo(v string)` + +SetMoreInfo sets MoreInfo field to given value. + +### HasMoreInfo + +`func (o *FieldErrorResponse) HasMoreInfo() bool` + +HasMoreInfo returns a boolean if a field has been set. + +### GetProperty + +`func (o *FieldErrorResponse) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *FieldErrorResponse) GetPropertyOk() (*string, bool)` + +GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperty + +`func (o *FieldErrorResponse) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *FieldErrorResponse) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetStatus + +`func (o *FieldErrorResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *FieldErrorResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *FieldErrorResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *FieldErrorResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/FileUploadResponse.md b/services/networkedgev1/docs/FileUploadResponse.md new file mode 100644 index 00000000..2ebbd1da --- /dev/null +++ b/services/networkedgev1/docs/FileUploadResponse.md @@ -0,0 +1,56 @@ +# FileUploadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileUuid** | Pointer to **string** | | [optional] + +## Methods + +### NewFileUploadResponse + +`func NewFileUploadResponse() *FileUploadResponse` + +NewFileUploadResponse instantiates a new FileUploadResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFileUploadResponseWithDefaults + +`func NewFileUploadResponseWithDefaults() *FileUploadResponse` + +NewFileUploadResponseWithDefaults instantiates a new FileUploadResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFileUuid + +`func (o *FileUploadResponse) GetFileUuid() string` + +GetFileUuid returns the FileUuid field if non-nil, zero value otherwise. + +### GetFileUuidOk + +`func (o *FileUploadResponse) GetFileUuidOk() (*string, bool)` + +GetFileUuidOk returns a tuple with the FileUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileUuid + +`func (o *FileUploadResponse) SetFileUuid(v string)` + +SetFileUuid sets FileUuid field to given value. + +### HasFileUuid + +`func (o *FileUploadResponse) HasFileUuid() bool` + +HasFileUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GETConnectionByUuidResponse.md b/services/networkedgev1/docs/GETConnectionByUuidResponse.md new file mode 100644 index 00000000..67ac7704 --- /dev/null +++ b/services/networkedgev1/docs/GETConnectionByUuidResponse.md @@ -0,0 +1,1096 @@ +# GETConnectionByUuidResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuyerOrganizationName** | Pointer to **string** | | [optional] +**Uuid** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**VlanSTag** | Pointer to **int32** | | [optional] +**PortUUID** | Pointer to **string** | | [optional] +**PortName** | Pointer to **string** | | [optional] +**AsideEncapsulation** | Pointer to **string** | | [optional] +**MetroCode** | Pointer to **string** | | [optional] +**MetroDescription** | Pointer to **string** | | [optional] +**ProviderStatus** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**BillingTier** | Pointer to **string** | | [optional] +**AuthorizationKey** | Pointer to **string** | | [optional] +**Speed** | Pointer to **int32** | | [optional] +**SpeedUnit** | Pointer to **string** | | [optional] +**RedundancyType** | Pointer to **string** | | [optional] +**RedundancyGroup** | Pointer to **string** | | [optional] +**SellerMetroCode** | Pointer to **string** | | [optional] +**SellerMetroDescription** | Pointer to **string** | | [optional] +**SellerServiceName** | Pointer to **string** | | [optional] +**SellerServiceUUID** | Pointer to **string** | | [optional] +**SellerOrganizationName** | Pointer to **string** | | [optional] +**Notifications** | Pointer to **[]string** | | [optional] +**PurchaseOrderNumber** | Pointer to **string** | | [optional] +**NamedTag** | Pointer to **string** | | [optional] +**CreatedDate** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedByFullName** | Pointer to **string** | | [optional] +**CreatedByEmail** | Pointer to **string** | | [optional] +**LastUpdatedBy** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**LastUpdatedByFullName** | Pointer to **string** | | [optional] +**LastUpdatedByEmail** | Pointer to **string** | | [optional] +**ZSidePortName** | Pointer to **string** | | [optional] +**ZSidePortUUID** | Pointer to **string** | | [optional] +**ZSideVlanCTag** | Pointer to **int32** | | [optional] +**ZSideVlanSTag** | Pointer to **int32** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**Private** | Pointer to **bool** | | [optional] +**Self** | Pointer to **bool** | | [optional] +**RedundantUuid** | Pointer to **string** | | [optional] + +## Methods + +### NewGETConnectionByUuidResponse + +`func NewGETConnectionByUuidResponse() *GETConnectionByUuidResponse` + +NewGETConnectionByUuidResponse instantiates a new GETConnectionByUuidResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETConnectionByUuidResponseWithDefaults + +`func NewGETConnectionByUuidResponseWithDefaults() *GETConnectionByUuidResponse` + +NewGETConnectionByUuidResponseWithDefaults instantiates a new GETConnectionByUuidResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuyerOrganizationName + +`func (o *GETConnectionByUuidResponse) GetBuyerOrganizationName() string` + +GetBuyerOrganizationName returns the BuyerOrganizationName field if non-nil, zero value otherwise. + +### GetBuyerOrganizationNameOk + +`func (o *GETConnectionByUuidResponse) GetBuyerOrganizationNameOk() (*string, bool)` + +GetBuyerOrganizationNameOk returns a tuple with the BuyerOrganizationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuyerOrganizationName + +`func (o *GETConnectionByUuidResponse) SetBuyerOrganizationName(v string)` + +SetBuyerOrganizationName sets BuyerOrganizationName field to given value. + +### HasBuyerOrganizationName + +`func (o *GETConnectionByUuidResponse) HasBuyerOrganizationName() bool` + +HasBuyerOrganizationName returns a boolean if a field has been set. + +### GetUuid + +`func (o *GETConnectionByUuidResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *GETConnectionByUuidResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *GETConnectionByUuidResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *GETConnectionByUuidResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetName + +`func (o *GETConnectionByUuidResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETConnectionByUuidResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETConnectionByUuidResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETConnectionByUuidResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVlanSTag + +`func (o *GETConnectionByUuidResponse) GetVlanSTag() int32` + +GetVlanSTag returns the VlanSTag field if non-nil, zero value otherwise. + +### GetVlanSTagOk + +`func (o *GETConnectionByUuidResponse) GetVlanSTagOk() (*int32, bool)` + +GetVlanSTagOk returns a tuple with the VlanSTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanSTag + +`func (o *GETConnectionByUuidResponse) SetVlanSTag(v int32)` + +SetVlanSTag sets VlanSTag field to given value. + +### HasVlanSTag + +`func (o *GETConnectionByUuidResponse) HasVlanSTag() bool` + +HasVlanSTag returns a boolean if a field has been set. + +### GetPortUUID + +`func (o *GETConnectionByUuidResponse) GetPortUUID() string` + +GetPortUUID returns the PortUUID field if non-nil, zero value otherwise. + +### GetPortUUIDOk + +`func (o *GETConnectionByUuidResponse) GetPortUUIDOk() (*string, bool)` + +GetPortUUIDOk returns a tuple with the PortUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortUUID + +`func (o *GETConnectionByUuidResponse) SetPortUUID(v string)` + +SetPortUUID sets PortUUID field to given value. + +### HasPortUUID + +`func (o *GETConnectionByUuidResponse) HasPortUUID() bool` + +HasPortUUID returns a boolean if a field has been set. + +### GetPortName + +`func (o *GETConnectionByUuidResponse) GetPortName() string` + +GetPortName returns the PortName field if non-nil, zero value otherwise. + +### GetPortNameOk + +`func (o *GETConnectionByUuidResponse) GetPortNameOk() (*string, bool)` + +GetPortNameOk returns a tuple with the PortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortName + +`func (o *GETConnectionByUuidResponse) SetPortName(v string)` + +SetPortName sets PortName field to given value. + +### HasPortName + +`func (o *GETConnectionByUuidResponse) HasPortName() bool` + +HasPortName returns a boolean if a field has been set. + +### GetAsideEncapsulation + +`func (o *GETConnectionByUuidResponse) GetAsideEncapsulation() string` + +GetAsideEncapsulation returns the AsideEncapsulation field if non-nil, zero value otherwise. + +### GetAsideEncapsulationOk + +`func (o *GETConnectionByUuidResponse) GetAsideEncapsulationOk() (*string, bool)` + +GetAsideEncapsulationOk returns a tuple with the AsideEncapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsideEncapsulation + +`func (o *GETConnectionByUuidResponse) SetAsideEncapsulation(v string)` + +SetAsideEncapsulation sets AsideEncapsulation field to given value. + +### HasAsideEncapsulation + +`func (o *GETConnectionByUuidResponse) HasAsideEncapsulation() bool` + +HasAsideEncapsulation returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *GETConnectionByUuidResponse) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *GETConnectionByUuidResponse) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *GETConnectionByUuidResponse) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *GETConnectionByUuidResponse) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroDescription + +`func (o *GETConnectionByUuidResponse) GetMetroDescription() string` + +GetMetroDescription returns the MetroDescription field if non-nil, zero value otherwise. + +### GetMetroDescriptionOk + +`func (o *GETConnectionByUuidResponse) GetMetroDescriptionOk() (*string, bool)` + +GetMetroDescriptionOk returns a tuple with the MetroDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroDescription + +`func (o *GETConnectionByUuidResponse) SetMetroDescription(v string)` + +SetMetroDescription sets MetroDescription field to given value. + +### HasMetroDescription + +`func (o *GETConnectionByUuidResponse) HasMetroDescription() bool` + +HasMetroDescription returns a boolean if a field has been set. + +### GetProviderStatus + +`func (o *GETConnectionByUuidResponse) GetProviderStatus() string` + +GetProviderStatus returns the ProviderStatus field if non-nil, zero value otherwise. + +### GetProviderStatusOk + +`func (o *GETConnectionByUuidResponse) GetProviderStatusOk() (*string, bool)` + +GetProviderStatusOk returns a tuple with the ProviderStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderStatus + +`func (o *GETConnectionByUuidResponse) SetProviderStatus(v string)` + +SetProviderStatus sets ProviderStatus field to given value. + +### HasProviderStatus + +`func (o *GETConnectionByUuidResponse) HasProviderStatus() bool` + +HasProviderStatus returns a boolean if a field has been set. + +### GetStatus + +`func (o *GETConnectionByUuidResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETConnectionByUuidResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETConnectionByUuidResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETConnectionByUuidResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetBillingTier + +`func (o *GETConnectionByUuidResponse) GetBillingTier() string` + +GetBillingTier returns the BillingTier field if non-nil, zero value otherwise. + +### GetBillingTierOk + +`func (o *GETConnectionByUuidResponse) GetBillingTierOk() (*string, bool)` + +GetBillingTierOk returns a tuple with the BillingTier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingTier + +`func (o *GETConnectionByUuidResponse) SetBillingTier(v string)` + +SetBillingTier sets BillingTier field to given value. + +### HasBillingTier + +`func (o *GETConnectionByUuidResponse) HasBillingTier() bool` + +HasBillingTier returns a boolean if a field has been set. + +### GetAuthorizationKey + +`func (o *GETConnectionByUuidResponse) GetAuthorizationKey() string` + +GetAuthorizationKey returns the AuthorizationKey field if non-nil, zero value otherwise. + +### GetAuthorizationKeyOk + +`func (o *GETConnectionByUuidResponse) GetAuthorizationKeyOk() (*string, bool)` + +GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationKey + +`func (o *GETConnectionByUuidResponse) SetAuthorizationKey(v string)` + +SetAuthorizationKey sets AuthorizationKey field to given value. + +### HasAuthorizationKey + +`func (o *GETConnectionByUuidResponse) HasAuthorizationKey() bool` + +HasAuthorizationKey returns a boolean if a field has been set. + +### GetSpeed + +`func (o *GETConnectionByUuidResponse) GetSpeed() int32` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *GETConnectionByUuidResponse) GetSpeedOk() (*int32, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *GETConnectionByUuidResponse) SetSpeed(v int32)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *GETConnectionByUuidResponse) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### GetSpeedUnit + +`func (o *GETConnectionByUuidResponse) GetSpeedUnit() string` + +GetSpeedUnit returns the SpeedUnit field if non-nil, zero value otherwise. + +### GetSpeedUnitOk + +`func (o *GETConnectionByUuidResponse) GetSpeedUnitOk() (*string, bool)` + +GetSpeedUnitOk returns a tuple with the SpeedUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeedUnit + +`func (o *GETConnectionByUuidResponse) SetSpeedUnit(v string)` + +SetSpeedUnit sets SpeedUnit field to given value. + +### HasSpeedUnit + +`func (o *GETConnectionByUuidResponse) HasSpeedUnit() bool` + +HasSpeedUnit returns a boolean if a field has been set. + +### GetRedundancyType + +`func (o *GETConnectionByUuidResponse) GetRedundancyType() string` + +GetRedundancyType returns the RedundancyType field if non-nil, zero value otherwise. + +### GetRedundancyTypeOk + +`func (o *GETConnectionByUuidResponse) GetRedundancyTypeOk() (*string, bool)` + +GetRedundancyTypeOk returns a tuple with the RedundancyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancyType + +`func (o *GETConnectionByUuidResponse) SetRedundancyType(v string)` + +SetRedundancyType sets RedundancyType field to given value. + +### HasRedundancyType + +`func (o *GETConnectionByUuidResponse) HasRedundancyType() bool` + +HasRedundancyType returns a boolean if a field has been set. + +### GetRedundancyGroup + +`func (o *GETConnectionByUuidResponse) GetRedundancyGroup() string` + +GetRedundancyGroup returns the RedundancyGroup field if non-nil, zero value otherwise. + +### GetRedundancyGroupOk + +`func (o *GETConnectionByUuidResponse) GetRedundancyGroupOk() (*string, bool)` + +GetRedundancyGroupOk returns a tuple with the RedundancyGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancyGroup + +`func (o *GETConnectionByUuidResponse) SetRedundancyGroup(v string)` + +SetRedundancyGroup sets RedundancyGroup field to given value. + +### HasRedundancyGroup + +`func (o *GETConnectionByUuidResponse) HasRedundancyGroup() bool` + +HasRedundancyGroup returns a boolean if a field has been set. + +### GetSellerMetroCode + +`func (o *GETConnectionByUuidResponse) GetSellerMetroCode() string` + +GetSellerMetroCode returns the SellerMetroCode field if non-nil, zero value otherwise. + +### GetSellerMetroCodeOk + +`func (o *GETConnectionByUuidResponse) GetSellerMetroCodeOk() (*string, bool)` + +GetSellerMetroCodeOk returns a tuple with the SellerMetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerMetroCode + +`func (o *GETConnectionByUuidResponse) SetSellerMetroCode(v string)` + +SetSellerMetroCode sets SellerMetroCode field to given value. + +### HasSellerMetroCode + +`func (o *GETConnectionByUuidResponse) HasSellerMetroCode() bool` + +HasSellerMetroCode returns a boolean if a field has been set. + +### GetSellerMetroDescription + +`func (o *GETConnectionByUuidResponse) GetSellerMetroDescription() string` + +GetSellerMetroDescription returns the SellerMetroDescription field if non-nil, zero value otherwise. + +### GetSellerMetroDescriptionOk + +`func (o *GETConnectionByUuidResponse) GetSellerMetroDescriptionOk() (*string, bool)` + +GetSellerMetroDescriptionOk returns a tuple with the SellerMetroDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerMetroDescription + +`func (o *GETConnectionByUuidResponse) SetSellerMetroDescription(v string)` + +SetSellerMetroDescription sets SellerMetroDescription field to given value. + +### HasSellerMetroDescription + +`func (o *GETConnectionByUuidResponse) HasSellerMetroDescription() bool` + +HasSellerMetroDescription returns a boolean if a field has been set. + +### GetSellerServiceName + +`func (o *GETConnectionByUuidResponse) GetSellerServiceName() string` + +GetSellerServiceName returns the SellerServiceName field if non-nil, zero value otherwise. + +### GetSellerServiceNameOk + +`func (o *GETConnectionByUuidResponse) GetSellerServiceNameOk() (*string, bool)` + +GetSellerServiceNameOk returns a tuple with the SellerServiceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerServiceName + +`func (o *GETConnectionByUuidResponse) SetSellerServiceName(v string)` + +SetSellerServiceName sets SellerServiceName field to given value. + +### HasSellerServiceName + +`func (o *GETConnectionByUuidResponse) HasSellerServiceName() bool` + +HasSellerServiceName returns a boolean if a field has been set. + +### GetSellerServiceUUID + +`func (o *GETConnectionByUuidResponse) GetSellerServiceUUID() string` + +GetSellerServiceUUID returns the SellerServiceUUID field if non-nil, zero value otherwise. + +### GetSellerServiceUUIDOk + +`func (o *GETConnectionByUuidResponse) GetSellerServiceUUIDOk() (*string, bool)` + +GetSellerServiceUUIDOk returns a tuple with the SellerServiceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerServiceUUID + +`func (o *GETConnectionByUuidResponse) SetSellerServiceUUID(v string)` + +SetSellerServiceUUID sets SellerServiceUUID field to given value. + +### HasSellerServiceUUID + +`func (o *GETConnectionByUuidResponse) HasSellerServiceUUID() bool` + +HasSellerServiceUUID returns a boolean if a field has been set. + +### GetSellerOrganizationName + +`func (o *GETConnectionByUuidResponse) GetSellerOrganizationName() string` + +GetSellerOrganizationName returns the SellerOrganizationName field if non-nil, zero value otherwise. + +### GetSellerOrganizationNameOk + +`func (o *GETConnectionByUuidResponse) GetSellerOrganizationNameOk() (*string, bool)` + +GetSellerOrganizationNameOk returns a tuple with the SellerOrganizationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerOrganizationName + +`func (o *GETConnectionByUuidResponse) SetSellerOrganizationName(v string)` + +SetSellerOrganizationName sets SellerOrganizationName field to given value. + +### HasSellerOrganizationName + +`func (o *GETConnectionByUuidResponse) HasSellerOrganizationName() bool` + +HasSellerOrganizationName returns a boolean if a field has been set. + +### GetNotifications + +`func (o *GETConnectionByUuidResponse) GetNotifications() []string` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *GETConnectionByUuidResponse) GetNotificationsOk() (*[]string, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *GETConnectionByUuidResponse) SetNotifications(v []string)` + +SetNotifications sets Notifications field to given value. + +### HasNotifications + +`func (o *GETConnectionByUuidResponse) HasNotifications() bool` + +HasNotifications returns a boolean if a field has been set. + +### GetPurchaseOrderNumber + +`func (o *GETConnectionByUuidResponse) GetPurchaseOrderNumber() string` + +GetPurchaseOrderNumber returns the PurchaseOrderNumber field if non-nil, zero value otherwise. + +### GetPurchaseOrderNumberOk + +`func (o *GETConnectionByUuidResponse) GetPurchaseOrderNumberOk() (*string, bool)` + +GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurchaseOrderNumber + +`func (o *GETConnectionByUuidResponse) SetPurchaseOrderNumber(v string)` + +SetPurchaseOrderNumber sets PurchaseOrderNumber field to given value. + +### HasPurchaseOrderNumber + +`func (o *GETConnectionByUuidResponse) HasPurchaseOrderNumber() bool` + +HasPurchaseOrderNumber returns a boolean if a field has been set. + +### GetNamedTag + +`func (o *GETConnectionByUuidResponse) GetNamedTag() string` + +GetNamedTag returns the NamedTag field if non-nil, zero value otherwise. + +### GetNamedTagOk + +`func (o *GETConnectionByUuidResponse) GetNamedTagOk() (*string, bool)` + +GetNamedTagOk returns a tuple with the NamedTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamedTag + +`func (o *GETConnectionByUuidResponse) SetNamedTag(v string)` + +SetNamedTag sets NamedTag field to given value. + +### HasNamedTag + +`func (o *GETConnectionByUuidResponse) HasNamedTag() bool` + +HasNamedTag returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *GETConnectionByUuidResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *GETConnectionByUuidResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *GETConnectionByUuidResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *GETConnectionByUuidResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *GETConnectionByUuidResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *GETConnectionByUuidResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *GETConnectionByUuidResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *GETConnectionByUuidResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByFullName + +`func (o *GETConnectionByUuidResponse) GetCreatedByFullName() string` + +GetCreatedByFullName returns the CreatedByFullName field if non-nil, zero value otherwise. + +### GetCreatedByFullNameOk + +`func (o *GETConnectionByUuidResponse) GetCreatedByFullNameOk() (*string, bool)` + +GetCreatedByFullNameOk returns a tuple with the CreatedByFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByFullName + +`func (o *GETConnectionByUuidResponse) SetCreatedByFullName(v string)` + +SetCreatedByFullName sets CreatedByFullName field to given value. + +### HasCreatedByFullName + +`func (o *GETConnectionByUuidResponse) HasCreatedByFullName() bool` + +HasCreatedByFullName returns a boolean if a field has been set. + +### GetCreatedByEmail + +`func (o *GETConnectionByUuidResponse) GetCreatedByEmail() string` + +GetCreatedByEmail returns the CreatedByEmail field if non-nil, zero value otherwise. + +### GetCreatedByEmailOk + +`func (o *GETConnectionByUuidResponse) GetCreatedByEmailOk() (*string, bool)` + +GetCreatedByEmailOk returns a tuple with the CreatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByEmail + +`func (o *GETConnectionByUuidResponse) SetCreatedByEmail(v string)` + +SetCreatedByEmail sets CreatedByEmail field to given value. + +### HasCreatedByEmail + +`func (o *GETConnectionByUuidResponse) HasCreatedByEmail() bool` + +HasCreatedByEmail returns a boolean if a field has been set. + +### GetLastUpdatedBy + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedBy() string` + +GetLastUpdatedBy returns the LastUpdatedBy field if non-nil, zero value otherwise. + +### GetLastUpdatedByOk + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedByOk() (*string, bool)` + +GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedBy + +`func (o *GETConnectionByUuidResponse) SetLastUpdatedBy(v string)` + +SetLastUpdatedBy sets LastUpdatedBy field to given value. + +### HasLastUpdatedBy + +`func (o *GETConnectionByUuidResponse) HasLastUpdatedBy() bool` + +HasLastUpdatedBy returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *GETConnectionByUuidResponse) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *GETConnectionByUuidResponse) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetLastUpdatedByFullName + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedByFullName() string` + +GetLastUpdatedByFullName returns the LastUpdatedByFullName field if non-nil, zero value otherwise. + +### GetLastUpdatedByFullNameOk + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedByFullNameOk() (*string, bool)` + +GetLastUpdatedByFullNameOk returns a tuple with the LastUpdatedByFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedByFullName + +`func (o *GETConnectionByUuidResponse) SetLastUpdatedByFullName(v string)` + +SetLastUpdatedByFullName sets LastUpdatedByFullName field to given value. + +### HasLastUpdatedByFullName + +`func (o *GETConnectionByUuidResponse) HasLastUpdatedByFullName() bool` + +HasLastUpdatedByFullName returns a boolean if a field has been set. + +### GetLastUpdatedByEmail + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedByEmail() string` + +GetLastUpdatedByEmail returns the LastUpdatedByEmail field if non-nil, zero value otherwise. + +### GetLastUpdatedByEmailOk + +`func (o *GETConnectionByUuidResponse) GetLastUpdatedByEmailOk() (*string, bool)` + +GetLastUpdatedByEmailOk returns a tuple with the LastUpdatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedByEmail + +`func (o *GETConnectionByUuidResponse) SetLastUpdatedByEmail(v string)` + +SetLastUpdatedByEmail sets LastUpdatedByEmail field to given value. + +### HasLastUpdatedByEmail + +`func (o *GETConnectionByUuidResponse) HasLastUpdatedByEmail() bool` + +HasLastUpdatedByEmail returns a boolean if a field has been set. + +### GetZSidePortName + +`func (o *GETConnectionByUuidResponse) GetZSidePortName() string` + +GetZSidePortName returns the ZSidePortName field if non-nil, zero value otherwise. + +### GetZSidePortNameOk + +`func (o *GETConnectionByUuidResponse) GetZSidePortNameOk() (*string, bool)` + +GetZSidePortNameOk returns a tuple with the ZSidePortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSidePortName + +`func (o *GETConnectionByUuidResponse) SetZSidePortName(v string)` + +SetZSidePortName sets ZSidePortName field to given value. + +### HasZSidePortName + +`func (o *GETConnectionByUuidResponse) HasZSidePortName() bool` + +HasZSidePortName returns a boolean if a field has been set. + +### GetZSidePortUUID + +`func (o *GETConnectionByUuidResponse) GetZSidePortUUID() string` + +GetZSidePortUUID returns the ZSidePortUUID field if non-nil, zero value otherwise. + +### GetZSidePortUUIDOk + +`func (o *GETConnectionByUuidResponse) GetZSidePortUUIDOk() (*string, bool)` + +GetZSidePortUUIDOk returns a tuple with the ZSidePortUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSidePortUUID + +`func (o *GETConnectionByUuidResponse) SetZSidePortUUID(v string)` + +SetZSidePortUUID sets ZSidePortUUID field to given value. + +### HasZSidePortUUID + +`func (o *GETConnectionByUuidResponse) HasZSidePortUUID() bool` + +HasZSidePortUUID returns a boolean if a field has been set. + +### GetZSideVlanCTag + +`func (o *GETConnectionByUuidResponse) GetZSideVlanCTag() int32` + +GetZSideVlanCTag returns the ZSideVlanCTag field if non-nil, zero value otherwise. + +### GetZSideVlanCTagOk + +`func (o *GETConnectionByUuidResponse) GetZSideVlanCTagOk() (*int32, bool)` + +GetZSideVlanCTagOk returns a tuple with the ZSideVlanCTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSideVlanCTag + +`func (o *GETConnectionByUuidResponse) SetZSideVlanCTag(v int32)` + +SetZSideVlanCTag sets ZSideVlanCTag field to given value. + +### HasZSideVlanCTag + +`func (o *GETConnectionByUuidResponse) HasZSideVlanCTag() bool` + +HasZSideVlanCTag returns a boolean if a field has been set. + +### GetZSideVlanSTag + +`func (o *GETConnectionByUuidResponse) GetZSideVlanSTag() int32` + +GetZSideVlanSTag returns the ZSideVlanSTag field if non-nil, zero value otherwise. + +### GetZSideVlanSTagOk + +`func (o *GETConnectionByUuidResponse) GetZSideVlanSTagOk() (*int32, bool)` + +GetZSideVlanSTagOk returns a tuple with the ZSideVlanSTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSideVlanSTag + +`func (o *GETConnectionByUuidResponse) SetZSideVlanSTag(v int32)` + +SetZSideVlanSTag sets ZSideVlanSTag field to given value. + +### HasZSideVlanSTag + +`func (o *GETConnectionByUuidResponse) HasZSideVlanSTag() bool` + +HasZSideVlanSTag returns a boolean if a field has been set. + +### GetRemote + +`func (o *GETConnectionByUuidResponse) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *GETConnectionByUuidResponse) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *GETConnectionByUuidResponse) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *GETConnectionByUuidResponse) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetPrivate + +`func (o *GETConnectionByUuidResponse) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *GETConnectionByUuidResponse) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *GETConnectionByUuidResponse) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *GETConnectionByUuidResponse) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetSelf + +`func (o *GETConnectionByUuidResponse) GetSelf() bool` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *GETConnectionByUuidResponse) GetSelfOk() (*bool, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *GETConnectionByUuidResponse) SetSelf(v bool)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *GETConnectionByUuidResponse) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetRedundantUuid + +`func (o *GETConnectionByUuidResponse) GetRedundantUuid() string` + +GetRedundantUuid returns the RedundantUuid field if non-nil, zero value otherwise. + +### GetRedundantUuidOk + +`func (o *GETConnectionByUuidResponse) GetRedundantUuidOk() (*string, bool)` + +GetRedundantUuidOk returns a tuple with the RedundantUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantUuid + +`func (o *GETConnectionByUuidResponse) SetRedundantUuid(v string)` + +SetRedundantUuid sets RedundantUuid field to given value. + +### HasRedundantUuid + +`func (o *GETConnectionByUuidResponse) HasRedundantUuid() bool` + +HasRedundantUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GETConnectionsPageResponse.md b/services/networkedgev1/docs/GETConnectionsPageResponse.md new file mode 100644 index 00000000..b20fbd4a --- /dev/null +++ b/services/networkedgev1/docs/GETConnectionsPageResponse.md @@ -0,0 +1,186 @@ +# GETConnectionsPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsLastPage** | Pointer to **bool** | | [optional] +**TotalCount** | Pointer to **int32** | | [optional] +**IsFirstPage** | Pointer to **bool** | | [optional] +**PageSize** | Pointer to **int32** | | [optional] +**PageNumber** | Pointer to **int32** | | [optional] +**Content** | Pointer to [**[]GETConnectionByUuidResponse**](GETConnectionByUuidResponse.md) | | [optional] + +## Methods + +### NewGETConnectionsPageResponse + +`func NewGETConnectionsPageResponse() *GETConnectionsPageResponse` + +NewGETConnectionsPageResponse instantiates a new GETConnectionsPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETConnectionsPageResponseWithDefaults + +`func NewGETConnectionsPageResponseWithDefaults() *GETConnectionsPageResponse` + +NewGETConnectionsPageResponseWithDefaults instantiates a new GETConnectionsPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsLastPage + +`func (o *GETConnectionsPageResponse) GetIsLastPage() bool` + +GetIsLastPage returns the IsLastPage field if non-nil, zero value otherwise. + +### GetIsLastPageOk + +`func (o *GETConnectionsPageResponse) GetIsLastPageOk() (*bool, bool)` + +GetIsLastPageOk returns a tuple with the IsLastPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLastPage + +`func (o *GETConnectionsPageResponse) SetIsLastPage(v bool)` + +SetIsLastPage sets IsLastPage field to given value. + +### HasIsLastPage + +`func (o *GETConnectionsPageResponse) HasIsLastPage() bool` + +HasIsLastPage returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *GETConnectionsPageResponse) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *GETConnectionsPageResponse) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *GETConnectionsPageResponse) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *GETConnectionsPageResponse) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + +### GetIsFirstPage + +`func (o *GETConnectionsPageResponse) GetIsFirstPage() bool` + +GetIsFirstPage returns the IsFirstPage field if non-nil, zero value otherwise. + +### GetIsFirstPageOk + +`func (o *GETConnectionsPageResponse) GetIsFirstPageOk() (*bool, bool)` + +GetIsFirstPageOk returns a tuple with the IsFirstPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFirstPage + +`func (o *GETConnectionsPageResponse) SetIsFirstPage(v bool)` + +SetIsFirstPage sets IsFirstPage field to given value. + +### HasIsFirstPage + +`func (o *GETConnectionsPageResponse) HasIsFirstPage() bool` + +HasIsFirstPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *GETConnectionsPageResponse) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GETConnectionsPageResponse) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GETConnectionsPageResponse) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *GETConnectionsPageResponse) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetPageNumber + +`func (o *GETConnectionsPageResponse) GetPageNumber() int32` + +GetPageNumber returns the PageNumber field if non-nil, zero value otherwise. + +### GetPageNumberOk + +`func (o *GETConnectionsPageResponse) GetPageNumberOk() (*int32, bool)` + +GetPageNumberOk returns a tuple with the PageNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageNumber + +`func (o *GETConnectionsPageResponse) SetPageNumber(v int32)` + +SetPageNumber sets PageNumber field to given value. + +### HasPageNumber + +`func (o *GETConnectionsPageResponse) HasPageNumber() bool` + +HasPageNumber returns a boolean if a field has been set. + +### GetContent + +`func (o *GETConnectionsPageResponse) GetContent() []GETConnectionByUuidResponse` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *GETConnectionsPageResponse) GetContentOk() (*[]GETConnectionByUuidResponse, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *GETConnectionsPageResponse) SetContent(v []GETConnectionByUuidResponse)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *GETConnectionsPageResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetServProfServicesResp.md b/services/networkedgev1/docs/GetServProfServicesResp.md new file mode 100644 index 00000000..694a5c8e --- /dev/null +++ b/services/networkedgev1/docs/GetServProfServicesResp.md @@ -0,0 +1,186 @@ +# GetServProfServicesResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsLastPage** | Pointer to **bool** | | [optional] +**TotalCount** | Pointer to **int32** | | [optional] +**IsFirstPage** | Pointer to **bool** | | [optional] +**PageSize** | Pointer to **int32** | | [optional] +**PageNumber** | Pointer to **int32** | | [optional] +**Content** | Pointer to [**[]GetServProfServicesRespContent**](GetServProfServicesRespContent.md) | | [optional] + +## Methods + +### NewGetServProfServicesResp + +`func NewGetServProfServicesResp() *GetServProfServicesResp` + +NewGetServProfServicesResp instantiates a new GetServProfServicesResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetServProfServicesRespWithDefaults + +`func NewGetServProfServicesRespWithDefaults() *GetServProfServicesResp` + +NewGetServProfServicesRespWithDefaults instantiates a new GetServProfServicesResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsLastPage + +`func (o *GetServProfServicesResp) GetIsLastPage() bool` + +GetIsLastPage returns the IsLastPage field if non-nil, zero value otherwise. + +### GetIsLastPageOk + +`func (o *GetServProfServicesResp) GetIsLastPageOk() (*bool, bool)` + +GetIsLastPageOk returns a tuple with the IsLastPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLastPage + +`func (o *GetServProfServicesResp) SetIsLastPage(v bool)` + +SetIsLastPage sets IsLastPage field to given value. + +### HasIsLastPage + +`func (o *GetServProfServicesResp) HasIsLastPage() bool` + +HasIsLastPage returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *GetServProfServicesResp) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *GetServProfServicesResp) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *GetServProfServicesResp) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *GetServProfServicesResp) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + +### GetIsFirstPage + +`func (o *GetServProfServicesResp) GetIsFirstPage() bool` + +GetIsFirstPage returns the IsFirstPage field if non-nil, zero value otherwise. + +### GetIsFirstPageOk + +`func (o *GetServProfServicesResp) GetIsFirstPageOk() (*bool, bool)` + +GetIsFirstPageOk returns a tuple with the IsFirstPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFirstPage + +`func (o *GetServProfServicesResp) SetIsFirstPage(v bool)` + +SetIsFirstPage sets IsFirstPage field to given value. + +### HasIsFirstPage + +`func (o *GetServProfServicesResp) HasIsFirstPage() bool` + +HasIsFirstPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *GetServProfServicesResp) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *GetServProfServicesResp) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *GetServProfServicesResp) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *GetServProfServicesResp) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetPageNumber + +`func (o *GetServProfServicesResp) GetPageNumber() int32` + +GetPageNumber returns the PageNumber field if non-nil, zero value otherwise. + +### GetPageNumberOk + +`func (o *GetServProfServicesResp) GetPageNumberOk() (*int32, bool)` + +GetPageNumberOk returns a tuple with the PageNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageNumber + +`func (o *GetServProfServicesResp) SetPageNumber(v int32)` + +SetPageNumber sets PageNumber field to given value. + +### HasPageNumber + +`func (o *GetServProfServicesResp) HasPageNumber() bool` + +HasPageNumber returns a boolean if a field has been set. + +### GetContent + +`func (o *GetServProfServicesResp) GetContent() []GetServProfServicesRespContent` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *GetServProfServicesResp) GetContentOk() (*[]GetServProfServicesRespContent, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *GetServProfServicesResp) SetContent(v []GetServProfServicesRespContent)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *GetServProfServicesResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetServProfServicesRespContent.md b/services/networkedgev1/docs/GetServProfServicesRespContent.md new file mode 100644 index 00000000..c106faea --- /dev/null +++ b/services/networkedgev1/docs/GetServProfServicesRespContent.md @@ -0,0 +1,602 @@ +# GetServProfServicesRespContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**AuthKeyLabel** | Pointer to **string** | | [optional] +**ConnectionNameLabel** | Pointer to **string** | | [optional] +**RequiredRedundancy** | Pointer to **bool** | | [optional] +**AllowCustomSpeed** | Pointer to **bool** | | [optional] +**SpeedBands** | Pointer to [**[]SpeedBand**](SpeedBand.md) | | [optional] +**Metros** | Pointer to [**GetServProfServicesRespContentMetros**](GetServProfServicesRespContentMetros.md) | | [optional] +**CreatedDate** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**LastUpdatedBy** | Pointer to **string** | | [optional] +**VlanSameAsPrimary** | Pointer to **bool** | | [optional] +**TagType** | Pointer to **string** | | [optional] +**CtagLabel** | Pointer to **string** | | [optional] +**ApiAvailable** | Pointer to **bool** | | [optional] +**SelfProfile** | Pointer to **bool** | | [optional] +**ProfileEncapsulation** | Pointer to **string** | | [optional] +**AuthorizationKey** | Pointer to **string** | | [optional] +**OrganizationName** | Pointer to **string** | | [optional] +**Private** | Pointer to **bool** | | [optional] +**Features** | Pointer to [**GetServProfServicesRespContentfeatures**](GetServProfServicesRespContentfeatures.md) | | [optional] + +## Methods + +### NewGetServProfServicesRespContent + +`func NewGetServProfServicesRespContent() *GetServProfServicesRespContent` + +NewGetServProfServicesRespContent instantiates a new GetServProfServicesRespContent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetServProfServicesRespContentWithDefaults + +`func NewGetServProfServicesRespContentWithDefaults() *GetServProfServicesRespContent` + +NewGetServProfServicesRespContentWithDefaults instantiates a new GetServProfServicesRespContent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *GetServProfServicesRespContent) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *GetServProfServicesRespContent) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *GetServProfServicesRespContent) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *GetServProfServicesRespContent) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetName + +`func (o *GetServProfServicesRespContent) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetServProfServicesRespContent) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetServProfServicesRespContent) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetServProfServicesRespContent) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAuthKeyLabel + +`func (o *GetServProfServicesRespContent) GetAuthKeyLabel() string` + +GetAuthKeyLabel returns the AuthKeyLabel field if non-nil, zero value otherwise. + +### GetAuthKeyLabelOk + +`func (o *GetServProfServicesRespContent) GetAuthKeyLabelOk() (*string, bool)` + +GetAuthKeyLabelOk returns a tuple with the AuthKeyLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKeyLabel + +`func (o *GetServProfServicesRespContent) SetAuthKeyLabel(v string)` + +SetAuthKeyLabel sets AuthKeyLabel field to given value. + +### HasAuthKeyLabel + +`func (o *GetServProfServicesRespContent) HasAuthKeyLabel() bool` + +HasAuthKeyLabel returns a boolean if a field has been set. + +### GetConnectionNameLabel + +`func (o *GetServProfServicesRespContent) GetConnectionNameLabel() string` + +GetConnectionNameLabel returns the ConnectionNameLabel field if non-nil, zero value otherwise. + +### GetConnectionNameLabelOk + +`func (o *GetServProfServicesRespContent) GetConnectionNameLabelOk() (*string, bool)` + +GetConnectionNameLabelOk returns a tuple with the ConnectionNameLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionNameLabel + +`func (o *GetServProfServicesRespContent) SetConnectionNameLabel(v string)` + +SetConnectionNameLabel sets ConnectionNameLabel field to given value. + +### HasConnectionNameLabel + +`func (o *GetServProfServicesRespContent) HasConnectionNameLabel() bool` + +HasConnectionNameLabel returns a boolean if a field has been set. + +### GetRequiredRedundancy + +`func (o *GetServProfServicesRespContent) GetRequiredRedundancy() bool` + +GetRequiredRedundancy returns the RequiredRedundancy field if non-nil, zero value otherwise. + +### GetRequiredRedundancyOk + +`func (o *GetServProfServicesRespContent) GetRequiredRedundancyOk() (*bool, bool)` + +GetRequiredRedundancyOk returns a tuple with the RequiredRedundancy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredRedundancy + +`func (o *GetServProfServicesRespContent) SetRequiredRedundancy(v bool)` + +SetRequiredRedundancy sets RequiredRedundancy field to given value. + +### HasRequiredRedundancy + +`func (o *GetServProfServicesRespContent) HasRequiredRedundancy() bool` + +HasRequiredRedundancy returns a boolean if a field has been set. + +### GetAllowCustomSpeed + +`func (o *GetServProfServicesRespContent) GetAllowCustomSpeed() bool` + +GetAllowCustomSpeed returns the AllowCustomSpeed field if non-nil, zero value otherwise. + +### GetAllowCustomSpeedOk + +`func (o *GetServProfServicesRespContent) GetAllowCustomSpeedOk() (*bool, bool)` + +GetAllowCustomSpeedOk returns a tuple with the AllowCustomSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowCustomSpeed + +`func (o *GetServProfServicesRespContent) SetAllowCustomSpeed(v bool)` + +SetAllowCustomSpeed sets AllowCustomSpeed field to given value. + +### HasAllowCustomSpeed + +`func (o *GetServProfServicesRespContent) HasAllowCustomSpeed() bool` + +HasAllowCustomSpeed returns a boolean if a field has been set. + +### GetSpeedBands + +`func (o *GetServProfServicesRespContent) GetSpeedBands() []SpeedBand` + +GetSpeedBands returns the SpeedBands field if non-nil, zero value otherwise. + +### GetSpeedBandsOk + +`func (o *GetServProfServicesRespContent) GetSpeedBandsOk() (*[]SpeedBand, bool)` + +GetSpeedBandsOk returns a tuple with the SpeedBands field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeedBands + +`func (o *GetServProfServicesRespContent) SetSpeedBands(v []SpeedBand)` + +SetSpeedBands sets SpeedBands field to given value. + +### HasSpeedBands + +`func (o *GetServProfServicesRespContent) HasSpeedBands() bool` + +HasSpeedBands returns a boolean if a field has been set. + +### GetMetros + +`func (o *GetServProfServicesRespContent) GetMetros() GetServProfServicesRespContentMetros` + +GetMetros returns the Metros field if non-nil, zero value otherwise. + +### GetMetrosOk + +`func (o *GetServProfServicesRespContent) GetMetrosOk() (*GetServProfServicesRespContentMetros, bool)` + +GetMetrosOk returns a tuple with the Metros field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetros + +`func (o *GetServProfServicesRespContent) SetMetros(v GetServProfServicesRespContentMetros)` + +SetMetros sets Metros field to given value. + +### HasMetros + +`func (o *GetServProfServicesRespContent) HasMetros() bool` + +HasMetros returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *GetServProfServicesRespContent) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *GetServProfServicesRespContent) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *GetServProfServicesRespContent) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *GetServProfServicesRespContent) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *GetServProfServicesRespContent) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *GetServProfServicesRespContent) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *GetServProfServicesRespContent) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *GetServProfServicesRespContent) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *GetServProfServicesRespContent) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *GetServProfServicesRespContent) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *GetServProfServicesRespContent) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *GetServProfServicesRespContent) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetLastUpdatedBy + +`func (o *GetServProfServicesRespContent) GetLastUpdatedBy() string` + +GetLastUpdatedBy returns the LastUpdatedBy field if non-nil, zero value otherwise. + +### GetLastUpdatedByOk + +`func (o *GetServProfServicesRespContent) GetLastUpdatedByOk() (*string, bool)` + +GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedBy + +`func (o *GetServProfServicesRespContent) SetLastUpdatedBy(v string)` + +SetLastUpdatedBy sets LastUpdatedBy field to given value. + +### HasLastUpdatedBy + +`func (o *GetServProfServicesRespContent) HasLastUpdatedBy() bool` + +HasLastUpdatedBy returns a boolean if a field has been set. + +### GetVlanSameAsPrimary + +`func (o *GetServProfServicesRespContent) GetVlanSameAsPrimary() bool` + +GetVlanSameAsPrimary returns the VlanSameAsPrimary field if non-nil, zero value otherwise. + +### GetVlanSameAsPrimaryOk + +`func (o *GetServProfServicesRespContent) GetVlanSameAsPrimaryOk() (*bool, bool)` + +GetVlanSameAsPrimaryOk returns a tuple with the VlanSameAsPrimary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanSameAsPrimary + +`func (o *GetServProfServicesRespContent) SetVlanSameAsPrimary(v bool)` + +SetVlanSameAsPrimary sets VlanSameAsPrimary field to given value. + +### HasVlanSameAsPrimary + +`func (o *GetServProfServicesRespContent) HasVlanSameAsPrimary() bool` + +HasVlanSameAsPrimary returns a boolean if a field has been set. + +### GetTagType + +`func (o *GetServProfServicesRespContent) GetTagType() string` + +GetTagType returns the TagType field if non-nil, zero value otherwise. + +### GetTagTypeOk + +`func (o *GetServProfServicesRespContent) GetTagTypeOk() (*string, bool)` + +GetTagTypeOk returns a tuple with the TagType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagType + +`func (o *GetServProfServicesRespContent) SetTagType(v string)` + +SetTagType sets TagType field to given value. + +### HasTagType + +`func (o *GetServProfServicesRespContent) HasTagType() bool` + +HasTagType returns a boolean if a field has been set. + +### GetCtagLabel + +`func (o *GetServProfServicesRespContent) GetCtagLabel() string` + +GetCtagLabel returns the CtagLabel field if non-nil, zero value otherwise. + +### GetCtagLabelOk + +`func (o *GetServProfServicesRespContent) GetCtagLabelOk() (*string, bool)` + +GetCtagLabelOk returns a tuple with the CtagLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCtagLabel + +`func (o *GetServProfServicesRespContent) SetCtagLabel(v string)` + +SetCtagLabel sets CtagLabel field to given value. + +### HasCtagLabel + +`func (o *GetServProfServicesRespContent) HasCtagLabel() bool` + +HasCtagLabel returns a boolean if a field has been set. + +### GetApiAvailable + +`func (o *GetServProfServicesRespContent) GetApiAvailable() bool` + +GetApiAvailable returns the ApiAvailable field if non-nil, zero value otherwise. + +### GetApiAvailableOk + +`func (o *GetServProfServicesRespContent) GetApiAvailableOk() (*bool, bool)` + +GetApiAvailableOk returns a tuple with the ApiAvailable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiAvailable + +`func (o *GetServProfServicesRespContent) SetApiAvailable(v bool)` + +SetApiAvailable sets ApiAvailable field to given value. + +### HasApiAvailable + +`func (o *GetServProfServicesRespContent) HasApiAvailable() bool` + +HasApiAvailable returns a boolean if a field has been set. + +### GetSelfProfile + +`func (o *GetServProfServicesRespContent) GetSelfProfile() bool` + +GetSelfProfile returns the SelfProfile field if non-nil, zero value otherwise. + +### GetSelfProfileOk + +`func (o *GetServProfServicesRespContent) GetSelfProfileOk() (*bool, bool)` + +GetSelfProfileOk returns a tuple with the SelfProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfProfile + +`func (o *GetServProfServicesRespContent) SetSelfProfile(v bool)` + +SetSelfProfile sets SelfProfile field to given value. + +### HasSelfProfile + +`func (o *GetServProfServicesRespContent) HasSelfProfile() bool` + +HasSelfProfile returns a boolean if a field has been set. + +### GetProfileEncapsulation + +`func (o *GetServProfServicesRespContent) GetProfileEncapsulation() string` + +GetProfileEncapsulation returns the ProfileEncapsulation field if non-nil, zero value otherwise. + +### GetProfileEncapsulationOk + +`func (o *GetServProfServicesRespContent) GetProfileEncapsulationOk() (*string, bool)` + +GetProfileEncapsulationOk returns a tuple with the ProfileEncapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfileEncapsulation + +`func (o *GetServProfServicesRespContent) SetProfileEncapsulation(v string)` + +SetProfileEncapsulation sets ProfileEncapsulation field to given value. + +### HasProfileEncapsulation + +`func (o *GetServProfServicesRespContent) HasProfileEncapsulation() bool` + +HasProfileEncapsulation returns a boolean if a field has been set. + +### GetAuthorizationKey + +`func (o *GetServProfServicesRespContent) GetAuthorizationKey() string` + +GetAuthorizationKey returns the AuthorizationKey field if non-nil, zero value otherwise. + +### GetAuthorizationKeyOk + +`func (o *GetServProfServicesRespContent) GetAuthorizationKeyOk() (*string, bool)` + +GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationKey + +`func (o *GetServProfServicesRespContent) SetAuthorizationKey(v string)` + +SetAuthorizationKey sets AuthorizationKey field to given value. + +### HasAuthorizationKey + +`func (o *GetServProfServicesRespContent) HasAuthorizationKey() bool` + +HasAuthorizationKey returns a boolean if a field has been set. + +### GetOrganizationName + +`func (o *GetServProfServicesRespContent) GetOrganizationName() string` + +GetOrganizationName returns the OrganizationName field if non-nil, zero value otherwise. + +### GetOrganizationNameOk + +`func (o *GetServProfServicesRespContent) GetOrganizationNameOk() (*string, bool)` + +GetOrganizationNameOk returns a tuple with the OrganizationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationName + +`func (o *GetServProfServicesRespContent) SetOrganizationName(v string)` + +SetOrganizationName sets OrganizationName field to given value. + +### HasOrganizationName + +`func (o *GetServProfServicesRespContent) HasOrganizationName() bool` + +HasOrganizationName returns a boolean if a field has been set. + +### GetPrivate + +`func (o *GetServProfServicesRespContent) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *GetServProfServicesRespContent) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *GetServProfServicesRespContent) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *GetServProfServicesRespContent) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetFeatures + +`func (o *GetServProfServicesRespContent) GetFeatures() GetServProfServicesRespContentfeatures` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *GetServProfServicesRespContent) GetFeaturesOk() (*GetServProfServicesRespContentfeatures, bool)` + +GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatures + +`func (o *GetServProfServicesRespContent) SetFeatures(v GetServProfServicesRespContentfeatures)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *GetServProfServicesRespContent) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetServProfServicesRespContentMetros.md b/services/networkedgev1/docs/GetServProfServicesRespContentMetros.md new file mode 100644 index 00000000..308459a2 --- /dev/null +++ b/services/networkedgev1/docs/GetServProfServicesRespContentMetros.md @@ -0,0 +1,160 @@ +# GetServProfServicesRespContentMetros + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Ibxs** | Pointer to **[]string** | | [optional] +**InTrail** | Pointer to **bool** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewGetServProfServicesRespContentMetros + +`func NewGetServProfServicesRespContentMetros() *GetServProfServicesRespContentMetros` + +NewGetServProfServicesRespContentMetros instantiates a new GetServProfServicesRespContentMetros object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetServProfServicesRespContentMetrosWithDefaults + +`func NewGetServProfServicesRespContentMetrosWithDefaults() *GetServProfServicesRespContentMetros` + +NewGetServProfServicesRespContentMetrosWithDefaults instantiates a new GetServProfServicesRespContentMetros object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *GetServProfServicesRespContentMetros) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GetServProfServicesRespContentMetros) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GetServProfServicesRespContentMetros) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GetServProfServicesRespContentMetros) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetName + +`func (o *GetServProfServicesRespContentMetros) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetServProfServicesRespContentMetros) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetServProfServicesRespContentMetros) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetServProfServicesRespContentMetros) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetIbxs + +`func (o *GetServProfServicesRespContentMetros) GetIbxs() []string` + +GetIbxs returns the Ibxs field if non-nil, zero value otherwise. + +### GetIbxsOk + +`func (o *GetServProfServicesRespContentMetros) GetIbxsOk() (*[]string, bool)` + +GetIbxsOk returns a tuple with the Ibxs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbxs + +`func (o *GetServProfServicesRespContentMetros) SetIbxs(v []string)` + +SetIbxs sets Ibxs field to given value. + +### HasIbxs + +`func (o *GetServProfServicesRespContentMetros) HasIbxs() bool` + +HasIbxs returns a boolean if a field has been set. + +### GetInTrail + +`func (o *GetServProfServicesRespContentMetros) GetInTrail() bool` + +GetInTrail returns the InTrail field if non-nil, zero value otherwise. + +### GetInTrailOk + +`func (o *GetServProfServicesRespContentMetros) GetInTrailOk() (*bool, bool)` + +GetInTrailOk returns a tuple with the InTrail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInTrail + +`func (o *GetServProfServicesRespContentMetros) SetInTrail(v bool)` + +SetInTrail sets InTrail field to given value. + +### HasInTrail + +`func (o *GetServProfServicesRespContentMetros) HasInTrail() bool` + +HasInTrail returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *GetServProfServicesRespContentMetros) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *GetServProfServicesRespContentMetros) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *GetServProfServicesRespContentMetros) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *GetServProfServicesRespContentMetros) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetServProfServicesRespContentfeatures.md b/services/networkedgev1/docs/GetServProfServicesRespContentfeatures.md new file mode 100644 index 00000000..f40e46f2 --- /dev/null +++ b/services/networkedgev1/docs/GetServProfServicesRespContentfeatures.md @@ -0,0 +1,82 @@ +# GetServProfServicesRespContentfeatures + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudReach** | Pointer to **bool** | | [optional] +**TestProfile** | Pointer to **bool** | | [optional] + +## Methods + +### NewGetServProfServicesRespContentfeatures + +`func NewGetServProfServicesRespContentfeatures() *GetServProfServicesRespContentfeatures` + +NewGetServProfServicesRespContentfeatures instantiates a new GetServProfServicesRespContentfeatures object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetServProfServicesRespContentfeaturesWithDefaults + +`func NewGetServProfServicesRespContentfeaturesWithDefaults() *GetServProfServicesRespContentfeatures` + +NewGetServProfServicesRespContentfeaturesWithDefaults instantiates a new GetServProfServicesRespContentfeatures object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCloudReach + +`func (o *GetServProfServicesRespContentfeatures) GetCloudReach() bool` + +GetCloudReach returns the CloudReach field if non-nil, zero value otherwise. + +### GetCloudReachOk + +`func (o *GetServProfServicesRespContentfeatures) GetCloudReachOk() (*bool, bool)` + +GetCloudReachOk returns a tuple with the CloudReach field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudReach + +`func (o *GetServProfServicesRespContentfeatures) SetCloudReach(v bool)` + +SetCloudReach sets CloudReach field to given value. + +### HasCloudReach + +`func (o *GetServProfServicesRespContentfeatures) HasCloudReach() bool` + +HasCloudReach returns a boolean if a field has been set. + +### GetTestProfile + +`func (o *GetServProfServicesRespContentfeatures) GetTestProfile() bool` + +GetTestProfile returns the TestProfile field if non-nil, zero value otherwise. + +### GetTestProfileOk + +`func (o *GetServProfServicesRespContentfeatures) GetTestProfileOk() (*bool, bool)` + +GetTestProfileOk returns a tuple with the TestProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestProfile + +`func (o *GetServProfServicesRespContentfeatures) SetTestProfile(v bool)` + +SetTestProfile sets TestProfile field to given value. + +### HasTestProfile + +`func (o *GetServProfServicesRespContentfeatures) HasTestProfile() bool` + +HasTestProfile returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetSshUserUsingGET404Response.md b/services/networkedgev1/docs/GetSshUserUsingGET404Response.md new file mode 100644 index 00000000..7d3f43dd --- /dev/null +++ b/services/networkedgev1/docs/GetSshUserUsingGET404Response.md @@ -0,0 +1,265 @@ +# GetSshUserUsingGET404Response + +## Enum + + +* `INTERNAL_SERVER_ERROR` (value: `"INTERNAL_SERVER_ERROR"`) + +* `INVALID_JSON_FORMAT` (value: `"INVALID_JSON_FORMAT"`) + +* `RESOURCE_NOT_FOUND` (value: `"RESOURCE_NOT_FOUND"`) + +* `UNAUTHORIZED_USER` (value: `"UNAUTHORIZED_USER"`) + +* `INVALID_REQUEST_FORMAT` (value: `"INVALID_REQUEST_FORMAT"`) + +* `ZONE_NOT_FOUND` (value: `"ZONE_NOT_FOUND"`) + +* `SOURCE_ZONE_NOT_FOUND` (value: `"SOURCE_ZONE_NOT_FOUND"`) + +* `DESTINATION_ZONE_NOT_FOUND` (value: `"DESTINATION_ZONE_NOT_FOUND"`) + +* `ZONES_NOT_PART_SAME_DEVICE` (value: `"ZONES_NOT_PART_SAME_DEVICE"`) + +* `CONNECTION_ALREADY_PART_OF_ZONE` (value: `"CONNECTION_ALREADY_PART_OF_ZONE"`) + +* `ZONE_PART_OF_FIREWALL` (value: `"ZONE_PART_OF_FIREWALL"`) + +* `CONNECTION_NOT_AVAILABLE` (value: `"CONNECTION_NOT_AVAILABLE"`) + +* `ZONE_ALREADY_EXISTS` (value: `"ZONE_ALREADY_EXISTS"`) + +* `FIREWALL_NOT_FOUND` (value: `"FIREWALL_NOT_FOUND"`) + +* `FIREWALL_ALREADY_EXISTS` (value: `"FIREWALL_ALREADY_EXISTS"`) + +* `RULE_ALREADY_EXISTS` (value: `"RULE_ALREADY_EXISTS"`) + +* `RULE_NOT_FOUND` (value: `"RULE_NOT_FOUND"`) + +* `RULE_NOT_PART_OF_FIREWALL` (value: `"RULE_NOT_PART_OF_FIREWALL"`) + +* `VIRTUAL_DEVICE_NOT_FOUND` (value: `"VIRTUAL_DEVICE_NOT_FOUND"`) + +* `VIRTUAL_DEVICE_NOT_PROVISIONED` (value: `"VIRTUAL_DEVICE_NOT_PROVISIONED"`) + +* `DEVICE_LICENSE_NOT_REGISTERED` (value: `"DEVICE_LICENSE_NOT_REGISTERED"`) + +* `MGMT_INTERFACE_NOT_AVAILABLE` (value: `"MGMT_INTERFACE_NOT_AVAILABLE"`) + +* `INTERFACE_NOT_AVAILABLE` (value: `"INTERFACE_NOT_AVAILABLE"`) + +* `INTERFACE_NOT_PROVISIONED` (value: `"INTERFACE_NOT_PROVISIONED"`) + +* `NAT_CONFIG_ALREADY_EXISTS` (value: `"NAT_CONFIG_ALREADY_EXISTS"`) + +* `NAT_CONFIG_NOT_FOUND` (value: `"NAT_CONFIG_NOT_FOUND"`) + +* `ADD_NAT_CONFIG_FAILED` (value: `"ADD_NAT_CONFIG_FAILED"`) + +* `EDIT_NAT_CONFIG_FAILED` (value: `"EDIT_NAT_CONFIG_FAILED"`) + +* `REMOVE_NAT_CONFIG_FAILED` (value: `"REMOVE_NAT_CONFIG_FAILED"`) + +* `NAT_POOL_TYPE_CHANGE_DISABLED` (value: `"NAT_POOL_TYPE_CHANGE_DISABLED"`) + +* `INVALID_ACTION_TYPE` (value: `"INVALID_ACTION_TYPE"`) + +* `INVALID_ADD_ACTION` (value: `"INVALID_ADD_ACTION"`) + +* `INVALID_MODIFY_ACTION` (value: `"INVALID_MODIFY_ACTION"`) + +* `INVALID_STATIC_NAT_UUID` (value: `"INVALID_STATIC_NAT_UUID"`) + +* `OVERLAP_IP_CONFLICT` (value: `"OVERLAP_IP_CONFLICT"`) + +* `CONNECTION_NOT_FOUND` (value: `"CONNECTION_NOT_FOUND"`) + +* `BGP_NOT_FOUND` (value: `"BGP_NOT_FOUND"`) + +* `INVALID_IP_ADDRESS` (value: `"INVALID_IP_ADDRESS"`) + +* `INVALID_NETWORK_SERVICE_TYPE` (value: `"INVALID_NETWORK_SERVICE_TYPE"`) + +* `ERROR_DELETING_CONNECTION` (value: `"ERROR_DELETING_CONNECTION"`) + +* `IBX_NOT_FOUND` (value: `"IBX_NOT_FOUND"`) + +* `PRICE_SERVICE_REQUEST_INVALID` (value: `"PRICE_SERVICE_REQUEST_INVALID"`) + +* `PRICE_SERVICE_REQUEST_FAILED` (value: `"PRICE_SERVICE_REQUEST_FAILED"`) + +* `BGP_CONFIG_NOT_FOUND` (value: `"BGP_CONFIG_NOT_FOUND"`) + +* `BGP_NEIGHBOR_INFO_NOT_FOUND` (value: `"BGP_NEIGHBOR_INFO_NOT_FOUND"`) + +* `LOCAL_IP_ADDRESS_NOT_IN_RANGE` (value: `"LOCAL_IP_ADDRESS_NOT_IN_RANGE"`) + +* `REMOTE_IP_ADDRESS_NOT_IN_RANGE` (value: `"REMOTE_IP_ADDRESS_NOT_IN_RANGE"`) + +* `CONNECTION_DEVICE_NOT_FOUND` (value: `"CONNECTION_DEVICE_NOT_FOUND"`) + +* `CONNECTION_NOT_PROVISIONED` (value: `"CONNECTION_NOT_PROVISIONED"`) + +* `BROADCAST_ADDRESS_NOT_ALLOWED` (value: `"BROADCAST_ADDRESS_NOT_ALLOWED"`) + +* `NETWORK_ADDRESS_NOT_ALLOWED` (value: `"NETWORK_ADDRESS_NOT_ALLOWED"`) + +* `OVERLAP_LOCAL_IP_ADDRESS` (value: `"OVERLAP_LOCAL_IP_ADDRESS"`) + +* `DATA_INTERFACE_NOT_AVAILABLE` (value: `"DATA_INTERFACE_NOT_AVAILABLE"`) + +* `ADD_BGP_CONFIG_FAILED` (value: `"ADD_BGP_CONFIG_FAILED"`) + +* `REMOVE_BGP_CONFIG_FAILED` (value: `"REMOVE_BGP_CONFIG_FAILED"`) + +* `INTERFACE_NOT_FOUND` (value: `"INTERFACE_NOT_FOUND"`) + +* `UPDATE_BGP_CONFIG_FAILED` (value: `"UPDATE_BGP_CONFIG_FAILED"`) + +* `EXISTING_CONNECTION_BGP` (value: `"EXISTING_CONNECTION_BGP"`) + +* `BGP_EXISTING_NAT_SERVICES` (value: `"BGP_EXISTING_NAT_SERVICES"`) + +* `BGP_EXISTING_FIREWALL_SERVICES` (value: `"BGP_EXISTING_FIREWALL_SERVICES"`) + +* `BGP_UPDATE_NOT_ALLOWED` (value: `"BGP_UPDATE_NOT_ALLOWED"`) + +* `BGP_EXISTING_VPN_SERVICES` (value: `"BGP_EXISTING_VPN_SERVICES"`) + +* `REMOTE_LOCAL_SAME_IP_ADDRESS` (value: `"REMOTE_LOCAL_SAME_IP_ADDRESS"`) + +* `BGP_FAILED_ASN_UPDATE` (value: `"BGP_FAILED_ASN_UPDATE"`) + +* `BGP_FAILED_INTERFACE_DESC` (value: `"BGP_FAILED_INTERFACE_DESC"`) + +* `BGP_NSO_FAILED_FETCH` (value: `"BGP_NSO_FAILED_FETCH"`) + +* `BGP_NSO_FAILED_UPDATE` (value: `"BGP_NSO_FAILED_UPDATE"`) + +* `BGP_FAILED_VPN_UPDATE` (value: `"BGP_FAILED_VPN_UPDATE"`) + +* `BGP_RETRY_FAILED` (value: `"BGP_RETRY_FAILED"`) + +* `BGP_NOT_SUPPORTED` (value: `"BGP_NOT_SUPPORTED"`) + +* `BGP_MULTI_ASN_NOT_SUPPORTED` (value: `"BGP_MULTI_ASN_NOT_SUPPORTED"`) + +* `VPN_NAME_ALREADY_IN_USE` (value: `"VPN_NAME_ALREADY_IN_USE"`) + +* `VPN_DEVICE_NOT_FOUND` (value: `"VPN_DEVICE_NOT_FOUND"`) + +* `VPN_DEVICE_CUST_ORG_MISMATCH` (value: `"VPN_DEVICE_CUST_ORG_MISMATCH"`) + +* `VPN_DEVICE_NOT_REGISTERED` (value: `"VPN_DEVICE_NOT_REGISTERED"`) + +* `VPN_NO_CONFIGURED_CLOUD_BGP_FOUND` (value: `"VPN_NO_CONFIGURED_CLOUD_BGP_FOUND"`) + +* `VPN_DEVICE_ASN_NOT_CONFIGURED` (value: `"VPN_DEVICE_ASN_NOT_CONFIGURED"`) + +* `VPN_MATCHING_ASN` (value: `"VPN_MATCHING_ASN"`) + +* `VPN_LIMIT_EXCEEDED` (value: `"VPN_LIMIT_EXCEEDED"`) + +* `VPN_NO_INTERFACES_FOUND` (value: `"VPN_NO_INTERFACES_FOUND"`) + +* `VPN_SSH_INTERFACE_ID_NOT_FOUND` (value: `"VPN_SSH_INTERFACE_ID_NOT_FOUND"`) + +* `VPN_INVALID_SSH_INTERFACE_ID` (value: `"VPN_INVALID_SSH_INTERFACE_ID"`) + +* `VPN_CONFIG_NOT_FOUND` (value: `"VPN_CONFIG_NOT_FOUND"`) + +* `VPN_NSO_CREATE_TRANSIENT_FAILURE` (value: `"VPN_NSO_CREATE_TRANSIENT_FAILURE"`) + +* `VPN_NSO_CREATE_PERMANENT_FAILURE` (value: `"VPN_NSO_CREATE_PERMANENT_FAILURE"`) + +* `VPN_NSO_DELETE_TRANSIENT_FAILURE` (value: `"VPN_NSO_DELETE_TRANSIENT_FAILURE"`) + +* `VPN_NSO_DELETE_PERMANENT_FAILURE` (value: `"VPN_NSO_DELETE_PERMANENT_FAILURE"`) + +* `VPN_PEER_IP_ALREADY_IN_USE` (value: `"VPN_PEER_IP_ALREADY_IN_USE"`) + +* `VPN_DEVICE_MISSING_IPSEC_PACKAGE` (value: `"VPN_DEVICE_MISSING_IPSEC_PACKAGE"`) + +* `VPN_INVALID_STATUS_LIST` (value: `"VPN_INVALID_STATUS_LIST"`) + +* `VPN_RESTRICTED_ASN` (value: `"VPN_RESTRICTED_ASN"`) + +* `VPN_UNAUTHORIZED_ACCESS` (value: `"VPN_UNAUTHORIZED_ACCESS"`) + +* `VPN_ALREADY_DELETED` (value: `"VPN_ALREADY_DELETED"`) + +* `VPN_RESTRICTED_IP_ADDRESS` (value: `"VPN_RESTRICTED_IP_ADDRESS"`) + +* `VPN_NSO_UPDATE_TRANSIENT_FAILURE` (value: `"VPN_NSO_UPDATE_TRANSIENT_FAILURE"`) + +* `VPN_NSO_UPDATE_PERMANENT_FAILURE` (value: `"VPN_NSO_UPDATE_PERMANENT_FAILURE"`) + +* `VPN_IN_PROVISIONING_STATE` (value: `"VPN_IN_PROVISIONING_STATE"`) + +* `VPN_TUNNEL_IP_OVERLAPS_DATA_BGP` (value: `"VPN_TUNNEL_IP_OVERLAPS_DATA_BGP"`) + +* `VPN_TUNNEL_IP_OVERLAP` (value: `"VPN_TUNNEL_IP_OVERLAP"`) + +* `VPN_REMOTE_IP_SAME_AS_EXISTING_DATA_BGP` (value: `"VPN_REMOTE_IP_SAME_AS_EXISTING_DATA_BGP"`) + +* `VPN_REMOTE_IP_ALREADY_IN_USE` (value: `"VPN_REMOTE_IP_ALREADY_IN_USE"`) + +* `VPN_REMOTE_IP_INVALID_FIRST_OCTET` (value: `"VPN_REMOTE_IP_INVALID_FIRST_OCTET"`) + +* `VPN_TUNNEL_IP_INVALID_FIRST_OCTET` (value: `"VPN_TUNNEL_IP_INVALID_FIRST_OCTET"`) + +* `VPN_DEVICE_SSH_NOT_CONFIGURED` (value: `"VPN_DEVICE_SSH_NOT_CONFIGURED"`) + +* `VPN_HA_SECONDARY_REQUEST_REQUIRED` (value: `"VPN_HA_SECONDARY_REQUEST_REQUIRED"`) + +* `VPN_HA_SECONDARY_DEVICE_REQUIRED` (value: `"VPN_HA_SECONDARY_DEVICE_REQUIRED"`) + +* `VPN_HA_ROLLED_BACK` (value: `"VPN_HA_ROLLED_BACK"`) + +* `VPN_HA_REDUNDANT_VPN_DELETED` (value: `"VPN_HA_REDUNDANT_VPN_DELETED"`) + +* `VPN_STATUS_UPDATE_FAILED` (value: `"VPN_STATUS_UPDATE_FAILED"`) + +* `VPN_STATUS_UPDATE_PROCESS_FAILED` (value: `"VPN_STATUS_UPDATE_PROCESS_FAILED"`) + +* `VPN_DEVICE_CLOUD_SEQ_ID_NOT_CONFIGURED` (value: `"VPN_DEVICE_CLOUD_SEQ_ID_NOT_CONFIGURED"`) + +* `SSH_CREATE_USER_FAILED` (value: `"SSH_CREATE_USER_FAILED"`) + +* `SSH_DELETE_USER_FAILED` (value: `"SSH_DELETE_USER_FAILED"`) + +* `TACACS_GET_USERS_FAILED` (value: `"TACACS_GET_USERS_FAILED"`) + +* `SSH_GET_USER_FAILED` (value: `"SSH_GET_USER_FAILED"`) + +* `SSH_UPDATE_USER_FAILED` (value: `"SSH_UPDATE_USER_FAILED"`) + +* `SSH_REPLACE_DEVICE_ASSOCIATION_FAILED` (value: `"SSH_REPLACE_DEVICE_ASSOCIATION_FAILED"`) + +* `SSH_APPEND_DEVICE_ASSOCIATION_FAILED` (value: `"SSH_APPEND_DEVICE_ASSOCIATION_FAILED"`) + +* `SSH_USER_ALREADY_EXISTS` (value: `"SSH_USER_ALREADY_EXISTS"`) + +* `SSH_USER_PARTIAL_FAILURE` (value: `"SSH_USER_PARTIAL_FAILURE"`) + +* `SSH_USER_SERVICE_NOT_SUPPORTED` (value: `"SSH_USER_SERVICE_NOT_SUPPORTED"`) + +* `SSH_USER_UNAUTHORIZED_ACCESS` (value: `"SSH_USER_UNAUTHORIZED_ACCESS"`) + +* `SSH_USER_DELETE_FAILED_ASSOCIATIONS_EXIST` (value: `"SSH_USER_DELETE_FAILED_ASSOCIATIONS_EXIST"`) + +* `SSH_USER_DEVICE_NOT_REGISTERED` (value: `"SSH_USER_DEVICE_NOT_REGISTERED"`) + +* `SSH_USER_DEVICE_STATE_NOT_VALID` (value: `"SSH_USER_DEVICE_STATE_NOT_VALID"`) + +* `SSH_USER_PER_DEVICE_LIMIT_EXCEEDED` (value: `"SSH_USER_PER_DEVICE_LIMIT_EXCEEDED"`) + +* `SSH_USER_DEVICE_IP_ADDRESS_NOT_SET` (value: `"SSH_USER_DEVICE_IP_ADDRESS_NOT_SET"`) + +* `UNABLE_TO_GET_DEVICE_COUNT` (value: `"UNABLE_TO_GET_DEVICE_COUNT"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetValidateAuthKeyRes.md b/services/networkedgev1/docs/GetValidateAuthKeyRes.md new file mode 100644 index 00000000..63eb6945 --- /dev/null +++ b/services/networkedgev1/docs/GetValidateAuthKeyRes.md @@ -0,0 +1,134 @@ +# GetValidateAuthKeyRes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Primary** | Pointer to [**GetValidateAuthkeyresPrimary**](GetValidateAuthkeyresPrimary.md) | | [optional] +**Secondary** | Pointer to [**GetValidateAuthkeyresSecondary**](GetValidateAuthkeyresSecondary.md) | | [optional] + +## Methods + +### NewGetValidateAuthKeyRes + +`func NewGetValidateAuthKeyRes() *GetValidateAuthKeyRes` + +NewGetValidateAuthKeyRes instantiates a new GetValidateAuthKeyRes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetValidateAuthKeyResWithDefaults + +`func NewGetValidateAuthKeyResWithDefaults() *GetValidateAuthKeyRes` + +NewGetValidateAuthKeyResWithDefaults instantiates a new GetValidateAuthKeyRes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *GetValidateAuthKeyRes) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *GetValidateAuthKeyRes) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *GetValidateAuthKeyRes) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *GetValidateAuthKeyRes) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetValidateAuthKeyRes) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetValidateAuthKeyRes) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetValidateAuthKeyRes) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetValidateAuthKeyRes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetPrimary + +`func (o *GetValidateAuthKeyRes) GetPrimary() GetValidateAuthkeyresPrimary` + +GetPrimary returns the Primary field if non-nil, zero value otherwise. + +### GetPrimaryOk + +`func (o *GetValidateAuthKeyRes) GetPrimaryOk() (*GetValidateAuthkeyresPrimary, bool)` + +GetPrimaryOk returns a tuple with the Primary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimary + +`func (o *GetValidateAuthKeyRes) SetPrimary(v GetValidateAuthkeyresPrimary)` + +SetPrimary sets Primary field to given value. + +### HasPrimary + +`func (o *GetValidateAuthKeyRes) HasPrimary() bool` + +HasPrimary returns a boolean if a field has been set. + +### GetSecondary + +`func (o *GetValidateAuthKeyRes) GetSecondary() GetValidateAuthkeyresSecondary` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *GetValidateAuthKeyRes) GetSecondaryOk() (*GetValidateAuthkeyresSecondary, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *GetValidateAuthKeyRes) SetSecondary(v GetValidateAuthkeyresSecondary)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *GetValidateAuthKeyRes) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetValidateAuthkeyresPrimary.md b/services/networkedgev1/docs/GetValidateAuthkeyresPrimary.md new file mode 100644 index 00000000..7045206c --- /dev/null +++ b/services/networkedgev1/docs/GetValidateAuthkeyresPrimary.md @@ -0,0 +1,56 @@ +# GetValidateAuthkeyresPrimary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bandwidth** | Pointer to **string** | | [optional] + +## Methods + +### NewGetValidateAuthkeyresPrimary + +`func NewGetValidateAuthkeyresPrimary() *GetValidateAuthkeyresPrimary` + +NewGetValidateAuthkeyresPrimary instantiates a new GetValidateAuthkeyresPrimary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetValidateAuthkeyresPrimaryWithDefaults + +`func NewGetValidateAuthkeyresPrimaryWithDefaults() *GetValidateAuthkeyresPrimary` + +NewGetValidateAuthkeyresPrimaryWithDefaults instantiates a new GetValidateAuthkeyresPrimary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBandwidth + +`func (o *GetValidateAuthkeyresPrimary) GetBandwidth() string` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *GetValidateAuthkeyresPrimary) GetBandwidthOk() (*string, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *GetValidateAuthkeyresPrimary) SetBandwidth(v string)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *GetValidateAuthkeyresPrimary) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetValidateAuthkeyresSecondary.md b/services/networkedgev1/docs/GetValidateAuthkeyresSecondary.md new file mode 100644 index 00000000..086b96fb --- /dev/null +++ b/services/networkedgev1/docs/GetValidateAuthkeyresSecondary.md @@ -0,0 +1,56 @@ +# GetValidateAuthkeyresSecondary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bandwidth** | Pointer to **string** | | [optional] + +## Methods + +### NewGetValidateAuthkeyresSecondary + +`func NewGetValidateAuthkeyresSecondary() *GetValidateAuthkeyresSecondary` + +NewGetValidateAuthkeyresSecondary instantiates a new GetValidateAuthkeyresSecondary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetValidateAuthkeyresSecondaryWithDefaults + +`func NewGetValidateAuthkeyresSecondaryWithDefaults() *GetValidateAuthkeyresSecondary` + +NewGetValidateAuthkeyresSecondaryWithDefaults instantiates a new GetValidateAuthkeyresSecondary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBandwidth + +`func (o *GetValidateAuthkeyresSecondary) GetBandwidth() string` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *GetValidateAuthkeyresSecondary) GetBandwidthOk() (*string, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *GetValidateAuthkeyresSecondary) SetBandwidth(v string)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *GetValidateAuthkeyresSecondary) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetVpnByUuidUsingGET404Response.md b/services/networkedgev1/docs/GetVpnByUuidUsingGET404Response.md new file mode 100644 index 00000000..4bfc20d8 --- /dev/null +++ b/services/networkedgev1/docs/GetVpnByUuidUsingGET404Response.md @@ -0,0 +1,193 @@ +# GetVpnByUuidUsingGET404Response + +## Enum + + +* `INTERNAL_SERVER_ERROR` (value: `"INTERNAL_SERVER_ERROR"`) + +* `INVALID_JSON_FORMAT` (value: `"INVALID_JSON_FORMAT"`) + +* `RESOURCE_NOT_FOUND` (value: `"RESOURCE_NOT_FOUND"`) + +* `UNAUTHORIZED_USER` (value: `"UNAUTHORIZED_USER"`) + +* `INVALID_REQUEST_FORMAT` (value: `"INVALID_REQUEST_FORMAT"`) + +* `ZONE_NOT_FOUND` (value: `"ZONE_NOT_FOUND"`) + +* `SOURCE_ZONE_NOT_FOUND` (value: `"SOURCE_ZONE_NOT_FOUND"`) + +* `DESTINATION_ZONE_NOT_FOUND` (value: `"DESTINATION_ZONE_NOT_FOUND"`) + +* `ZONES_NOT_PART_SAME_DEVICE` (value: `"ZONES_NOT_PART_SAME_DEVICE"`) + +* `CONNECTION_ALREADY_PART_OF_ZONE` (value: `"CONNECTION_ALREADY_PART_OF_ZONE"`) + +* `ZONE_PART_OF_FIREWALL` (value: `"ZONE_PART_OF_FIREWALL"`) + +* `CONNECTION_NOT_AVAILABLE` (value: `"CONNECTION_NOT_AVAILABLE"`) + +* `ZONE_ALREADY_EXISTS` (value: `"ZONE_ALREADY_EXISTS"`) + +* `FIREWALL_NOT_FOUND` (value: `"FIREWALL_NOT_FOUND"`) + +* `FIREWALL_ALREADY_EXISTS` (value: `"FIREWALL_ALREADY_EXISTS"`) + +* `RULE_ALREADY_EXISTS` (value: `"RULE_ALREADY_EXISTS"`) + +* `RULE_NOT_FOUND` (value: `"RULE_NOT_FOUND"`) + +* `RULE_NOT_PART_OF_FIREWALL` (value: `"RULE_NOT_PART_OF_FIREWALL"`) + +* `VIRTUAL_DEVICE_NOT_FOUND` (value: `"VIRTUAL_DEVICE_NOT_FOUND"`) + +* `VIRTUAL_DEVICE_NOT_PROVISIONED` (value: `"VIRTUAL_DEVICE_NOT_PROVISIONED"`) + +* `DEVICE_LICENSE_NOT_REGISTERED` (value: `"DEVICE_LICENSE_NOT_REGISTERED"`) + +* `MGMT_INTERFACE_NOT_AVAILABLE` (value: `"MGMT_INTERFACE_NOT_AVAILABLE"`) + +* `INTERFACE_NOT_AVAILABLE` (value: `"INTERFACE_NOT_AVAILABLE"`) + +* `INTERFACE_NOT_PROVISIONED` (value: `"INTERFACE_NOT_PROVISIONED"`) + +* `NAT_CONFIG_ALREADY_EXISTS` (value: `"NAT_CONFIG_ALREADY_EXISTS"`) + +* `NAT_CONFIG_NOT_FOUND` (value: `"NAT_CONFIG_NOT_FOUND"`) + +* `ADD_NAT_CONFIG_FAILED` (value: `"ADD_NAT_CONFIG_FAILED"`) + +* `EDIT_NAT_CONFIG_FAILED` (value: `"EDIT_NAT_CONFIG_FAILED"`) + +* `REMOVE_NAT_CONFIG_FAILED` (value: `"REMOVE_NAT_CONFIG_FAILED"`) + +* `NAT_POOL_TYPE_CHANGE_DISABLED` (value: `"NAT_POOL_TYPE_CHANGE_DISABLED"`) + +* `INVALID_ACTION_TYPE` (value: `"INVALID_ACTION_TYPE"`) + +* `INVALID_ADD_ACTION` (value: `"INVALID_ADD_ACTION"`) + +* `INVALID_MODIFY_ACTION` (value: `"INVALID_MODIFY_ACTION"`) + +* `INVALID_STATIC_NAT_UUID` (value: `"INVALID_STATIC_NAT_UUID"`) + +* `OVERLAP_IP_CONFLICT` (value: `"OVERLAP_IP_CONFLICT"`) + +* `CONNECTION_NOT_FOUND` (value: `"CONNECTION_NOT_FOUND"`) + +* `BGP_NOT_FOUND` (value: `"BGP_NOT_FOUND"`) + +* `INVALID_IP_ADDRESS` (value: `"INVALID_IP_ADDRESS"`) + +* `INVALID_NETWORK_SERVICE_TYPE` (value: `"INVALID_NETWORK_SERVICE_TYPE"`) + +* `IBX_NOT_FOUND` (value: `"IBX_NOT_FOUND"`) + +* `PRICE_SERVICE_REQUEST_INVALID` (value: `"PRICE_SERVICE_REQUEST_INVALID"`) + +* `PRICE_SERVICE_REQUEST_FAILED` (value: `"PRICE_SERVICE_REQUEST_FAILED"`) + +* `BGP_CONFIG_NOT_FOUND` (value: `"BGP_CONFIG_NOT_FOUND"`) + +* `BGP_NEIGHBOR_INFO_NOT_FOUND` (value: `"BGP_NEIGHBOR_INFO_NOT_FOUND"`) + +* `LOCAL_IP_ADDRESS_NOT_IN_RANGE` (value: `"LOCAL_IP_ADDRESS_NOT_IN_RANGE"`) + +* `REMOTE_IP_ADDRESS_NOT_IN_RANGE` (value: `"REMOTE_IP_ADDRESS_NOT_IN_RANGE"`) + +* `CONNECTION_DEVICE_NOT_FOUND` (value: `"CONNECTION_DEVICE_NOT_FOUND"`) + +* `CONNECTION_NOT_PROVISIONED` (value: `"CONNECTION_NOT_PROVISIONED"`) + +* `BROADCAST_ADDRESS_NOT_ALLOWED` (value: `"BROADCAST_ADDRESS_NOT_ALLOWED"`) + +* `NETWORK_ADDRESS_NOT_ALLOWED` (value: `"NETWORK_ADDRESS_NOT_ALLOWED"`) + +* `OVERLAP_LOCAL_IP_ADDRESS` (value: `"OVERLAP_LOCAL_IP_ADDRESS"`) + +* `DATA_INTERFACE_NOT_AVAILABLE` (value: `"DATA_INTERFACE_NOT_AVAILABLE"`) + +* `ADD_BGP_CONFIG_FAILED` (value: `"ADD_BGP_CONFIG_FAILED"`) + +* `REMOVE_BGP_CONFIG_FAILED` (value: `"REMOVE_BGP_CONFIG_FAILED"`) + +* `INTERFACE_NOT_FOUND` (value: `"INTERFACE_NOT_FOUND"`) + +* `UPDATE_BGP_CONFIG_FAILED` (value: `"UPDATE_BGP_CONFIG_FAILED"`) + +* `EXISTING_CONNECTION_BGP` (value: `"EXISTING_CONNECTION_BGP"`) + +* `BGP_EXISTING_NAT_SERVICES` (value: `"BGP_EXISTING_NAT_SERVICES"`) + +* `BGP_EXISTING_FIREWALL_SERVICES` (value: `"BGP_EXISTING_FIREWALL_SERVICES"`) + +* `BGP_UPDATE_NOT_ALLOWED` (value: `"BGP_UPDATE_NOT_ALLOWED"`) + +* `BGP_EXISTING_VPN_SERVICES` (value: `"BGP_EXISTING_VPN_SERVICES"`) + +* `REMOTE_LOCAL_SAME_IP_ADDRESS` (value: `"REMOTE_LOCAL_SAME_IP_ADDRESS"`) + +* `BGP_FAILED_ASN_UPDATE` (value: `"BGP_FAILED_ASN_UPDATE"`) + +* `BGP_FAILED_INTERFACE_DESC` (value: `"BGP_FAILED_INTERFACE_DESC"`) + +* `BGP_NSO_FAILED_FETCH` (value: `"BGP_NSO_FAILED_FETCH"`) + +* `BGP_NSO_FAILED_UPDATE` (value: `"BGP_NSO_FAILED_UPDATE"`) + +* `BGP_FAILED_VPN_UPDATE` (value: `"BGP_FAILED_VPN_UPDATE"`) + +* `BGP_RETRY_FAILED` (value: `"BGP_RETRY_FAILED"`) + +* `VPN_NAME_ALREADY_IN_USE` (value: `"VPN_NAME_ALREADY_IN_USE"`) + +* `VPN_DEVICE_NOT_FOUND` (value: `"VPN_DEVICE_NOT_FOUND"`) + +* `VPN_DEVICE_USER_KEY_MISMATCH` (value: `"VPN_DEVICE_USER_KEY_MISMATCH"`) + +* `VPN_DEVICE_NOT_REGISTERED` (value: `"VPN_DEVICE_NOT_REGISTERED"`) + +* `VPN_NO_CONFIGURED_CLOUD_BGP_FOUND` (value: `"VPN_NO_CONFIGURED_CLOUD_BGP_FOUND"`) + +* `VPN_DEVICE_ASN_NOT_CONFIGURED` (value: `"VPN_DEVICE_ASN_NOT_CONFIGURED"`) + +* `VPN_MATCHING_ASN` (value: `"VPN_MATCHING_ASN"`) + +* `VPN_LIMIT_EXCEEDED` (value: `"VPN_LIMIT_EXCEEDED"`) + +* `VPN_NO_INTERFACES_FOUND` (value: `"VPN_NO_INTERFACES_FOUND"`) + +* `VPN_SSH_INTERFACE_ID_NOT_FOUND` (value: `"VPN_SSH_INTERFACE_ID_NOT_FOUND"`) + +* `VPN_INVALID_SSH_INTERFACE_ID` (value: `"VPN_INVALID_SSH_INTERFACE_ID"`) + +* `VPN_CONFIG_NOT_FOUND` (value: `"VPN_CONFIG_NOT_FOUND"`) + +* `VPN_NSO_CREATE_TRANSIENT_FAILURE` (value: `"VPN_NSO_CREATE_TRANSIENT_FAILURE"`) + +* `VPN_NSO_CREATE_PERMANENT_FAILURE` (value: `"VPN_NSO_CREATE_PERMANENT_FAILURE"`) + +* `VPN_NSO_DELETE_TRANSIENT_FAILURE` (value: `"VPN_NSO_DELETE_TRANSIENT_FAILURE"`) + +* `VPN_NSO_DELETE_PERMANENT_FAILURE` (value: `"VPN_NSO_DELETE_PERMANENT_FAILURE"`) + +* `VPN_PEER_IP_ALREADY_IN_USE` (value: `"VPN_PEER_IP_ALREADY_IN_USE"`) + +* `VPN_DEVICE_MISSING_IPSEC_PACKAGE` (value: `"VPN_DEVICE_MISSING_IPSEC_PACKAGE"`) + +* `VPN_INVALID_STATUS_LIST` (value: `"VPN_INVALID_STATUS_LIST"`) + +* `VPN_RESTRICTED_ASN` (value: `"VPN_RESTRICTED_ASN"`) + +* `VPN_UNAUTHORIZED_ACCESS` (value: `"VPN_UNAUTHORIZED_ACCESS"`) + +* `VPN_ALREADY_DELETED` (value: `"VPN_ALREADY_DELETED"`) + +* `VPN_RESTRICTED_IP_ADDRESS` (value: `"VPN_RESTRICTED_IP_ADDRESS"`) + +* `VPN_DEVICE_NOT_IN_READY_STATE` (value: `"VPN_DEVICE_NOT_IN_READY_STATE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/GetVpnsUsingGETStatusListParameterInner.md b/services/networkedgev1/docs/GetVpnsUsingGETStatusListParameterInner.md new file mode 100644 index 00000000..2004a80a --- /dev/null +++ b/services/networkedgev1/docs/GetVpnsUsingGETStatusListParameterInner.md @@ -0,0 +1,31 @@ +# GetVpnsUsingGETStatusListParameterInner + +## Enum + + +* `PROVISIONED` (value: `"PROVISIONED"`) + +* `PROVISIONING` (value: `"PROVISIONING"`) + +* `PROVISIONING_RETRYING` (value: `"PROVISIONING_RETRYING"`) + +* `UPDATING` (value: `"UPDATING"`) + +* `PROVISIONING_UPDATE_RETRYING` (value: `"PROVISIONING_UPDATE_RETRYING"`) + +* `DEPROVISIONED` (value: `"DEPROVISIONED"`) + +* `DEPROVISIONING` (value: `"DEPROVISIONING"`) + +* `DEPROVISIONING_RETRYING` (value: `"DEPROVISIONING_RETRYING"`) + +* `PROVISIONING_FAILED` (value: `"PROVISIONING_FAILED"`) + +* `PROVISIONING_UPDATE_FAILED` (value: `"PROVISIONING_UPDATE_FAILED"`) + +* `DEPROVISIONING_FAILED` (value: `"DEPROVISIONING_FAILED"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ImpactedServices.md b/services/networkedgev1/docs/ImpactedServices.md new file mode 100644 index 00000000..d8eb0299 --- /dev/null +++ b/services/networkedgev1/docs/ImpactedServices.md @@ -0,0 +1,160 @@ +# ImpactedServices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceName** | Pointer to **string** | The name of the impacted service. | [optional] +**Impact** | Pointer to **string** | The type of impact, whether the impacted service is down or delayed. | [optional] +**ServiceStartTime** | Pointer to **string** | Start of the downtime of the service. | [optional] +**ServiceEndTime** | Pointer to **string** | End of the downtime of the service. | [optional] +**ErrorMessage** | Pointer to **string** | Downtime message of the service. | [optional] + +## Methods + +### NewImpactedServices + +`func NewImpactedServices() *ImpactedServices` + +NewImpactedServices instantiates a new ImpactedServices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImpactedServicesWithDefaults + +`func NewImpactedServicesWithDefaults() *ImpactedServices` + +NewImpactedServicesWithDefaults instantiates a new ImpactedServices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceName + +`func (o *ImpactedServices) GetServiceName() string` + +GetServiceName returns the ServiceName field if non-nil, zero value otherwise. + +### GetServiceNameOk + +`func (o *ImpactedServices) GetServiceNameOk() (*string, bool)` + +GetServiceNameOk returns a tuple with the ServiceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceName + +`func (o *ImpactedServices) SetServiceName(v string)` + +SetServiceName sets ServiceName field to given value. + +### HasServiceName + +`func (o *ImpactedServices) HasServiceName() bool` + +HasServiceName returns a boolean if a field has been set. + +### GetImpact + +`func (o *ImpactedServices) GetImpact() string` + +GetImpact returns the Impact field if non-nil, zero value otherwise. + +### GetImpactOk + +`func (o *ImpactedServices) GetImpactOk() (*string, bool)` + +GetImpactOk returns a tuple with the Impact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImpact + +`func (o *ImpactedServices) SetImpact(v string)` + +SetImpact sets Impact field to given value. + +### HasImpact + +`func (o *ImpactedServices) HasImpact() bool` + +HasImpact returns a boolean if a field has been set. + +### GetServiceStartTime + +`func (o *ImpactedServices) GetServiceStartTime() string` + +GetServiceStartTime returns the ServiceStartTime field if non-nil, zero value otherwise. + +### GetServiceStartTimeOk + +`func (o *ImpactedServices) GetServiceStartTimeOk() (*string, bool)` + +GetServiceStartTimeOk returns a tuple with the ServiceStartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceStartTime + +`func (o *ImpactedServices) SetServiceStartTime(v string)` + +SetServiceStartTime sets ServiceStartTime field to given value. + +### HasServiceStartTime + +`func (o *ImpactedServices) HasServiceStartTime() bool` + +HasServiceStartTime returns a boolean if a field has been set. + +### GetServiceEndTime + +`func (o *ImpactedServices) GetServiceEndTime() string` + +GetServiceEndTime returns the ServiceEndTime field if non-nil, zero value otherwise. + +### GetServiceEndTimeOk + +`func (o *ImpactedServices) GetServiceEndTimeOk() (*string, bool)` + +GetServiceEndTimeOk returns a tuple with the ServiceEndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceEndTime + +`func (o *ImpactedServices) SetServiceEndTime(v string)` + +SetServiceEndTime sets ServiceEndTime field to given value. + +### HasServiceEndTime + +`func (o *ImpactedServices) HasServiceEndTime() bool` + +HasServiceEndTime returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *ImpactedServices) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *ImpactedServices) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *ImpactedServices) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *ImpactedServices) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InboundRules.md b/services/networkedgev1/docs/InboundRules.md new file mode 100644 index 00000000..4c96ce58 --- /dev/null +++ b/services/networkedgev1/docs/InboundRules.md @@ -0,0 +1,186 @@ +# InboundRules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Protocol** | Pointer to **string** | Protocol. | [optional] +**SrcPort** | Pointer to **string** | Source port. | [optional] +**DstPort** | Pointer to **string** | Destination port. | [optional] +**Subnet** | Pointer to **string** | An array of subnets. | [optional] +**SeqNo** | Pointer to **int32** | The sequence number of the inbound rule. | [optional] +**Description** | Pointer to **string** | Description of the inboundRule. | [optional] + +## Methods + +### NewInboundRules + +`func NewInboundRules() *InboundRules` + +NewInboundRules instantiates a new InboundRules object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInboundRulesWithDefaults + +`func NewInboundRulesWithDefaults() *InboundRules` + +NewInboundRulesWithDefaults instantiates a new InboundRules object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProtocol + +`func (o *InboundRules) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *InboundRules) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *InboundRules) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *InboundRules) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetSrcPort + +`func (o *InboundRules) GetSrcPort() string` + +GetSrcPort returns the SrcPort field if non-nil, zero value otherwise. + +### GetSrcPortOk + +`func (o *InboundRules) GetSrcPortOk() (*string, bool)` + +GetSrcPortOk returns a tuple with the SrcPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrcPort + +`func (o *InboundRules) SetSrcPort(v string)` + +SetSrcPort sets SrcPort field to given value. + +### HasSrcPort + +`func (o *InboundRules) HasSrcPort() bool` + +HasSrcPort returns a boolean if a field has been set. + +### GetDstPort + +`func (o *InboundRules) GetDstPort() string` + +GetDstPort returns the DstPort field if non-nil, zero value otherwise. + +### GetDstPortOk + +`func (o *InboundRules) GetDstPortOk() (*string, bool)` + +GetDstPortOk returns a tuple with the DstPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDstPort + +`func (o *InboundRules) SetDstPort(v string)` + +SetDstPort sets DstPort field to given value. + +### HasDstPort + +`func (o *InboundRules) HasDstPort() bool` + +HasDstPort returns a boolean if a field has been set. + +### GetSubnet + +`func (o *InboundRules) GetSubnet() string` + +GetSubnet returns the Subnet field if non-nil, zero value otherwise. + +### GetSubnetOk + +`func (o *InboundRules) GetSubnetOk() (*string, bool)` + +GetSubnetOk returns a tuple with the Subnet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnet + +`func (o *InboundRules) SetSubnet(v string)` + +SetSubnet sets Subnet field to given value. + +### HasSubnet + +`func (o *InboundRules) HasSubnet() bool` + +HasSubnet returns a boolean if a field has been set. + +### GetSeqNo + +`func (o *InboundRules) GetSeqNo() int32` + +GetSeqNo returns the SeqNo field if non-nil, zero value otherwise. + +### GetSeqNoOk + +`func (o *InboundRules) GetSeqNoOk() (*int32, bool)` + +GetSeqNoOk returns a tuple with the SeqNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeqNo + +`func (o *InboundRules) SetSeqNo(v int32)` + +SetSeqNo sets SeqNo field to given value. + +### HasSeqNo + +`func (o *InboundRules) HasSeqNo() bool` + +HasSeqNo returns a boolean if a field has been set. + +### GetDescription + +`func (o *InboundRules) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *InboundRules) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *InboundRules) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *InboundRules) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InitialDeviceACLResponse.md b/services/networkedgev1/docs/InitialDeviceACLResponse.md new file mode 100644 index 00000000..7e487960 --- /dev/null +++ b/services/networkedgev1/docs/InitialDeviceACLResponse.md @@ -0,0 +1,82 @@ +# InitialDeviceACLResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclTemplate** | Pointer to [**DeviceACLDetailsResponse**](DeviceACLDetailsResponse.md) | | [optional] +**MgmtAclTemplate** | Pointer to [**DeviceACLDetailsResponse**](DeviceACLDetailsResponse.md) | | [optional] + +## Methods + +### NewInitialDeviceACLResponse + +`func NewInitialDeviceACLResponse() *InitialDeviceACLResponse` + +NewInitialDeviceACLResponse instantiates a new InitialDeviceACLResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInitialDeviceACLResponseWithDefaults + +`func NewInitialDeviceACLResponseWithDefaults() *InitialDeviceACLResponse` + +NewInitialDeviceACLResponseWithDefaults instantiates a new InitialDeviceACLResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAclTemplate + +`func (o *InitialDeviceACLResponse) GetAclTemplate() DeviceACLDetailsResponse` + +GetAclTemplate returns the AclTemplate field if non-nil, zero value otherwise. + +### GetAclTemplateOk + +`func (o *InitialDeviceACLResponse) GetAclTemplateOk() (*DeviceACLDetailsResponse, bool)` + +GetAclTemplateOk returns a tuple with the AclTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAclTemplate + +`func (o *InitialDeviceACLResponse) SetAclTemplate(v DeviceACLDetailsResponse)` + +SetAclTemplate sets AclTemplate field to given value. + +### HasAclTemplate + +`func (o *InitialDeviceACLResponse) HasAclTemplate() bool` + +HasAclTemplate returns a boolean if a field has been set. + +### GetMgmtAclTemplate + +`func (o *InitialDeviceACLResponse) GetMgmtAclTemplate() DeviceACLDetailsResponse` + +GetMgmtAclTemplate returns the MgmtAclTemplate field if non-nil, zero value otherwise. + +### GetMgmtAclTemplateOk + +`func (o *InitialDeviceACLResponse) GetMgmtAclTemplateOk() (*DeviceACLDetailsResponse, bool)` + +GetMgmtAclTemplateOk returns a tuple with the MgmtAclTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtAclTemplate + +`func (o *InitialDeviceACLResponse) SetMgmtAclTemplate(v DeviceACLDetailsResponse)` + +SetMgmtAclTemplate sets MgmtAclTemplate field to given value. + +### HasMgmtAclTemplate + +`func (o *InitialDeviceACLResponse) HasMgmtAclTemplate() bool` + +HasMgmtAclTemplate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InterfaceBasicInfoResponse.md b/services/networkedgev1/docs/InterfaceBasicInfoResponse.md new file mode 100644 index 00000000..c0cb29db --- /dev/null +++ b/services/networkedgev1/docs/InterfaceBasicInfoResponse.md @@ -0,0 +1,238 @@ +# InterfaceBasicInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **float32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**OperationStatus** | Pointer to **string** | | [optional] +**MacAddress** | Pointer to **string** | | [optional] +**IpAddress** | Pointer to **string** | | [optional] +**AssignedType** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | The type of interface. | [optional] + +## Methods + +### NewInterfaceBasicInfoResponse + +`func NewInterfaceBasicInfoResponse() *InterfaceBasicInfoResponse` + +NewInterfaceBasicInfoResponse instantiates a new InterfaceBasicInfoResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceBasicInfoResponseWithDefaults + +`func NewInterfaceBasicInfoResponseWithDefaults() *InterfaceBasicInfoResponse` + +NewInterfaceBasicInfoResponseWithDefaults instantiates a new InterfaceBasicInfoResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *InterfaceBasicInfoResponse) GetId() float32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *InterfaceBasicInfoResponse) GetIdOk() (*float32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *InterfaceBasicInfoResponse) SetId(v float32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *InterfaceBasicInfoResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *InterfaceBasicInfoResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *InterfaceBasicInfoResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *InterfaceBasicInfoResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *InterfaceBasicInfoResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetStatus + +`func (o *InterfaceBasicInfoResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InterfaceBasicInfoResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InterfaceBasicInfoResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *InterfaceBasicInfoResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetOperationStatus + +`func (o *InterfaceBasicInfoResponse) GetOperationStatus() string` + +GetOperationStatus returns the OperationStatus field if non-nil, zero value otherwise. + +### GetOperationStatusOk + +`func (o *InterfaceBasicInfoResponse) GetOperationStatusOk() (*string, bool)` + +GetOperationStatusOk returns a tuple with the OperationStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationStatus + +`func (o *InterfaceBasicInfoResponse) SetOperationStatus(v string)` + +SetOperationStatus sets OperationStatus field to given value. + +### HasOperationStatus + +`func (o *InterfaceBasicInfoResponse) HasOperationStatus() bool` + +HasOperationStatus returns a boolean if a field has been set. + +### GetMacAddress + +`func (o *InterfaceBasicInfoResponse) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *InterfaceBasicInfoResponse) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *InterfaceBasicInfoResponse) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + +### HasMacAddress + +`func (o *InterfaceBasicInfoResponse) HasMacAddress() bool` + +HasMacAddress returns a boolean if a field has been set. + +### GetIpAddress + +`func (o *InterfaceBasicInfoResponse) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *InterfaceBasicInfoResponse) GetIpAddressOk() (*string, bool)` + +GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddress + +`func (o *InterfaceBasicInfoResponse) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *InterfaceBasicInfoResponse) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +### GetAssignedType + +`func (o *InterfaceBasicInfoResponse) GetAssignedType() string` + +GetAssignedType returns the AssignedType field if non-nil, zero value otherwise. + +### GetAssignedTypeOk + +`func (o *InterfaceBasicInfoResponse) GetAssignedTypeOk() (*string, bool)` + +GetAssignedTypeOk returns a tuple with the AssignedType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedType + +`func (o *InterfaceBasicInfoResponse) SetAssignedType(v string)` + +SetAssignedType sets AssignedType field to given value. + +### HasAssignedType + +`func (o *InterfaceBasicInfoResponse) HasAssignedType() bool` + +HasAssignedType returns a boolean if a field has been set. + +### GetType + +`func (o *InterfaceBasicInfoResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *InterfaceBasicInfoResponse) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *InterfaceBasicInfoResponse) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *InterfaceBasicInfoResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InterfaceDetails.md b/services/networkedgev1/docs/InterfaceDetails.md new file mode 100644 index 00000000..7c29664a --- /dev/null +++ b/services/networkedgev1/docs/InterfaceDetails.md @@ -0,0 +1,134 @@ +# InterfaceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the interface | [optional] +**Description** | Pointer to **string** | Description of the interface | [optional] +**InterfaceId** | Pointer to **string** | Interface Id. | [optional] +**Status** | Pointer to **string** | Status of the interface. | [optional] + +## Methods + +### NewInterfaceDetails + +`func NewInterfaceDetails() *InterfaceDetails` + +NewInterfaceDetails instantiates a new InterfaceDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceDetailsWithDefaults + +`func NewInterfaceDetailsWithDefaults() *InterfaceDetails` + +NewInterfaceDetailsWithDefaults instantiates a new InterfaceDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *InterfaceDetails) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *InterfaceDetails) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *InterfaceDetails) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *InterfaceDetails) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *InterfaceDetails) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *InterfaceDetails) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *InterfaceDetails) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *InterfaceDetails) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInterfaceId + +`func (o *InterfaceDetails) GetInterfaceId() string` + +GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise. + +### GetInterfaceIdOk + +`func (o *InterfaceDetails) GetInterfaceIdOk() (*string, bool)` + +GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceId + +`func (o *InterfaceDetails) SetInterfaceId(v string)` + +SetInterfaceId sets InterfaceId field to given value. + +### HasInterfaceId + +`func (o *InterfaceDetails) HasInterfaceId() bool` + +HasInterfaceId returns a boolean if a field has been set. + +### GetStatus + +`func (o *InterfaceDetails) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InterfaceDetails) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InterfaceDetails) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *InterfaceDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InterfaceStatsDetailObject.md b/services/networkedgev1/docs/InterfaceStatsDetailObject.md new file mode 100644 index 00000000..1ae77683 --- /dev/null +++ b/services/networkedgev1/docs/InterfaceStatsDetailObject.md @@ -0,0 +1,160 @@ +# InterfaceStatsDetailObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDateTime** | Pointer to **string** | Start time of the duration for which you want stats. | [optional] +**EndDateTime** | Pointer to **string** | End time of the duration for which you want stats. | [optional] +**Unit** | Pointer to **string** | Unit. | [optional] +**Inbound** | Pointer to [**InterfaceStatsofTraffic**](InterfaceStatsofTraffic.md) | | [optional] +**Outbound** | Pointer to [**InterfaceStatsofTraffic**](InterfaceStatsofTraffic.md) | | [optional] + +## Methods + +### NewInterfaceStatsDetailObject + +`func NewInterfaceStatsDetailObject() *InterfaceStatsDetailObject` + +NewInterfaceStatsDetailObject instantiates a new InterfaceStatsDetailObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceStatsDetailObjectWithDefaults + +`func NewInterfaceStatsDetailObjectWithDefaults() *InterfaceStatsDetailObject` + +NewInterfaceStatsDetailObjectWithDefaults instantiates a new InterfaceStatsDetailObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDateTime + +`func (o *InterfaceStatsDetailObject) GetStartDateTime() string` + +GetStartDateTime returns the StartDateTime field if non-nil, zero value otherwise. + +### GetStartDateTimeOk + +`func (o *InterfaceStatsDetailObject) GetStartDateTimeOk() (*string, bool)` + +GetStartDateTimeOk returns a tuple with the StartDateTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDateTime + +`func (o *InterfaceStatsDetailObject) SetStartDateTime(v string)` + +SetStartDateTime sets StartDateTime field to given value. + +### HasStartDateTime + +`func (o *InterfaceStatsDetailObject) HasStartDateTime() bool` + +HasStartDateTime returns a boolean if a field has been set. + +### GetEndDateTime + +`func (o *InterfaceStatsDetailObject) GetEndDateTime() string` + +GetEndDateTime returns the EndDateTime field if non-nil, zero value otherwise. + +### GetEndDateTimeOk + +`func (o *InterfaceStatsDetailObject) GetEndDateTimeOk() (*string, bool)` + +GetEndDateTimeOk returns a tuple with the EndDateTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDateTime + +`func (o *InterfaceStatsDetailObject) SetEndDateTime(v string)` + +SetEndDateTime sets EndDateTime field to given value. + +### HasEndDateTime + +`func (o *InterfaceStatsDetailObject) HasEndDateTime() bool` + +HasEndDateTime returns a boolean if a field has been set. + +### GetUnit + +`func (o *InterfaceStatsDetailObject) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *InterfaceStatsDetailObject) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *InterfaceStatsDetailObject) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *InterfaceStatsDetailObject) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetInbound + +`func (o *InterfaceStatsDetailObject) GetInbound() InterfaceStatsofTraffic` + +GetInbound returns the Inbound field if non-nil, zero value otherwise. + +### GetInboundOk + +`func (o *InterfaceStatsDetailObject) GetInboundOk() (*InterfaceStatsofTraffic, bool)` + +GetInboundOk returns a tuple with the Inbound field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInbound + +`func (o *InterfaceStatsDetailObject) SetInbound(v InterfaceStatsofTraffic)` + +SetInbound sets Inbound field to given value. + +### HasInbound + +`func (o *InterfaceStatsDetailObject) HasInbound() bool` + +HasInbound returns a boolean if a field has been set. + +### GetOutbound + +`func (o *InterfaceStatsDetailObject) GetOutbound() InterfaceStatsofTraffic` + +GetOutbound returns the Outbound field if non-nil, zero value otherwise. + +### GetOutboundOk + +`func (o *InterfaceStatsDetailObject) GetOutboundOk() (*InterfaceStatsofTraffic, bool)` + +GetOutboundOk returns a tuple with the Outbound field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutbound + +`func (o *InterfaceStatsDetailObject) SetOutbound(v InterfaceStatsofTraffic)` + +SetOutbound sets Outbound field to given value. + +### HasOutbound + +`func (o *InterfaceStatsDetailObject) HasOutbound() bool` + +HasOutbound returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InterfaceStatsObject.md b/services/networkedgev1/docs/InterfaceStatsObject.md new file mode 100644 index 00000000..afd8969b --- /dev/null +++ b/services/networkedgev1/docs/InterfaceStatsObject.md @@ -0,0 +1,56 @@ +# InterfaceStatsObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stats** | Pointer to [**InterfaceStatsDetailObject**](InterfaceStatsDetailObject.md) | | [optional] + +## Methods + +### NewInterfaceStatsObject + +`func NewInterfaceStatsObject() *InterfaceStatsObject` + +NewInterfaceStatsObject instantiates a new InterfaceStatsObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceStatsObjectWithDefaults + +`func NewInterfaceStatsObjectWithDefaults() *InterfaceStatsObject` + +NewInterfaceStatsObjectWithDefaults instantiates a new InterfaceStatsObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStats + +`func (o *InterfaceStatsObject) GetStats() InterfaceStatsDetailObject` + +GetStats returns the Stats field if non-nil, zero value otherwise. + +### GetStatsOk + +`func (o *InterfaceStatsObject) GetStatsOk() (*InterfaceStatsDetailObject, bool)` + +GetStatsOk returns a tuple with the Stats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStats + +`func (o *InterfaceStatsObject) SetStats(v InterfaceStatsDetailObject)` + +SetStats sets Stats field to given value. + +### HasStats + +`func (o *InterfaceStatsObject) HasStats() bool` + +HasStats returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/InterfaceStatsofTraffic.md b/services/networkedgev1/docs/InterfaceStatsofTraffic.md new file mode 100644 index 00000000..1ca1ab37 --- /dev/null +++ b/services/networkedgev1/docs/InterfaceStatsofTraffic.md @@ -0,0 +1,134 @@ +# InterfaceStatsofTraffic + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Max** | Pointer to **float32** | Max throughput during the time interval. | [optional] +**Mean** | Pointer to **float32** | Mean throughput during the time interval. | [optional] +**LastPolled** | Pointer to **float32** | The throughput of the last polled data. | [optional] +**Metrics** | Pointer to [**[]PolledThroughputMetrics**](PolledThroughputMetrics.md) | | [optional] + +## Methods + +### NewInterfaceStatsofTraffic + +`func NewInterfaceStatsofTraffic() *InterfaceStatsofTraffic` + +NewInterfaceStatsofTraffic instantiates a new InterfaceStatsofTraffic object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceStatsofTrafficWithDefaults + +`func NewInterfaceStatsofTrafficWithDefaults() *InterfaceStatsofTraffic` + +NewInterfaceStatsofTrafficWithDefaults instantiates a new InterfaceStatsofTraffic object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMax + +`func (o *InterfaceStatsofTraffic) GetMax() float32` + +GetMax returns the Max field if non-nil, zero value otherwise. + +### GetMaxOk + +`func (o *InterfaceStatsofTraffic) GetMaxOk() (*float32, bool)` + +GetMaxOk returns a tuple with the Max field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMax + +`func (o *InterfaceStatsofTraffic) SetMax(v float32)` + +SetMax sets Max field to given value. + +### HasMax + +`func (o *InterfaceStatsofTraffic) HasMax() bool` + +HasMax returns a boolean if a field has been set. + +### GetMean + +`func (o *InterfaceStatsofTraffic) GetMean() float32` + +GetMean returns the Mean field if non-nil, zero value otherwise. + +### GetMeanOk + +`func (o *InterfaceStatsofTraffic) GetMeanOk() (*float32, bool)` + +GetMeanOk returns a tuple with the Mean field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMean + +`func (o *InterfaceStatsofTraffic) SetMean(v float32)` + +SetMean sets Mean field to given value. + +### HasMean + +`func (o *InterfaceStatsofTraffic) HasMean() bool` + +HasMean returns a boolean if a field has been set. + +### GetLastPolled + +`func (o *InterfaceStatsofTraffic) GetLastPolled() float32` + +GetLastPolled returns the LastPolled field if non-nil, zero value otherwise. + +### GetLastPolledOk + +`func (o *InterfaceStatsofTraffic) GetLastPolledOk() (*float32, bool)` + +GetLastPolledOk returns a tuple with the LastPolled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastPolled + +`func (o *InterfaceStatsofTraffic) SetLastPolled(v float32)` + +SetLastPolled sets LastPolled field to given value. + +### HasLastPolled + +`func (o *InterfaceStatsofTraffic) HasLastPolled() bool` + +HasLastPolled returns a boolean if a field has been set. + +### GetMetrics + +`func (o *InterfaceStatsofTraffic) GetMetrics() []PolledThroughputMetrics` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *InterfaceStatsofTraffic) GetMetricsOk() (*[]PolledThroughputMetrics, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *InterfaceStatsofTraffic) SetMetrics(v []PolledThroughputMetrics)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *InterfaceStatsofTraffic) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/JsonNode.md b/services/networkedgev1/docs/JsonNode.md new file mode 100644 index 00000000..edde7902 --- /dev/null +++ b/services/networkedgev1/docs/JsonNode.md @@ -0,0 +1,576 @@ +# JsonNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Array** | Pointer to **bool** | | [optional] +**BigDecimal** | Pointer to **bool** | | [optional] +**BigInteger** | Pointer to **bool** | | [optional] +**Binary** | Pointer to **bool** | | [optional] +**Boolean** | Pointer to **bool** | | [optional] +**ContainerNode** | Pointer to **bool** | | [optional] +**Double** | Pointer to **bool** | | [optional] +**Float** | Pointer to **bool** | | [optional] +**FloatingPointNumber** | Pointer to **bool** | | [optional] +**Int** | Pointer to **bool** | | [optional] +**IntegralNumber** | Pointer to **bool** | | [optional] +**Long** | Pointer to **bool** | | [optional] +**MissingNode** | Pointer to **bool** | | [optional] +**NodeType** | Pointer to [**JsonNodeNodeType**](JsonNodeNodeType.md) | | [optional] +**Null** | Pointer to **bool** | | [optional] +**Number** | Pointer to **bool** | | [optional] +**Object** | Pointer to **bool** | | [optional] +**Pojo** | Pointer to **bool** | | [optional] +**Short** | Pointer to **bool** | | [optional] +**Textual** | Pointer to **bool** | | [optional] +**ValueNode** | Pointer to **bool** | | [optional] + +## Methods + +### NewJsonNode + +`func NewJsonNode() *JsonNode` + +NewJsonNode instantiates a new JsonNode object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewJsonNodeWithDefaults + +`func NewJsonNodeWithDefaults() *JsonNode` + +NewJsonNodeWithDefaults instantiates a new JsonNode object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArray + +`func (o *JsonNode) GetArray() bool` + +GetArray returns the Array field if non-nil, zero value otherwise. + +### GetArrayOk + +`func (o *JsonNode) GetArrayOk() (*bool, bool)` + +GetArrayOk returns a tuple with the Array field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArray + +`func (o *JsonNode) SetArray(v bool)` + +SetArray sets Array field to given value. + +### HasArray + +`func (o *JsonNode) HasArray() bool` + +HasArray returns a boolean if a field has been set. + +### GetBigDecimal + +`func (o *JsonNode) GetBigDecimal() bool` + +GetBigDecimal returns the BigDecimal field if non-nil, zero value otherwise. + +### GetBigDecimalOk + +`func (o *JsonNode) GetBigDecimalOk() (*bool, bool)` + +GetBigDecimalOk returns a tuple with the BigDecimal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBigDecimal + +`func (o *JsonNode) SetBigDecimal(v bool)` + +SetBigDecimal sets BigDecimal field to given value. + +### HasBigDecimal + +`func (o *JsonNode) HasBigDecimal() bool` + +HasBigDecimal returns a boolean if a field has been set. + +### GetBigInteger + +`func (o *JsonNode) GetBigInteger() bool` + +GetBigInteger returns the BigInteger field if non-nil, zero value otherwise. + +### GetBigIntegerOk + +`func (o *JsonNode) GetBigIntegerOk() (*bool, bool)` + +GetBigIntegerOk returns a tuple with the BigInteger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBigInteger + +`func (o *JsonNode) SetBigInteger(v bool)` + +SetBigInteger sets BigInteger field to given value. + +### HasBigInteger + +`func (o *JsonNode) HasBigInteger() bool` + +HasBigInteger returns a boolean if a field has been set. + +### GetBinary + +`func (o *JsonNode) GetBinary() bool` + +GetBinary returns the Binary field if non-nil, zero value otherwise. + +### GetBinaryOk + +`func (o *JsonNode) GetBinaryOk() (*bool, bool)` + +GetBinaryOk returns a tuple with the Binary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinary + +`func (o *JsonNode) SetBinary(v bool)` + +SetBinary sets Binary field to given value. + +### HasBinary + +`func (o *JsonNode) HasBinary() bool` + +HasBinary returns a boolean if a field has been set. + +### GetBoolean + +`func (o *JsonNode) GetBoolean() bool` + +GetBoolean returns the Boolean field if non-nil, zero value otherwise. + +### GetBooleanOk + +`func (o *JsonNode) GetBooleanOk() (*bool, bool)` + +GetBooleanOk returns a tuple with the Boolean field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBoolean + +`func (o *JsonNode) SetBoolean(v bool)` + +SetBoolean sets Boolean field to given value. + +### HasBoolean + +`func (o *JsonNode) HasBoolean() bool` + +HasBoolean returns a boolean if a field has been set. + +### GetContainerNode + +`func (o *JsonNode) GetContainerNode() bool` + +GetContainerNode returns the ContainerNode field if non-nil, zero value otherwise. + +### GetContainerNodeOk + +`func (o *JsonNode) GetContainerNodeOk() (*bool, bool)` + +GetContainerNodeOk returns a tuple with the ContainerNode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerNode + +`func (o *JsonNode) SetContainerNode(v bool)` + +SetContainerNode sets ContainerNode field to given value. + +### HasContainerNode + +`func (o *JsonNode) HasContainerNode() bool` + +HasContainerNode returns a boolean if a field has been set. + +### GetDouble + +`func (o *JsonNode) GetDouble() bool` + +GetDouble returns the Double field if non-nil, zero value otherwise. + +### GetDoubleOk + +`func (o *JsonNode) GetDoubleOk() (*bool, bool)` + +GetDoubleOk returns a tuple with the Double field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDouble + +`func (o *JsonNode) SetDouble(v bool)` + +SetDouble sets Double field to given value. + +### HasDouble + +`func (o *JsonNode) HasDouble() bool` + +HasDouble returns a boolean if a field has been set. + +### GetFloat + +`func (o *JsonNode) GetFloat() bool` + +GetFloat returns the Float field if non-nil, zero value otherwise. + +### GetFloatOk + +`func (o *JsonNode) GetFloatOk() (*bool, bool)` + +GetFloatOk returns a tuple with the Float field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFloat + +`func (o *JsonNode) SetFloat(v bool)` + +SetFloat sets Float field to given value. + +### HasFloat + +`func (o *JsonNode) HasFloat() bool` + +HasFloat returns a boolean if a field has been set. + +### GetFloatingPointNumber + +`func (o *JsonNode) GetFloatingPointNumber() bool` + +GetFloatingPointNumber returns the FloatingPointNumber field if non-nil, zero value otherwise. + +### GetFloatingPointNumberOk + +`func (o *JsonNode) GetFloatingPointNumberOk() (*bool, bool)` + +GetFloatingPointNumberOk returns a tuple with the FloatingPointNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFloatingPointNumber + +`func (o *JsonNode) SetFloatingPointNumber(v bool)` + +SetFloatingPointNumber sets FloatingPointNumber field to given value. + +### HasFloatingPointNumber + +`func (o *JsonNode) HasFloatingPointNumber() bool` + +HasFloatingPointNumber returns a boolean if a field has been set. + +### GetInt + +`func (o *JsonNode) GetInt() bool` + +GetInt returns the Int field if non-nil, zero value otherwise. + +### GetIntOk + +`func (o *JsonNode) GetIntOk() (*bool, bool)` + +GetIntOk returns a tuple with the Int field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInt + +`func (o *JsonNode) SetInt(v bool)` + +SetInt sets Int field to given value. + +### HasInt + +`func (o *JsonNode) HasInt() bool` + +HasInt returns a boolean if a field has been set. + +### GetIntegralNumber + +`func (o *JsonNode) GetIntegralNumber() bool` + +GetIntegralNumber returns the IntegralNumber field if non-nil, zero value otherwise. + +### GetIntegralNumberOk + +`func (o *JsonNode) GetIntegralNumberOk() (*bool, bool)` + +GetIntegralNumberOk returns a tuple with the IntegralNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntegralNumber + +`func (o *JsonNode) SetIntegralNumber(v bool)` + +SetIntegralNumber sets IntegralNumber field to given value. + +### HasIntegralNumber + +`func (o *JsonNode) HasIntegralNumber() bool` + +HasIntegralNumber returns a boolean if a field has been set. + +### GetLong + +`func (o *JsonNode) GetLong() bool` + +GetLong returns the Long field if non-nil, zero value otherwise. + +### GetLongOk + +`func (o *JsonNode) GetLongOk() (*bool, bool)` + +GetLongOk returns a tuple with the Long field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLong + +`func (o *JsonNode) SetLong(v bool)` + +SetLong sets Long field to given value. + +### HasLong + +`func (o *JsonNode) HasLong() bool` + +HasLong returns a boolean if a field has been set. + +### GetMissingNode + +`func (o *JsonNode) GetMissingNode() bool` + +GetMissingNode returns the MissingNode field if non-nil, zero value otherwise. + +### GetMissingNodeOk + +`func (o *JsonNode) GetMissingNodeOk() (*bool, bool)` + +GetMissingNodeOk returns a tuple with the MissingNode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissingNode + +`func (o *JsonNode) SetMissingNode(v bool)` + +SetMissingNode sets MissingNode field to given value. + +### HasMissingNode + +`func (o *JsonNode) HasMissingNode() bool` + +HasMissingNode returns a boolean if a field has been set. + +### GetNodeType + +`func (o *JsonNode) GetNodeType() JsonNodeNodeType` + +GetNodeType returns the NodeType field if non-nil, zero value otherwise. + +### GetNodeTypeOk + +`func (o *JsonNode) GetNodeTypeOk() (*JsonNodeNodeType, bool)` + +GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeType + +`func (o *JsonNode) SetNodeType(v JsonNodeNodeType)` + +SetNodeType sets NodeType field to given value. + +### HasNodeType + +`func (o *JsonNode) HasNodeType() bool` + +HasNodeType returns a boolean if a field has been set. + +### GetNull + +`func (o *JsonNode) GetNull() bool` + +GetNull returns the Null field if non-nil, zero value otherwise. + +### GetNullOk + +`func (o *JsonNode) GetNullOk() (*bool, bool)` + +GetNullOk returns a tuple with the Null field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNull + +`func (o *JsonNode) SetNull(v bool)` + +SetNull sets Null field to given value. + +### HasNull + +`func (o *JsonNode) HasNull() bool` + +HasNull returns a boolean if a field has been set. + +### GetNumber + +`func (o *JsonNode) GetNumber() bool` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *JsonNode) GetNumberOk() (*bool, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *JsonNode) SetNumber(v bool)` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *JsonNode) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### GetObject + +`func (o *JsonNode) GetObject() bool` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *JsonNode) GetObjectOk() (*bool, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *JsonNode) SetObject(v bool)` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *JsonNode) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### GetPojo + +`func (o *JsonNode) GetPojo() bool` + +GetPojo returns the Pojo field if non-nil, zero value otherwise. + +### GetPojoOk + +`func (o *JsonNode) GetPojoOk() (*bool, bool)` + +GetPojoOk returns a tuple with the Pojo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPojo + +`func (o *JsonNode) SetPojo(v bool)` + +SetPojo sets Pojo field to given value. + +### HasPojo + +`func (o *JsonNode) HasPojo() bool` + +HasPojo returns a boolean if a field has been set. + +### GetShort + +`func (o *JsonNode) GetShort() bool` + +GetShort returns the Short field if non-nil, zero value otherwise. + +### GetShortOk + +`func (o *JsonNode) GetShortOk() (*bool, bool)` + +GetShortOk returns a tuple with the Short field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShort + +`func (o *JsonNode) SetShort(v bool)` + +SetShort sets Short field to given value. + +### HasShort + +`func (o *JsonNode) HasShort() bool` + +HasShort returns a boolean if a field has been set. + +### GetTextual + +`func (o *JsonNode) GetTextual() bool` + +GetTextual returns the Textual field if non-nil, zero value otherwise. + +### GetTextualOk + +`func (o *JsonNode) GetTextualOk() (*bool, bool)` + +GetTextualOk returns a tuple with the Textual field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextual + +`func (o *JsonNode) SetTextual(v bool)` + +SetTextual sets Textual field to given value. + +### HasTextual + +`func (o *JsonNode) HasTextual() bool` + +HasTextual returns a boolean if a field has been set. + +### GetValueNode + +`func (o *JsonNode) GetValueNode() bool` + +GetValueNode returns the ValueNode field if non-nil, zero value otherwise. + +### GetValueNodeOk + +`func (o *JsonNode) GetValueNodeOk() (*bool, bool)` + +GetValueNodeOk returns a tuple with the ValueNode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueNode + +`func (o *JsonNode) SetValueNode(v bool)` + +SetValueNode sets ValueNode field to given value. + +### HasValueNode + +`func (o *JsonNode) HasValueNode() bool` + +HasValueNode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/JsonNodeNodeType.md b/services/networkedgev1/docs/JsonNodeNodeType.md new file mode 100644 index 00000000..a1303e58 --- /dev/null +++ b/services/networkedgev1/docs/JsonNodeNodeType.md @@ -0,0 +1,27 @@ +# JsonNodeNodeType + +## Enum + + +* `ARRAY` (value: `"ARRAY"`) + +* `BINARY` (value: `"BINARY"`) + +* `BOOLEAN` (value: `"BOOLEAN"`) + +* `MISSING` (value: `"MISSING"`) + +* `NULL` (value: `"NULL"`) + +* `NUMBER` (value: `"NUMBER"`) + +* `OBJECT` (value: `"OBJECT"`) + +* `POJO` (value: `"POJO"`) + +* `STRING` (value: `"STRING"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Layer2ConnectionsServiceProfilesApi.md b/services/networkedgev1/docs/Layer2ConnectionsServiceProfilesApi.md new file mode 100644 index 00000000..c8786867 --- /dev/null +++ b/services/networkedgev1/docs/Layer2ConnectionsServiceProfilesApi.md @@ -0,0 +1,594 @@ +# \Layer2ConnectionsServiceProfilesApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateConnectionUsingPOST**](Layer2ConnectionsServiceProfilesApi.md#CreateConnectionUsingPOST) | **Post** /ne/v1/l2/connections | Create L2 Connection +[**DeleteConnectionUsingDELETE**](Layer2ConnectionsServiceProfilesApi.md#DeleteConnectionUsingDELETE) | **Delete** /ne/v1/l2/connections/{uuid} | Delete Connection {uuid} +[**GetConnectionByUuidUsingGET**](Layer2ConnectionsServiceProfilesApi.md#GetConnectionByUuidUsingGET) | **Get** /ne/v1/l2/connections/{uuid} | Get L2 Connection {uuid} +[**GetConnectionsByGET**](Layer2ConnectionsServiceProfilesApi.md#GetConnectionsByGET) | **Get** /ne/v1/l2/buyer/connections | Get L2 Buyer Connections +[**GetProfileByIdUsingGET**](Layer2ConnectionsServiceProfilesApi.md#GetProfileByIdUsingGET) | **Get** /ne/v1/l2/serviceprofiles/services/{uuid} | Get L2 Service Profile {uuid} +[**GetProfilesByMetroUsingGET**](Layer2ConnectionsServiceProfilesApi.md#GetProfilesByMetroUsingGET) | **Get** /ne/v1/l2/serviceprofiles/services | Get L2 Service Profiles +[**PerformUserActionUsingPATCH**](Layer2ConnectionsServiceProfilesApi.md#PerformUserActionUsingPATCH) | **Patch** /ne/v1/l2/connections/{uuid} | Update Connection {uuid} +[**ValidateAuthorizationKeyUsingGET**](Layer2ConnectionsServiceProfilesApi.md#ValidateAuthorizationKeyUsingGET) | **Get** /ne/v1/l2/connections/validateAuthorizationKey | Get L2 Validate Authorization Key + + + +## CreateConnectionUsingPOST + +> PostConnectionResponse CreateConnectionUsingPOST(ctx).Authorization(authorization).Request(request).Execute() + +Create L2 Connection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewPostConnectionRequest() // PostConnectionRequest | request + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.CreateConnectionUsingPOST(context.Background()).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.CreateConnectionUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectionUsingPOST`: PostConnectionResponse + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.CreateConnectionUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateConnectionUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**PostConnectionRequest**](PostConnectionRequest.md) | request | + +### Return type + +[**PostConnectionResponse**](PostConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteConnectionUsingDELETE + +> DeleteConnectionResponse DeleteConnectionUsingDELETE(ctx, uuid).Authorization(authorization).Execute() + +Delete Connection {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + uuid := "uuid_example" // string | connId + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.DeleteConnectionUsingDELETE(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.DeleteConnectionUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteConnectionUsingDELETE`: DeleteConnectionResponse + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.DeleteConnectionUsingDELETE`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | connId | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteConnectionUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + + +### Return type + +[**DeleteConnectionResponse**](DeleteConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectionByUuidUsingGET + +> GETConnectionByUuidResponse GetConnectionByUuidUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get L2 Connection {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + uuid := "uuid_example" // string | Connection UUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetConnectionByUuidUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.GetConnectionByUuidUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectionByUuidUsingGET`: GETConnectionByUuidResponse + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.GetConnectionByUuidUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Connection UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectionByUuidUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + + +### Return type + +[**GETConnectionByUuidResponse**](GETConnectionByUuidResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectionsByGET + +> GETConnectionsPageResponse GetConnectionsByGET(ctx).Authorization(authorization).PageNumber(pageNumber).PageSize(pageSize).Execute() + +Get L2 Buyer Connections + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + pageNumber := int32(56) // int32 | page number (optional) (default to 0) + pageSize := int32(56) // int32 | total number of records (optional) (default to 20) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetConnectionsByGET(context.Background()).Authorization(authorization).PageNumber(pageNumber).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.GetConnectionsByGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectionsByGET`: GETConnectionsPageResponse + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.GetConnectionsByGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectionsByGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **pageNumber** | **int32** | page number | [default to 0] + **pageSize** | **int32** | total number of records | [default to 20] + +### Return type + +[**GETConnectionsPageResponse**](GETConnectionsPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetProfileByIdUsingGET + +> GetServProfServicesResp GetProfileByIdUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get L2 Service Profile {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + uuid := "uuid_example" // string | uuid + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetProfileByIdUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.GetProfileByIdUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileByIdUsingGET`: GetServProfServicesResp + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.GetProfileByIdUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetProfileByIdUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + + +### Return type + +[**GetServProfServicesResp**](GetServProfServicesResp.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetProfilesByMetroUsingGET + +> GetServProfServicesResp GetProfilesByMetroUsingGET(ctx).Authorization(authorization).MetroCode(metroCode).PageNumber(pageNumber).PageSize(pageSize).Execute() + +Get L2 Service Profiles + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + metroCode := []string{"Inner_example"} // []string | metroCode (optional) + pageNumber := int32(56) // int32 | page number (optional) (default to 0) + pageSize := int32(56) // int32 | total number of records (optional) (default to 20) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetProfilesByMetroUsingGET(context.Background()).Authorization(authorization).MetroCode(metroCode).PageNumber(pageNumber).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.GetProfilesByMetroUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfilesByMetroUsingGET`: GetServProfServicesResp + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.GetProfilesByMetroUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetProfilesByMetroUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **metroCode** | **[]string** | metroCode | + **pageNumber** | **int32** | page number | [default to 0] + **pageSize** | **int32** | total number of records | [default to 20] + +### Return type + +[**GetServProfServicesResp**](GetServProfServicesResp.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PerformUserActionUsingPATCH + +> DeleteConnectionResponse PerformUserActionUsingPATCH(ctx, uuid).Authorization(authorization).Action(action).Request(request).Execute() + +Update Connection {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + action := "action_example" // string | action + uuid := "uuid_example" // string | connId + request := *openapiclient.NewPatchRequest() // PatchRequest | request + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.PerformUserActionUsingPATCH(context.Background(), uuid).Authorization(authorization).Action(action).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.PerformUserActionUsingPATCH``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PerformUserActionUsingPATCH`: DeleteConnectionResponse + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.PerformUserActionUsingPATCH`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | connId | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPerformUserActionUsingPATCHRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **action** | **string** | action | + + **request** | [**PatchRequest**](PatchRequest.md) | request | + +### Return type + +[**DeleteConnectionResponse**](DeleteConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ValidateAuthorizationKeyUsingGET + +> GetValidateAuthKeyRes ValidateAuthorizationKeyUsingGET(ctx).Authorization(authorization).AuthorizationKey(authorizationKey).MetroCode(metroCode).ProfileId(profileId).Region(region).ContentType(contentType).Execute() + +Get L2 Validate Authorization Key + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + authorizationKey := "authorizationKey_example" // string | Could be AWS Account ID or Azure Service Key or Google Pairing Key or Oracle connection Id or any other authorization key + metroCode := "metroCode_example" // string | metroCode + profileId := "profileId_example" // string | profileId + region := "region_example" // string | region + contentType := "contentType_example" // string | Content-Type (optional) (default to "application/json") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.Layer2ConnectionsServiceProfilesApi.ValidateAuthorizationKeyUsingGET(context.Background()).Authorization(authorization).AuthorizationKey(authorizationKey).MetroCode(metroCode).ProfileId(profileId).Region(region).ContentType(contentType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Layer2ConnectionsServiceProfilesApi.ValidateAuthorizationKeyUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ValidateAuthorizationKeyUsingGET`: GetValidateAuthKeyRes + fmt.Fprintf(os.Stdout, "Response from `Layer2ConnectionsServiceProfilesApi.ValidateAuthorizationKeyUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiValidateAuthorizationKeyUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **authorizationKey** | **string** | Could be AWS Account ID or Azure Service Key or Google Pairing Key or Oracle connection Id or any other authorization key | + **metroCode** | **string** | metroCode | + **profileId** | **string** | profileId | + **region** | **string** | region | + **contentType** | **string** | Content-Type | [default to "application/json"] + +### Return type + +[**GetValidateAuthKeyRes**](GetValidateAuthKeyRes.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/LicenseOptions.md b/services/networkedgev1/docs/LicenseOptions.md new file mode 100644 index 00000000..77f74e66 --- /dev/null +++ b/services/networkedgev1/docs/LicenseOptions.md @@ -0,0 +1,108 @@ +# LicenseOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The license name | [optional] +**Type** | Pointer to **string** | The license type | [optional] +**MetroCodes** | Pointer to **[]string** | The metros where the license is available | [optional] + +## Methods + +### NewLicenseOptions + +`func NewLicenseOptions() *LicenseOptions` + +NewLicenseOptions instantiates a new LicenseOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseOptionsWithDefaults + +`func NewLicenseOptionsWithDefaults() *LicenseOptions` + +NewLicenseOptionsWithDefaults instantiates a new LicenseOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *LicenseOptions) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LicenseOptions) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LicenseOptions) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LicenseOptions) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *LicenseOptions) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LicenseOptions) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LicenseOptions) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *LicenseOptions) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetMetroCodes + +`func (o *LicenseOptions) GetMetroCodes() []string` + +GetMetroCodes returns the MetroCodes field if non-nil, zero value otherwise. + +### GetMetroCodesOk + +`func (o *LicenseOptions) GetMetroCodesOk() (*[]string, bool)` + +GetMetroCodesOk returns a tuple with the MetroCodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCodes + +`func (o *LicenseOptions) SetMetroCodes(v []string)` + +SetMetroCodes sets MetroCodes field to given value. + +### HasMetroCodes + +`func (o *LicenseOptions) HasMetroCodes() bool` + +HasMetroCodes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LicenseOptionsConfig.md b/services/networkedgev1/docs/LicenseOptionsConfig.md new file mode 100644 index 00000000..85cb8b92 --- /dev/null +++ b/services/networkedgev1/docs/LicenseOptionsConfig.md @@ -0,0 +1,134 @@ +# LicenseOptionsConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The type of the license. | [optional] +**Name** | Pointer to **string** | The name of the license. | [optional] +**FileUploadSupportedCluster** | Pointer to **bool** | Whether you can upload a license file for cluster devices. | [optional] +**Cores** | Pointer to [**[]CoresConfig**](CoresConfig.md) | | [optional] + +## Methods + +### NewLicenseOptionsConfig + +`func NewLicenseOptionsConfig() *LicenseOptionsConfig` + +NewLicenseOptionsConfig instantiates a new LicenseOptionsConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseOptionsConfigWithDefaults + +`func NewLicenseOptionsConfigWithDefaults() *LicenseOptionsConfig` + +NewLicenseOptionsConfigWithDefaults instantiates a new LicenseOptionsConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LicenseOptionsConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LicenseOptionsConfig) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LicenseOptionsConfig) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *LicenseOptionsConfig) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *LicenseOptionsConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LicenseOptionsConfig) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LicenseOptionsConfig) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LicenseOptionsConfig) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetFileUploadSupportedCluster + +`func (o *LicenseOptionsConfig) GetFileUploadSupportedCluster() bool` + +GetFileUploadSupportedCluster returns the FileUploadSupportedCluster field if non-nil, zero value otherwise. + +### GetFileUploadSupportedClusterOk + +`func (o *LicenseOptionsConfig) GetFileUploadSupportedClusterOk() (*bool, bool)` + +GetFileUploadSupportedClusterOk returns a tuple with the FileUploadSupportedCluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileUploadSupportedCluster + +`func (o *LicenseOptionsConfig) SetFileUploadSupportedCluster(v bool)` + +SetFileUploadSupportedCluster sets FileUploadSupportedCluster field to given value. + +### HasFileUploadSupportedCluster + +`func (o *LicenseOptionsConfig) HasFileUploadSupportedCluster() bool` + +HasFileUploadSupportedCluster returns a boolean if a field has been set. + +### GetCores + +`func (o *LicenseOptionsConfig) GetCores() []CoresConfig` + +GetCores returns the Cores field if non-nil, zero value otherwise. + +### GetCoresOk + +`func (o *LicenseOptionsConfig) GetCoresOk() (*[]CoresConfig, bool)` + +GetCoresOk returns a tuple with the Cores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCores + +`func (o *LicenseOptionsConfig) SetCores(v []CoresConfig)` + +SetCores sets Cores field to given value. + +### HasCores + +`func (o *LicenseOptionsConfig) HasCores() bool` + +HasCores returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LicenseUpdateRequest.md b/services/networkedgev1/docs/LicenseUpdateRequest.md new file mode 100644 index 00000000..8e6a3743 --- /dev/null +++ b/services/networkedgev1/docs/LicenseUpdateRequest.md @@ -0,0 +1,56 @@ +# LicenseUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | Pointer to **string** | | [optional] + +## Methods + +### NewLicenseUpdateRequest + +`func NewLicenseUpdateRequest() *LicenseUpdateRequest` + +NewLicenseUpdateRequest instantiates a new LicenseUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseUpdateRequestWithDefaults + +`func NewLicenseUpdateRequestWithDefaults() *LicenseUpdateRequest` + +NewLicenseUpdateRequestWithDefaults instantiates a new LicenseUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetToken + +`func (o *LicenseUpdateRequest) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *LicenseUpdateRequest) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *LicenseUpdateRequest) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *LicenseUpdateRequest) HasToken() bool` + +HasToken returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LicenseUploadResponse.md b/services/networkedgev1/docs/LicenseUploadResponse.md new file mode 100644 index 00000000..4638659a --- /dev/null +++ b/services/networkedgev1/docs/LicenseUploadResponse.md @@ -0,0 +1,56 @@ +# LicenseUploadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileId** | Pointer to **string** | | [optional] + +## Methods + +### NewLicenseUploadResponse + +`func NewLicenseUploadResponse() *LicenseUploadResponse` + +NewLicenseUploadResponse instantiates a new LicenseUploadResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseUploadResponseWithDefaults + +`func NewLicenseUploadResponseWithDefaults() *LicenseUploadResponse` + +NewLicenseUploadResponseWithDefaults instantiates a new LicenseUploadResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFileId + +`func (o *LicenseUploadResponse) GetFileId() string` + +GetFileId returns the FileId field if non-nil, zero value otherwise. + +### GetFileIdOk + +`func (o *LicenseUploadResponse) GetFileIdOk() (*string, bool)` + +GetFileIdOk returns a tuple with the FileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileId + +`func (o *LicenseUploadResponse) SetFileId(v string)` + +SetFileId sets FileId field to given value. + +### HasFileId + +`func (o *LicenseUploadResponse) HasFileId() bool` + +HasFileId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LicensingApi.md b/services/networkedgev1/docs/LicensingApi.md new file mode 100644 index 00000000..e3e668db --- /dev/null +++ b/services/networkedgev1/docs/LicensingApi.md @@ -0,0 +1,233 @@ +# \LicensingApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UpdateLicenseUsingPOST**](LicensingApi.md#UpdateLicenseUsingPOST) | **Put** /ne/v1/devices/{uuid}/licenseTokens | Update License Token/ID/Code +[**UploadLicenseForDeviceUsingPOST**](LicensingApi.md#UploadLicenseForDeviceUsingPOST) | **Post** /ne/v1/devices/licenseFiles/{uuid} | Post License {uuid} +[**UploadLicenseUsingPOST**](LicensingApi.md#UploadLicenseUsingPOST) | **Post** /ne/v1/devices/licenseFiles | Post License File + + + +## UpdateLicenseUsingPOST + +> LicenseUploadResponse UpdateLicenseUsingPOST(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update License Token/ID/Code + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of a virtual device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewLicenseUpdateRequest() // LicenseUpdateRequest | License token + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LicensingApi.UpdateLicenseUsingPOST(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LicensingApi.UpdateLicenseUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLicenseUsingPOST`: LicenseUploadResponse + fmt.Fprintf(os.Stdout, "Response from `LicensingApi.UpdateLicenseUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a virtual device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateLicenseUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**LicenseUpdateRequest**](LicenseUpdateRequest.md) | License token | + +### Return type + +[**LicenseUploadResponse**](LicenseUploadResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UploadLicenseForDeviceUsingPOST + +> LicenseUploadResponse UploadLicenseForDeviceUsingPOST(ctx, uuid).Authorization(authorization).File(file).Execute() + +Post License {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of a virtual device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + file := os.NewFile(1234, "some_file") // *os.File | License file + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LicensingApi.UploadLicenseForDeviceUsingPOST(context.Background(), uuid).Authorization(authorization).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LicensingApi.UploadLicenseForDeviceUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UploadLicenseForDeviceUsingPOST`: LicenseUploadResponse + fmt.Fprintf(os.Stdout, "Response from `LicensingApi.UploadLicenseForDeviceUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a virtual device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUploadLicenseForDeviceUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **file** | ***os.File** | License file | + +### Return type + +[**LicenseUploadResponse**](LicenseUploadResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UploadLicenseUsingPOST + +> LicenseUploadResponse UploadLicenseUsingPOST(ctx).MetroCode(metroCode).DeviceTypeCode(deviceTypeCode).LicenseType(licenseType).Authorization(authorization).File(file).Execute() + +Post License File + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + metroCode := "metroCode_example" // string | metroCode + deviceTypeCode := "deviceTypeCode_example" // string | deviceTypeCode + licenseType := "licenseType_example" // string | licenseType + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + file := os.NewFile(1234, "some_file") // *os.File | file + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LicensingApi.UploadLicenseUsingPOST(context.Background()).MetroCode(metroCode).DeviceTypeCode(deviceTypeCode).LicenseType(licenseType).Authorization(authorization).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LicensingApi.UploadLicenseUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UploadLicenseUsingPOST`: LicenseUploadResponse + fmt.Fprintf(os.Stdout, "Response from `LicensingApi.UploadLicenseUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUploadLicenseUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **metroCode** | **string** | metroCode | + **deviceTypeCode** | **string** | deviceTypeCode | + **licenseType** | **string** | licenseType | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **file** | ***os.File** | file | + +### Return type + +[**LicenseUploadResponse**](LicenseUploadResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/LinkDeviceInfo.md b/services/networkedgev1/docs/LinkDeviceInfo.md new file mode 100644 index 00000000..1aa4b838 --- /dev/null +++ b/services/networkedgev1/docs/LinkDeviceInfo.md @@ -0,0 +1,103 @@ +# LinkDeviceInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Asn** | Pointer to **int64** | The ASN number of the device. The request will fail if you provide a new ASN for a device that already has an ASN. | [optional] +**DeviceUuid** | **string** | device | +**InterfaceId** | Pointer to **int32** | Any available interface of the device. | [optional] + +## Methods + +### NewLinkDeviceInfo + +`func NewLinkDeviceInfo(deviceUuid string, ) *LinkDeviceInfo` + +NewLinkDeviceInfo instantiates a new LinkDeviceInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDeviceInfoWithDefaults + +`func NewLinkDeviceInfoWithDefaults() *LinkDeviceInfo` + +NewLinkDeviceInfoWithDefaults instantiates a new LinkDeviceInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAsn + +`func (o *LinkDeviceInfo) GetAsn() int64` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *LinkDeviceInfo) GetAsnOk() (*int64, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *LinkDeviceInfo) SetAsn(v int64)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *LinkDeviceInfo) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetDeviceUuid + +`func (o *LinkDeviceInfo) GetDeviceUuid() string` + +GetDeviceUuid returns the DeviceUuid field if non-nil, zero value otherwise. + +### GetDeviceUuidOk + +`func (o *LinkDeviceInfo) GetDeviceUuidOk() (*string, bool)` + +GetDeviceUuidOk returns a tuple with the DeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuid + +`func (o *LinkDeviceInfo) SetDeviceUuid(v string)` + +SetDeviceUuid sets DeviceUuid field to given value. + + +### GetInterfaceId + +`func (o *LinkDeviceInfo) GetInterfaceId() int32` + +GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise. + +### GetInterfaceIdOk + +`func (o *LinkDeviceInfo) GetInterfaceIdOk() (*int32, bool)` + +GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceId + +`func (o *LinkDeviceInfo) SetInterfaceId(v int32)` + +SetInterfaceId sets InterfaceId field to given value. + +### HasInterfaceId + +`func (o *LinkDeviceInfo) HasInterfaceId() bool` + +HasInterfaceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LinkDeviceResponse.md b/services/networkedgev1/docs/LinkDeviceResponse.md new file mode 100644 index 00000000..786ada97 --- /dev/null +++ b/services/networkedgev1/docs/LinkDeviceResponse.md @@ -0,0 +1,342 @@ +# LinkDeviceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceUuid** | Pointer to **string** | A device that is part of the device linked group | [optional] +**DeviceName** | Pointer to **string** | Device name | [optional] +**MetroCode** | Pointer to **string** | Metro Code | [optional] +**MetroName** | Pointer to **string** | Name of the metro. | [optional] +**DeviceTypeCode** | Pointer to **string** | | [optional] +**Category** | Pointer to **string** | | [optional] +**IpAssigned** | Pointer to **string** | | [optional] +**InterfaceId** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | The status of the device | [optional] +**DeviceManagementType** | Pointer to **string** | Device management type | [optional] +**NetworkScope** | Pointer to **string** | | [optional] +**IsDeviceAccessible** | Pointer to **bool** | Whether the device is accessible | [optional] + +## Methods + +### NewLinkDeviceResponse + +`func NewLinkDeviceResponse() *LinkDeviceResponse` + +NewLinkDeviceResponse instantiates a new LinkDeviceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDeviceResponseWithDefaults + +`func NewLinkDeviceResponseWithDefaults() *LinkDeviceResponse` + +NewLinkDeviceResponseWithDefaults instantiates a new LinkDeviceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceUuid + +`func (o *LinkDeviceResponse) GetDeviceUuid() string` + +GetDeviceUuid returns the DeviceUuid field if non-nil, zero value otherwise. + +### GetDeviceUuidOk + +`func (o *LinkDeviceResponse) GetDeviceUuidOk() (*string, bool)` + +GetDeviceUuidOk returns a tuple with the DeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuid + +`func (o *LinkDeviceResponse) SetDeviceUuid(v string)` + +SetDeviceUuid sets DeviceUuid field to given value. + +### HasDeviceUuid + +`func (o *LinkDeviceResponse) HasDeviceUuid() bool` + +HasDeviceUuid returns a boolean if a field has been set. + +### GetDeviceName + +`func (o *LinkDeviceResponse) GetDeviceName() string` + +GetDeviceName returns the DeviceName field if non-nil, zero value otherwise. + +### GetDeviceNameOk + +`func (o *LinkDeviceResponse) GetDeviceNameOk() (*string, bool)` + +GetDeviceNameOk returns a tuple with the DeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceName + +`func (o *LinkDeviceResponse) SetDeviceName(v string)` + +SetDeviceName sets DeviceName field to given value. + +### HasDeviceName + +`func (o *LinkDeviceResponse) HasDeviceName() bool` + +HasDeviceName returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *LinkDeviceResponse) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *LinkDeviceResponse) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *LinkDeviceResponse) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *LinkDeviceResponse) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroName + +`func (o *LinkDeviceResponse) GetMetroName() string` + +GetMetroName returns the MetroName field if non-nil, zero value otherwise. + +### GetMetroNameOk + +`func (o *LinkDeviceResponse) GetMetroNameOk() (*string, bool)` + +GetMetroNameOk returns a tuple with the MetroName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroName + +`func (o *LinkDeviceResponse) SetMetroName(v string)` + +SetMetroName sets MetroName field to given value. + +### HasMetroName + +`func (o *LinkDeviceResponse) HasMetroName() bool` + +HasMetroName returns a boolean if a field has been set. + +### GetDeviceTypeCode + +`func (o *LinkDeviceResponse) GetDeviceTypeCode() string` + +GetDeviceTypeCode returns the DeviceTypeCode field if non-nil, zero value otherwise. + +### GetDeviceTypeCodeOk + +`func (o *LinkDeviceResponse) GetDeviceTypeCodeOk() (*string, bool)` + +GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCode + +`func (o *LinkDeviceResponse) SetDeviceTypeCode(v string)` + +SetDeviceTypeCode sets DeviceTypeCode field to given value. + +### HasDeviceTypeCode + +`func (o *LinkDeviceResponse) HasDeviceTypeCode() bool` + +HasDeviceTypeCode returns a boolean if a field has been set. + +### GetCategory + +`func (o *LinkDeviceResponse) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *LinkDeviceResponse) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *LinkDeviceResponse) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *LinkDeviceResponse) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetIpAssigned + +`func (o *LinkDeviceResponse) GetIpAssigned() string` + +GetIpAssigned returns the IpAssigned field if non-nil, zero value otherwise. + +### GetIpAssignedOk + +`func (o *LinkDeviceResponse) GetIpAssignedOk() (*string, bool)` + +GetIpAssignedOk returns a tuple with the IpAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAssigned + +`func (o *LinkDeviceResponse) SetIpAssigned(v string)` + +SetIpAssigned sets IpAssigned field to given value. + +### HasIpAssigned + +`func (o *LinkDeviceResponse) HasIpAssigned() bool` + +HasIpAssigned returns a boolean if a field has been set. + +### GetInterfaceId + +`func (o *LinkDeviceResponse) GetInterfaceId() int32` + +GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise. + +### GetInterfaceIdOk + +`func (o *LinkDeviceResponse) GetInterfaceIdOk() (*int32, bool)` + +GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceId + +`func (o *LinkDeviceResponse) SetInterfaceId(v int32)` + +SetInterfaceId sets InterfaceId field to given value. + +### HasInterfaceId + +`func (o *LinkDeviceResponse) HasInterfaceId() bool` + +HasInterfaceId returns a boolean if a field has been set. + +### GetStatus + +`func (o *LinkDeviceResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LinkDeviceResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *LinkDeviceResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LinkDeviceResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetDeviceManagementType + +`func (o *LinkDeviceResponse) GetDeviceManagementType() string` + +GetDeviceManagementType returns the DeviceManagementType field if non-nil, zero value otherwise. + +### GetDeviceManagementTypeOk + +`func (o *LinkDeviceResponse) GetDeviceManagementTypeOk() (*string, bool)` + +GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceManagementType + +`func (o *LinkDeviceResponse) SetDeviceManagementType(v string)` + +SetDeviceManagementType sets DeviceManagementType field to given value. + +### HasDeviceManagementType + +`func (o *LinkDeviceResponse) HasDeviceManagementType() bool` + +HasDeviceManagementType returns a boolean if a field has been set. + +### GetNetworkScope + +`func (o *LinkDeviceResponse) GetNetworkScope() string` + +GetNetworkScope returns the NetworkScope field if non-nil, zero value otherwise. + +### GetNetworkScopeOk + +`func (o *LinkDeviceResponse) GetNetworkScopeOk() (*string, bool)` + +GetNetworkScopeOk returns a tuple with the NetworkScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkScope + +`func (o *LinkDeviceResponse) SetNetworkScope(v string)` + +SetNetworkScope sets NetworkScope field to given value. + +### HasNetworkScope + +`func (o *LinkDeviceResponse) HasNetworkScope() bool` + +HasNetworkScope returns a boolean if a field has been set. + +### GetIsDeviceAccessible + +`func (o *LinkDeviceResponse) GetIsDeviceAccessible() bool` + +GetIsDeviceAccessible returns the IsDeviceAccessible field if non-nil, zero value otherwise. + +### GetIsDeviceAccessibleOk + +`func (o *LinkDeviceResponse) GetIsDeviceAccessibleOk() (*bool, bool)` + +GetIsDeviceAccessibleOk returns a tuple with the IsDeviceAccessible field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeviceAccessible + +`func (o *LinkDeviceResponse) SetIsDeviceAccessible(v bool)` + +SetIsDeviceAccessible sets IsDeviceAccessible field to given value. + +### HasIsDeviceAccessible + +`func (o *LinkDeviceResponse) HasIsDeviceAccessible() bool` + +HasIsDeviceAccessible returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LinkInfo.md b/services/networkedgev1/docs/LinkInfo.md new file mode 100644 index 00000000..2e94653c --- /dev/null +++ b/services/networkedgev1/docs/LinkInfo.md @@ -0,0 +1,134 @@ +# LinkInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | Account number. Either an account number or an accountreferenceId is required to create a link group. | [optional] +**Throughput** | Pointer to **string** | Metro Throughput. | [optional] +**ThroughputUnit** | Pointer to **string** | Throughput unit. | [optional] +**MetroCode** | Pointer to **string** | Metro you want to link. | [optional] + +## Methods + +### NewLinkInfo + +`func NewLinkInfo() *LinkInfo` + +NewLinkInfo instantiates a new LinkInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkInfoWithDefaults + +`func NewLinkInfoWithDefaults() *LinkInfo` + +NewLinkInfoWithDefaults instantiates a new LinkInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *LinkInfo) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *LinkInfo) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *LinkInfo) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *LinkInfo) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetThroughput + +`func (o *LinkInfo) GetThroughput() string` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *LinkInfo) GetThroughputOk() (*string, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *LinkInfo) SetThroughput(v string)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *LinkInfo) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *LinkInfo) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *LinkInfo) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *LinkInfo) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *LinkInfo) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *LinkInfo) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *LinkInfo) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *LinkInfo) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *LinkInfo) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LinkInfoResponse.md b/services/networkedgev1/docs/LinkInfoResponse.md new file mode 100644 index 00000000..8b6a71db --- /dev/null +++ b/services/networkedgev1/docs/LinkInfoResponse.md @@ -0,0 +1,160 @@ +# LinkInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **string** | Account name | [optional] +**MetroCode** | Pointer to **string** | Linked metro code | [optional] +**MetroName** | Pointer to **string** | Linked metro name | [optional] +**Throughput** | Pointer to **string** | Metro Throughput. | [optional] +**ThroughputUnit** | Pointer to **string** | Throughput unit. | [optional] + +## Methods + +### NewLinkInfoResponse + +`func NewLinkInfoResponse() *LinkInfoResponse` + +NewLinkInfoResponse instantiates a new LinkInfoResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkInfoResponseWithDefaults + +`func NewLinkInfoResponseWithDefaults() *LinkInfoResponse` + +NewLinkInfoResponseWithDefaults instantiates a new LinkInfoResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *LinkInfoResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *LinkInfoResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *LinkInfoResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *LinkInfoResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *LinkInfoResponse) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *LinkInfoResponse) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *LinkInfoResponse) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *LinkInfoResponse) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroName + +`func (o *LinkInfoResponse) GetMetroName() string` + +GetMetroName returns the MetroName field if non-nil, zero value otherwise. + +### GetMetroNameOk + +`func (o *LinkInfoResponse) GetMetroNameOk() (*string, bool)` + +GetMetroNameOk returns a tuple with the MetroName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroName + +`func (o *LinkInfoResponse) SetMetroName(v string)` + +SetMetroName sets MetroName field to given value. + +### HasMetroName + +`func (o *LinkInfoResponse) HasMetroName() bool` + +HasMetroName returns a boolean if a field has been set. + +### GetThroughput + +`func (o *LinkInfoResponse) GetThroughput() string` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *LinkInfoResponse) GetThroughputOk() (*string, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *LinkInfoResponse) SetThroughput(v string)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *LinkInfoResponse) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *LinkInfoResponse) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *LinkInfoResponse) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *LinkInfoResponse) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *LinkInfoResponse) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/LinksPageResponse.md b/services/networkedgev1/docs/LinksPageResponse.md new file mode 100644 index 00000000..b150c62e --- /dev/null +++ b/services/networkedgev1/docs/LinksPageResponse.md @@ -0,0 +1,82 @@ +# LinksPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]DeviceLinkGroupDto**](DeviceLinkGroupDto.md) | | [optional] + +## Methods + +### NewLinksPageResponse + +`func NewLinksPageResponse() *LinksPageResponse` + +NewLinksPageResponse instantiates a new LinksPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinksPageResponseWithDefaults + +`func NewLinksPageResponseWithDefaults() *LinksPageResponse` + +NewLinksPageResponseWithDefaults instantiates a new LinksPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *LinksPageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *LinksPageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *LinksPageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *LinksPageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *LinksPageResponse) GetData() []DeviceLinkGroupDto` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LinksPageResponse) GetDataOk() (*[]DeviceLinkGroupDto, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LinksPageResponse) SetData(v []DeviceLinkGroupDto)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LinksPageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Metro.md b/services/networkedgev1/docs/Metro.md new file mode 100644 index 00000000..c0ab7b22 --- /dev/null +++ b/services/networkedgev1/docs/Metro.md @@ -0,0 +1,134 @@ +# Metro + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetroCode** | Pointer to **string** | Metro code | [optional] +**MetroDescription** | Pointer to **string** | Metro description | [optional] +**Region** | Pointer to **string** | A region have several metros. | [optional] +**ClusterSupported** | Pointer to **bool** | Whether this metro supports cluster devices | [optional] + +## Methods + +### NewMetro + +`func NewMetro() *Metro` + +NewMetro instantiates a new Metro object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetroWithDefaults + +`func NewMetroWithDefaults() *Metro` + +NewMetroWithDefaults instantiates a new Metro object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetroCode + +`func (o *Metro) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *Metro) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *Metro) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *Metro) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroDescription + +`func (o *Metro) GetMetroDescription() string` + +GetMetroDescription returns the MetroDescription field if non-nil, zero value otherwise. + +### GetMetroDescriptionOk + +`func (o *Metro) GetMetroDescriptionOk() (*string, bool)` + +GetMetroDescriptionOk returns a tuple with the MetroDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroDescription + +`func (o *Metro) SetMetroDescription(v string)` + +SetMetroDescription sets MetroDescription field to given value. + +### HasMetroDescription + +`func (o *Metro) HasMetroDescription() bool` + +HasMetroDescription returns a boolean if a field has been set. + +### GetRegion + +`func (o *Metro) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Metro) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Metro) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Metro) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetClusterSupported + +`func (o *Metro) GetClusterSupported() bool` + +GetClusterSupported returns the ClusterSupported field if non-nil, zero value otherwise. + +### GetClusterSupportedOk + +`func (o *Metro) GetClusterSupportedOk() (*bool, bool)` + +GetClusterSupportedOk returns a tuple with the ClusterSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterSupported + +`func (o *Metro) SetClusterSupported(v bool)` + +SetClusterSupported sets ClusterSupported field to given value. + +### HasClusterSupported + +`func (o *Metro) HasClusterSupported() bool` + +HasClusterSupported returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/MetroAccountResponse.md b/services/networkedgev1/docs/MetroAccountResponse.md new file mode 100644 index 00000000..efa96b1a --- /dev/null +++ b/services/networkedgev1/docs/MetroAccountResponse.md @@ -0,0 +1,212 @@ +# MetroAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **string** | account Name | [optional] +**AccountNumber** | Pointer to **int32** | account number | [optional] +**AccountUcmId** | Pointer to **string** | account UcmId | [optional] +**AccountStatus** | Pointer to **string** | account status | [optional] +**Metros** | Pointer to **[]string** | An array of metros where the account is valid | [optional] +**CreditHold** | Pointer to **bool** | Whether the account has a credit hold. You cannot use an account on credit hold to create a device. | [optional] +**ReferenceId** | Pointer to **string** | referenceId | [optional] + +## Methods + +### NewMetroAccountResponse + +`func NewMetroAccountResponse() *MetroAccountResponse` + +NewMetroAccountResponse instantiates a new MetroAccountResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetroAccountResponseWithDefaults + +`func NewMetroAccountResponseWithDefaults() *MetroAccountResponse` + +NewMetroAccountResponseWithDefaults instantiates a new MetroAccountResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *MetroAccountResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *MetroAccountResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *MetroAccountResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *MetroAccountResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetAccountNumber + +`func (o *MetroAccountResponse) GetAccountNumber() int32` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *MetroAccountResponse) GetAccountNumberOk() (*int32, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *MetroAccountResponse) SetAccountNumber(v int32)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *MetroAccountResponse) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountUcmId + +`func (o *MetroAccountResponse) GetAccountUcmId() string` + +GetAccountUcmId returns the AccountUcmId field if non-nil, zero value otherwise. + +### GetAccountUcmIdOk + +`func (o *MetroAccountResponse) GetAccountUcmIdOk() (*string, bool)` + +GetAccountUcmIdOk returns a tuple with the AccountUcmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUcmId + +`func (o *MetroAccountResponse) SetAccountUcmId(v string)` + +SetAccountUcmId sets AccountUcmId field to given value. + +### HasAccountUcmId + +`func (o *MetroAccountResponse) HasAccountUcmId() bool` + +HasAccountUcmId returns a boolean if a field has been set. + +### GetAccountStatus + +`func (o *MetroAccountResponse) GetAccountStatus() string` + +GetAccountStatus returns the AccountStatus field if non-nil, zero value otherwise. + +### GetAccountStatusOk + +`func (o *MetroAccountResponse) GetAccountStatusOk() (*string, bool)` + +GetAccountStatusOk returns a tuple with the AccountStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountStatus + +`func (o *MetroAccountResponse) SetAccountStatus(v string)` + +SetAccountStatus sets AccountStatus field to given value. + +### HasAccountStatus + +`func (o *MetroAccountResponse) HasAccountStatus() bool` + +HasAccountStatus returns a boolean if a field has been set. + +### GetMetros + +`func (o *MetroAccountResponse) GetMetros() []string` + +GetMetros returns the Metros field if non-nil, zero value otherwise. + +### GetMetrosOk + +`func (o *MetroAccountResponse) GetMetrosOk() (*[]string, bool)` + +GetMetrosOk returns a tuple with the Metros field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetros + +`func (o *MetroAccountResponse) SetMetros(v []string)` + +SetMetros sets Metros field to given value. + +### HasMetros + +`func (o *MetroAccountResponse) HasMetros() bool` + +HasMetros returns a boolean if a field has been set. + +### GetCreditHold + +`func (o *MetroAccountResponse) GetCreditHold() bool` + +GetCreditHold returns the CreditHold field if non-nil, zero value otherwise. + +### GetCreditHoldOk + +`func (o *MetroAccountResponse) GetCreditHoldOk() (*bool, bool)` + +GetCreditHoldOk returns a tuple with the CreditHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditHold + +`func (o *MetroAccountResponse) SetCreditHold(v bool)` + +SetCreditHold sets CreditHold field to given value. + +### HasCreditHold + +`func (o *MetroAccountResponse) HasCreditHold() bool` + +HasCreditHold returns a boolean if a field has been set. + +### GetReferenceId + +`func (o *MetroAccountResponse) GetReferenceId() string` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *MetroAccountResponse) GetReferenceIdOk() (*string, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *MetroAccountResponse) SetReferenceId(v string)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *MetroAccountResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/MetroResponse.md b/services/networkedgev1/docs/MetroResponse.md new file mode 100644 index 00000000..1f10c182 --- /dev/null +++ b/services/networkedgev1/docs/MetroResponse.md @@ -0,0 +1,134 @@ +# MetroResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetroCode** | Pointer to **string** | Metro code | [optional] +**MetroDescription** | Pointer to **string** | Metro description | [optional] +**Region** | Pointer to **string** | Region within which the metro is located | [optional] +**ClusterSupported** | Pointer to **bool** | Whether this metro supports cluster devices | [optional] + +## Methods + +### NewMetroResponse + +`func NewMetroResponse() *MetroResponse` + +NewMetroResponse instantiates a new MetroResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetroResponseWithDefaults + +`func NewMetroResponseWithDefaults() *MetroResponse` + +NewMetroResponseWithDefaults instantiates a new MetroResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetroCode + +`func (o *MetroResponse) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *MetroResponse) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *MetroResponse) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *MetroResponse) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroDescription + +`func (o *MetroResponse) GetMetroDescription() string` + +GetMetroDescription returns the MetroDescription field if non-nil, zero value otherwise. + +### GetMetroDescriptionOk + +`func (o *MetroResponse) GetMetroDescriptionOk() (*string, bool)` + +GetMetroDescriptionOk returns a tuple with the MetroDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroDescription + +`func (o *MetroResponse) SetMetroDescription(v string)` + +SetMetroDescription sets MetroDescription field to given value. + +### HasMetroDescription + +`func (o *MetroResponse) HasMetroDescription() bool` + +HasMetroDescription returns a boolean if a field has been set. + +### GetRegion + +`func (o *MetroResponse) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *MetroResponse) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *MetroResponse) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *MetroResponse) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetClusterSupported + +`func (o *MetroResponse) GetClusterSupported() bool` + +GetClusterSupported returns the ClusterSupported field if non-nil, zero value otherwise. + +### GetClusterSupportedOk + +`func (o *MetroResponse) GetClusterSupportedOk() (*bool, bool)` + +GetClusterSupportedOk returns a tuple with the ClusterSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterSupported + +`func (o *MetroResponse) SetClusterSupported(v bool)` + +SetClusterSupported sets ClusterSupported field to given value. + +### HasClusterSupported + +`func (o *MetroResponse) HasClusterSupported() bool` + +HasClusterSupported returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/MetroStatus.md b/services/networkedgev1/docs/MetroStatus.md new file mode 100644 index 00000000..ee417eb6 --- /dev/null +++ b/services/networkedgev1/docs/MetroStatus.md @@ -0,0 +1,56 @@ +# MetroStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Whether the ssh user is active, pending, or failed in the metro. | [optional] + +## Methods + +### NewMetroStatus + +`func NewMetroStatus() *MetroStatus` + +NewMetroStatus instantiates a new MetroStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetroStatusWithDefaults + +`func NewMetroStatusWithDefaults() *MetroStatus` + +NewMetroStatusWithDefaults instantiates a new MetroStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *MetroStatus) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *MetroStatus) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *MetroStatus) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *MetroStatus) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Node0Details.md b/services/networkedgev1/docs/Node0Details.md new file mode 100644 index 00000000..4d88bffc --- /dev/null +++ b/services/networkedgev1/docs/Node0Details.md @@ -0,0 +1,108 @@ +# Node0Details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LicenseFileId** | Pointer to **string** | License file id is required for Fortinet and Juniper clusters. | [optional] +**LicenseToken** | Pointer to **string** | License token is required for Palo Alto clusters. | [optional] +**VendorConfig** | Pointer to [**VendorConfigDetailsNode0**](VendorConfigDetailsNode0.md) | | [optional] + +## Methods + +### NewNode0Details + +`func NewNode0Details() *Node0Details` + +NewNode0Details instantiates a new Node0Details object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNode0DetailsWithDefaults + +`func NewNode0DetailsWithDefaults() *Node0Details` + +NewNode0DetailsWithDefaults instantiates a new Node0Details object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLicenseFileId + +`func (o *Node0Details) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *Node0Details) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *Node0Details) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *Node0Details) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetLicenseToken + +`func (o *Node0Details) GetLicenseToken() string` + +GetLicenseToken returns the LicenseToken field if non-nil, zero value otherwise. + +### GetLicenseTokenOk + +`func (o *Node0Details) GetLicenseTokenOk() (*string, bool)` + +GetLicenseTokenOk returns a tuple with the LicenseToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseToken + +`func (o *Node0Details) SetLicenseToken(v string)` + +SetLicenseToken sets LicenseToken field to given value. + +### HasLicenseToken + +`func (o *Node0Details) HasLicenseToken() bool` + +HasLicenseToken returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *Node0Details) GetVendorConfig() VendorConfigDetailsNode0` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *Node0Details) GetVendorConfigOk() (*VendorConfigDetailsNode0, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *Node0Details) SetVendorConfig(v VendorConfigDetailsNode0)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *Node0Details) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Node1Details.md b/services/networkedgev1/docs/Node1Details.md new file mode 100644 index 00000000..3b166506 --- /dev/null +++ b/services/networkedgev1/docs/Node1Details.md @@ -0,0 +1,108 @@ +# Node1Details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LicenseFileId** | Pointer to **string** | License file id is required for Fortinet and Juniper clusters. | [optional] +**LicenseToken** | Pointer to **string** | License token is required for Palo Alto clusters. | [optional] +**VendorConfig** | Pointer to [**VendorConfigDetailsNode1**](VendorConfigDetailsNode1.md) | | [optional] + +## Methods + +### NewNode1Details + +`func NewNode1Details() *Node1Details` + +NewNode1Details instantiates a new Node1Details object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNode1DetailsWithDefaults + +`func NewNode1DetailsWithDefaults() *Node1Details` + +NewNode1DetailsWithDefaults instantiates a new Node1Details object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLicenseFileId + +`func (o *Node1Details) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *Node1Details) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *Node1Details) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *Node1Details) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetLicenseToken + +`func (o *Node1Details) GetLicenseToken() string` + +GetLicenseToken returns the LicenseToken field if non-nil, zero value otherwise. + +### GetLicenseTokenOk + +`func (o *Node1Details) GetLicenseTokenOk() (*string, bool)` + +GetLicenseTokenOk returns a tuple with the LicenseToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseToken + +`func (o *Node1Details) SetLicenseToken(v string)` + +SetLicenseToken sets LicenseToken field to given value. + +### HasLicenseToken + +`func (o *Node1Details) HasLicenseToken() bool` + +HasLicenseToken returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *Node1Details) GetVendorConfig() VendorConfigDetailsNode1` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *Node1Details) GetVendorConfigOk() (*VendorConfigDetailsNode1, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *Node1Details) SetVendorConfig(v VendorConfigDetailsNode1)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *Node1Details) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/OrderSummaryResponse.md b/services/networkedgev1/docs/OrderSummaryResponse.md new file mode 100644 index 00000000..306a6fef --- /dev/null +++ b/services/networkedgev1/docs/OrderSummaryResponse.md @@ -0,0 +1,758 @@ +# OrderSummaryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **int32** | | [optional] +**AgreementId** | Pointer to **string** | | [optional] +**Charges** | Pointer to [**[]DeviceElement**](DeviceElement.md) | | [optional] +**Currency** | Pointer to **string** | | [optional] +**ErrorCode** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**EsignAgreementId** | Pointer to **string** | | [optional] +**IbxCountry** | Pointer to **string** | | [optional] +**IbxRegion** | Pointer to **string** | | [optional] +**InitialTerm** | Pointer to **int32** | | [optional] +**Metro** | Pointer to **string** | | [optional] +**MonthlyRecurringCharges** | Pointer to **float64** | | [optional] +**NonRecurringCharges** | Pointer to **float64** | | [optional] +**NonRenewalNotice** | Pointer to **string** | | [optional] +**OrderTerms** | Pointer to **string** | | [optional] +**PiPercentage** | Pointer to **string** | | [optional] +**ProductDescription** | Pointer to **string** | | [optional] +**Quantity** | Pointer to **int32** | | [optional] +**QuoteContentType** | Pointer to **string** | | [optional] +**QuoteFileName** | Pointer to **string** | | [optional] +**ReferenceId** | Pointer to **string** | | [optional] +**RenewalPeriod** | Pointer to **int32** | | [optional] +**RequestSignType** | Pointer to **string** | | [optional] +**SignStatus** | Pointer to **string** | | [optional] +**SignType** | Pointer to **string** | | [optional] +**Speed** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**TotalCharges** | Pointer to **float64** | | [optional] + +## Methods + +### NewOrderSummaryResponse + +`func NewOrderSummaryResponse() *OrderSummaryResponse` + +NewOrderSummaryResponse instantiates a new OrderSummaryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderSummaryResponseWithDefaults + +`func NewOrderSummaryResponseWithDefaults() *OrderSummaryResponse` + +NewOrderSummaryResponseWithDefaults instantiates a new OrderSummaryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *OrderSummaryResponse) GetAccountNumber() int32` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *OrderSummaryResponse) GetAccountNumberOk() (*int32, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *OrderSummaryResponse) SetAccountNumber(v int32)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *OrderSummaryResponse) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAgreementId + +`func (o *OrderSummaryResponse) GetAgreementId() string` + +GetAgreementId returns the AgreementId field if non-nil, zero value otherwise. + +### GetAgreementIdOk + +`func (o *OrderSummaryResponse) GetAgreementIdOk() (*string, bool)` + +GetAgreementIdOk returns a tuple with the AgreementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgreementId + +`func (o *OrderSummaryResponse) SetAgreementId(v string)` + +SetAgreementId sets AgreementId field to given value. + +### HasAgreementId + +`func (o *OrderSummaryResponse) HasAgreementId() bool` + +HasAgreementId returns a boolean if a field has been set. + +### GetCharges + +`func (o *OrderSummaryResponse) GetCharges() []DeviceElement` + +GetCharges returns the Charges field if non-nil, zero value otherwise. + +### GetChargesOk + +`func (o *OrderSummaryResponse) GetChargesOk() (*[]DeviceElement, bool)` + +GetChargesOk returns a tuple with the Charges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCharges + +`func (o *OrderSummaryResponse) SetCharges(v []DeviceElement)` + +SetCharges sets Charges field to given value. + +### HasCharges + +`func (o *OrderSummaryResponse) HasCharges() bool` + +HasCharges returns a boolean if a field has been set. + +### GetCurrency + +`func (o *OrderSummaryResponse) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *OrderSummaryResponse) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *OrderSummaryResponse) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *OrderSummaryResponse) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetErrorCode + +`func (o *OrderSummaryResponse) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *OrderSummaryResponse) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *OrderSummaryResponse) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *OrderSummaryResponse) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *OrderSummaryResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *OrderSummaryResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *OrderSummaryResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *OrderSummaryResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetEsignAgreementId + +`func (o *OrderSummaryResponse) GetEsignAgreementId() string` + +GetEsignAgreementId returns the EsignAgreementId field if non-nil, zero value otherwise. + +### GetEsignAgreementIdOk + +`func (o *OrderSummaryResponse) GetEsignAgreementIdOk() (*string, bool)` + +GetEsignAgreementIdOk returns a tuple with the EsignAgreementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEsignAgreementId + +`func (o *OrderSummaryResponse) SetEsignAgreementId(v string)` + +SetEsignAgreementId sets EsignAgreementId field to given value. + +### HasEsignAgreementId + +`func (o *OrderSummaryResponse) HasEsignAgreementId() bool` + +HasEsignAgreementId returns a boolean if a field has been set. + +### GetIbxCountry + +`func (o *OrderSummaryResponse) GetIbxCountry() string` + +GetIbxCountry returns the IbxCountry field if non-nil, zero value otherwise. + +### GetIbxCountryOk + +`func (o *OrderSummaryResponse) GetIbxCountryOk() (*string, bool)` + +GetIbxCountryOk returns a tuple with the IbxCountry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbxCountry + +`func (o *OrderSummaryResponse) SetIbxCountry(v string)` + +SetIbxCountry sets IbxCountry field to given value. + +### HasIbxCountry + +`func (o *OrderSummaryResponse) HasIbxCountry() bool` + +HasIbxCountry returns a boolean if a field has been set. + +### GetIbxRegion + +`func (o *OrderSummaryResponse) GetIbxRegion() string` + +GetIbxRegion returns the IbxRegion field if non-nil, zero value otherwise. + +### GetIbxRegionOk + +`func (o *OrderSummaryResponse) GetIbxRegionOk() (*string, bool)` + +GetIbxRegionOk returns a tuple with the IbxRegion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbxRegion + +`func (o *OrderSummaryResponse) SetIbxRegion(v string)` + +SetIbxRegion sets IbxRegion field to given value. + +### HasIbxRegion + +`func (o *OrderSummaryResponse) HasIbxRegion() bool` + +HasIbxRegion returns a boolean if a field has been set. + +### GetInitialTerm + +`func (o *OrderSummaryResponse) GetInitialTerm() int32` + +GetInitialTerm returns the InitialTerm field if non-nil, zero value otherwise. + +### GetInitialTermOk + +`func (o *OrderSummaryResponse) GetInitialTermOk() (*int32, bool)` + +GetInitialTermOk returns a tuple with the InitialTerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialTerm + +`func (o *OrderSummaryResponse) SetInitialTerm(v int32)` + +SetInitialTerm sets InitialTerm field to given value. + +### HasInitialTerm + +`func (o *OrderSummaryResponse) HasInitialTerm() bool` + +HasInitialTerm returns a boolean if a field has been set. + +### GetMetro + +`func (o *OrderSummaryResponse) GetMetro() string` + +GetMetro returns the Metro field if non-nil, zero value otherwise. + +### GetMetroOk + +`func (o *OrderSummaryResponse) GetMetroOk() (*string, bool)` + +GetMetroOk returns a tuple with the Metro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetro + +`func (o *OrderSummaryResponse) SetMetro(v string)` + +SetMetro sets Metro field to given value. + +### HasMetro + +`func (o *OrderSummaryResponse) HasMetro() bool` + +HasMetro returns a boolean if a field has been set. + +### GetMonthlyRecurringCharges + +`func (o *OrderSummaryResponse) GetMonthlyRecurringCharges() float64` + +GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field if non-nil, zero value otherwise. + +### GetMonthlyRecurringChargesOk + +`func (o *OrderSummaryResponse) GetMonthlyRecurringChargesOk() (*float64, bool)` + +GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyRecurringCharges + +`func (o *OrderSummaryResponse) SetMonthlyRecurringCharges(v float64)` + +SetMonthlyRecurringCharges sets MonthlyRecurringCharges field to given value. + +### HasMonthlyRecurringCharges + +`func (o *OrderSummaryResponse) HasMonthlyRecurringCharges() bool` + +HasMonthlyRecurringCharges returns a boolean if a field has been set. + +### GetNonRecurringCharges + +`func (o *OrderSummaryResponse) GetNonRecurringCharges() float64` + +GetNonRecurringCharges returns the NonRecurringCharges field if non-nil, zero value otherwise. + +### GetNonRecurringChargesOk + +`func (o *OrderSummaryResponse) GetNonRecurringChargesOk() (*float64, bool)` + +GetNonRecurringChargesOk returns a tuple with the NonRecurringCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonRecurringCharges + +`func (o *OrderSummaryResponse) SetNonRecurringCharges(v float64)` + +SetNonRecurringCharges sets NonRecurringCharges field to given value. + +### HasNonRecurringCharges + +`func (o *OrderSummaryResponse) HasNonRecurringCharges() bool` + +HasNonRecurringCharges returns a boolean if a field has been set. + +### GetNonRenewalNotice + +`func (o *OrderSummaryResponse) GetNonRenewalNotice() string` + +GetNonRenewalNotice returns the NonRenewalNotice field if non-nil, zero value otherwise. + +### GetNonRenewalNoticeOk + +`func (o *OrderSummaryResponse) GetNonRenewalNoticeOk() (*string, bool)` + +GetNonRenewalNoticeOk returns a tuple with the NonRenewalNotice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonRenewalNotice + +`func (o *OrderSummaryResponse) SetNonRenewalNotice(v string)` + +SetNonRenewalNotice sets NonRenewalNotice field to given value. + +### HasNonRenewalNotice + +`func (o *OrderSummaryResponse) HasNonRenewalNotice() bool` + +HasNonRenewalNotice returns a boolean if a field has been set. + +### GetOrderTerms + +`func (o *OrderSummaryResponse) GetOrderTerms() string` + +GetOrderTerms returns the OrderTerms field if non-nil, zero value otherwise. + +### GetOrderTermsOk + +`func (o *OrderSummaryResponse) GetOrderTermsOk() (*string, bool)` + +GetOrderTermsOk returns a tuple with the OrderTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderTerms + +`func (o *OrderSummaryResponse) SetOrderTerms(v string)` + +SetOrderTerms sets OrderTerms field to given value. + +### HasOrderTerms + +`func (o *OrderSummaryResponse) HasOrderTerms() bool` + +HasOrderTerms returns a boolean if a field has been set. + +### GetPiPercentage + +`func (o *OrderSummaryResponse) GetPiPercentage() string` + +GetPiPercentage returns the PiPercentage field if non-nil, zero value otherwise. + +### GetPiPercentageOk + +`func (o *OrderSummaryResponse) GetPiPercentageOk() (*string, bool)` + +GetPiPercentageOk returns a tuple with the PiPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPiPercentage + +`func (o *OrderSummaryResponse) SetPiPercentage(v string)` + +SetPiPercentage sets PiPercentage field to given value. + +### HasPiPercentage + +`func (o *OrderSummaryResponse) HasPiPercentage() bool` + +HasPiPercentage returns a boolean if a field has been set. + +### GetProductDescription + +`func (o *OrderSummaryResponse) GetProductDescription() string` + +GetProductDescription returns the ProductDescription field if non-nil, zero value otherwise. + +### GetProductDescriptionOk + +`func (o *OrderSummaryResponse) GetProductDescriptionOk() (*string, bool)` + +GetProductDescriptionOk returns a tuple with the ProductDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductDescription + +`func (o *OrderSummaryResponse) SetProductDescription(v string)` + +SetProductDescription sets ProductDescription field to given value. + +### HasProductDescription + +`func (o *OrderSummaryResponse) HasProductDescription() bool` + +HasProductDescription returns a boolean if a field has been set. + +### GetQuantity + +`func (o *OrderSummaryResponse) GetQuantity() int32` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *OrderSummaryResponse) GetQuantityOk() (*int32, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *OrderSummaryResponse) SetQuantity(v int32)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *OrderSummaryResponse) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### GetQuoteContentType + +`func (o *OrderSummaryResponse) GetQuoteContentType() string` + +GetQuoteContentType returns the QuoteContentType field if non-nil, zero value otherwise. + +### GetQuoteContentTypeOk + +`func (o *OrderSummaryResponse) GetQuoteContentTypeOk() (*string, bool)` + +GetQuoteContentTypeOk returns a tuple with the QuoteContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuoteContentType + +`func (o *OrderSummaryResponse) SetQuoteContentType(v string)` + +SetQuoteContentType sets QuoteContentType field to given value. + +### HasQuoteContentType + +`func (o *OrderSummaryResponse) HasQuoteContentType() bool` + +HasQuoteContentType returns a boolean if a field has been set. + +### GetQuoteFileName + +`func (o *OrderSummaryResponse) GetQuoteFileName() string` + +GetQuoteFileName returns the QuoteFileName field if non-nil, zero value otherwise. + +### GetQuoteFileNameOk + +`func (o *OrderSummaryResponse) GetQuoteFileNameOk() (*string, bool)` + +GetQuoteFileNameOk returns a tuple with the QuoteFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuoteFileName + +`func (o *OrderSummaryResponse) SetQuoteFileName(v string)` + +SetQuoteFileName sets QuoteFileName field to given value. + +### HasQuoteFileName + +`func (o *OrderSummaryResponse) HasQuoteFileName() bool` + +HasQuoteFileName returns a boolean if a field has been set. + +### GetReferenceId + +`func (o *OrderSummaryResponse) GetReferenceId() string` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *OrderSummaryResponse) GetReferenceIdOk() (*string, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *OrderSummaryResponse) SetReferenceId(v string)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *OrderSummaryResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + +### GetRenewalPeriod + +`func (o *OrderSummaryResponse) GetRenewalPeriod() int32` + +GetRenewalPeriod returns the RenewalPeriod field if non-nil, zero value otherwise. + +### GetRenewalPeriodOk + +`func (o *OrderSummaryResponse) GetRenewalPeriodOk() (*int32, bool)` + +GetRenewalPeriodOk returns a tuple with the RenewalPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalPeriod + +`func (o *OrderSummaryResponse) SetRenewalPeriod(v int32)` + +SetRenewalPeriod sets RenewalPeriod field to given value. + +### HasRenewalPeriod + +`func (o *OrderSummaryResponse) HasRenewalPeriod() bool` + +HasRenewalPeriod returns a boolean if a field has been set. + +### GetRequestSignType + +`func (o *OrderSummaryResponse) GetRequestSignType() string` + +GetRequestSignType returns the RequestSignType field if non-nil, zero value otherwise. + +### GetRequestSignTypeOk + +`func (o *OrderSummaryResponse) GetRequestSignTypeOk() (*string, bool)` + +GetRequestSignTypeOk returns a tuple with the RequestSignType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestSignType + +`func (o *OrderSummaryResponse) SetRequestSignType(v string)` + +SetRequestSignType sets RequestSignType field to given value. + +### HasRequestSignType + +`func (o *OrderSummaryResponse) HasRequestSignType() bool` + +HasRequestSignType returns a boolean if a field has been set. + +### GetSignStatus + +`func (o *OrderSummaryResponse) GetSignStatus() string` + +GetSignStatus returns the SignStatus field if non-nil, zero value otherwise. + +### GetSignStatusOk + +`func (o *OrderSummaryResponse) GetSignStatusOk() (*string, bool)` + +GetSignStatusOk returns a tuple with the SignStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignStatus + +`func (o *OrderSummaryResponse) SetSignStatus(v string)` + +SetSignStatus sets SignStatus field to given value. + +### HasSignStatus + +`func (o *OrderSummaryResponse) HasSignStatus() bool` + +HasSignStatus returns a boolean if a field has been set. + +### GetSignType + +`func (o *OrderSummaryResponse) GetSignType() string` + +GetSignType returns the SignType field if non-nil, zero value otherwise. + +### GetSignTypeOk + +`func (o *OrderSummaryResponse) GetSignTypeOk() (*string, bool)` + +GetSignTypeOk returns a tuple with the SignType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignType + +`func (o *OrderSummaryResponse) SetSignType(v string)` + +SetSignType sets SignType field to given value. + +### HasSignType + +`func (o *OrderSummaryResponse) HasSignType() bool` + +HasSignType returns a boolean if a field has been set. + +### GetSpeed + +`func (o *OrderSummaryResponse) GetSpeed() string` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *OrderSummaryResponse) GetSpeedOk() (*string, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *OrderSummaryResponse) SetSpeed(v string)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *OrderSummaryResponse) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### GetStatus + +`func (o *OrderSummaryResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OrderSummaryResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *OrderSummaryResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *OrderSummaryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTotalCharges + +`func (o *OrderSummaryResponse) GetTotalCharges() float64` + +GetTotalCharges returns the TotalCharges field if non-nil, zero value otherwise. + +### GetTotalChargesOk + +`func (o *OrderSummaryResponse) GetTotalChargesOk() (*float64, bool)` + +GetTotalChargesOk returns a tuple with the TotalCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCharges + +`func (o *OrderSummaryResponse) SetTotalCharges(v float64)` + +SetTotalCharges sets TotalCharges field to given value. + +### HasTotalCharges + +`func (o *OrderSummaryResponse) HasTotalCharges() bool` + +HasTotalCharges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/OrderTermsResponse.md b/services/networkedgev1/docs/OrderTermsResponse.md new file mode 100644 index 00000000..1c21c339 --- /dev/null +++ b/services/networkedgev1/docs/OrderTermsResponse.md @@ -0,0 +1,56 @@ +# OrderTermsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Terms** | Pointer to **string** | | [optional] + +## Methods + +### NewOrderTermsResponse + +`func NewOrderTermsResponse() *OrderTermsResponse` + +NewOrderTermsResponse instantiates a new OrderTermsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderTermsResponseWithDefaults + +`func NewOrderTermsResponseWithDefaults() *OrderTermsResponse` + +NewOrderTermsResponseWithDefaults instantiates a new OrderTermsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTerms + +`func (o *OrderTermsResponse) GetTerms() string` + +GetTerms returns the Terms field if non-nil, zero value otherwise. + +### GetTermsOk + +`func (o *OrderTermsResponse) GetTermsOk() (*string, bool)` + +GetTermsOk returns a tuple with the Terms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerms + +`func (o *OrderTermsResponse) SetTerms(v string)` + +SetTerms sets Terms field to given value. + +### HasTerms + +`func (o *OrderTermsResponse) HasTerms() bool` + +HasTerms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PackageCodes.md b/services/networkedgev1/docs/PackageCodes.md new file mode 100644 index 00000000..faec821c --- /dev/null +++ b/services/networkedgev1/docs/PackageCodes.md @@ -0,0 +1,160 @@ +# PackageCodes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PackageCode** | Pointer to **string** | The type of package. | [optional] +**ExcludedVersions** | Pointer to **[]string** | | [optional] +**ExcludedClusterVersions** | Pointer to **[]string** | | [optional] +**Throughputs** | Pointer to [**[]ThroughputConfig**](ThroughputConfig.md) | | [optional] +**Supported** | Pointer to **bool** | Whether this software package is supported. | [optional] + +## Methods + +### NewPackageCodes + +`func NewPackageCodes() *PackageCodes` + +NewPackageCodes instantiates a new PackageCodes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageCodesWithDefaults + +`func NewPackageCodesWithDefaults() *PackageCodes` + +NewPackageCodesWithDefaults instantiates a new PackageCodes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageCode + +`func (o *PackageCodes) GetPackageCode() string` + +GetPackageCode returns the PackageCode field if non-nil, zero value otherwise. + +### GetPackageCodeOk + +`func (o *PackageCodes) GetPackageCodeOk() (*string, bool)` + +GetPackageCodeOk returns a tuple with the PackageCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCode + +`func (o *PackageCodes) SetPackageCode(v string)` + +SetPackageCode sets PackageCode field to given value. + +### HasPackageCode + +`func (o *PackageCodes) HasPackageCode() bool` + +HasPackageCode returns a boolean if a field has been set. + +### GetExcludedVersions + +`func (o *PackageCodes) GetExcludedVersions() []string` + +GetExcludedVersions returns the ExcludedVersions field if non-nil, zero value otherwise. + +### GetExcludedVersionsOk + +`func (o *PackageCodes) GetExcludedVersionsOk() (*[]string, bool)` + +GetExcludedVersionsOk returns a tuple with the ExcludedVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludedVersions + +`func (o *PackageCodes) SetExcludedVersions(v []string)` + +SetExcludedVersions sets ExcludedVersions field to given value. + +### HasExcludedVersions + +`func (o *PackageCodes) HasExcludedVersions() bool` + +HasExcludedVersions returns a boolean if a field has been set. + +### GetExcludedClusterVersions + +`func (o *PackageCodes) GetExcludedClusterVersions() []string` + +GetExcludedClusterVersions returns the ExcludedClusterVersions field if non-nil, zero value otherwise. + +### GetExcludedClusterVersionsOk + +`func (o *PackageCodes) GetExcludedClusterVersionsOk() (*[]string, bool)` + +GetExcludedClusterVersionsOk returns a tuple with the ExcludedClusterVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludedClusterVersions + +`func (o *PackageCodes) SetExcludedClusterVersions(v []string)` + +SetExcludedClusterVersions sets ExcludedClusterVersions field to given value. + +### HasExcludedClusterVersions + +`func (o *PackageCodes) HasExcludedClusterVersions() bool` + +HasExcludedClusterVersions returns a boolean if a field has been set. + +### GetThroughputs + +`func (o *PackageCodes) GetThroughputs() []ThroughputConfig` + +GetThroughputs returns the Throughputs field if non-nil, zero value otherwise. + +### GetThroughputsOk + +`func (o *PackageCodes) GetThroughputsOk() (*[]ThroughputConfig, bool)` + +GetThroughputsOk returns a tuple with the Throughputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputs + +`func (o *PackageCodes) SetThroughputs(v []ThroughputConfig)` + +SetThroughputs sets Throughputs field to given value. + +### HasThroughputs + +`func (o *PackageCodes) HasThroughputs() bool` + +HasThroughputs returns a boolean if a field has been set. + +### GetSupported + +`func (o *PackageCodes) GetSupported() bool` + +GetSupported returns the Supported field if non-nil, zero value otherwise. + +### GetSupportedOk + +`func (o *PackageCodes) GetSupportedOk() (*bool, bool)` + +GetSupportedOk returns a tuple with the Supported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupported + +`func (o *PackageCodes) SetSupported(v bool)` + +SetSupported sets Supported field to given value. + +### HasSupported + +`func (o *PackageCodes) HasSupported() bool` + +HasSupported returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponse.md b/services/networkedgev1/docs/PageResponse.md new file mode 100644 index 00000000..ebed53cb --- /dev/null +++ b/services/networkedgev1/docs/PageResponse.md @@ -0,0 +1,82 @@ +# PageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **[]map[string]interface{}** | | [optional] +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] + +## Methods + +### NewPageResponse + +`func NewPageResponse() *PageResponse` + +NewPageResponse instantiates a new PageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponseWithDefaults + +`func NewPageResponseWithDefaults() *PageResponse` + +NewPageResponseWithDefaults instantiates a new PageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PageResponse) GetData() []map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PageResponse) GetDataOk() (*[]map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PageResponse) SetData(v []map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPagination + +`func (o *PageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *PageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponseDto.md b/services/networkedgev1/docs/PageResponseDto.md new file mode 100644 index 00000000..84567de0 --- /dev/null +++ b/services/networkedgev1/docs/PageResponseDto.md @@ -0,0 +1,108 @@ +# PageResponseDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **[]map[string]interface{}** | | [optional] +**Data** | Pointer to **[]map[string]interface{}** | | [optional] +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] + +## Methods + +### NewPageResponseDto + +`func NewPageResponseDto() *PageResponseDto` + +NewPageResponseDto instantiates a new PageResponseDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponseDtoWithDefaults + +`func NewPageResponseDtoWithDefaults() *PageResponseDto` + +NewPageResponseDtoWithDefaults instantiates a new PageResponseDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContent + +`func (o *PageResponseDto) GetContent() []map[string]interface{}` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *PageResponseDto) GetContentOk() (*[]map[string]interface{}, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *PageResponseDto) SetContent(v []map[string]interface{})` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *PageResponseDto) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetData + +`func (o *PageResponseDto) GetData() []map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PageResponseDto) GetDataOk() (*[]map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PageResponseDto) SetData(v []map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PageResponseDto) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPagination + +`func (o *PageResponseDto) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PageResponseDto) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PageResponseDto) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *PageResponseDto) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponseDtoMetroAccountResponse.md b/services/networkedgev1/docs/PageResponseDtoMetroAccountResponse.md new file mode 100644 index 00000000..f5cf1263 --- /dev/null +++ b/services/networkedgev1/docs/PageResponseDtoMetroAccountResponse.md @@ -0,0 +1,134 @@ +# PageResponseDtoMetroAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountCreateUrl** | Pointer to **string** | accountCreateUrl | [optional] +**Accounts** | Pointer to [**[]MetroAccountResponse**](MetroAccountResponse.md) | | [optional] +**ErrorMessage** | Pointer to **string** | error Message | [optional] +**ErrorCode** | Pointer to **string** | error Code | [optional] + +## Methods + +### NewPageResponseDtoMetroAccountResponse + +`func NewPageResponseDtoMetroAccountResponse() *PageResponseDtoMetroAccountResponse` + +NewPageResponseDtoMetroAccountResponse instantiates a new PageResponseDtoMetroAccountResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponseDtoMetroAccountResponseWithDefaults + +`func NewPageResponseDtoMetroAccountResponseWithDefaults() *PageResponseDtoMetroAccountResponse` + +NewPageResponseDtoMetroAccountResponseWithDefaults instantiates a new PageResponseDtoMetroAccountResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountCreateUrl + +`func (o *PageResponseDtoMetroAccountResponse) GetAccountCreateUrl() string` + +GetAccountCreateUrl returns the AccountCreateUrl field if non-nil, zero value otherwise. + +### GetAccountCreateUrlOk + +`func (o *PageResponseDtoMetroAccountResponse) GetAccountCreateUrlOk() (*string, bool)` + +GetAccountCreateUrlOk returns a tuple with the AccountCreateUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountCreateUrl + +`func (o *PageResponseDtoMetroAccountResponse) SetAccountCreateUrl(v string)` + +SetAccountCreateUrl sets AccountCreateUrl field to given value. + +### HasAccountCreateUrl + +`func (o *PageResponseDtoMetroAccountResponse) HasAccountCreateUrl() bool` + +HasAccountCreateUrl returns a boolean if a field has been set. + +### GetAccounts + +`func (o *PageResponseDtoMetroAccountResponse) GetAccounts() []MetroAccountResponse` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *PageResponseDtoMetroAccountResponse) GetAccountsOk() (*[]MetroAccountResponse, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *PageResponseDtoMetroAccountResponse) SetAccounts(v []MetroAccountResponse)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *PageResponseDtoMetroAccountResponse) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *PageResponseDtoMetroAccountResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *PageResponseDtoMetroAccountResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *PageResponseDtoMetroAccountResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *PageResponseDtoMetroAccountResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetErrorCode + +`func (o *PageResponseDtoMetroAccountResponse) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *PageResponseDtoMetroAccountResponse) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *PageResponseDtoMetroAccountResponse) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *PageResponseDtoMetroAccountResponse) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponseDtoMetroResponse.md b/services/networkedgev1/docs/PageResponseDtoMetroResponse.md new file mode 100644 index 00000000..f973151f --- /dev/null +++ b/services/networkedgev1/docs/PageResponseDtoMetroResponse.md @@ -0,0 +1,82 @@ +# PageResponseDtoMetroResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]MetroResponse**](MetroResponse.md) | | [optional] +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] + +## Methods + +### NewPageResponseDtoMetroResponse + +`func NewPageResponseDtoMetroResponse() *PageResponseDtoMetroResponse` + +NewPageResponseDtoMetroResponse instantiates a new PageResponseDtoMetroResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponseDtoMetroResponseWithDefaults + +`func NewPageResponseDtoMetroResponseWithDefaults() *PageResponseDtoMetroResponse` + +NewPageResponseDtoMetroResponseWithDefaults instantiates a new PageResponseDtoMetroResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PageResponseDtoMetroResponse) GetData() []MetroResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PageResponseDtoMetroResponse) GetDataOk() (*[]MetroResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PageResponseDtoMetroResponse) SetData(v []MetroResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PageResponseDtoMetroResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPagination + +`func (o *PageResponseDtoMetroResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PageResponseDtoMetroResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PageResponseDtoMetroResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *PageResponseDtoMetroResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponseDtoVirtualDeviceType.md b/services/networkedgev1/docs/PageResponseDtoVirtualDeviceType.md new file mode 100644 index 00000000..5358126b --- /dev/null +++ b/services/networkedgev1/docs/PageResponseDtoVirtualDeviceType.md @@ -0,0 +1,82 @@ +# PageResponseDtoVirtualDeviceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]VirtualDeviceType**](VirtualDeviceType.md) | Array of available virtual device types | [optional] +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] + +## Methods + +### NewPageResponseDtoVirtualDeviceType + +`func NewPageResponseDtoVirtualDeviceType() *PageResponseDtoVirtualDeviceType` + +NewPageResponseDtoVirtualDeviceType instantiates a new PageResponseDtoVirtualDeviceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponseDtoVirtualDeviceTypeWithDefaults + +`func NewPageResponseDtoVirtualDeviceTypeWithDefaults() *PageResponseDtoVirtualDeviceType` + +NewPageResponseDtoVirtualDeviceTypeWithDefaults instantiates a new PageResponseDtoVirtualDeviceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PageResponseDtoVirtualDeviceType) GetData() []VirtualDeviceType` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PageResponseDtoVirtualDeviceType) GetDataOk() (*[]VirtualDeviceType, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PageResponseDtoVirtualDeviceType) SetData(v []VirtualDeviceType)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PageResponseDtoVirtualDeviceType) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPagination + +`func (o *PageResponseDtoVirtualDeviceType) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PageResponseDtoVirtualDeviceType) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PageResponseDtoVirtualDeviceType) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *PageResponseDtoVirtualDeviceType) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PageResponsePublicKeys.md b/services/networkedgev1/docs/PageResponsePublicKeys.md new file mode 100644 index 00000000..bbd9a165 --- /dev/null +++ b/services/networkedgev1/docs/PageResponsePublicKeys.md @@ -0,0 +1,134 @@ +# PageResponsePublicKeys + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The unique Id of the keyName and keyValue combination | [optional] +**KeyName** | Pointer to **string** | Key name | [optional] +**KeyValue** | Pointer to **string** | Key value | [optional] +**KeyType** | Pointer to **string** | Type of key, whether RSA or DSA | [optional] + +## Methods + +### NewPageResponsePublicKeys + +`func NewPageResponsePublicKeys() *PageResponsePublicKeys` + +NewPageResponsePublicKeys instantiates a new PageResponsePublicKeys object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageResponsePublicKeysWithDefaults + +`func NewPageResponsePublicKeysWithDefaults() *PageResponsePublicKeys` + +NewPageResponsePublicKeysWithDefaults instantiates a new PageResponsePublicKeys object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *PageResponsePublicKeys) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *PageResponsePublicKeys) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *PageResponsePublicKeys) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *PageResponsePublicKeys) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetKeyName + +`func (o *PageResponsePublicKeys) GetKeyName() string` + +GetKeyName returns the KeyName field if non-nil, zero value otherwise. + +### GetKeyNameOk + +`func (o *PageResponsePublicKeys) GetKeyNameOk() (*string, bool)` + +GetKeyNameOk returns a tuple with the KeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyName + +`func (o *PageResponsePublicKeys) SetKeyName(v string)` + +SetKeyName sets KeyName field to given value. + +### HasKeyName + +`func (o *PageResponsePublicKeys) HasKeyName() bool` + +HasKeyName returns a boolean if a field has been set. + +### GetKeyValue + +`func (o *PageResponsePublicKeys) GetKeyValue() string` + +GetKeyValue returns the KeyValue field if non-nil, zero value otherwise. + +### GetKeyValueOk + +`func (o *PageResponsePublicKeys) GetKeyValueOk() (*string, bool)` + +GetKeyValueOk returns a tuple with the KeyValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyValue + +`func (o *PageResponsePublicKeys) SetKeyValue(v string)` + +SetKeyValue sets KeyValue field to given value. + +### HasKeyValue + +`func (o *PageResponsePublicKeys) HasKeyValue() bool` + +HasKeyValue returns a boolean if a field has been set. + +### GetKeyType + +`func (o *PageResponsePublicKeys) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *PageResponsePublicKeys) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *PageResponsePublicKeys) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *PageResponsePublicKeys) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PaginationResponseDto.md b/services/networkedgev1/docs/PaginationResponseDto.md new file mode 100644 index 00000000..d6e41b17 --- /dev/null +++ b/services/networkedgev1/docs/PaginationResponseDto.md @@ -0,0 +1,108 @@ +# PaginationResponseDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Offset** | Pointer to **int32** | It is the starting point of the collection returned fromt the server | [optional] +**Limit** | Pointer to **int32** | The page size | [optional] +**Total** | Pointer to **int32** | The total number of results | [optional] + +## Methods + +### NewPaginationResponseDto + +`func NewPaginationResponseDto() *PaginationResponseDto` + +NewPaginationResponseDto instantiates a new PaginationResponseDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginationResponseDtoWithDefaults + +`func NewPaginationResponseDtoWithDefaults() *PaginationResponseDto` + +NewPaginationResponseDtoWithDefaults instantiates a new PaginationResponseDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOffset + +`func (o *PaginationResponseDto) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *PaginationResponseDto) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *PaginationResponseDto) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *PaginationResponseDto) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetLimit + +`func (o *PaginationResponseDto) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *PaginationResponseDto) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *PaginationResponseDto) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *PaginationResponseDto) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetTotal + +`func (o *PaginationResponseDto) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *PaginationResponseDto) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *PaginationResponseDto) SetTotal(v int32)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *PaginationResponseDto) HasTotal() bool` + +HasTotal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PatchRequest.md b/services/networkedgev1/docs/PatchRequest.md new file mode 100644 index 00000000..506db614 --- /dev/null +++ b/services/networkedgev1/docs/PatchRequest.md @@ -0,0 +1,82 @@ +# PatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessKey** | Pointer to **string** | | [optional] +**SecretKey** | Pointer to **string** | | [optional] + +## Methods + +### NewPatchRequest + +`func NewPatchRequest() *PatchRequest` + +NewPatchRequest instantiates a new PatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchRequestWithDefaults + +`func NewPatchRequestWithDefaults() *PatchRequest` + +NewPatchRequestWithDefaults instantiates a new PatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessKey + +`func (o *PatchRequest) GetAccessKey() string` + +GetAccessKey returns the AccessKey field if non-nil, zero value otherwise. + +### GetAccessKeyOk + +`func (o *PatchRequest) GetAccessKeyOk() (*string, bool)` + +GetAccessKeyOk returns a tuple with the AccessKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessKey + +`func (o *PatchRequest) SetAccessKey(v string)` + +SetAccessKey sets AccessKey field to given value. + +### HasAccessKey + +`func (o *PatchRequest) HasAccessKey() bool` + +HasAccessKey returns a boolean if a field has been set. + +### GetSecretKey + +`func (o *PatchRequest) GetSecretKey() string` + +GetSecretKey returns the SecretKey field if non-nil, zero value otherwise. + +### GetSecretKeyOk + +`func (o *PatchRequest) GetSecretKeyOk() (*string, bool)` + +GetSecretKeyOk returns a tuple with the SecretKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretKey + +`func (o *PatchRequest) SetSecretKey(v string)` + +SetSecretKey sets SecretKey field to given value. + +### HasSecretKey + +`func (o *PatchRequest) HasSecretKey() bool` + +HasSecretKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PolledThroughputMetrics.md b/services/networkedgev1/docs/PolledThroughputMetrics.md new file mode 100644 index 00000000..2de50c75 --- /dev/null +++ b/services/networkedgev1/docs/PolledThroughputMetrics.md @@ -0,0 +1,82 @@ +# PolledThroughputMetrics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IntervalDateTime** | Pointer to **string** | The end of a polled time period. | [optional] +**Mean** | Pointer to **float32** | Mean traffic throughput. | [optional] + +## Methods + +### NewPolledThroughputMetrics + +`func NewPolledThroughputMetrics() *PolledThroughputMetrics` + +NewPolledThroughputMetrics instantiates a new PolledThroughputMetrics object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolledThroughputMetricsWithDefaults + +`func NewPolledThroughputMetricsWithDefaults() *PolledThroughputMetrics` + +NewPolledThroughputMetricsWithDefaults instantiates a new PolledThroughputMetrics object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIntervalDateTime + +`func (o *PolledThroughputMetrics) GetIntervalDateTime() string` + +GetIntervalDateTime returns the IntervalDateTime field if non-nil, zero value otherwise. + +### GetIntervalDateTimeOk + +`func (o *PolledThroughputMetrics) GetIntervalDateTimeOk() (*string, bool)` + +GetIntervalDateTimeOk returns a tuple with the IntervalDateTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntervalDateTime + +`func (o *PolledThroughputMetrics) SetIntervalDateTime(v string)` + +SetIntervalDateTime sets IntervalDateTime field to given value. + +### HasIntervalDateTime + +`func (o *PolledThroughputMetrics) HasIntervalDateTime() bool` + +HasIntervalDateTime returns a boolean if a field has been set. + +### GetMean + +`func (o *PolledThroughputMetrics) GetMean() float32` + +GetMean returns the Mean field if non-nil, zero value otherwise. + +### GetMeanOk + +`func (o *PolledThroughputMetrics) GetMeanOk() (*float32, bool)` + +GetMeanOk returns a tuple with the Mean field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMean + +`func (o *PolledThroughputMetrics) SetMean(v float32)` + +SetMean sets Mean field to given value. + +### HasMean + +`func (o *PolledThroughputMetrics) HasMean() bool` + +HasMean returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PostConnectionRequest.md b/services/networkedgev1/docs/PostConnectionRequest.md new file mode 100644 index 00000000..49dcc670 --- /dev/null +++ b/services/networkedgev1/docs/PostConnectionRequest.md @@ -0,0 +1,706 @@ +# PostConnectionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrimaryName** | Pointer to **string** | | [optional] +**VirtualDeviceUUID** | Pointer to **string** | | [optional] +**ProfileUUID** | Pointer to **string** | | [optional] +**AuthorizationKey** | Pointer to **string** | | [optional] +**Speed** | Pointer to **int32** | | [optional] +**SpeedUnit** | Pointer to **string** | | [optional] +**Notifications** | Pointer to **[]string** | | [optional] +**PurchaseOrderNumber** | Pointer to **string** | | [optional] +**SellerMetroCode** | Pointer to **string** | | [optional] +**InterfaceId** | Pointer to **int32** | | [optional] +**SecondaryName** | Pointer to **string** | | [optional] +**NamedTag** | Pointer to **string** | | [optional] +**SecondaryVirtualDeviceUUID** | Pointer to **string** | | [optional] +**SecondaryProfileUUID** | Pointer to **string** | | [optional] +**SecondaryAuthorizationKey** | Pointer to **string** | | [optional] +**SecondarySellerMetroCode** | Pointer to **string** | | [optional] +**SecondarySpeed** | Pointer to **int32** | | [optional] +**SecondarySpeedUnit** | Pointer to **string** | | [optional] +**SecondaryNotifications** | Pointer to **[]string** | | [optional] +**SecondaryInterfaceId** | Pointer to **int32** | | [optional] +**PrimaryZSideVlanCTag** | Pointer to **int32** | | [optional] +**SecondaryZSideVlanCTag** | Pointer to **int32** | | [optional] +**PrimaryZSidePortUUID** | Pointer to **string** | | [optional] +**PrimaryZSideVlanSTag** | Pointer to **int32** | | [optional] +**SecondaryZSidePortUUID** | Pointer to **string** | | [optional] +**SecondaryZSideVlanSTag** | Pointer to **int32** | | [optional] + +## Methods + +### NewPostConnectionRequest + +`func NewPostConnectionRequest() *PostConnectionRequest` + +NewPostConnectionRequest instantiates a new PostConnectionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPostConnectionRequestWithDefaults + +`func NewPostConnectionRequestWithDefaults() *PostConnectionRequest` + +NewPostConnectionRequestWithDefaults instantiates a new PostConnectionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrimaryName + +`func (o *PostConnectionRequest) GetPrimaryName() string` + +GetPrimaryName returns the PrimaryName field if non-nil, zero value otherwise. + +### GetPrimaryNameOk + +`func (o *PostConnectionRequest) GetPrimaryNameOk() (*string, bool)` + +GetPrimaryNameOk returns a tuple with the PrimaryName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryName + +`func (o *PostConnectionRequest) SetPrimaryName(v string)` + +SetPrimaryName sets PrimaryName field to given value. + +### HasPrimaryName + +`func (o *PostConnectionRequest) HasPrimaryName() bool` + +HasPrimaryName returns a boolean if a field has been set. + +### GetVirtualDeviceUUID + +`func (o *PostConnectionRequest) GetVirtualDeviceUUID() string` + +GetVirtualDeviceUUID returns the VirtualDeviceUUID field if non-nil, zero value otherwise. + +### GetVirtualDeviceUUIDOk + +`func (o *PostConnectionRequest) GetVirtualDeviceUUIDOk() (*string, bool)` + +GetVirtualDeviceUUIDOk returns a tuple with the VirtualDeviceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceUUID + +`func (o *PostConnectionRequest) SetVirtualDeviceUUID(v string)` + +SetVirtualDeviceUUID sets VirtualDeviceUUID field to given value. + +### HasVirtualDeviceUUID + +`func (o *PostConnectionRequest) HasVirtualDeviceUUID() bool` + +HasVirtualDeviceUUID returns a boolean if a field has been set. + +### GetProfileUUID + +`func (o *PostConnectionRequest) GetProfileUUID() string` + +GetProfileUUID returns the ProfileUUID field if non-nil, zero value otherwise. + +### GetProfileUUIDOk + +`func (o *PostConnectionRequest) GetProfileUUIDOk() (*string, bool)` + +GetProfileUUIDOk returns a tuple with the ProfileUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfileUUID + +`func (o *PostConnectionRequest) SetProfileUUID(v string)` + +SetProfileUUID sets ProfileUUID field to given value. + +### HasProfileUUID + +`func (o *PostConnectionRequest) HasProfileUUID() bool` + +HasProfileUUID returns a boolean if a field has been set. + +### GetAuthorizationKey + +`func (o *PostConnectionRequest) GetAuthorizationKey() string` + +GetAuthorizationKey returns the AuthorizationKey field if non-nil, zero value otherwise. + +### GetAuthorizationKeyOk + +`func (o *PostConnectionRequest) GetAuthorizationKeyOk() (*string, bool)` + +GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationKey + +`func (o *PostConnectionRequest) SetAuthorizationKey(v string)` + +SetAuthorizationKey sets AuthorizationKey field to given value. + +### HasAuthorizationKey + +`func (o *PostConnectionRequest) HasAuthorizationKey() bool` + +HasAuthorizationKey returns a boolean if a field has been set. + +### GetSpeed + +`func (o *PostConnectionRequest) GetSpeed() int32` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *PostConnectionRequest) GetSpeedOk() (*int32, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *PostConnectionRequest) SetSpeed(v int32)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *PostConnectionRequest) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### GetSpeedUnit + +`func (o *PostConnectionRequest) GetSpeedUnit() string` + +GetSpeedUnit returns the SpeedUnit field if non-nil, zero value otherwise. + +### GetSpeedUnitOk + +`func (o *PostConnectionRequest) GetSpeedUnitOk() (*string, bool)` + +GetSpeedUnitOk returns a tuple with the SpeedUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeedUnit + +`func (o *PostConnectionRequest) SetSpeedUnit(v string)` + +SetSpeedUnit sets SpeedUnit field to given value. + +### HasSpeedUnit + +`func (o *PostConnectionRequest) HasSpeedUnit() bool` + +HasSpeedUnit returns a boolean if a field has been set. + +### GetNotifications + +`func (o *PostConnectionRequest) GetNotifications() []string` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *PostConnectionRequest) GetNotificationsOk() (*[]string, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *PostConnectionRequest) SetNotifications(v []string)` + +SetNotifications sets Notifications field to given value. + +### HasNotifications + +`func (o *PostConnectionRequest) HasNotifications() bool` + +HasNotifications returns a boolean if a field has been set. + +### GetPurchaseOrderNumber + +`func (o *PostConnectionRequest) GetPurchaseOrderNumber() string` + +GetPurchaseOrderNumber returns the PurchaseOrderNumber field if non-nil, zero value otherwise. + +### GetPurchaseOrderNumberOk + +`func (o *PostConnectionRequest) GetPurchaseOrderNumberOk() (*string, bool)` + +GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurchaseOrderNumber + +`func (o *PostConnectionRequest) SetPurchaseOrderNumber(v string)` + +SetPurchaseOrderNumber sets PurchaseOrderNumber field to given value. + +### HasPurchaseOrderNumber + +`func (o *PostConnectionRequest) HasPurchaseOrderNumber() bool` + +HasPurchaseOrderNumber returns a boolean if a field has been set. + +### GetSellerMetroCode + +`func (o *PostConnectionRequest) GetSellerMetroCode() string` + +GetSellerMetroCode returns the SellerMetroCode field if non-nil, zero value otherwise. + +### GetSellerMetroCodeOk + +`func (o *PostConnectionRequest) GetSellerMetroCodeOk() (*string, bool)` + +GetSellerMetroCodeOk returns a tuple with the SellerMetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSellerMetroCode + +`func (o *PostConnectionRequest) SetSellerMetroCode(v string)` + +SetSellerMetroCode sets SellerMetroCode field to given value. + +### HasSellerMetroCode + +`func (o *PostConnectionRequest) HasSellerMetroCode() bool` + +HasSellerMetroCode returns a boolean if a field has been set. + +### GetInterfaceId + +`func (o *PostConnectionRequest) GetInterfaceId() int32` + +GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise. + +### GetInterfaceIdOk + +`func (o *PostConnectionRequest) GetInterfaceIdOk() (*int32, bool)` + +GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceId + +`func (o *PostConnectionRequest) SetInterfaceId(v int32)` + +SetInterfaceId sets InterfaceId field to given value. + +### HasInterfaceId + +`func (o *PostConnectionRequest) HasInterfaceId() bool` + +HasInterfaceId returns a boolean if a field has been set. + +### GetSecondaryName + +`func (o *PostConnectionRequest) GetSecondaryName() string` + +GetSecondaryName returns the SecondaryName field if non-nil, zero value otherwise. + +### GetSecondaryNameOk + +`func (o *PostConnectionRequest) GetSecondaryNameOk() (*string, bool)` + +GetSecondaryNameOk returns a tuple with the SecondaryName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryName + +`func (o *PostConnectionRequest) SetSecondaryName(v string)` + +SetSecondaryName sets SecondaryName field to given value. + +### HasSecondaryName + +`func (o *PostConnectionRequest) HasSecondaryName() bool` + +HasSecondaryName returns a boolean if a field has been set. + +### GetNamedTag + +`func (o *PostConnectionRequest) GetNamedTag() string` + +GetNamedTag returns the NamedTag field if non-nil, zero value otherwise. + +### GetNamedTagOk + +`func (o *PostConnectionRequest) GetNamedTagOk() (*string, bool)` + +GetNamedTagOk returns a tuple with the NamedTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamedTag + +`func (o *PostConnectionRequest) SetNamedTag(v string)` + +SetNamedTag sets NamedTag field to given value. + +### HasNamedTag + +`func (o *PostConnectionRequest) HasNamedTag() bool` + +HasNamedTag returns a boolean if a field has been set. + +### GetSecondaryVirtualDeviceUUID + +`func (o *PostConnectionRequest) GetSecondaryVirtualDeviceUUID() string` + +GetSecondaryVirtualDeviceUUID returns the SecondaryVirtualDeviceUUID field if non-nil, zero value otherwise. + +### GetSecondaryVirtualDeviceUUIDOk + +`func (o *PostConnectionRequest) GetSecondaryVirtualDeviceUUIDOk() (*string, bool)` + +GetSecondaryVirtualDeviceUUIDOk returns a tuple with the SecondaryVirtualDeviceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryVirtualDeviceUUID + +`func (o *PostConnectionRequest) SetSecondaryVirtualDeviceUUID(v string)` + +SetSecondaryVirtualDeviceUUID sets SecondaryVirtualDeviceUUID field to given value. + +### HasSecondaryVirtualDeviceUUID + +`func (o *PostConnectionRequest) HasSecondaryVirtualDeviceUUID() bool` + +HasSecondaryVirtualDeviceUUID returns a boolean if a field has been set. + +### GetSecondaryProfileUUID + +`func (o *PostConnectionRequest) GetSecondaryProfileUUID() string` + +GetSecondaryProfileUUID returns the SecondaryProfileUUID field if non-nil, zero value otherwise. + +### GetSecondaryProfileUUIDOk + +`func (o *PostConnectionRequest) GetSecondaryProfileUUIDOk() (*string, bool)` + +GetSecondaryProfileUUIDOk returns a tuple with the SecondaryProfileUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryProfileUUID + +`func (o *PostConnectionRequest) SetSecondaryProfileUUID(v string)` + +SetSecondaryProfileUUID sets SecondaryProfileUUID field to given value. + +### HasSecondaryProfileUUID + +`func (o *PostConnectionRequest) HasSecondaryProfileUUID() bool` + +HasSecondaryProfileUUID returns a boolean if a field has been set. + +### GetSecondaryAuthorizationKey + +`func (o *PostConnectionRequest) GetSecondaryAuthorizationKey() string` + +GetSecondaryAuthorizationKey returns the SecondaryAuthorizationKey field if non-nil, zero value otherwise. + +### GetSecondaryAuthorizationKeyOk + +`func (o *PostConnectionRequest) GetSecondaryAuthorizationKeyOk() (*string, bool)` + +GetSecondaryAuthorizationKeyOk returns a tuple with the SecondaryAuthorizationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryAuthorizationKey + +`func (o *PostConnectionRequest) SetSecondaryAuthorizationKey(v string)` + +SetSecondaryAuthorizationKey sets SecondaryAuthorizationKey field to given value. + +### HasSecondaryAuthorizationKey + +`func (o *PostConnectionRequest) HasSecondaryAuthorizationKey() bool` + +HasSecondaryAuthorizationKey returns a boolean if a field has been set. + +### GetSecondarySellerMetroCode + +`func (o *PostConnectionRequest) GetSecondarySellerMetroCode() string` + +GetSecondarySellerMetroCode returns the SecondarySellerMetroCode field if non-nil, zero value otherwise. + +### GetSecondarySellerMetroCodeOk + +`func (o *PostConnectionRequest) GetSecondarySellerMetroCodeOk() (*string, bool)` + +GetSecondarySellerMetroCodeOk returns a tuple with the SecondarySellerMetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondarySellerMetroCode + +`func (o *PostConnectionRequest) SetSecondarySellerMetroCode(v string)` + +SetSecondarySellerMetroCode sets SecondarySellerMetroCode field to given value. + +### HasSecondarySellerMetroCode + +`func (o *PostConnectionRequest) HasSecondarySellerMetroCode() bool` + +HasSecondarySellerMetroCode returns a boolean if a field has been set. + +### GetSecondarySpeed + +`func (o *PostConnectionRequest) GetSecondarySpeed() int32` + +GetSecondarySpeed returns the SecondarySpeed field if non-nil, zero value otherwise. + +### GetSecondarySpeedOk + +`func (o *PostConnectionRequest) GetSecondarySpeedOk() (*int32, bool)` + +GetSecondarySpeedOk returns a tuple with the SecondarySpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondarySpeed + +`func (o *PostConnectionRequest) SetSecondarySpeed(v int32)` + +SetSecondarySpeed sets SecondarySpeed field to given value. + +### HasSecondarySpeed + +`func (o *PostConnectionRequest) HasSecondarySpeed() bool` + +HasSecondarySpeed returns a boolean if a field has been set. + +### GetSecondarySpeedUnit + +`func (o *PostConnectionRequest) GetSecondarySpeedUnit() string` + +GetSecondarySpeedUnit returns the SecondarySpeedUnit field if non-nil, zero value otherwise. + +### GetSecondarySpeedUnitOk + +`func (o *PostConnectionRequest) GetSecondarySpeedUnitOk() (*string, bool)` + +GetSecondarySpeedUnitOk returns a tuple with the SecondarySpeedUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondarySpeedUnit + +`func (o *PostConnectionRequest) SetSecondarySpeedUnit(v string)` + +SetSecondarySpeedUnit sets SecondarySpeedUnit field to given value. + +### HasSecondarySpeedUnit + +`func (o *PostConnectionRequest) HasSecondarySpeedUnit() bool` + +HasSecondarySpeedUnit returns a boolean if a field has been set. + +### GetSecondaryNotifications + +`func (o *PostConnectionRequest) GetSecondaryNotifications() []string` + +GetSecondaryNotifications returns the SecondaryNotifications field if non-nil, zero value otherwise. + +### GetSecondaryNotificationsOk + +`func (o *PostConnectionRequest) GetSecondaryNotificationsOk() (*[]string, bool)` + +GetSecondaryNotificationsOk returns a tuple with the SecondaryNotifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryNotifications + +`func (o *PostConnectionRequest) SetSecondaryNotifications(v []string)` + +SetSecondaryNotifications sets SecondaryNotifications field to given value. + +### HasSecondaryNotifications + +`func (o *PostConnectionRequest) HasSecondaryNotifications() bool` + +HasSecondaryNotifications returns a boolean if a field has been set. + +### GetSecondaryInterfaceId + +`func (o *PostConnectionRequest) GetSecondaryInterfaceId() int32` + +GetSecondaryInterfaceId returns the SecondaryInterfaceId field if non-nil, zero value otherwise. + +### GetSecondaryInterfaceIdOk + +`func (o *PostConnectionRequest) GetSecondaryInterfaceIdOk() (*int32, bool)` + +GetSecondaryInterfaceIdOk returns a tuple with the SecondaryInterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryInterfaceId + +`func (o *PostConnectionRequest) SetSecondaryInterfaceId(v int32)` + +SetSecondaryInterfaceId sets SecondaryInterfaceId field to given value. + +### HasSecondaryInterfaceId + +`func (o *PostConnectionRequest) HasSecondaryInterfaceId() bool` + +HasSecondaryInterfaceId returns a boolean if a field has been set. + +### GetPrimaryZSideVlanCTag + +`func (o *PostConnectionRequest) GetPrimaryZSideVlanCTag() int32` + +GetPrimaryZSideVlanCTag returns the PrimaryZSideVlanCTag field if non-nil, zero value otherwise. + +### GetPrimaryZSideVlanCTagOk + +`func (o *PostConnectionRequest) GetPrimaryZSideVlanCTagOk() (*int32, bool)` + +GetPrimaryZSideVlanCTagOk returns a tuple with the PrimaryZSideVlanCTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryZSideVlanCTag + +`func (o *PostConnectionRequest) SetPrimaryZSideVlanCTag(v int32)` + +SetPrimaryZSideVlanCTag sets PrimaryZSideVlanCTag field to given value. + +### HasPrimaryZSideVlanCTag + +`func (o *PostConnectionRequest) HasPrimaryZSideVlanCTag() bool` + +HasPrimaryZSideVlanCTag returns a boolean if a field has been set. + +### GetSecondaryZSideVlanCTag + +`func (o *PostConnectionRequest) GetSecondaryZSideVlanCTag() int32` + +GetSecondaryZSideVlanCTag returns the SecondaryZSideVlanCTag field if non-nil, zero value otherwise. + +### GetSecondaryZSideVlanCTagOk + +`func (o *PostConnectionRequest) GetSecondaryZSideVlanCTagOk() (*int32, bool)` + +GetSecondaryZSideVlanCTagOk returns a tuple with the SecondaryZSideVlanCTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryZSideVlanCTag + +`func (o *PostConnectionRequest) SetSecondaryZSideVlanCTag(v int32)` + +SetSecondaryZSideVlanCTag sets SecondaryZSideVlanCTag field to given value. + +### HasSecondaryZSideVlanCTag + +`func (o *PostConnectionRequest) HasSecondaryZSideVlanCTag() bool` + +HasSecondaryZSideVlanCTag returns a boolean if a field has been set. + +### GetPrimaryZSidePortUUID + +`func (o *PostConnectionRequest) GetPrimaryZSidePortUUID() string` + +GetPrimaryZSidePortUUID returns the PrimaryZSidePortUUID field if non-nil, zero value otherwise. + +### GetPrimaryZSidePortUUIDOk + +`func (o *PostConnectionRequest) GetPrimaryZSidePortUUIDOk() (*string, bool)` + +GetPrimaryZSidePortUUIDOk returns a tuple with the PrimaryZSidePortUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryZSidePortUUID + +`func (o *PostConnectionRequest) SetPrimaryZSidePortUUID(v string)` + +SetPrimaryZSidePortUUID sets PrimaryZSidePortUUID field to given value. + +### HasPrimaryZSidePortUUID + +`func (o *PostConnectionRequest) HasPrimaryZSidePortUUID() bool` + +HasPrimaryZSidePortUUID returns a boolean if a field has been set. + +### GetPrimaryZSideVlanSTag + +`func (o *PostConnectionRequest) GetPrimaryZSideVlanSTag() int32` + +GetPrimaryZSideVlanSTag returns the PrimaryZSideVlanSTag field if non-nil, zero value otherwise. + +### GetPrimaryZSideVlanSTagOk + +`func (o *PostConnectionRequest) GetPrimaryZSideVlanSTagOk() (*int32, bool)` + +GetPrimaryZSideVlanSTagOk returns a tuple with the PrimaryZSideVlanSTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryZSideVlanSTag + +`func (o *PostConnectionRequest) SetPrimaryZSideVlanSTag(v int32)` + +SetPrimaryZSideVlanSTag sets PrimaryZSideVlanSTag field to given value. + +### HasPrimaryZSideVlanSTag + +`func (o *PostConnectionRequest) HasPrimaryZSideVlanSTag() bool` + +HasPrimaryZSideVlanSTag returns a boolean if a field has been set. + +### GetSecondaryZSidePortUUID + +`func (o *PostConnectionRequest) GetSecondaryZSidePortUUID() string` + +GetSecondaryZSidePortUUID returns the SecondaryZSidePortUUID field if non-nil, zero value otherwise. + +### GetSecondaryZSidePortUUIDOk + +`func (o *PostConnectionRequest) GetSecondaryZSidePortUUIDOk() (*string, bool)` + +GetSecondaryZSidePortUUIDOk returns a tuple with the SecondaryZSidePortUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryZSidePortUUID + +`func (o *PostConnectionRequest) SetSecondaryZSidePortUUID(v string)` + +SetSecondaryZSidePortUUID sets SecondaryZSidePortUUID field to given value. + +### HasSecondaryZSidePortUUID + +`func (o *PostConnectionRequest) HasSecondaryZSidePortUUID() bool` + +HasSecondaryZSidePortUUID returns a boolean if a field has been set. + +### GetSecondaryZSideVlanSTag + +`func (o *PostConnectionRequest) GetSecondaryZSideVlanSTag() int32` + +GetSecondaryZSideVlanSTag returns the SecondaryZSideVlanSTag field if non-nil, zero value otherwise. + +### GetSecondaryZSideVlanSTagOk + +`func (o *PostConnectionRequest) GetSecondaryZSideVlanSTagOk() (*int32, bool)` + +GetSecondaryZSideVlanSTagOk returns a tuple with the SecondaryZSideVlanSTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryZSideVlanSTag + +`func (o *PostConnectionRequest) SetSecondaryZSideVlanSTag(v int32)` + +SetSecondaryZSideVlanSTag sets SecondaryZSideVlanSTag field to given value. + +### HasSecondaryZSideVlanSTag + +`func (o *PostConnectionRequest) HasSecondaryZSideVlanSTag() bool` + +HasSecondaryZSideVlanSTag returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PostConnectionResponse.md b/services/networkedgev1/docs/PostConnectionResponse.md new file mode 100644 index 00000000..50ec849b --- /dev/null +++ b/services/networkedgev1/docs/PostConnectionResponse.md @@ -0,0 +1,134 @@ +# PostConnectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**PrimaryConnectionId** | Pointer to **string** | | [optional] +**SecondaryConnectionId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewPostConnectionResponse + +`func NewPostConnectionResponse() *PostConnectionResponse` + +NewPostConnectionResponse instantiates a new PostConnectionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPostConnectionResponseWithDefaults + +`func NewPostConnectionResponseWithDefaults() *PostConnectionResponse` + +NewPostConnectionResponseWithDefaults instantiates a new PostConnectionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *PostConnectionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostConnectionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostConnectionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostConnectionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetPrimaryConnectionId + +`func (o *PostConnectionResponse) GetPrimaryConnectionId() string` + +GetPrimaryConnectionId returns the PrimaryConnectionId field if non-nil, zero value otherwise. + +### GetPrimaryConnectionIdOk + +`func (o *PostConnectionResponse) GetPrimaryConnectionIdOk() (*string, bool)` + +GetPrimaryConnectionIdOk returns a tuple with the PrimaryConnectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryConnectionId + +`func (o *PostConnectionResponse) SetPrimaryConnectionId(v string)` + +SetPrimaryConnectionId sets PrimaryConnectionId field to given value. + +### HasPrimaryConnectionId + +`func (o *PostConnectionResponse) HasPrimaryConnectionId() bool` + +HasPrimaryConnectionId returns a boolean if a field has been set. + +### GetSecondaryConnectionId + +`func (o *PostConnectionResponse) GetSecondaryConnectionId() string` + +GetSecondaryConnectionId returns the SecondaryConnectionId field if non-nil, zero value otherwise. + +### GetSecondaryConnectionIdOk + +`func (o *PostConnectionResponse) GetSecondaryConnectionIdOk() (*string, bool)` + +GetSecondaryConnectionIdOk returns a tuple with the SecondaryConnectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryConnectionId + +`func (o *PostConnectionResponse) SetSecondaryConnectionId(v string)` + +SetSecondaryConnectionId sets SecondaryConnectionId field to given value. + +### HasSecondaryConnectionId + +`func (o *PostConnectionResponse) HasSecondaryConnectionId() bool` + +HasSecondaryConnectionId returns a boolean if a field has been set. + +### GetStatus + +`func (o *PostConnectionResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PostConnectionResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PostConnectionResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PostConnectionResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PreviousBackups.md b/services/networkedgev1/docs/PreviousBackups.md new file mode 100644 index 00000000..9157e47e --- /dev/null +++ b/services/networkedgev1/docs/PreviousBackups.md @@ -0,0 +1,160 @@ +# PreviousBackups + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The unique Id of a backup. | [optional] +**Status** | Pointer to **string** | The status of the backup. | [optional] +**CreatedBy** | Pointer to **string** | Created by. | [optional] +**CreatedDate** | Pointer to **string** | Created date. | [optional] +**LastUpdatedDate** | Pointer to **string** | Last updated date. | [optional] + +## Methods + +### NewPreviousBackups + +`func NewPreviousBackups() *PreviousBackups` + +NewPreviousBackups instantiates a new PreviousBackups object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPreviousBackupsWithDefaults + +`func NewPreviousBackupsWithDefaults() *PreviousBackups` + +NewPreviousBackupsWithDefaults instantiates a new PreviousBackups object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *PreviousBackups) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *PreviousBackups) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *PreviousBackups) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *PreviousBackups) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetStatus + +`func (o *PreviousBackups) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PreviousBackups) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PreviousBackups) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PreviousBackups) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *PreviousBackups) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *PreviousBackups) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *PreviousBackups) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *PreviousBackups) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *PreviousBackups) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *PreviousBackups) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *PreviousBackups) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *PreviousBackups) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *PreviousBackups) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *PreviousBackups) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *PreviousBackups) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *PreviousBackups) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PriceResponse.md b/services/networkedgev1/docs/PriceResponse.md new file mode 100644 index 00000000..1040917f --- /dev/null +++ b/services/networkedgev1/docs/PriceResponse.md @@ -0,0 +1,134 @@ +# PriceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BillingCommencementDate** | Pointer to **string** | | [optional] +**BillingEnabled** | Pointer to **bool** | | [optional] +**Charges** | Pointer to [**[]Charges**](Charges.md) | An array of the monthly recurring charges. | [optional] +**Currency** | Pointer to **string** | | [optional] + +## Methods + +### NewPriceResponse + +`func NewPriceResponse() *PriceResponse` + +NewPriceResponse instantiates a new PriceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceResponseWithDefaults + +`func NewPriceResponseWithDefaults() *PriceResponse` + +NewPriceResponseWithDefaults instantiates a new PriceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBillingCommencementDate + +`func (o *PriceResponse) GetBillingCommencementDate() string` + +GetBillingCommencementDate returns the BillingCommencementDate field if non-nil, zero value otherwise. + +### GetBillingCommencementDateOk + +`func (o *PriceResponse) GetBillingCommencementDateOk() (*string, bool)` + +GetBillingCommencementDateOk returns a tuple with the BillingCommencementDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingCommencementDate + +`func (o *PriceResponse) SetBillingCommencementDate(v string)` + +SetBillingCommencementDate sets BillingCommencementDate field to given value. + +### HasBillingCommencementDate + +`func (o *PriceResponse) HasBillingCommencementDate() bool` + +HasBillingCommencementDate returns a boolean if a field has been set. + +### GetBillingEnabled + +`func (o *PriceResponse) GetBillingEnabled() bool` + +GetBillingEnabled returns the BillingEnabled field if non-nil, zero value otherwise. + +### GetBillingEnabledOk + +`func (o *PriceResponse) GetBillingEnabledOk() (*bool, bool)` + +GetBillingEnabledOk returns a tuple with the BillingEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingEnabled + +`func (o *PriceResponse) SetBillingEnabled(v bool)` + +SetBillingEnabled sets BillingEnabled field to given value. + +### HasBillingEnabled + +`func (o *PriceResponse) HasBillingEnabled() bool` + +HasBillingEnabled returns a boolean if a field has been set. + +### GetCharges + +`func (o *PriceResponse) GetCharges() []Charges` + +GetCharges returns the Charges field if non-nil, zero value otherwise. + +### GetChargesOk + +`func (o *PriceResponse) GetChargesOk() (*[]Charges, bool)` + +GetChargesOk returns a tuple with the Charges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCharges + +`func (o *PriceResponse) SetCharges(v []Charges)` + +SetCharges sets Charges field to given value. + +### HasCharges + +`func (o *PriceResponse) HasCharges() bool` + +HasCharges returns a boolean if a field has been set. + +### GetCurrency + +`func (o *PriceResponse) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *PriceResponse) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *PriceResponse) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *PriceResponse) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PricingSiebelConfig.md b/services/networkedgev1/docs/PricingSiebelConfig.md new file mode 100644 index 00000000..2467513c --- /dev/null +++ b/services/networkedgev1/docs/PricingSiebelConfig.md @@ -0,0 +1,264 @@ +# PricingSiebelConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TermLength** | Pointer to **string** | The termlength of the Siebel order. | [optional] +**OrderNumber** | Pointer to **string** | The order number. | [optional] +**Core** | Pointer to **int32** | The core selection on Siebel. | [optional] +**Throughput** | Pointer to **string** | Throughput. | [optional] +**ThroughputUnit** | Pointer to **string** | The throughput unit. | [optional] +**PackageCode** | Pointer to **string** | The software package code. | [optional] +**AdditionalBandwidth** | Pointer to **string** | The additional bandwidth selection on Siebel. | [optional] +**Primary** | Pointer to [**PricingSiebelConfigPrimary**](PricingSiebelConfigPrimary.md) | | [optional] +**Secondary** | Pointer to [**PricingSiebelConfigSecondary**](PricingSiebelConfigSecondary.md) | | [optional] + +## Methods + +### NewPricingSiebelConfig + +`func NewPricingSiebelConfig() *PricingSiebelConfig` + +NewPricingSiebelConfig instantiates a new PricingSiebelConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPricingSiebelConfigWithDefaults + +`func NewPricingSiebelConfigWithDefaults() *PricingSiebelConfig` + +NewPricingSiebelConfigWithDefaults instantiates a new PricingSiebelConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTermLength + +`func (o *PricingSiebelConfig) GetTermLength() string` + +GetTermLength returns the TermLength field if non-nil, zero value otherwise. + +### GetTermLengthOk + +`func (o *PricingSiebelConfig) GetTermLengthOk() (*string, bool)` + +GetTermLengthOk returns a tuple with the TermLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermLength + +`func (o *PricingSiebelConfig) SetTermLength(v string)` + +SetTermLength sets TermLength field to given value. + +### HasTermLength + +`func (o *PricingSiebelConfig) HasTermLength() bool` + +HasTermLength returns a boolean if a field has been set. + +### GetOrderNumber + +`func (o *PricingSiebelConfig) GetOrderNumber() string` + +GetOrderNumber returns the OrderNumber field if non-nil, zero value otherwise. + +### GetOrderNumberOk + +`func (o *PricingSiebelConfig) GetOrderNumberOk() (*string, bool)` + +GetOrderNumberOk returns a tuple with the OrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderNumber + +`func (o *PricingSiebelConfig) SetOrderNumber(v string)` + +SetOrderNumber sets OrderNumber field to given value. + +### HasOrderNumber + +`func (o *PricingSiebelConfig) HasOrderNumber() bool` + +HasOrderNumber returns a boolean if a field has been set. + +### GetCore + +`func (o *PricingSiebelConfig) GetCore() int32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *PricingSiebelConfig) GetCoreOk() (*int32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *PricingSiebelConfig) SetCore(v int32)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *PricingSiebelConfig) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetThroughput + +`func (o *PricingSiebelConfig) GetThroughput() string` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *PricingSiebelConfig) GetThroughputOk() (*string, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *PricingSiebelConfig) SetThroughput(v string)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *PricingSiebelConfig) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *PricingSiebelConfig) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *PricingSiebelConfig) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *PricingSiebelConfig) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *PricingSiebelConfig) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetPackageCode + +`func (o *PricingSiebelConfig) GetPackageCode() string` + +GetPackageCode returns the PackageCode field if non-nil, zero value otherwise. + +### GetPackageCodeOk + +`func (o *PricingSiebelConfig) GetPackageCodeOk() (*string, bool)` + +GetPackageCodeOk returns a tuple with the PackageCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCode + +`func (o *PricingSiebelConfig) SetPackageCode(v string)` + +SetPackageCode sets PackageCode field to given value. + +### HasPackageCode + +`func (o *PricingSiebelConfig) HasPackageCode() bool` + +HasPackageCode returns a boolean if a field has been set. + +### GetAdditionalBandwidth + +`func (o *PricingSiebelConfig) GetAdditionalBandwidth() string` + +GetAdditionalBandwidth returns the AdditionalBandwidth field if non-nil, zero value otherwise. + +### GetAdditionalBandwidthOk + +`func (o *PricingSiebelConfig) GetAdditionalBandwidthOk() (*string, bool)` + +GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalBandwidth + +`func (o *PricingSiebelConfig) SetAdditionalBandwidth(v string)` + +SetAdditionalBandwidth sets AdditionalBandwidth field to given value. + +### HasAdditionalBandwidth + +`func (o *PricingSiebelConfig) HasAdditionalBandwidth() bool` + +HasAdditionalBandwidth returns a boolean if a field has been set. + +### GetPrimary + +`func (o *PricingSiebelConfig) GetPrimary() PricingSiebelConfigPrimary` + +GetPrimary returns the Primary field if non-nil, zero value otherwise. + +### GetPrimaryOk + +`func (o *PricingSiebelConfig) GetPrimaryOk() (*PricingSiebelConfigPrimary, bool)` + +GetPrimaryOk returns a tuple with the Primary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimary + +`func (o *PricingSiebelConfig) SetPrimary(v PricingSiebelConfigPrimary)` + +SetPrimary sets Primary field to given value. + +### HasPrimary + +`func (o *PricingSiebelConfig) HasPrimary() bool` + +HasPrimary returns a boolean if a field has been set. + +### GetSecondary + +`func (o *PricingSiebelConfig) GetSecondary() PricingSiebelConfigSecondary` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *PricingSiebelConfig) GetSecondaryOk() (*PricingSiebelConfigSecondary, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *PricingSiebelConfig) SetSecondary(v PricingSiebelConfigSecondary)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *PricingSiebelConfig) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PricingSiebelConfigPrimary.md b/services/networkedgev1/docs/PricingSiebelConfigPrimary.md new file mode 100644 index 00000000..a77685d3 --- /dev/null +++ b/services/networkedgev1/docs/PricingSiebelConfigPrimary.md @@ -0,0 +1,82 @@ +# PricingSiebelConfigPrimary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | Pointer to **string** | The currency of the charges. | [optional] +**Charges** | Pointer to [**[]Charges**](Charges.md) | | [optional] + +## Methods + +### NewPricingSiebelConfigPrimary + +`func NewPricingSiebelConfigPrimary() *PricingSiebelConfigPrimary` + +NewPricingSiebelConfigPrimary instantiates a new PricingSiebelConfigPrimary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPricingSiebelConfigPrimaryWithDefaults + +`func NewPricingSiebelConfigPrimaryWithDefaults() *PricingSiebelConfigPrimary` + +NewPricingSiebelConfigPrimaryWithDefaults instantiates a new PricingSiebelConfigPrimary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrency + +`func (o *PricingSiebelConfigPrimary) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *PricingSiebelConfigPrimary) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *PricingSiebelConfigPrimary) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *PricingSiebelConfigPrimary) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetCharges + +`func (o *PricingSiebelConfigPrimary) GetCharges() []Charges` + +GetCharges returns the Charges field if non-nil, zero value otherwise. + +### GetChargesOk + +`func (o *PricingSiebelConfigPrimary) GetChargesOk() (*[]Charges, bool)` + +GetChargesOk returns a tuple with the Charges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCharges + +`func (o *PricingSiebelConfigPrimary) SetCharges(v []Charges)` + +SetCharges sets Charges field to given value. + +### HasCharges + +`func (o *PricingSiebelConfigPrimary) HasCharges() bool` + +HasCharges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PricingSiebelConfigSecondary.md b/services/networkedgev1/docs/PricingSiebelConfigSecondary.md new file mode 100644 index 00000000..d88a2edc --- /dev/null +++ b/services/networkedgev1/docs/PricingSiebelConfigSecondary.md @@ -0,0 +1,82 @@ +# PricingSiebelConfigSecondary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | Pointer to **string** | The currency of the charges. | [optional] +**Charges** | Pointer to [**[]Charges**](Charges.md) | | [optional] + +## Methods + +### NewPricingSiebelConfigSecondary + +`func NewPricingSiebelConfigSecondary() *PricingSiebelConfigSecondary` + +NewPricingSiebelConfigSecondary instantiates a new PricingSiebelConfigSecondary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPricingSiebelConfigSecondaryWithDefaults + +`func NewPricingSiebelConfigSecondaryWithDefaults() *PricingSiebelConfigSecondary` + +NewPricingSiebelConfigSecondaryWithDefaults instantiates a new PricingSiebelConfigSecondary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrency + +`func (o *PricingSiebelConfigSecondary) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *PricingSiebelConfigSecondary) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *PricingSiebelConfigSecondary) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *PricingSiebelConfigSecondary) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetCharges + +`func (o *PricingSiebelConfigSecondary) GetCharges() []Charges` + +GetCharges returns the Charges field if non-nil, zero value otherwise. + +### GetChargesOk + +`func (o *PricingSiebelConfigSecondary) GetChargesOk() (*[]Charges, bool)` + +GetChargesOk returns a tuple with the Charges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCharges + +`func (o *PricingSiebelConfigSecondary) SetCharges(v []Charges)` + +SetCharges sets Charges field to given value. + +### HasCharges + +`func (o *PricingSiebelConfigSecondary) HasCharges() bool` + +HasCharges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/PublicKeyRequest.md b/services/networkedgev1/docs/PublicKeyRequest.md new file mode 100644 index 00000000..45c26fe8 --- /dev/null +++ b/services/networkedgev1/docs/PublicKeyRequest.md @@ -0,0 +1,98 @@ +# PublicKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyName** | **string** | Key name | +**KeyValue** | **string** | Key value | +**KeyType** | Pointer to **string** | Key type, whether RSA or DSA. Default is RSA. | [optional] + +## Methods + +### NewPublicKeyRequest + +`func NewPublicKeyRequest(keyName string, keyValue string, ) *PublicKeyRequest` + +NewPublicKeyRequest instantiates a new PublicKeyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPublicKeyRequestWithDefaults + +`func NewPublicKeyRequestWithDefaults() *PublicKeyRequest` + +NewPublicKeyRequestWithDefaults instantiates a new PublicKeyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyName + +`func (o *PublicKeyRequest) GetKeyName() string` + +GetKeyName returns the KeyName field if non-nil, zero value otherwise. + +### GetKeyNameOk + +`func (o *PublicKeyRequest) GetKeyNameOk() (*string, bool)` + +GetKeyNameOk returns a tuple with the KeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyName + +`func (o *PublicKeyRequest) SetKeyName(v string)` + +SetKeyName sets KeyName field to given value. + + +### GetKeyValue + +`func (o *PublicKeyRequest) GetKeyValue() string` + +GetKeyValue returns the KeyValue field if non-nil, zero value otherwise. + +### GetKeyValueOk + +`func (o *PublicKeyRequest) GetKeyValueOk() (*string, bool)` + +GetKeyValueOk returns a tuple with the KeyValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyValue + +`func (o *PublicKeyRequest) SetKeyValue(v string)` + +SetKeyValue sets KeyValue field to given value. + + +### GetKeyType + +`func (o *PublicKeyRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *PublicKeyRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *PublicKeyRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *PublicKeyRequest) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/RMAVendorConfig.md b/services/networkedgev1/docs/RMAVendorConfig.md new file mode 100644 index 00000000..cf0d96dc --- /dev/null +++ b/services/networkedgev1/docs/RMAVendorConfig.md @@ -0,0 +1,238 @@ +# RMAVendorConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SiteId** | Pointer to **string** | Physical location within the Viptela overlay network, such as a branch office, or a campus (relevant only for Cisco SD-WANs) | [optional] +**SystemIpAddress** | Pointer to **string** | IP assigned to CSRSDWAN router and vSmart controller (relevant only for Cisco SD-WANs) | [optional] +**LicenseKey** | Pointer to **string** | License key. Mandatory for some devices. | [optional] +**LicenseSecret** | Pointer to **string** | License secret (Secret key). Mandatory for some devices. | [optional] +**Controller1** | Pointer to **string** | For Fortinet devices, this is the System IP address. | [optional] +**AdminPassword** | Pointer to **string** | The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. Should be at least 6 characters long and must include an uppercase letter and a number. This field may be required for some vendors. | [optional] +**ActivationKey** | Pointer to **string** | Available on VMware Orchestration Portal | [optional] +**ProvisioningKey** | Pointer to **string** | Mandatory for Zscaler devices | [optional] + +## Methods + +### NewRMAVendorConfig + +`func NewRMAVendorConfig() *RMAVendorConfig` + +NewRMAVendorConfig instantiates a new RMAVendorConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRMAVendorConfigWithDefaults + +`func NewRMAVendorConfigWithDefaults() *RMAVendorConfig` + +NewRMAVendorConfigWithDefaults instantiates a new RMAVendorConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSiteId + +`func (o *RMAVendorConfig) GetSiteId() string` + +GetSiteId returns the SiteId field if non-nil, zero value otherwise. + +### GetSiteIdOk + +`func (o *RMAVendorConfig) GetSiteIdOk() (*string, bool)` + +GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteId + +`func (o *RMAVendorConfig) SetSiteId(v string)` + +SetSiteId sets SiteId field to given value. + +### HasSiteId + +`func (o *RMAVendorConfig) HasSiteId() bool` + +HasSiteId returns a boolean if a field has been set. + +### GetSystemIpAddress + +`func (o *RMAVendorConfig) GetSystemIpAddress() string` + +GetSystemIpAddress returns the SystemIpAddress field if non-nil, zero value otherwise. + +### GetSystemIpAddressOk + +`func (o *RMAVendorConfig) GetSystemIpAddressOk() (*string, bool)` + +GetSystemIpAddressOk returns a tuple with the SystemIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemIpAddress + +`func (o *RMAVendorConfig) SetSystemIpAddress(v string)` + +SetSystemIpAddress sets SystemIpAddress field to given value. + +### HasSystemIpAddress + +`func (o *RMAVendorConfig) HasSystemIpAddress() bool` + +HasSystemIpAddress returns a boolean if a field has been set. + +### GetLicenseKey + +`func (o *RMAVendorConfig) GetLicenseKey() string` + +GetLicenseKey returns the LicenseKey field if non-nil, zero value otherwise. + +### GetLicenseKeyOk + +`func (o *RMAVendorConfig) GetLicenseKeyOk() (*string, bool)` + +GetLicenseKeyOk returns a tuple with the LicenseKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseKey + +`func (o *RMAVendorConfig) SetLicenseKey(v string)` + +SetLicenseKey sets LicenseKey field to given value. + +### HasLicenseKey + +`func (o *RMAVendorConfig) HasLicenseKey() bool` + +HasLicenseKey returns a boolean if a field has been set. + +### GetLicenseSecret + +`func (o *RMAVendorConfig) GetLicenseSecret() string` + +GetLicenseSecret returns the LicenseSecret field if non-nil, zero value otherwise. + +### GetLicenseSecretOk + +`func (o *RMAVendorConfig) GetLicenseSecretOk() (*string, bool)` + +GetLicenseSecretOk returns a tuple with the LicenseSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseSecret + +`func (o *RMAVendorConfig) SetLicenseSecret(v string)` + +SetLicenseSecret sets LicenseSecret field to given value. + +### HasLicenseSecret + +`func (o *RMAVendorConfig) HasLicenseSecret() bool` + +HasLicenseSecret returns a boolean if a field has been set. + +### GetController1 + +`func (o *RMAVendorConfig) GetController1() string` + +GetController1 returns the Controller1 field if non-nil, zero value otherwise. + +### GetController1Ok + +`func (o *RMAVendorConfig) GetController1Ok() (*string, bool)` + +GetController1Ok returns a tuple with the Controller1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetController1 + +`func (o *RMAVendorConfig) SetController1(v string)` + +SetController1 sets Controller1 field to given value. + +### HasController1 + +`func (o *RMAVendorConfig) HasController1() bool` + +HasController1 returns a boolean if a field has been set. + +### GetAdminPassword + +`func (o *RMAVendorConfig) GetAdminPassword() string` + +GetAdminPassword returns the AdminPassword field if non-nil, zero value otherwise. + +### GetAdminPasswordOk + +`func (o *RMAVendorConfig) GetAdminPasswordOk() (*string, bool)` + +GetAdminPasswordOk returns a tuple with the AdminPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminPassword + +`func (o *RMAVendorConfig) SetAdminPassword(v string)` + +SetAdminPassword sets AdminPassword field to given value. + +### HasAdminPassword + +`func (o *RMAVendorConfig) HasAdminPassword() bool` + +HasAdminPassword returns a boolean if a field has been set. + +### GetActivationKey + +`func (o *RMAVendorConfig) GetActivationKey() string` + +GetActivationKey returns the ActivationKey field if non-nil, zero value otherwise. + +### GetActivationKeyOk + +`func (o *RMAVendorConfig) GetActivationKeyOk() (*string, bool)` + +GetActivationKeyOk returns a tuple with the ActivationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivationKey + +`func (o *RMAVendorConfig) SetActivationKey(v string)` + +SetActivationKey sets ActivationKey field to given value. + +### HasActivationKey + +`func (o *RMAVendorConfig) HasActivationKey() bool` + +HasActivationKey returns a boolean if a field has been set. + +### GetProvisioningKey + +`func (o *RMAVendorConfig) GetProvisioningKey() string` + +GetProvisioningKey returns the ProvisioningKey field if non-nil, zero value otherwise. + +### GetProvisioningKeyOk + +`func (o *RMAVendorConfig) GetProvisioningKeyOk() (*string, bool)` + +GetProvisioningKeyOk returns a tuple with the ProvisioningKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvisioningKey + +`func (o *RMAVendorConfig) SetProvisioningKey(v string)` + +SetProvisioningKey sets ProvisioningKey field to given value. + +### HasProvisioningKey + +`func (o *RMAVendorConfig) HasProvisioningKey() bool` + +HasProvisioningKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/RestoreBackupInfoVerbose.md b/services/networkedgev1/docs/RestoreBackupInfoVerbose.md new file mode 100644 index 00000000..3bed01d1 --- /dev/null +++ b/services/networkedgev1/docs/RestoreBackupInfoVerbose.md @@ -0,0 +1,108 @@ +# RestoreBackupInfoVerbose + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceBackup** | Pointer to [**RestoreBackupInfoVerboseDeviceBackup**](RestoreBackupInfoVerboseDeviceBackup.md) | | [optional] +**Services** | Pointer to [**RestoreBackupInfoVerboseServices**](RestoreBackupInfoVerboseServices.md) | | [optional] +**RestoreAllowedAfterDeleteOrEdit** | Pointer to **bool** | If True, the backup is restorable once you perform the recommended opertions. If False, the backup is not restorable. | [optional] + +## Methods + +### NewRestoreBackupInfoVerbose + +`func NewRestoreBackupInfoVerbose() *RestoreBackupInfoVerbose` + +NewRestoreBackupInfoVerbose instantiates a new RestoreBackupInfoVerbose object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreBackupInfoVerboseWithDefaults + +`func NewRestoreBackupInfoVerboseWithDefaults() *RestoreBackupInfoVerbose` + +NewRestoreBackupInfoVerboseWithDefaults instantiates a new RestoreBackupInfoVerbose object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceBackup + +`func (o *RestoreBackupInfoVerbose) GetDeviceBackup() RestoreBackupInfoVerboseDeviceBackup` + +GetDeviceBackup returns the DeviceBackup field if non-nil, zero value otherwise. + +### GetDeviceBackupOk + +`func (o *RestoreBackupInfoVerbose) GetDeviceBackupOk() (*RestoreBackupInfoVerboseDeviceBackup, bool)` + +GetDeviceBackupOk returns a tuple with the DeviceBackup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBackup + +`func (o *RestoreBackupInfoVerbose) SetDeviceBackup(v RestoreBackupInfoVerboseDeviceBackup)` + +SetDeviceBackup sets DeviceBackup field to given value. + +### HasDeviceBackup + +`func (o *RestoreBackupInfoVerbose) HasDeviceBackup() bool` + +HasDeviceBackup returns a boolean if a field has been set. + +### GetServices + +`func (o *RestoreBackupInfoVerbose) GetServices() RestoreBackupInfoVerboseServices` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *RestoreBackupInfoVerbose) GetServicesOk() (*RestoreBackupInfoVerboseServices, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *RestoreBackupInfoVerbose) SetServices(v RestoreBackupInfoVerboseServices)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *RestoreBackupInfoVerbose) HasServices() bool` + +HasServices returns a boolean if a field has been set. + +### GetRestoreAllowedAfterDeleteOrEdit + +`func (o *RestoreBackupInfoVerbose) GetRestoreAllowedAfterDeleteOrEdit() bool` + +GetRestoreAllowedAfterDeleteOrEdit returns the RestoreAllowedAfterDeleteOrEdit field if non-nil, zero value otherwise. + +### GetRestoreAllowedAfterDeleteOrEditOk + +`func (o *RestoreBackupInfoVerbose) GetRestoreAllowedAfterDeleteOrEditOk() (*bool, bool)` + +GetRestoreAllowedAfterDeleteOrEditOk returns a tuple with the RestoreAllowedAfterDeleteOrEdit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestoreAllowedAfterDeleteOrEdit + +`func (o *RestoreBackupInfoVerbose) SetRestoreAllowedAfterDeleteOrEdit(v bool)` + +SetRestoreAllowedAfterDeleteOrEdit sets RestoreAllowedAfterDeleteOrEdit field to given value. + +### HasRestoreAllowedAfterDeleteOrEdit + +`func (o *RestoreBackupInfoVerbose) HasRestoreAllowedAfterDeleteOrEdit() bool` + +HasRestoreAllowedAfterDeleteOrEdit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/RestoreBackupInfoVerboseDeviceBackup.md b/services/networkedgev1/docs/RestoreBackupInfoVerboseDeviceBackup.md new file mode 100644 index 00000000..2a3da390 --- /dev/null +++ b/services/networkedgev1/docs/RestoreBackupInfoVerboseDeviceBackup.md @@ -0,0 +1,56 @@ +# RestoreBackupInfoVerboseDeviceBackup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceBackup** | Pointer to [**DeviceBackupRestore**](DeviceBackupRestore.md) | | [optional] + +## Methods + +### NewRestoreBackupInfoVerboseDeviceBackup + +`func NewRestoreBackupInfoVerboseDeviceBackup() *RestoreBackupInfoVerboseDeviceBackup` + +NewRestoreBackupInfoVerboseDeviceBackup instantiates a new RestoreBackupInfoVerboseDeviceBackup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreBackupInfoVerboseDeviceBackupWithDefaults + +`func NewRestoreBackupInfoVerboseDeviceBackupWithDefaults() *RestoreBackupInfoVerboseDeviceBackup` + +NewRestoreBackupInfoVerboseDeviceBackupWithDefaults instantiates a new RestoreBackupInfoVerboseDeviceBackup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceBackup + +`func (o *RestoreBackupInfoVerboseDeviceBackup) GetDeviceBackup() DeviceBackupRestore` + +GetDeviceBackup returns the DeviceBackup field if non-nil, zero value otherwise. + +### GetDeviceBackupOk + +`func (o *RestoreBackupInfoVerboseDeviceBackup) GetDeviceBackupOk() (*DeviceBackupRestore, bool)` + +GetDeviceBackupOk returns a tuple with the DeviceBackup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBackup + +`func (o *RestoreBackupInfoVerboseDeviceBackup) SetDeviceBackup(v DeviceBackupRestore)` + +SetDeviceBackup sets DeviceBackup field to given value. + +### HasDeviceBackup + +`func (o *RestoreBackupInfoVerboseDeviceBackup) HasDeviceBackup() bool` + +HasDeviceBackup returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/RestoreBackupInfoVerboseServices.md b/services/networkedgev1/docs/RestoreBackupInfoVerboseServices.md new file mode 100644 index 00000000..27680950 --- /dev/null +++ b/services/networkedgev1/docs/RestoreBackupInfoVerboseServices.md @@ -0,0 +1,56 @@ +# RestoreBackupInfoVerboseServices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceName** | Pointer to [**ServiceInfo**](ServiceInfo.md) | | [optional] + +## Methods + +### NewRestoreBackupInfoVerboseServices + +`func NewRestoreBackupInfoVerboseServices() *RestoreBackupInfoVerboseServices` + +NewRestoreBackupInfoVerboseServices instantiates a new RestoreBackupInfoVerboseServices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreBackupInfoVerboseServicesWithDefaults + +`func NewRestoreBackupInfoVerboseServicesWithDefaults() *RestoreBackupInfoVerboseServices` + +NewRestoreBackupInfoVerboseServicesWithDefaults instantiates a new RestoreBackupInfoVerboseServices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceName + +`func (o *RestoreBackupInfoVerboseServices) GetServiceName() ServiceInfo` + +GetServiceName returns the ServiceName field if non-nil, zero value otherwise. + +### GetServiceNameOk + +`func (o *RestoreBackupInfoVerboseServices) GetServiceNameOk() (*ServiceInfo, bool)` + +GetServiceNameOk returns a tuple with the ServiceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceName + +`func (o *RestoreBackupInfoVerboseServices) SetServiceName(v ServiceInfo)` + +SetServiceName sets ServiceName field to given value. + +### HasServiceName + +`func (o *RestoreBackupInfoVerboseServices) HasServiceName() bool` + +HasServiceName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/RmaDetailObject.md b/services/networkedgev1/docs/RmaDetailObject.md new file mode 100644 index 00000000..a3453aa6 --- /dev/null +++ b/services/networkedgev1/docs/RmaDetailObject.md @@ -0,0 +1,212 @@ +# RmaDetailObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceUUID** | Pointer to **string** | The unique Id of a device | [optional] +**Version** | Pointer to **string** | Device version | [optional] +**Status** | Pointer to **string** | Status of the request | [optional] +**RequestType** | Pointer to **string** | Type of request | [optional] +**RequestedBy** | Pointer to **string** | Requested by | [optional] +**RequestedDate** | Pointer to **string** | Requested date | [optional] +**CompletiondDate** | Pointer to **string** | Requested date | [optional] + +## Methods + +### NewRmaDetailObject + +`func NewRmaDetailObject() *RmaDetailObject` + +NewRmaDetailObject instantiates a new RmaDetailObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRmaDetailObjectWithDefaults + +`func NewRmaDetailObjectWithDefaults() *RmaDetailObject` + +NewRmaDetailObjectWithDefaults instantiates a new RmaDetailObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceUUID + +`func (o *RmaDetailObject) GetDeviceUUID() string` + +GetDeviceUUID returns the DeviceUUID field if non-nil, zero value otherwise. + +### GetDeviceUUIDOk + +`func (o *RmaDetailObject) GetDeviceUUIDOk() (*string, bool)` + +GetDeviceUUIDOk returns a tuple with the DeviceUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUUID + +`func (o *RmaDetailObject) SetDeviceUUID(v string)` + +SetDeviceUUID sets DeviceUUID field to given value. + +### HasDeviceUUID + +`func (o *RmaDetailObject) HasDeviceUUID() bool` + +HasDeviceUUID returns a boolean if a field has been set. + +### GetVersion + +`func (o *RmaDetailObject) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *RmaDetailObject) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *RmaDetailObject) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *RmaDetailObject) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetStatus + +`func (o *RmaDetailObject) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RmaDetailObject) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RmaDetailObject) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RmaDetailObject) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRequestType + +`func (o *RmaDetailObject) GetRequestType() string` + +GetRequestType returns the RequestType field if non-nil, zero value otherwise. + +### GetRequestTypeOk + +`func (o *RmaDetailObject) GetRequestTypeOk() (*string, bool)` + +GetRequestTypeOk returns a tuple with the RequestType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestType + +`func (o *RmaDetailObject) SetRequestType(v string)` + +SetRequestType sets RequestType field to given value. + +### HasRequestType + +`func (o *RmaDetailObject) HasRequestType() bool` + +HasRequestType returns a boolean if a field has been set. + +### GetRequestedBy + +`func (o *RmaDetailObject) GetRequestedBy() string` + +GetRequestedBy returns the RequestedBy field if non-nil, zero value otherwise. + +### GetRequestedByOk + +`func (o *RmaDetailObject) GetRequestedByOk() (*string, bool)` + +GetRequestedByOk returns a tuple with the RequestedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedBy + +`func (o *RmaDetailObject) SetRequestedBy(v string)` + +SetRequestedBy sets RequestedBy field to given value. + +### HasRequestedBy + +`func (o *RmaDetailObject) HasRequestedBy() bool` + +HasRequestedBy returns a boolean if a field has been set. + +### GetRequestedDate + +`func (o *RmaDetailObject) GetRequestedDate() string` + +GetRequestedDate returns the RequestedDate field if non-nil, zero value otherwise. + +### GetRequestedDateOk + +`func (o *RmaDetailObject) GetRequestedDateOk() (*string, bool)` + +GetRequestedDateOk returns a tuple with the RequestedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedDate + +`func (o *RmaDetailObject) SetRequestedDate(v string)` + +SetRequestedDate sets RequestedDate field to given value. + +### HasRequestedDate + +`func (o *RmaDetailObject) HasRequestedDate() bool` + +HasRequestedDate returns a boolean if a field has been set. + +### GetCompletiondDate + +`func (o *RmaDetailObject) GetCompletiondDate() string` + +GetCompletiondDate returns the CompletiondDate field if non-nil, zero value otherwise. + +### GetCompletiondDateOk + +`func (o *RmaDetailObject) GetCompletiondDateOk() (*string, bool)` + +GetCompletiondDateOk returns a tuple with the CompletiondDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletiondDate + +`func (o *RmaDetailObject) SetCompletiondDate(v string)` + +SetCompletiondDate sets CompletiondDate field to given value. + +### HasCompletiondDate + +`func (o *RmaDetailObject) HasCompletiondDate() bool` + +HasCompletiondDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SSHUserApi.md b/services/networkedgev1/docs/SSHUserApi.md new file mode 100644 index 00000000..7d782de6 --- /dev/null +++ b/services/networkedgev1/docs/SSHUserApi.md @@ -0,0 +1,519 @@ +# \SSHUserApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AssociateDeviceUsingPOST**](SSHUserApi.md#AssociateDeviceUsingPOST) | **Post** /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid} | Update SSH User {uuid} +[**CreateSshUserUsingPOST**](SSHUserApi.md#CreateSshUserUsingPOST) | **Post** /ne/v1/sshUsers | Create SSH User +[**DissociateDeviceUsingDELETE**](SSHUserApi.md#DissociateDeviceUsingDELETE) | **Delete** /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid} | Delete SSH User +[**GetSshUserUsingGET**](SSHUserApi.md#GetSshUserUsingGET) | **Get** /ne/v1/sshUsers/{uuid} | Get SSH User {uuid} +[**GetSshUsersUsingGET**](SSHUserApi.md#GetSshUsersUsingGET) | **Get** /ne/v1/sshUsers | Get SSH Users +[**IsSshUserAvailableForCreationUsingGET**](SSHUserApi.md#IsSshUserAvailableForCreationUsingGET) | **Get** /ne/v1/sshUsers/availability | Check SSH Username Availability +[**UpdateSshUserUsingPUT**](SSHUserApi.md#UpdateSshUserUsingPUT) | **Put** /ne/v1/sshUsers/{uuid} | Update SSH User Password + + + +## AssociateDeviceUsingPOST + +> AssociateDeviceUsingPOST(ctx, sshUserUuid, deviceUuid).Authorization(authorization).Execute() + +Update SSH User {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + sshUserUuid := "sshUserUuid_example" // string | The id of the SSH user + deviceUuid := "deviceUuid_example" // string | The unique Id of the device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SSHUserApi.AssociateDeviceUsingPOST(context.Background(), sshUserUuid, deviceUuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.AssociateDeviceUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sshUserUuid** | **string** | The id of the SSH user | +**deviceUuid** | **string** | The unique Id of the device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAssociateDeviceUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSshUserUsingPOST + +> SshUserCreateResponse CreateSshUserUsingPOST(ctx).Authorization(authorization).Request(request).Execute() + +Create SSH User + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewSshUserCreateRequest("user1", "pass12", "3da0a663-20d9-4b8f-8c5d-d5cf706840c8") // SshUserCreateRequest | SSH user info (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SSHUserApi.CreateSshUserUsingPOST(context.Background()).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.CreateSshUserUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSshUserUsingPOST`: SshUserCreateResponse + fmt.Fprintf(os.Stdout, "Response from `SSHUserApi.CreateSshUserUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSshUserUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**SshUserCreateRequest**](SshUserCreateRequest.md) | SSH user info | + +### Return type + +[**SshUserCreateResponse**](SshUserCreateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DissociateDeviceUsingDELETE + +> SshUserInfoDissociateResponse DissociateDeviceUsingDELETE(ctx, sshUserUuid, deviceUuid).Authorization(authorization).Execute() + +Delete SSH User + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + sshUserUuid := "sshUserUuid_example" // string | uuid + deviceUuid := "deviceUuid_example" // string | device unique Id + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SSHUserApi.DissociateDeviceUsingDELETE(context.Background(), sshUserUuid, deviceUuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.DissociateDeviceUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DissociateDeviceUsingDELETE`: SshUserInfoDissociateResponse + fmt.Fprintf(os.Stdout, "Response from `SSHUserApi.DissociateDeviceUsingDELETE`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sshUserUuid** | **string** | uuid | +**deviceUuid** | **string** | device unique Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDissociateDeviceUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**SshUserInfoDissociateResponse**](SshUserInfoDissociateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSshUserUsingGET + +> SshUserInfoVerbose GetSshUserUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get SSH User {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SSHUserApi.GetSshUserUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.GetSshUserUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSshUserUsingGET`: SshUserInfoVerbose + fmt.Fprintf(os.Stdout, "Response from `SSHUserApi.GetSshUserUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSshUserUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**SshUserInfoVerbose**](SshUserInfoVerbose.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSshUsersUsingGET + +> SshUserPageResponse GetSshUsersUsingGET(ctx).Authorization(authorization).Username(username).VirtualDeviceUuid(virtualDeviceUuid).Verbose(verbose).AccountUcmId(accountUcmId).Offset(offset).Limit(limit).Execute() + +Get SSH Users + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + username := "username_example" // string | SSH user name (optional) + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Virtual Device unique Id (optional) + verbose := true // bool | Is detailed info required (optional) + accountUcmId := "accountUcmId_example" // string | Unique ID of an account (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SSHUserApi.GetSshUsersUsingGET(context.Background()).Authorization(authorization).Username(username).VirtualDeviceUuid(virtualDeviceUuid).Verbose(verbose).AccountUcmId(accountUcmId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.GetSshUsersUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSshUsersUsingGET`: SshUserPageResponse + fmt.Fprintf(os.Stdout, "Response from `SSHUserApi.GetSshUsersUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSshUsersUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **username** | **string** | SSH user name | + **virtualDeviceUuid** | **string** | Virtual Device unique Id | + **verbose** | **bool** | Is detailed info required | + **accountUcmId** | **string** | Unique ID of an account | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**SshUserPageResponse**](SshUserPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IsSshUserAvailableForCreationUsingGET + +> IsSshUserAvailableForCreationUsingGET(ctx).Username(username).Authorization(authorization).Execute() + +Check SSH Username Availability + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + username := "username_example" // string | user name + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SSHUserApi.IsSshUserAvailableForCreationUsingGET(context.Background()).Username(username).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.IsSshUserAvailableForCreationUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIsSshUserAvailableForCreationUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | user name | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSshUserUsingPUT + +> UpdateSshUserUsingPUT(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update SSH User Password + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewSshUserUpdateRequest("pass12") // SshUserUpdateRequest | SSH user info (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SSHUserApi.UpdateSshUserUsingPUT(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SSHUserApi.UpdateSshUserUsingPUT``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSshUserUsingPUTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**SshUserUpdateRequest**](SshUserUpdateRequest.md) | SSH user info | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/SecondaryDeviceDeleteRequest.md b/services/networkedgev1/docs/SecondaryDeviceDeleteRequest.md new file mode 100644 index 00000000..8895b581 --- /dev/null +++ b/services/networkedgev1/docs/SecondaryDeviceDeleteRequest.md @@ -0,0 +1,56 @@ +# SecondaryDeviceDeleteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeactivationKey** | Pointer to **string** | Object that holds the secondary deactivation key for a redundant device. If you do not provide a deactivation key for a Palo Alto BYOL device, you must contact your vendor to release the license. | [optional] + +## Methods + +### NewSecondaryDeviceDeleteRequest + +`func NewSecondaryDeviceDeleteRequest() *SecondaryDeviceDeleteRequest` + +NewSecondaryDeviceDeleteRequest instantiates a new SecondaryDeviceDeleteRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecondaryDeviceDeleteRequestWithDefaults + +`func NewSecondaryDeviceDeleteRequestWithDefaults() *SecondaryDeviceDeleteRequest` + +NewSecondaryDeviceDeleteRequestWithDefaults instantiates a new SecondaryDeviceDeleteRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeactivationKey + +`func (o *SecondaryDeviceDeleteRequest) GetDeactivationKey() string` + +GetDeactivationKey returns the DeactivationKey field if non-nil, zero value otherwise. + +### GetDeactivationKeyOk + +`func (o *SecondaryDeviceDeleteRequest) GetDeactivationKeyOk() (*string, bool)` + +GetDeactivationKeyOk returns a tuple with the DeactivationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeactivationKey + +`func (o *SecondaryDeviceDeleteRequest) SetDeactivationKey(v string)` + +SetDeactivationKey sets DeactivationKey field to given value. + +### HasDeactivationKey + +`func (o *SecondaryDeviceDeleteRequest) HasDeactivationKey() bool` + +HasDeactivationKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SelfConfiguredConfig.md b/services/networkedgev1/docs/SelfConfiguredConfig.md new file mode 100644 index 00000000..58f8c509 --- /dev/null +++ b/services/networkedgev1/docs/SelfConfiguredConfig.md @@ -0,0 +1,186 @@ +# SelfConfiguredConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | Whether the device is EQUINIX-CONFIGURED or SELF-MANAGED. | [optional] +**LicenseOptions** | Pointer to [**SelfConfiguredConfigLicenseOptions**](SelfConfiguredConfigLicenseOptions.md) | | [optional] +**SupportedServices** | Pointer to [**[]SupportedServicesConfig**](SupportedServicesConfig.md) | | [optional] +**AdditionalFields** | Pointer to [**[]AdditionalFieldsConfig**](AdditionalFieldsConfig.md) | | [optional] +**DefaultAcls** | Pointer to [**DefaultAclsConfig**](DefaultAclsConfig.md) | | [optional] +**ClusteringDetails** | Pointer to [**ClusteringDetails**](ClusteringDetails.md) | | [optional] + +## Methods + +### NewSelfConfiguredConfig + +`func NewSelfConfiguredConfig() *SelfConfiguredConfig` + +NewSelfConfiguredConfig instantiates a new SelfConfiguredConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSelfConfiguredConfigWithDefaults + +`func NewSelfConfiguredConfigWithDefaults() *SelfConfiguredConfig` + +NewSelfConfiguredConfigWithDefaults instantiates a new SelfConfiguredConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *SelfConfiguredConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SelfConfiguredConfig) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SelfConfiguredConfig) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SelfConfiguredConfig) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetLicenseOptions + +`func (o *SelfConfiguredConfig) GetLicenseOptions() SelfConfiguredConfigLicenseOptions` + +GetLicenseOptions returns the LicenseOptions field if non-nil, zero value otherwise. + +### GetLicenseOptionsOk + +`func (o *SelfConfiguredConfig) GetLicenseOptionsOk() (*SelfConfiguredConfigLicenseOptions, bool)` + +GetLicenseOptionsOk returns a tuple with the LicenseOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseOptions + +`func (o *SelfConfiguredConfig) SetLicenseOptions(v SelfConfiguredConfigLicenseOptions)` + +SetLicenseOptions sets LicenseOptions field to given value. + +### HasLicenseOptions + +`func (o *SelfConfiguredConfig) HasLicenseOptions() bool` + +HasLicenseOptions returns a boolean if a field has been set. + +### GetSupportedServices + +`func (o *SelfConfiguredConfig) GetSupportedServices() []SupportedServicesConfig` + +GetSupportedServices returns the SupportedServices field if non-nil, zero value otherwise. + +### GetSupportedServicesOk + +`func (o *SelfConfiguredConfig) GetSupportedServicesOk() (*[]SupportedServicesConfig, bool)` + +GetSupportedServicesOk returns a tuple with the SupportedServices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedServices + +`func (o *SelfConfiguredConfig) SetSupportedServices(v []SupportedServicesConfig)` + +SetSupportedServices sets SupportedServices field to given value. + +### HasSupportedServices + +`func (o *SelfConfiguredConfig) HasSupportedServices() bool` + +HasSupportedServices returns a boolean if a field has been set. + +### GetAdditionalFields + +`func (o *SelfConfiguredConfig) GetAdditionalFields() []AdditionalFieldsConfig` + +GetAdditionalFields returns the AdditionalFields field if non-nil, zero value otherwise. + +### GetAdditionalFieldsOk + +`func (o *SelfConfiguredConfig) GetAdditionalFieldsOk() (*[]AdditionalFieldsConfig, bool)` + +GetAdditionalFieldsOk returns a tuple with the AdditionalFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalFields + +`func (o *SelfConfiguredConfig) SetAdditionalFields(v []AdditionalFieldsConfig)` + +SetAdditionalFields sets AdditionalFields field to given value. + +### HasAdditionalFields + +`func (o *SelfConfiguredConfig) HasAdditionalFields() bool` + +HasAdditionalFields returns a boolean if a field has been set. + +### GetDefaultAcls + +`func (o *SelfConfiguredConfig) GetDefaultAcls() DefaultAclsConfig` + +GetDefaultAcls returns the DefaultAcls field if non-nil, zero value otherwise. + +### GetDefaultAclsOk + +`func (o *SelfConfiguredConfig) GetDefaultAclsOk() (*DefaultAclsConfig, bool)` + +GetDefaultAclsOk returns a tuple with the DefaultAcls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultAcls + +`func (o *SelfConfiguredConfig) SetDefaultAcls(v DefaultAclsConfig)` + +SetDefaultAcls sets DefaultAcls field to given value. + +### HasDefaultAcls + +`func (o *SelfConfiguredConfig) HasDefaultAcls() bool` + +HasDefaultAcls returns a boolean if a field has been set. + +### GetClusteringDetails + +`func (o *SelfConfiguredConfig) GetClusteringDetails() ClusteringDetails` + +GetClusteringDetails returns the ClusteringDetails field if non-nil, zero value otherwise. + +### GetClusteringDetailsOk + +`func (o *SelfConfiguredConfig) GetClusteringDetailsOk() (*ClusteringDetails, bool)` + +GetClusteringDetailsOk returns a tuple with the ClusteringDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusteringDetails + +`func (o *SelfConfiguredConfig) SetClusteringDetails(v ClusteringDetails)` + +SetClusteringDetails sets ClusteringDetails field to given value. + +### HasClusteringDetails + +`func (o *SelfConfiguredConfig) HasClusteringDetails() bool` + +HasClusteringDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SelfConfiguredConfigLicenseOptions.md b/services/networkedgev1/docs/SelfConfiguredConfigLicenseOptions.md new file mode 100644 index 00000000..32e64969 --- /dev/null +++ b/services/networkedgev1/docs/SelfConfiguredConfigLicenseOptions.md @@ -0,0 +1,82 @@ +# SelfConfiguredConfigLicenseOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SUB** | Pointer to **map[string]interface{}** | | [optional] +**BYOL** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSelfConfiguredConfigLicenseOptions + +`func NewSelfConfiguredConfigLicenseOptions() *SelfConfiguredConfigLicenseOptions` + +NewSelfConfiguredConfigLicenseOptions instantiates a new SelfConfiguredConfigLicenseOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSelfConfiguredConfigLicenseOptionsWithDefaults + +`func NewSelfConfiguredConfigLicenseOptionsWithDefaults() *SelfConfiguredConfigLicenseOptions` + +NewSelfConfiguredConfigLicenseOptionsWithDefaults instantiates a new SelfConfiguredConfigLicenseOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSUB + +`func (o *SelfConfiguredConfigLicenseOptions) GetSUB() map[string]interface{}` + +GetSUB returns the SUB field if non-nil, zero value otherwise. + +### GetSUBOk + +`func (o *SelfConfiguredConfigLicenseOptions) GetSUBOk() (*map[string]interface{}, bool)` + +GetSUBOk returns a tuple with the SUB field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSUB + +`func (o *SelfConfiguredConfigLicenseOptions) SetSUB(v map[string]interface{})` + +SetSUB sets SUB field to given value. + +### HasSUB + +`func (o *SelfConfiguredConfigLicenseOptions) HasSUB() bool` + +HasSUB returns a boolean if a field has been set. + +### GetBYOL + +`func (o *SelfConfiguredConfigLicenseOptions) GetBYOL() map[string]interface{}` + +GetBYOL returns the BYOL field if non-nil, zero value otherwise. + +### GetBYOLOk + +`func (o *SelfConfiguredConfigLicenseOptions) GetBYOLOk() (*map[string]interface{}, bool)` + +GetBYOLOk returns a tuple with the BYOL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBYOL + +`func (o *SelfConfiguredConfigLicenseOptions) SetBYOL(v map[string]interface{})` + +SetBYOL sets BYOL field to given value. + +### HasBYOL + +`func (o *SelfConfiguredConfigLicenseOptions) HasBYOL() bool` + +HasBYOL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ServiceInfo.md b/services/networkedgev1/docs/ServiceInfo.md new file mode 100644 index 00000000..89ec35eb --- /dev/null +++ b/services/networkedgev1/docs/ServiceInfo.md @@ -0,0 +1,108 @@ +# ServiceInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | The unique ID of the service. | [optional] +**ServiceName** | Pointer to **string** | The name of the service. | [optional] +**OperationNeededToPerform** | Pointer to **string** | The operation you must perform to restore the backup successfully. UNSUPPORTED- You cannot restore this backup. DELETE- You need to delete this service to restore the backup. NONE- You do not need to change anything to restore the backup. | [optional] + +## Methods + +### NewServiceInfo + +`func NewServiceInfo() *ServiceInfo` + +NewServiceInfo instantiates a new ServiceInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceInfoWithDefaults + +`func NewServiceInfoWithDefaults() *ServiceInfo` + +NewServiceInfoWithDefaults instantiates a new ServiceInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceId + +`func (o *ServiceInfo) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ServiceInfo) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ServiceInfo) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ServiceInfo) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetServiceName + +`func (o *ServiceInfo) GetServiceName() string` + +GetServiceName returns the ServiceName field if non-nil, zero value otherwise. + +### GetServiceNameOk + +`func (o *ServiceInfo) GetServiceNameOk() (*string, bool)` + +GetServiceNameOk returns a tuple with the ServiceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceName + +`func (o *ServiceInfo) SetServiceName(v string)` + +SetServiceName sets ServiceName field to given value. + +### HasServiceName + +`func (o *ServiceInfo) HasServiceName() bool` + +HasServiceName returns a boolean if a field has been set. + +### GetOperationNeededToPerform + +`func (o *ServiceInfo) GetOperationNeededToPerform() string` + +GetOperationNeededToPerform returns the OperationNeededToPerform field if non-nil, zero value otherwise. + +### GetOperationNeededToPerformOk + +`func (o *ServiceInfo) GetOperationNeededToPerformOk() (*string, bool)` + +GetOperationNeededToPerformOk returns a tuple with the OperationNeededToPerform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationNeededToPerform + +`func (o *ServiceInfo) SetOperationNeededToPerform(v string)` + +SetOperationNeededToPerform sets OperationNeededToPerform field to given value. + +### HasOperationNeededToPerform + +`func (o *ServiceInfo) HasOperationNeededToPerform() bool` + +HasOperationNeededToPerform returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SetupApi.md b/services/networkedgev1/docs/SetupApi.md new file mode 100644 index 00000000..8900095c --- /dev/null +++ b/services/networkedgev1/docs/SetupApi.md @@ -0,0 +1,1086 @@ +# \SetupApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAccountsWithStatusUsingGET**](SetupApi.md#GetAccountsWithStatusUsingGET) | **Get** /ne/v1/accounts/{metro} | Get Accounts {metro} +[**GetAgreementStatusUsingGET**](SetupApi.md#GetAgreementStatusUsingGET) | **Get** /ne/v1/agreements/accounts | Get Agreement Status. +[**GetAllowedInterfacesUsingGET**](SetupApi.md#GetAllowedInterfacesUsingGET) | **Get** /ne/v1/deviceTypes/{deviceType}/interfaces | Get Allowed Interfaces +[**GetMetrosUsingGET**](SetupApi.md#GetMetrosUsingGET) | **Get** /ne/v1/metros | Get Available Metros +[**GetNotificationsUsingGET**](SetupApi.md#GetNotificationsUsingGET) | **Get** /ne/v1/notifications | Get Downtime Notifications +[**GetOrderSummaryUsingGET**](SetupApi.md#GetOrderSummaryUsingGET) | **Get** /ne/v1/orderSummaries | Get Order Summary +[**GetOrderTermsUsingGET**](SetupApi.md#GetOrderTermsUsingGET) | **Get** /ne/v1/agreements/orders | Get Order Terms +[**GetPublicKeysUsingGET**](SetupApi.md#GetPublicKeysUsingGET) | **Get** /ne/v1/publicKeys | Get Public Keys +[**GetVendorTermsUsingGET**](SetupApi.md#GetVendorTermsUsingGET) | **Get** /ne/v1/agreements/vendors | Get Vendor Terms +[**GetVirtualDevicesUsingGET**](SetupApi.md#GetVirtualDevicesUsingGET) | **Get** /ne/v1/deviceTypes | Get Device Types +[**PostPublicKeyUsingPOST**](SetupApi.md#PostPublicKeyUsingPOST) | **Post** /ne/v1/publicKeys | Create Public Key +[**RetrievePriceUsingGET**](SetupApi.md#RetrievePriceUsingGET) | **Get** /ne/v1/prices | Get the Price +[**SendAgreementUsingPOST1**](SetupApi.md#SendAgreementUsingPOST1) | **Post** /ne/v1/agreements/accounts | Create an agreement +[**UploadFileUsingPOST**](SetupApi.md#UploadFileUsingPOST) | **Post** /ne/v1/files | Upload File (Post) + + + +## GetAccountsWithStatusUsingGET + +> PageResponseDtoMetroAccountResponse GetAccountsWithStatusUsingGET(ctx, metro).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + +Get Accounts {metro} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + metro := "metro_example" // string | Metro region for which you want to check your account status + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountUcmId := "accountUcmId_example" // string | Unique ID of an account (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetAccountsWithStatusUsingGET(context.Background(), metro).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetAccountsWithStatusUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountsWithStatusUsingGET`: PageResponseDtoMetroAccountResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetAccountsWithStatusUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**metro** | **string** | Metro region for which you want to check your account status | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAccountsWithStatusUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountUcmId** | **string** | Unique ID of an account | + +### Return type + +[**PageResponseDtoMetroAccountResponse**](PageResponseDtoMetroAccountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgreementStatusUsingGET + +> AgreementStatusResponse GetAgreementStatusUsingGET(ctx).AccountNumber(accountNumber).Authorization(authorization).Execute() + +Get Agreement Status. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + accountNumber := "accountNumber_example" // string | account_number + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetAgreementStatusUsingGET(context.Background()).AccountNumber(accountNumber).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetAgreementStatusUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgreementStatusUsingGET`: AgreementStatusResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetAgreementStatusUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgreementStatusUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountNumber** | **string** | account_number | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**AgreementStatusResponse**](AgreementStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAllowedInterfacesUsingGET + +> AllowedInterfaceResponse GetAllowedInterfacesUsingGET(ctx, deviceType).DeviceManagementType(deviceManagementType).Core(core).Authorization(authorization).Mode(mode).LicenseCategory(licenseCategory).Cluster(cluster).Sdwan(sdwan).Connectivity(connectivity).Memory(memory).Unit(unit).Flavor(flavor).Version(version).SoftwarePkg(softwarePkg).Execute() + +Get Allowed Interfaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + deviceType := "deviceType_example" // string | Device type code. PA-VM. + deviceManagementType := "deviceManagementType_example" // string | Device management type. SELF-CONFIGURED + core := int32(56) // int32 | The desired number of cores. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + mode := "mode_example" // string | License mode, either Subscription or BYOL. (optional) + licenseCategory := "licenseCategory_example" // string | Relevant for Fortinet devices. Choose \"flex\" if you want to enter a token and \"classic\" if you want to upload a license file. (optional) + cluster := true // bool | Whether you want a cluster device. (optional) + sdwan := true // bool | Whether you want an SD-WAN device. (optional) + connectivity := "connectivity_example" // string | Type of connectivity you want. INTERNET-ACCESS, PRIVATE, or INTERNET-ACCESS-WITH-PRVT-MGMT. PRIVATE devices do not have ACLs or bandwidth. (optional) + memory := int32(56) // int32 | Desired memory. (optional) + unit := "unit_example" // string | Unit of memory. GB or MB. (optional) + flavor := "flavor_example" // string | Flavor of device. (optional) + version := "version_example" // string | Version. (optional) + softwarePkg := "softwarePkg_example" // string | Software package. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetAllowedInterfacesUsingGET(context.Background(), deviceType).DeviceManagementType(deviceManagementType).Core(core).Authorization(authorization).Mode(mode).LicenseCategory(licenseCategory).Cluster(cluster).Sdwan(sdwan).Connectivity(connectivity).Memory(memory).Unit(unit).Flavor(flavor).Version(version).SoftwarePkg(softwarePkg).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetAllowedInterfacesUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAllowedInterfacesUsingGET`: AllowedInterfaceResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetAllowedInterfacesUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deviceType** | **string** | Device type code. PA-VM. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAllowedInterfacesUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deviceManagementType** | **string** | Device management type. SELF-CONFIGURED | + **core** | **int32** | The desired number of cores. | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **mode** | **string** | License mode, either Subscription or BYOL. | + **licenseCategory** | **string** | Relevant for Fortinet devices. Choose \"flex\" if you want to enter a token and \"classic\" if you want to upload a license file. | + **cluster** | **bool** | Whether you want a cluster device. | + **sdwan** | **bool** | Whether you want an SD-WAN device. | + **connectivity** | **string** | Type of connectivity you want. INTERNET-ACCESS, PRIVATE, or INTERNET-ACCESS-WITH-PRVT-MGMT. PRIVATE devices do not have ACLs or bandwidth. | + **memory** | **int32** | Desired memory. | + **unit** | **string** | Unit of memory. GB or MB. | + **flavor** | **string** | Flavor of device. | + **version** | **string** | Version. | + **softwarePkg** | **string** | Software package. | + +### Return type + +[**AllowedInterfaceResponse**](AllowedInterfaceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetrosUsingGET + +> PageResponseDtoMetroResponse GetMetrosUsingGET(ctx).Authorization(authorization).Region(region).Offset(offset).Limit(limit).Execute() + +Get Available Metros + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + region := "region_example" // string | Name of the region for which you want metros (e.g., AMER) (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetMetrosUsingGET(context.Background()).Authorization(authorization).Region(region).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetMetrosUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetrosUsingGET`: PageResponseDtoMetroResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetMetrosUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetrosUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **region** | **string** | Name of the region for which you want metros (e.g., AMER) | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**PageResponseDtoMetroResponse**](PageResponseDtoMetroResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetNotificationsUsingGET + +> DowntimeNotification GetNotificationsUsingGET(ctx).Authorization(authorization).Execute() + +Get Downtime Notifications + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetNotificationsUsingGET(context.Background()).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetNotificationsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationsUsingGET`: DowntimeNotification + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetNotificationsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetNotificationsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**DowntimeNotification**](DowntimeNotification.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrderSummaryUsingGET + +> GetOrderSummaryUsingGET(ctx).Authorization(authorization).AccountNumber(accountNumber).Metro(metro).VendorPackage(vendorPackage).LicenseType(licenseType).SoftwarePackage(softwarePackage).Throughput(throughput).ThroughputUnit(throughputUnit).TermLength(termLength).AdditionalBandwidth(additionalBandwidth).VirtualDeviceUuid(virtualDeviceUuid).DeviceManagementType(deviceManagementType).Core(core).SecondaryAccountNumber(secondaryAccountNumber).SecondaryMetro(secondaryMetro).SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth).AccountUcmId(accountUcmId).OrderingContact(orderingContact).Execute() + +Get Order Summary + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountNumber := int32(56) // int32 | Account number (optional) + metro := "metro_example" // string | Metro (optional) + vendorPackage := "vendorPackage_example" // string | Vendor package (optional) + licenseType := "licenseType_example" // string | License type (optional) + softwarePackage := "softwarePackage_example" // string | Software package (optional) + throughput := int32(56) // int32 | Throughput (optional) + throughputUnit := "throughputUnit_example" // string | Throughput unit (optional) + termLength := "termLength_example" // string | Term length (in months) (optional) + additionalBandwidth := int32(56) // int32 | Additional bandwidth (in Mbps) (optional) + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Virtual device unique Id (only required if existing device is being modified) (optional) + deviceManagementType := "deviceManagementType_example" // string | The device management type (optional) + core := int32(56) // int32 | The number of cores (optional) + secondaryAccountNumber := int32(56) // int32 | Secondary account number (in case you have a device pair) (optional) + secondaryMetro := "secondaryMetro_example" // string | Secondary metro (in case you have a device pair) (optional) + secondaryAdditionalBandwidth := int32(56) // int32 | Secondary additional bandwidth (in Mbps) (optional) + accountUcmId := "accountUcmId_example" // string | Account unique ID (optional) + orderingContact := "orderingContact_example" // string | Reseller customer username (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SetupApi.GetOrderSummaryUsingGET(context.Background()).Authorization(authorization).AccountNumber(accountNumber).Metro(metro).VendorPackage(vendorPackage).LicenseType(licenseType).SoftwarePackage(softwarePackage).Throughput(throughput).ThroughputUnit(throughputUnit).TermLength(termLength).AdditionalBandwidth(additionalBandwidth).VirtualDeviceUuid(virtualDeviceUuid).DeviceManagementType(deviceManagementType).Core(core).SecondaryAccountNumber(secondaryAccountNumber).SecondaryMetro(secondaryMetro).SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth).AccountUcmId(accountUcmId).OrderingContact(orderingContact).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetOrderSummaryUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrderSummaryUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountNumber** | **int32** | Account number | + **metro** | **string** | Metro | + **vendorPackage** | **string** | Vendor package | + **licenseType** | **string** | License type | + **softwarePackage** | **string** | Software package | + **throughput** | **int32** | Throughput | + **throughputUnit** | **string** | Throughput unit | + **termLength** | **string** | Term length (in months) | + **additionalBandwidth** | **int32** | Additional bandwidth (in Mbps) | + **virtualDeviceUuid** | **string** | Virtual device unique Id (only required if existing device is being modified) | + **deviceManagementType** | **string** | The device management type | + **core** | **int32** | The number of cores | + **secondaryAccountNumber** | **int32** | Secondary account number (in case you have a device pair) | + **secondaryMetro** | **string** | Secondary metro (in case you have a device pair) | + **secondaryAdditionalBandwidth** | **int32** | Secondary additional bandwidth (in Mbps) | + **accountUcmId** | **string** | Account unique ID | + **orderingContact** | **string** | Reseller customer username | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrderTermsUsingGET + +> OrderTermsResponse GetOrderTermsUsingGET(ctx).Authorization(authorization).Execute() + +Get Order Terms + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetOrderTermsUsingGET(context.Background()).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetOrderTermsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrderTermsUsingGET`: OrderTermsResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetOrderTermsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrderTermsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**OrderTermsResponse**](OrderTermsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPublicKeysUsingGET + +> []PageResponsePublicKeys GetPublicKeysUsingGET(ctx).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + +Get Public Keys + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountUcmId := "accountUcmId_example" // string | This field is for resellers. Please pass the accountUcmId of your customer to get the public keys. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetPublicKeysUsingGET(context.Background()).Authorization(authorization).AccountUcmId(accountUcmId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetPublicKeysUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicKeysUsingGET`: []PageResponsePublicKeys + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetPublicKeysUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPublicKeysUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountUcmId** | **string** | This field is for resellers. Please pass the accountUcmId of your customer to get the public keys. | + +### Return type + +[**[]PageResponsePublicKeys**](PageResponsePublicKeys.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVendorTermsUsingGET + +> VendorTermsResponse GetVendorTermsUsingGET(ctx).VendorPackage(vendorPackage).LicenseType(licenseType).Authorization(authorization).Execute() + +Get Vendor Terms + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + vendorPackage := "vendorPackage_example" // string | vendorPackage + licenseType := "licenseType_example" // string | licenseType + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetVendorTermsUsingGET(context.Background()).VendorPackage(vendorPackage).LicenseType(licenseType).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetVendorTermsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVendorTermsUsingGET`: VendorTermsResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetVendorTermsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVendorTermsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vendorPackage** | **string** | vendorPackage | + **licenseType** | **string** | licenseType | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**VendorTermsResponse**](VendorTermsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVirtualDevicesUsingGET + +> PageResponseDtoVirtualDeviceType GetVirtualDevicesUsingGET(ctx).Authorization(authorization).DeviceTypeCode(deviceTypeCode).Category(category).Offset(offset).Limit(limit).Execute() + +Get Device Types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + deviceTypeCode := "deviceTypeCode_example" // string | Device type code (e.g., C8000V) (optional) + category := "category_example" // string | Category. One of FIREWALL, ROUTER or SD-WAN (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.GetVirtualDevicesUsingGET(context.Background()).Authorization(authorization).DeviceTypeCode(deviceTypeCode).Category(category).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.GetVirtualDevicesUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVirtualDevicesUsingGET`: PageResponseDtoVirtualDeviceType + fmt.Fprintf(os.Stdout, "Response from `SetupApi.GetVirtualDevicesUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVirtualDevicesUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **deviceTypeCode** | **string** | Device type code (e.g., C8000V) | + **category** | **string** | Category. One of FIREWALL, ROUTER or SD-WAN | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**PageResponseDtoVirtualDeviceType**](PageResponseDtoVirtualDeviceType.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostPublicKeyUsingPOST + +> PostPublicKeyUsingPOST(ctx).Authorization(authorization).PublicKeyRequest(publicKeyRequest).Execute() + +Create Public Key + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + publicKeyRequest := *openapiclient.NewPublicKeyRequest("myKeyName", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC5kHcagDZ7utPan4DHWUvoJxwz/DISRFwZdpMhslhZRI+6dGOC8mJn42SlSUAUtkt8Qyl4HipPK7Xh6oGj70Iba1a9pDcURYTYcqWFBEhcdDsMnH1CICmvVdsILehFtiS3X0J1JhwmWQI/7ll3QOk8fLgWCz3idlYJqtMs8Gz/6Q== noname") // PublicKeyRequest | keyName, keyValue, and keyType + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SetupApi.PostPublicKeyUsingPOST(context.Background()).Authorization(authorization).PublicKeyRequest(publicKeyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.PostPublicKeyUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostPublicKeyUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **publicKeyRequest** | [**PublicKeyRequest**](PublicKeyRequest.md) | keyName, keyValue, and keyType | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RetrievePriceUsingGET + +> CompositePriceResponse RetrievePriceUsingGET(ctx).Authorization(authorization).AccountNumber(accountNumber).Metro(metro).VendorPackage(vendorPackage).LicenseType(licenseType).SoftwarePackage(softwarePackage).Throughput(throughput).ThroughputUnit(throughputUnit).TermLength(termLength).AdditionalBandwidth(additionalBandwidth).VirtualDeviceUuid(virtualDeviceUuid).DeviceManagementType(deviceManagementType).Core(core).SecondaryAccountNumber(secondaryAccountNumber).SecondaryMetro(secondaryMetro).SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth).AccountUcmId(accountUcmId).OrderingContact(orderingContact).Execute() + +Get the Price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountNumber := int32(56) // int32 | Account number (optional) + metro := "metro_example" // string | Metro (optional) + vendorPackage := "vendorPackage_example" // string | Vendor package (optional) + licenseType := "licenseType_example" // string | License type (optional) + softwarePackage := "softwarePackage_example" // string | Software package (optional) + throughput := int32(56) // int32 | Throughput (optional) + throughputUnit := "throughputUnit_example" // string | Throughput unit (optional) + termLength := "termLength_example" // string | Term length (in months) (optional) + additionalBandwidth := int32(56) // int32 | Additional bandwidth (in Mbps) (optional) + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Virtual device unique Id (only required if existing device is being modified) (optional) + deviceManagementType := "deviceManagementType_example" // string | The device management type (optional) + core := int32(56) // int32 | The number of cores (optional) + secondaryAccountNumber := int32(56) // int32 | The secondary account number (for HA) (optional) + secondaryMetro := "secondaryMetro_example" // string | Secondary metro (for HA) (optional) + secondaryAdditionalBandwidth := int32(56) // int32 | Secondary additional bandwidth (in Mbps for HA) (optional) + accountUcmId := "accountUcmId_example" // string | Account unique ID (optional) + orderingContact := "orderingContact_example" // string | Reseller customer username (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.RetrievePriceUsingGET(context.Background()).Authorization(authorization).AccountNumber(accountNumber).Metro(metro).VendorPackage(vendorPackage).LicenseType(licenseType).SoftwarePackage(softwarePackage).Throughput(throughput).ThroughputUnit(throughputUnit).TermLength(termLength).AdditionalBandwidth(additionalBandwidth).VirtualDeviceUuid(virtualDeviceUuid).DeviceManagementType(deviceManagementType).Core(core).SecondaryAccountNumber(secondaryAccountNumber).SecondaryMetro(secondaryMetro).SecondaryAdditionalBandwidth(secondaryAdditionalBandwidth).AccountUcmId(accountUcmId).OrderingContact(orderingContact).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.RetrievePriceUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RetrievePriceUsingGET`: CompositePriceResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.RetrievePriceUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRetrievePriceUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountNumber** | **int32** | Account number | + **metro** | **string** | Metro | + **vendorPackage** | **string** | Vendor package | + **licenseType** | **string** | License type | + **softwarePackage** | **string** | Software package | + **throughput** | **int32** | Throughput | + **throughputUnit** | **string** | Throughput unit | + **termLength** | **string** | Term length (in months) | + **additionalBandwidth** | **int32** | Additional bandwidth (in Mbps) | + **virtualDeviceUuid** | **string** | Virtual device unique Id (only required if existing device is being modified) | + **deviceManagementType** | **string** | The device management type | + **core** | **int32** | The number of cores | + **secondaryAccountNumber** | **int32** | The secondary account number (for HA) | + **secondaryMetro** | **string** | Secondary metro (for HA) | + **secondaryAdditionalBandwidth** | **int32** | Secondary additional bandwidth (in Mbps for HA) | + **accountUcmId** | **string** | Account unique ID | + **orderingContact** | **string** | Reseller customer username | + +### Return type + +[**CompositePriceResponse**](CompositePriceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SendAgreementUsingPOST1 + +> AgreementAcceptResponse SendAgreementUsingPOST1(ctx).Authorization(authorization).AgreementAcceptRequest(agreementAcceptRequest).Execute() + +Create an agreement + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + agreementAcceptRequest := *openapiclient.NewAgreementAcceptRequest() // AgreementAcceptRequest | agreementAcceptRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.SendAgreementUsingPOST1(context.Background()).Authorization(authorization).AgreementAcceptRequest(agreementAcceptRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.SendAgreementUsingPOST1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendAgreementUsingPOST1`: AgreementAcceptResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.SendAgreementUsingPOST1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSendAgreementUsingPOST1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **agreementAcceptRequest** | [**AgreementAcceptRequest**](AgreementAcceptRequest.md) | agreementAcceptRequest | + +### Return type + +[**AgreementAcceptResponse**](AgreementAcceptResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UploadFileUsingPOST + +> FileUploadResponse UploadFileUsingPOST(ctx).Authorization(authorization).File(file).MetroCode(metroCode).DeviceTypeCode(deviceTypeCode).ProcessType(processType).DeviceManagementType(deviceManagementType).LicenseType(licenseType).Execute() + +Upload File (Post) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + file := os.NewFile(1234, "some_file") // *os.File | A license or a cloud_init file. For example, for Aviatrix, this is your bootsrap config file generated from the Aviatrix Controller portal. + metroCode := "metroCode_example" // string | Two-letter metro code. + deviceTypeCode := "deviceTypeCode_example" // string | Device type code, e.g., AVIATRIX_EDGE + processType := "processType_example" // string | Whether you are uploading a license or a cloud_init file. LICENSE or CLOUD_INIT + deviceManagementType := "deviceManagementType_example" // string | Device management type, whether SELF-CONFIGURED or not (optional) + licenseType := "licenseType_example" // string | Type of license (BYOL-Bring Your Own License) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SetupApi.UploadFileUsingPOST(context.Background()).Authorization(authorization).File(file).MetroCode(metroCode).DeviceTypeCode(deviceTypeCode).ProcessType(processType).DeviceManagementType(deviceManagementType).LicenseType(licenseType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SetupApi.UploadFileUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UploadFileUsingPOST`: FileUploadResponse + fmt.Fprintf(os.Stdout, "Response from `SetupApi.UploadFileUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUploadFileUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **file** | ***os.File** | A license or a cloud_init file. For example, for Aviatrix, this is your bootsrap config file generated from the Aviatrix Controller portal. | + **metroCode** | **string** | Two-letter metro code. | + **deviceTypeCode** | **string** | Device type code, e.g., AVIATRIX_EDGE | + **processType** | **string** | Whether you are uploading a license or a cloud_init file. LICENSE or CLOUD_INIT | + **deviceManagementType** | **string** | Device management type, whether SELF-CONFIGURED or not | + **licenseType** | **string** | Type of license (BYOL-Bring Your Own License) | + +### Return type + +[**FileUploadResponse**](FileUploadResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/SoftwarePackage.md b/services/networkedgev1/docs/SoftwarePackage.md new file mode 100644 index 00000000..e5c1260e --- /dev/null +++ b/services/networkedgev1/docs/SoftwarePackage.md @@ -0,0 +1,134 @@ +# SoftwarePackage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Software package name | [optional] +**PackageCode** | Pointer to **string** | Software package code | [optional] +**LicenseType** | Pointer to **string** | Software package license type | [optional] +**VersionDetails** | Pointer to [**[]VersionDetails**](VersionDetails.md) | | [optional] + +## Methods + +### NewSoftwarePackage + +`func NewSoftwarePackage() *SoftwarePackage` + +NewSoftwarePackage instantiates a new SoftwarePackage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSoftwarePackageWithDefaults + +`func NewSoftwarePackageWithDefaults() *SoftwarePackage` + +NewSoftwarePackageWithDefaults instantiates a new SoftwarePackage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SoftwarePackage) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SoftwarePackage) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SoftwarePackage) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SoftwarePackage) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPackageCode + +`func (o *SoftwarePackage) GetPackageCode() string` + +GetPackageCode returns the PackageCode field if non-nil, zero value otherwise. + +### GetPackageCodeOk + +`func (o *SoftwarePackage) GetPackageCodeOk() (*string, bool)` + +GetPackageCodeOk returns a tuple with the PackageCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCode + +`func (o *SoftwarePackage) SetPackageCode(v string)` + +SetPackageCode sets PackageCode field to given value. + +### HasPackageCode + +`func (o *SoftwarePackage) HasPackageCode() bool` + +HasPackageCode returns a boolean if a field has been set. + +### GetLicenseType + +`func (o *SoftwarePackage) GetLicenseType() string` + +GetLicenseType returns the LicenseType field if non-nil, zero value otherwise. + +### GetLicenseTypeOk + +`func (o *SoftwarePackage) GetLicenseTypeOk() (*string, bool)` + +GetLicenseTypeOk returns a tuple with the LicenseType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseType + +`func (o *SoftwarePackage) SetLicenseType(v string)` + +SetLicenseType sets LicenseType field to given value. + +### HasLicenseType + +`func (o *SoftwarePackage) HasLicenseType() bool` + +HasLicenseType returns a boolean if a field has been set. + +### GetVersionDetails + +`func (o *SoftwarePackage) GetVersionDetails() []VersionDetails` + +GetVersionDetails returns the VersionDetails field if non-nil, zero value otherwise. + +### GetVersionDetailsOk + +`func (o *SoftwarePackage) GetVersionDetailsOk() (*[]VersionDetails, bool)` + +GetVersionDetailsOk returns a tuple with the VersionDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionDetails + +`func (o *SoftwarePackage) SetVersionDetails(v []VersionDetails)` + +SetVersionDetails sets VersionDetails field to given value. + +### HasVersionDetails + +`func (o *SoftwarePackage) HasVersionDetails() bool` + +HasVersionDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SpeedBand.md b/services/networkedgev1/docs/SpeedBand.md new file mode 100644 index 00000000..db9e6ca5 --- /dev/null +++ b/services/networkedgev1/docs/SpeedBand.md @@ -0,0 +1,82 @@ +# SpeedBand + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Speed** | Pointer to **float64** | | [optional] +**Unit** | Pointer to **string** | | [optional] + +## Methods + +### NewSpeedBand + +`func NewSpeedBand() *SpeedBand` + +NewSpeedBand instantiates a new SpeedBand object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpeedBandWithDefaults + +`func NewSpeedBandWithDefaults() *SpeedBand` + +NewSpeedBandWithDefaults instantiates a new SpeedBand object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSpeed + +`func (o *SpeedBand) GetSpeed() float64` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *SpeedBand) GetSpeedOk() (*float64, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *SpeedBand) SetSpeed(v float64)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *SpeedBand) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### GetUnit + +`func (o *SpeedBand) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *SpeedBand) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *SpeedBand) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *SpeedBand) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserCreateRequest.md b/services/networkedgev1/docs/SshUserCreateRequest.md new file mode 100644 index 00000000..7393c16c --- /dev/null +++ b/services/networkedgev1/docs/SshUserCreateRequest.md @@ -0,0 +1,93 @@ +# SshUserCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | At least 3 and upto a maximum of 32 alphanumeric characters. The only special characters allowed are - _ | +**Password** | **string** | At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ | +**DeviceUuid** | **string** | The unique Id of a virtual device. | + +## Methods + +### NewSshUserCreateRequest + +`func NewSshUserCreateRequest(username string, password string, deviceUuid string, ) *SshUserCreateRequest` + +NewSshUserCreateRequest instantiates a new SshUserCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserCreateRequestWithDefaults + +`func NewSshUserCreateRequestWithDefaults() *SshUserCreateRequest` + +NewSshUserCreateRequestWithDefaults instantiates a new SshUserCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *SshUserCreateRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SshUserCreateRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SshUserCreateRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *SshUserCreateRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SshUserCreateRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SshUserCreateRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetDeviceUuid + +`func (o *SshUserCreateRequest) GetDeviceUuid() string` + +GetDeviceUuid returns the DeviceUuid field if non-nil, zero value otherwise. + +### GetDeviceUuidOk + +`func (o *SshUserCreateRequest) GetDeviceUuidOk() (*string, bool)` + +GetDeviceUuidOk returns a tuple with the DeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuid + +`func (o *SshUserCreateRequest) SetDeviceUuid(v string)` + +SetDeviceUuid sets DeviceUuid field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserCreateResponse.md b/services/networkedgev1/docs/SshUserCreateResponse.md new file mode 100644 index 00000000..ef953ceb --- /dev/null +++ b/services/networkedgev1/docs/SshUserCreateResponse.md @@ -0,0 +1,56 @@ +# SshUserCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The ID of the newly created SSH user. | [optional] + +## Methods + +### NewSshUserCreateResponse + +`func NewSshUserCreateResponse() *SshUserCreateResponse` + +NewSshUserCreateResponse instantiates a new SshUserCreateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserCreateResponseWithDefaults + +`func NewSshUserCreateResponseWithDefaults() *SshUserCreateResponse` + +NewSshUserCreateResponseWithDefaults instantiates a new SshUserCreateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *SshUserCreateResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *SshUserCreateResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *SshUserCreateResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *SshUserCreateResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserInfoDissociateResponse.md b/services/networkedgev1/docs/SshUserInfoDissociateResponse.md new file mode 100644 index 00000000..15643f37 --- /dev/null +++ b/services/networkedgev1/docs/SshUserInfoDissociateResponse.md @@ -0,0 +1,82 @@ +# SshUserInfoDissociateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SshUserDeleted** | Pointer to **bool** | true = the ssh user has been deleted since there are no more devices associated with this user; false = the ssh user has not been deleted since associations with devices exist. | [optional] +**SshUserToDeviceAssociationDeleted** | Pointer to **bool** | | [optional] + +## Methods + +### NewSshUserInfoDissociateResponse + +`func NewSshUserInfoDissociateResponse() *SshUserInfoDissociateResponse` + +NewSshUserInfoDissociateResponse instantiates a new SshUserInfoDissociateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserInfoDissociateResponseWithDefaults + +`func NewSshUserInfoDissociateResponseWithDefaults() *SshUserInfoDissociateResponse` + +NewSshUserInfoDissociateResponseWithDefaults instantiates a new SshUserInfoDissociateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSshUserDeleted + +`func (o *SshUserInfoDissociateResponse) GetSshUserDeleted() bool` + +GetSshUserDeleted returns the SshUserDeleted field if non-nil, zero value otherwise. + +### GetSshUserDeletedOk + +`func (o *SshUserInfoDissociateResponse) GetSshUserDeletedOk() (*bool, bool)` + +GetSshUserDeletedOk returns a tuple with the SshUserDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUserDeleted + +`func (o *SshUserInfoDissociateResponse) SetSshUserDeleted(v bool)` + +SetSshUserDeleted sets SshUserDeleted field to given value. + +### HasSshUserDeleted + +`func (o *SshUserInfoDissociateResponse) HasSshUserDeleted() bool` + +HasSshUserDeleted returns a boolean if a field has been set. + +### GetSshUserToDeviceAssociationDeleted + +`func (o *SshUserInfoDissociateResponse) GetSshUserToDeviceAssociationDeleted() bool` + +GetSshUserToDeviceAssociationDeleted returns the SshUserToDeviceAssociationDeleted field if non-nil, zero value otherwise. + +### GetSshUserToDeviceAssociationDeletedOk + +`func (o *SshUserInfoDissociateResponse) GetSshUserToDeviceAssociationDeletedOk() (*bool, bool)` + +GetSshUserToDeviceAssociationDeletedOk returns a tuple with the SshUserToDeviceAssociationDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUserToDeviceAssociationDeleted + +`func (o *SshUserInfoDissociateResponse) SetSshUserToDeviceAssociationDeleted(v bool)` + +SetSshUserToDeviceAssociationDeleted sets SshUserToDeviceAssociationDeleted field to given value. + +### HasSshUserToDeviceAssociationDeleted + +`func (o *SshUserInfoDissociateResponse) HasSshUserToDeviceAssociationDeleted() bool` + +HasSshUserToDeviceAssociationDeleted returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserInfoVerbose.md b/services/networkedgev1/docs/SshUserInfoVerbose.md new file mode 100644 index 00000000..795b5900 --- /dev/null +++ b/services/networkedgev1/docs/SshUserInfoVerbose.md @@ -0,0 +1,134 @@ +# SshUserInfoVerbose + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | The unique Id of the ssh user. | [optional] +**Username** | Pointer to **string** | The user name of the ssh user. | [optional] +**DeviceUuids** | Pointer to **[]string** | The devices associated with this ssh user. | [optional] +**MetroStatusMap** | Pointer to [**map[string]MetroStatus**](MetroStatus.md) | Status and error messages corresponding to the metros where the user exists | [optional] + +## Methods + +### NewSshUserInfoVerbose + +`func NewSshUserInfoVerbose() *SshUserInfoVerbose` + +NewSshUserInfoVerbose instantiates a new SshUserInfoVerbose object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserInfoVerboseWithDefaults + +`func NewSshUserInfoVerboseWithDefaults() *SshUserInfoVerbose` + +NewSshUserInfoVerboseWithDefaults instantiates a new SshUserInfoVerbose object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *SshUserInfoVerbose) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *SshUserInfoVerbose) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *SshUserInfoVerbose) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *SshUserInfoVerbose) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetUsername + +`func (o *SshUserInfoVerbose) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SshUserInfoVerbose) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SshUserInfoVerbose) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SshUserInfoVerbose) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetDeviceUuids + +`func (o *SshUserInfoVerbose) GetDeviceUuids() []string` + +GetDeviceUuids returns the DeviceUuids field if non-nil, zero value otherwise. + +### GetDeviceUuidsOk + +`func (o *SshUserInfoVerbose) GetDeviceUuidsOk() (*[]string, bool)` + +GetDeviceUuidsOk returns a tuple with the DeviceUuids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceUuids + +`func (o *SshUserInfoVerbose) SetDeviceUuids(v []string)` + +SetDeviceUuids sets DeviceUuids field to given value. + +### HasDeviceUuids + +`func (o *SshUserInfoVerbose) HasDeviceUuids() bool` + +HasDeviceUuids returns a boolean if a field has been set. + +### GetMetroStatusMap + +`func (o *SshUserInfoVerbose) GetMetroStatusMap() map[string]MetroStatus` + +GetMetroStatusMap returns the MetroStatusMap field if non-nil, zero value otherwise. + +### GetMetroStatusMapOk + +`func (o *SshUserInfoVerbose) GetMetroStatusMapOk() (*map[string]MetroStatus, bool)` + +GetMetroStatusMapOk returns a tuple with the MetroStatusMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroStatusMap + +`func (o *SshUserInfoVerbose) SetMetroStatusMap(v map[string]MetroStatus)` + +SetMetroStatusMap sets MetroStatusMap field to given value. + +### HasMetroStatusMap + +`func (o *SshUserInfoVerbose) HasMetroStatusMap() bool` + +HasMetroStatusMap returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserOperationRequest.md b/services/networkedgev1/docs/SshUserOperationRequest.md new file mode 100644 index 00000000..83f045d3 --- /dev/null +++ b/services/networkedgev1/docs/SshUserOperationRequest.md @@ -0,0 +1,129 @@ +# SshUserOperationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SshUserUuid** | Pointer to **string** | Required for DELETE operation. | [optional] +**Action** | [**SshUserOperationRequestAction**](SshUserOperationRequestAction.md) | | +**SshUsername** | Pointer to **string** | SSH User name | [optional] +**SshPassword** | Pointer to **string** | SSH Password | [optional] + +## Methods + +### NewSshUserOperationRequest + +`func NewSshUserOperationRequest(action SshUserOperationRequestAction, ) *SshUserOperationRequest` + +NewSshUserOperationRequest instantiates a new SshUserOperationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserOperationRequestWithDefaults + +`func NewSshUserOperationRequestWithDefaults() *SshUserOperationRequest` + +NewSshUserOperationRequestWithDefaults instantiates a new SshUserOperationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSshUserUuid + +`func (o *SshUserOperationRequest) GetSshUserUuid() string` + +GetSshUserUuid returns the SshUserUuid field if non-nil, zero value otherwise. + +### GetSshUserUuidOk + +`func (o *SshUserOperationRequest) GetSshUserUuidOk() (*string, bool)` + +GetSshUserUuidOk returns a tuple with the SshUserUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUserUuid + +`func (o *SshUserOperationRequest) SetSshUserUuid(v string)` + +SetSshUserUuid sets SshUserUuid field to given value. + +### HasSshUserUuid + +`func (o *SshUserOperationRequest) HasSshUserUuid() bool` + +HasSshUserUuid returns a boolean if a field has been set. + +### GetAction + +`func (o *SshUserOperationRequest) GetAction() SshUserOperationRequestAction` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SshUserOperationRequest) GetActionOk() (*SshUserOperationRequestAction, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SshUserOperationRequest) SetAction(v SshUserOperationRequestAction)` + +SetAction sets Action field to given value. + + +### GetSshUsername + +`func (o *SshUserOperationRequest) GetSshUsername() string` + +GetSshUsername returns the SshUsername field if non-nil, zero value otherwise. + +### GetSshUsernameOk + +`func (o *SshUserOperationRequest) GetSshUsernameOk() (*string, bool)` + +GetSshUsernameOk returns a tuple with the SshUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUsername + +`func (o *SshUserOperationRequest) SetSshUsername(v string)` + +SetSshUsername sets SshUsername field to given value. + +### HasSshUsername + +`func (o *SshUserOperationRequest) HasSshUsername() bool` + +HasSshUsername returns a boolean if a field has been set. + +### GetSshPassword + +`func (o *SshUserOperationRequest) GetSshPassword() string` + +GetSshPassword returns the SshPassword field if non-nil, zero value otherwise. + +### GetSshPasswordOk + +`func (o *SshUserOperationRequest) GetSshPasswordOk() (*string, bool)` + +GetSshPasswordOk returns a tuple with the SshPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshPassword + +`func (o *SshUserOperationRequest) SetSshPassword(v string)` + +SetSshPassword sets SshPassword field to given value. + +### HasSshPassword + +`func (o *SshUserOperationRequest) HasSshPassword() bool` + +HasSshPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserOperationRequestAction.md b/services/networkedgev1/docs/SshUserOperationRequestAction.md new file mode 100644 index 00000000..289deff6 --- /dev/null +++ b/services/networkedgev1/docs/SshUserOperationRequestAction.md @@ -0,0 +1,15 @@ +# SshUserOperationRequestAction + +## Enum + + +* `CREATE` (value: `"CREATE"`) + +* `DELETE` (value: `"DELETE"`) + +* `REUSE` (value: `"REUSE"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserPageResponse.md b/services/networkedgev1/docs/SshUserPageResponse.md new file mode 100644 index 00000000..b043e352 --- /dev/null +++ b/services/networkedgev1/docs/SshUserPageResponse.md @@ -0,0 +1,82 @@ +# SshUserPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]SshUserInfoVerbose**](SshUserInfoVerbose.md) | | [optional] + +## Methods + +### NewSshUserPageResponse + +`func NewSshUserPageResponse() *SshUserPageResponse` + +NewSshUserPageResponse instantiates a new SshUserPageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserPageResponseWithDefaults + +`func NewSshUserPageResponseWithDefaults() *SshUserPageResponse` + +NewSshUserPageResponseWithDefaults instantiates a new SshUserPageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *SshUserPageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *SshUserPageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *SshUserPageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *SshUserPageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *SshUserPageResponse) GetData() []SshUserInfoVerbose` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SshUserPageResponse) GetDataOk() (*[]SshUserInfoVerbose, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SshUserPageResponse) SetData(v []SshUserInfoVerbose)` + +SetData sets Data field to given value. + +### HasData + +`func (o *SshUserPageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUserUpdateRequest.md b/services/networkedgev1/docs/SshUserUpdateRequest.md new file mode 100644 index 00000000..865ac186 --- /dev/null +++ b/services/networkedgev1/docs/SshUserUpdateRequest.md @@ -0,0 +1,51 @@ +# SshUserUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | **string** | At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ | + +## Methods + +### NewSshUserUpdateRequest + +`func NewSshUserUpdateRequest(password string, ) *SshUserUpdateRequest` + +NewSshUserUpdateRequest instantiates a new SshUserUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUserUpdateRequestWithDefaults + +`func NewSshUserUpdateRequestWithDefaults() *SshUserUpdateRequest` + +NewSshUserUpdateRequestWithDefaults instantiates a new SshUserUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPassword + +`func (o *SshUserUpdateRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SshUserUpdateRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SshUserUpdateRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SshUsers.md b/services/networkedgev1/docs/SshUsers.md new file mode 100644 index 00000000..6ea4e35f --- /dev/null +++ b/services/networkedgev1/docs/SshUsers.md @@ -0,0 +1,134 @@ +# SshUsers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SshUsername** | Pointer to **string** | sshUsername. This should be minimum 3 and maximum 32 characters and include alphanumeric characters, dash, and underscore. | [optional] +**SshPassword** | Pointer to **string** | sshPassword | [optional] +**SshUserUuid** | Pointer to **string** | sshUserUuid | [optional] +**Action** | Pointer to **string** | action | [optional] + +## Methods + +### NewSshUsers + +`func NewSshUsers() *SshUsers` + +NewSshUsers instantiates a new SshUsers object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSshUsersWithDefaults + +`func NewSshUsersWithDefaults() *SshUsers` + +NewSshUsersWithDefaults instantiates a new SshUsers object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSshUsername + +`func (o *SshUsers) GetSshUsername() string` + +GetSshUsername returns the SshUsername field if non-nil, zero value otherwise. + +### GetSshUsernameOk + +`func (o *SshUsers) GetSshUsernameOk() (*string, bool)` + +GetSshUsernameOk returns a tuple with the SshUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUsername + +`func (o *SshUsers) SetSshUsername(v string)` + +SetSshUsername sets SshUsername field to given value. + +### HasSshUsername + +`func (o *SshUsers) HasSshUsername() bool` + +HasSshUsername returns a boolean if a field has been set. + +### GetSshPassword + +`func (o *SshUsers) GetSshPassword() string` + +GetSshPassword returns the SshPassword field if non-nil, zero value otherwise. + +### GetSshPasswordOk + +`func (o *SshUsers) GetSshPasswordOk() (*string, bool)` + +GetSshPasswordOk returns a tuple with the SshPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshPassword + +`func (o *SshUsers) SetSshPassword(v string)` + +SetSshPassword sets SshPassword field to given value. + +### HasSshPassword + +`func (o *SshUsers) HasSshPassword() bool` + +HasSshPassword returns a boolean if a field has been set. + +### GetSshUserUuid + +`func (o *SshUsers) GetSshUserUuid() string` + +GetSshUserUuid returns the SshUserUuid field if non-nil, zero value otherwise. + +### GetSshUserUuidOk + +`func (o *SshUsers) GetSshUserUuidOk() (*string, bool)` + +GetSshUserUuidOk returns a tuple with the SshUserUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUserUuid + +`func (o *SshUsers) SetSshUserUuid(v string)` + +SetSshUserUuid sets SshUserUuid field to given value. + +### HasSshUserUuid + +`func (o *SshUsers) HasSshUserUuid() bool` + +HasSshUserUuid returns a boolean if a field has been set. + +### GetAction + +`func (o *SshUsers) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SshUsers) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SshUsers) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *SshUsers) HasAction() bool` + +HasAction returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/StackTraceElement.md b/services/networkedgev1/docs/StackTraceElement.md new file mode 100644 index 00000000..a4614bf8 --- /dev/null +++ b/services/networkedgev1/docs/StackTraceElement.md @@ -0,0 +1,160 @@ +# StackTraceElement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClassName** | Pointer to **string** | | [optional] +**FileName** | Pointer to **string** | | [optional] +**LineNumber** | Pointer to **int32** | | [optional] +**MethodName** | Pointer to **string** | | [optional] +**NativeMethod** | Pointer to **bool** | | [optional] + +## Methods + +### NewStackTraceElement + +`func NewStackTraceElement() *StackTraceElement` + +NewStackTraceElement instantiates a new StackTraceElement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStackTraceElementWithDefaults + +`func NewStackTraceElementWithDefaults() *StackTraceElement` + +NewStackTraceElementWithDefaults instantiates a new StackTraceElement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClassName + +`func (o *StackTraceElement) GetClassName() string` + +GetClassName returns the ClassName field if non-nil, zero value otherwise. + +### GetClassNameOk + +`func (o *StackTraceElement) GetClassNameOk() (*string, bool)` + +GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassName + +`func (o *StackTraceElement) SetClassName(v string)` + +SetClassName sets ClassName field to given value. + +### HasClassName + +`func (o *StackTraceElement) HasClassName() bool` + +HasClassName returns a boolean if a field has been set. + +### GetFileName + +`func (o *StackTraceElement) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *StackTraceElement) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *StackTraceElement) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *StackTraceElement) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + +### GetLineNumber + +`func (o *StackTraceElement) GetLineNumber() int32` + +GetLineNumber returns the LineNumber field if non-nil, zero value otherwise. + +### GetLineNumberOk + +`func (o *StackTraceElement) GetLineNumberOk() (*int32, bool)` + +GetLineNumberOk returns a tuple with the LineNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineNumber + +`func (o *StackTraceElement) SetLineNumber(v int32)` + +SetLineNumber sets LineNumber field to given value. + +### HasLineNumber + +`func (o *StackTraceElement) HasLineNumber() bool` + +HasLineNumber returns a boolean if a field has been set. + +### GetMethodName + +`func (o *StackTraceElement) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *StackTraceElement) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *StackTraceElement) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + +### HasMethodName + +`func (o *StackTraceElement) HasMethodName() bool` + +HasMethodName returns a boolean if a field has been set. + +### GetNativeMethod + +`func (o *StackTraceElement) GetNativeMethod() bool` + +GetNativeMethod returns the NativeMethod field if non-nil, zero value otherwise. + +### GetNativeMethodOk + +`func (o *StackTraceElement) GetNativeMethodOk() (*bool, bool)` + +GetNativeMethodOk returns a tuple with the NativeMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeMethod + +`func (o *StackTraceElement) SetNativeMethod(v bool)` + +SetNativeMethod sets NativeMethod field to given value. + +### HasNativeMethod + +`func (o *StackTraceElement) HasNativeMethod() bool` + +HasNativeMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/SupportedServicesConfig.md b/services/networkedgev1/docs/SupportedServicesConfig.md new file mode 100644 index 00000000..2ec12bab --- /dev/null +++ b/services/networkedgev1/docs/SupportedServicesConfig.md @@ -0,0 +1,134 @@ +# SupportedServicesConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of supported service. | [optional] +**Required** | Pointer to **bool** | Whether or not this supported service is a required input at the time of device creation. | [optional] +**PackageCodes** | Pointer to **[]string** | | [optional] +**SupportedForClustering** | Pointer to **bool** | Whether the service is available for cluster devices. | [optional] + +## Methods + +### NewSupportedServicesConfig + +`func NewSupportedServicesConfig() *SupportedServicesConfig` + +NewSupportedServicesConfig instantiates a new SupportedServicesConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSupportedServicesConfigWithDefaults + +`func NewSupportedServicesConfigWithDefaults() *SupportedServicesConfig` + +NewSupportedServicesConfigWithDefaults instantiates a new SupportedServicesConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SupportedServicesConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SupportedServicesConfig) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SupportedServicesConfig) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SupportedServicesConfig) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRequired + +`func (o *SupportedServicesConfig) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *SupportedServicesConfig) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *SupportedServicesConfig) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *SupportedServicesConfig) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetPackageCodes + +`func (o *SupportedServicesConfig) GetPackageCodes() []string` + +GetPackageCodes returns the PackageCodes field if non-nil, zero value otherwise. + +### GetPackageCodesOk + +`func (o *SupportedServicesConfig) GetPackageCodesOk() (*[]string, bool)` + +GetPackageCodesOk returns a tuple with the PackageCodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCodes + +`func (o *SupportedServicesConfig) SetPackageCodes(v []string)` + +SetPackageCodes sets PackageCodes field to given value. + +### HasPackageCodes + +`func (o *SupportedServicesConfig) HasPackageCodes() bool` + +HasPackageCodes returns a boolean if a field has been set. + +### GetSupportedForClustering + +`func (o *SupportedServicesConfig) GetSupportedForClustering() bool` + +GetSupportedForClustering returns the SupportedForClustering field if non-nil, zero value otherwise. + +### GetSupportedForClusteringOk + +`func (o *SupportedServicesConfig) GetSupportedForClusteringOk() (*bool, bool)` + +GetSupportedForClusteringOk returns a tuple with the SupportedForClustering field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedForClustering + +`func (o *SupportedServicesConfig) SetSupportedForClustering(v bool)` + +SetSupportedForClustering sets SupportedForClustering field to given value. + +### HasSupportedForClustering + +`func (o *SupportedServicesConfig) HasSupportedForClustering() bool` + +HasSupportedForClustering returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Throughput.md b/services/networkedgev1/docs/Throughput.md new file mode 100644 index 00000000..5949b797 --- /dev/null +++ b/services/networkedgev1/docs/Throughput.md @@ -0,0 +1,108 @@ +# Throughput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Throughput** | Pointer to **int32** | | [optional] +**ThroughputUnit** | Pointer to **string** | | [optional] +**MetroCodes** | Pointer to **[]string** | Metros where the license is available | [optional] + +## Methods + +### NewThroughput + +`func NewThroughput() *Throughput` + +NewThroughput instantiates a new Throughput object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewThroughputWithDefaults + +`func NewThroughputWithDefaults() *Throughput` + +NewThroughputWithDefaults instantiates a new Throughput object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetThroughput + +`func (o *Throughput) GetThroughput() int32` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *Throughput) GetThroughputOk() (*int32, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *Throughput) SetThroughput(v int32)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *Throughput) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *Throughput) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *Throughput) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *Throughput) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *Throughput) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetMetroCodes + +`func (o *Throughput) GetMetroCodes() []string` + +GetMetroCodes returns the MetroCodes field if non-nil, zero value otherwise. + +### GetMetroCodesOk + +`func (o *Throughput) GetMetroCodesOk() (*[]string, bool)` + +GetMetroCodesOk returns a tuple with the MetroCodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCodes + +`func (o *Throughput) SetMetroCodes(v []string)` + +SetMetroCodes sets MetroCodes field to given value. + +### HasMetroCodes + +`func (o *Throughput) HasMetroCodes() bool` + +HasMetroCodes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/ThroughputConfig.md b/services/networkedgev1/docs/ThroughputConfig.md new file mode 100644 index 00000000..36b880f1 --- /dev/null +++ b/services/networkedgev1/docs/ThroughputConfig.md @@ -0,0 +1,108 @@ +# ThroughputConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Supported** | Pointer to **bool** | Whether this throughput is supported. | [optional] +**Throughput** | Pointer to **string** | Throughput. | [optional] +**ThroughputUnit** | Pointer to **string** | Throughput unit. | [optional] + +## Methods + +### NewThroughputConfig + +`func NewThroughputConfig() *ThroughputConfig` + +NewThroughputConfig instantiates a new ThroughputConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewThroughputConfigWithDefaults + +`func NewThroughputConfigWithDefaults() *ThroughputConfig` + +NewThroughputConfigWithDefaults instantiates a new ThroughputConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSupported + +`func (o *ThroughputConfig) GetSupported() bool` + +GetSupported returns the Supported field if non-nil, zero value otherwise. + +### GetSupportedOk + +`func (o *ThroughputConfig) GetSupportedOk() (*bool, bool)` + +GetSupportedOk returns a tuple with the Supported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupported + +`func (o *ThroughputConfig) SetSupported(v bool)` + +SetSupported sets Supported field to given value. + +### HasSupported + +`func (o *ThroughputConfig) HasSupported() bool` + +HasSupported returns a boolean if a field has been set. + +### GetThroughput + +`func (o *ThroughputConfig) GetThroughput() string` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *ThroughputConfig) GetThroughputOk() (*string, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *ThroughputConfig) SetThroughput(v string)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *ThroughputConfig) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *ThroughputConfig) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *ThroughputConfig) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *ThroughputConfig) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *ThroughputConfig) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Throwable.md b/services/networkedgev1/docs/Throwable.md new file mode 100644 index 00000000..3f481174 --- /dev/null +++ b/services/networkedgev1/docs/Throwable.md @@ -0,0 +1,160 @@ +# Throwable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | Pointer to [**Throwable**](Throwable.md) | | [optional] +**LocalizedMessage** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**StackTrace** | Pointer to [**[]StackTraceElement**](StackTraceElement.md) | | [optional] +**Suppressed** | Pointer to [**[]Throwable**](Throwable.md) | | [optional] + +## Methods + +### NewThrowable + +`func NewThrowable() *Throwable` + +NewThrowable instantiates a new Throwable object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewThrowableWithDefaults + +`func NewThrowableWithDefaults() *Throwable` + +NewThrowableWithDefaults instantiates a new Throwable object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCause + +`func (o *Throwable) GetCause() Throwable` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *Throwable) GetCauseOk() (*Throwable, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *Throwable) SetCause(v Throwable)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *Throwable) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetLocalizedMessage + +`func (o *Throwable) GetLocalizedMessage() string` + +GetLocalizedMessage returns the LocalizedMessage field if non-nil, zero value otherwise. + +### GetLocalizedMessageOk + +`func (o *Throwable) GetLocalizedMessageOk() (*string, bool)` + +GetLocalizedMessageOk returns a tuple with the LocalizedMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMessage + +`func (o *Throwable) SetLocalizedMessage(v string)` + +SetLocalizedMessage sets LocalizedMessage field to given value. + +### HasLocalizedMessage + +`func (o *Throwable) HasLocalizedMessage() bool` + +HasLocalizedMessage returns a boolean if a field has been set. + +### GetMessage + +`func (o *Throwable) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *Throwable) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *Throwable) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *Throwable) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStackTrace + +`func (o *Throwable) GetStackTrace() []StackTraceElement` + +GetStackTrace returns the StackTrace field if non-nil, zero value otherwise. + +### GetStackTraceOk + +`func (o *Throwable) GetStackTraceOk() (*[]StackTraceElement, bool)` + +GetStackTraceOk returns a tuple with the StackTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackTrace + +`func (o *Throwable) SetStackTrace(v []StackTraceElement)` + +SetStackTrace sets StackTrace field to given value. + +### HasStackTrace + +`func (o *Throwable) HasStackTrace() bool` + +HasStackTrace returns a boolean if a field has been set. + +### GetSuppressed + +`func (o *Throwable) GetSuppressed() []Throwable` + +GetSuppressed returns the Suppressed field if non-nil, zero value otherwise. + +### GetSuppressedOk + +`func (o *Throwable) GetSuppressedOk() (*[]Throwable, bool)` + +GetSuppressedOk returns a tuple with the Suppressed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuppressed + +`func (o *Throwable) SetSuppressed(v []Throwable)` + +SetSuppressed sets Suppressed field to given value. + +### HasSuppressed + +`func (o *Throwable) HasSuppressed() bool` + +HasSuppressed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/UpdateDeviceACLTemplateRequest.md b/services/networkedgev1/docs/UpdateDeviceACLTemplateRequest.md new file mode 100644 index 00000000..1c6dfce1 --- /dev/null +++ b/services/networkedgev1/docs/UpdateDeviceACLTemplateRequest.md @@ -0,0 +1,51 @@ +# UpdateDeviceACLTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclDetails** | [**[]ACLDetails**](ACLDetails.md) | An array of ACLs. | + +## Methods + +### NewUpdateDeviceACLTemplateRequest + +`func NewUpdateDeviceACLTemplateRequest(aclDetails []ACLDetails, ) *UpdateDeviceACLTemplateRequest` + +NewUpdateDeviceACLTemplateRequest instantiates a new UpdateDeviceACLTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateDeviceACLTemplateRequestWithDefaults + +`func NewUpdateDeviceACLTemplateRequestWithDefaults() *UpdateDeviceACLTemplateRequest` + +NewUpdateDeviceACLTemplateRequestWithDefaults instantiates a new UpdateDeviceACLTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAclDetails + +`func (o *UpdateDeviceACLTemplateRequest) GetAclDetails() []ACLDetails` + +GetAclDetails returns the AclDetails field if non-nil, zero value otherwise. + +### GetAclDetailsOk + +`func (o *UpdateDeviceACLTemplateRequest) GetAclDetailsOk() (*[]ACLDetails, bool)` + +GetAclDetailsOk returns a tuple with the AclDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAclDetails + +`func (o *UpdateDeviceACLTemplateRequest) SetAclDetails(v []ACLDetails)` + +SetAclDetails sets AclDetails field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/UpgradeCoreRequestDetails.md b/services/networkedgev1/docs/UpgradeCoreRequestDetails.md new file mode 100644 index 00000000..da739f7f --- /dev/null +++ b/services/networkedgev1/docs/UpgradeCoreRequestDetails.md @@ -0,0 +1,82 @@ +# UpgradeCoreRequestDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Core** | Pointer to **float32** | Core requested for the device | [optional] +**UpgradePeerDevice** | Pointer to **bool** | Whether the peer device should be upgraded or not. | [optional] + +## Methods + +### NewUpgradeCoreRequestDetails + +`func NewUpgradeCoreRequestDetails() *UpgradeCoreRequestDetails` + +NewUpgradeCoreRequestDetails instantiates a new UpgradeCoreRequestDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpgradeCoreRequestDetailsWithDefaults + +`func NewUpgradeCoreRequestDetailsWithDefaults() *UpgradeCoreRequestDetails` + +NewUpgradeCoreRequestDetailsWithDefaults instantiates a new UpgradeCoreRequestDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCore + +`func (o *UpgradeCoreRequestDetails) GetCore() float32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *UpgradeCoreRequestDetails) GetCoreOk() (*float32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *UpgradeCoreRequestDetails) SetCore(v float32)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *UpgradeCoreRequestDetails) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetUpgradePeerDevice + +`func (o *UpgradeCoreRequestDetails) GetUpgradePeerDevice() bool` + +GetUpgradePeerDevice returns the UpgradePeerDevice field if non-nil, zero value otherwise. + +### GetUpgradePeerDeviceOk + +`func (o *UpgradeCoreRequestDetails) GetUpgradePeerDeviceOk() (*bool, bool)` + +GetUpgradePeerDeviceOk returns a tuple with the UpgradePeerDevice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpgradePeerDevice + +`func (o *UpgradeCoreRequestDetails) SetUpgradePeerDevice(v bool)` + +SetUpgradePeerDevice sets UpgradePeerDevice field to given value. + +### HasUpgradePeerDevice + +`func (o *UpgradeCoreRequestDetails) HasUpgradePeerDevice() bool` + +HasUpgradePeerDevice returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/UserPublicKeyConfig.md b/services/networkedgev1/docs/UserPublicKeyConfig.md new file mode 100644 index 00000000..d317dcc2 --- /dev/null +++ b/services/networkedgev1/docs/UserPublicKeyConfig.md @@ -0,0 +1,108 @@ +# UserPublicKeyConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | Pointer to **string** | Username. | [optional] +**PublicKeyName** | Pointer to **string** | Key name. | [optional] +**PublicKey** | Pointer to **string** | The public key. | [optional] + +## Methods + +### NewUserPublicKeyConfig + +`func NewUserPublicKeyConfig() *UserPublicKeyConfig` + +NewUserPublicKeyConfig instantiates a new UserPublicKeyConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserPublicKeyConfigWithDefaults + +`func NewUserPublicKeyConfigWithDefaults() *UserPublicKeyConfig` + +NewUserPublicKeyConfigWithDefaults instantiates a new UserPublicKeyConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *UserPublicKeyConfig) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserPublicKeyConfig) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *UserPublicKeyConfig) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *UserPublicKeyConfig) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetPublicKeyName + +`func (o *UserPublicKeyConfig) GetPublicKeyName() string` + +GetPublicKeyName returns the PublicKeyName field if non-nil, zero value otherwise. + +### GetPublicKeyNameOk + +`func (o *UserPublicKeyConfig) GetPublicKeyNameOk() (*string, bool)` + +GetPublicKeyNameOk returns a tuple with the PublicKeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKeyName + +`func (o *UserPublicKeyConfig) SetPublicKeyName(v string)` + +SetPublicKeyName sets PublicKeyName field to given value. + +### HasPublicKeyName + +`func (o *UserPublicKeyConfig) HasPublicKeyName() bool` + +HasPublicKeyName returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *UserPublicKeyConfig) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *UserPublicKeyConfig) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *UserPublicKeyConfig) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *UserPublicKeyConfig) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/UserPublicKeyRequest.md b/services/networkedgev1/docs/UserPublicKeyRequest.md new file mode 100644 index 00000000..e5131143 --- /dev/null +++ b/services/networkedgev1/docs/UserPublicKeyRequest.md @@ -0,0 +1,82 @@ +# UserPublicKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | Pointer to **string** | Username. | [optional] +**KeyName** | Pointer to **string** | Key name. This field may be required for some vendors. The keyName must be an existing keyName associated with an existing keyValue. To set up a new keyName and keyValue pair, call Create Public Key. | [optional] + +## Methods + +### NewUserPublicKeyRequest + +`func NewUserPublicKeyRequest() *UserPublicKeyRequest` + +NewUserPublicKeyRequest instantiates a new UserPublicKeyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserPublicKeyRequestWithDefaults + +`func NewUserPublicKeyRequestWithDefaults() *UserPublicKeyRequest` + +NewUserPublicKeyRequestWithDefaults instantiates a new UserPublicKeyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *UserPublicKeyRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserPublicKeyRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *UserPublicKeyRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *UserPublicKeyRequest) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetKeyName + +`func (o *UserPublicKeyRequest) GetKeyName() string` + +GetKeyName returns the KeyName field if non-nil, zero value otherwise. + +### GetKeyNameOk + +`func (o *UserPublicKeyRequest) GetKeyNameOk() (*string, bool)` + +GetKeyNameOk returns a tuple with the KeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyName + +`func (o *UserPublicKeyRequest) SetKeyName(v string)` + +SetKeyName sets KeyName field to given value. + +### HasKeyName + +`func (o *UserPublicKeyRequest) HasKeyName() bool` + +HasKeyName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VPNApi.md b/services/networkedgev1/docs/VPNApi.md new file mode 100644 index 00000000..b8f3c2b6 --- /dev/null +++ b/services/networkedgev1/docs/VPNApi.md @@ -0,0 +1,367 @@ +# \VPNApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVpnUsingPOST**](VPNApi.md#CreateVpnUsingPOST) | **Post** /ne/v1/vpn | Create VPN Configuration +[**GetVpnByUuidUsingGET**](VPNApi.md#GetVpnByUuidUsingGET) | **Get** /ne/v1/vpn/{uuid} | Get VPN Configuration {uuid} +[**GetVpnsUsingGET**](VPNApi.md#GetVpnsUsingGET) | **Get** /ne/v1/vpn | Get VPN Configurations +[**RemoveVpnConfigurationUsingDELETE**](VPNApi.md#RemoveVpnConfigurationUsingDELETE) | **Delete** /ne/v1/vpn/{uuid} | Delete VPN Configuration +[**UpdateVpnConfigurationUsingPut**](VPNApi.md#UpdateVpnConfigurationUsingPut) | **Put** /ne/v1/vpn/{uuid} | Update VPN Configuration + + + +## CreateVpnUsingPOST + +> CreateVpnUsingPOST(ctx).Authorization(authorization).Request(request).Execute() + +Create VPN Configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewVpn("Chicago", "f79eead8-b837-41d3-9095-9b15c2c4996d", "110.11.12.222", "5bb2424e888bd", int64(65413), "100.210.1.31", "pass123", "192.168.7.2/30") // Vpn | VPN info (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VPNApi.CreateVpnUsingPOST(context.Background()).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VPNApi.CreateVpnUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateVpnUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**Vpn**](Vpn.md) | VPN info | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVpnByUuidUsingGET + +> VpnResponse GetVpnByUuidUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get VPN Configuration {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VPNApi.GetVpnByUuidUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VPNApi.GetVpnByUuidUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVpnByUuidUsingGET`: VpnResponse + fmt.Fprintf(os.Stdout, "Response from `VPNApi.GetVpnByUuidUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVpnByUuidUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**VpnResponse**](VpnResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVpnsUsingGET + +> VpnResponseDto GetVpnsUsingGET(ctx).Authorization(authorization).StatusList(statusList).VirtualDeviceUuid(virtualDeviceUuid).Offset(offset).Limit(limit).Execute() + +Get VPN Configurations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + statusList := []openapiclient.GetVpnsUsingGETStatusListParameterInner{openapiclient.getVpnsUsingGET_statusList_parameter_inner("PROVISIONED")} // []GetVpnsUsingGETStatusListParameterInner | One or more desired status (optional) + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a virtual device (optional) + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VPNApi.GetVpnsUsingGET(context.Background()).Authorization(authorization).StatusList(statusList).VirtualDeviceUuid(virtualDeviceUuid).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VPNApi.GetVpnsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVpnsUsingGET`: VpnResponseDto + fmt.Fprintf(os.Stdout, "Response from `VPNApi.GetVpnsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVpnsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **statusList** | [**[]GetVpnsUsingGETStatusListParameterInner**](GetVpnsUsingGETStatusListParameterInner.md) | One or more desired status | + **virtualDeviceUuid** | **string** | Unique Id of a virtual device | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**VpnResponseDto**](VpnResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemoveVpnConfigurationUsingDELETE + +> RemoveVpnConfigurationUsingDELETE(ctx, uuid).Authorization(authorization).Execute() + +Delete VPN Configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VPNApi.RemoveVpnConfigurationUsingDELETE(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VPNApi.RemoveVpnConfigurationUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveVpnConfigurationUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateVpnConfigurationUsingPut + +> UpdateVpnConfigurationUsingPut(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update VPN Configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewVpn("Chicago", "f79eead8-b837-41d3-9095-9b15c2c4996d", "110.11.12.222", "5bb2424e888bd", int64(65413), "100.210.1.31", "pass123", "192.168.7.2/30") // Vpn | VPN info (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VPNApi.UpdateVpnConfigurationUsingPut(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VPNApi.UpdateVpnConfigurationUsingPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateVpnConfigurationUsingPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**Vpn**](Vpn.md) | VPN info | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/VendorConfig.md b/services/networkedgev1/docs/VendorConfig.md new file mode 100644 index 00000000..1d1759d4 --- /dev/null +++ b/services/networkedgev1/docs/VendorConfig.md @@ -0,0 +1,706 @@ +# VendorConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SiteId** | Pointer to **string** | Physical location within the Viptela overlay network, such as a branch office, or a campus (relevant only for Cisco SD-WANs) | [optional] +**SystemIpAddress** | Pointer to **string** | IP assigned to CSRSDWAN router and vSmart controller (relevant only for Cisco SD-WANs) | [optional] +**LicenseKey** | Pointer to **string** | | [optional] +**LicenseSecret** | Pointer to **string** | | [optional] +**LocalId** | Pointer to **string** | | [optional] +**RemoteId** | Pointer to **string** | | [optional] +**ManagementType** | Pointer to **string** | This is required for Cisco FTD Firewall devices. If you choose \"FMC,\" you must also provide the controller IP and the activation key. | [optional] +**Controller1** | Pointer to **string** | For Fortinet devices, this is the System IP address. | [optional] +**Controller2** | Pointer to **string** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**AdminPassword** | Pointer to **string** | The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. Should be at least 6 characters long and must include an uppercase letter and a number. This field may be required for some vendors. | [optional] +**ActivationKey** | Pointer to **string** | | [optional] +**ControllerFqdn** | Pointer to **string** | | [optional] +**RootPassword** | Pointer to **string** | | [optional] +**AccountName** | Pointer to **string** | The name of account. | [optional] +**Hostname** | Pointer to **string** | The host name. | [optional] +**AccountKey** | Pointer to **string** | The account key. | [optional] +**ApplianceTag** | Pointer to **string** | The appliance tag. | [optional] +**UserName** | Pointer to **string** | This field is rel | [optional] +**ConnectToCloudVision** | Pointer to **bool** | Whether you want your Arista device to connect to Cloud Vision. Only relevant for Arista devices. | [optional] +**CvpType** | Pointer to **string** | Either As-a-Service or On-Premise. Only relevant for Arista devices. | [optional] +**CvpFqdn** | Pointer to **string** | Fully qualified domain name for Cloud Vision As-a-Service. Only relevant for Arista devices. | [optional] +**CvpIpAddress** | Pointer to **string** | Only relevant for Arista devices. CvpIpAddress is required if connectToCloudVision=true and cvpType=On-Premise. | [optional] +**CvaasPort** | Pointer to **string** | Only relevant for Arista devices. CvaasPort is required if connectToCloudVision=true and cvpType=As-a-Service. | [optional] +**CvpPort** | Pointer to **string** | Only relevant for Arista devices. CvpPort is required if connectToCloudVision=true and cvpType=On-Premise. | [optional] +**CvpToken** | Pointer to **string** | Only relevant for Arista devices. CvpToken is required if connectToCloudVision=true and (cvpType=On-Premise or cvpType=As-a-Service). | [optional] + +## Methods + +### NewVendorConfig + +`func NewVendorConfig() *VendorConfig` + +NewVendorConfig instantiates a new VendorConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorConfigWithDefaults + +`func NewVendorConfigWithDefaults() *VendorConfig` + +NewVendorConfigWithDefaults instantiates a new VendorConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSiteId + +`func (o *VendorConfig) GetSiteId() string` + +GetSiteId returns the SiteId field if non-nil, zero value otherwise. + +### GetSiteIdOk + +`func (o *VendorConfig) GetSiteIdOk() (*string, bool)` + +GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteId + +`func (o *VendorConfig) SetSiteId(v string)` + +SetSiteId sets SiteId field to given value. + +### HasSiteId + +`func (o *VendorConfig) HasSiteId() bool` + +HasSiteId returns a boolean if a field has been set. + +### GetSystemIpAddress + +`func (o *VendorConfig) GetSystemIpAddress() string` + +GetSystemIpAddress returns the SystemIpAddress field if non-nil, zero value otherwise. + +### GetSystemIpAddressOk + +`func (o *VendorConfig) GetSystemIpAddressOk() (*string, bool)` + +GetSystemIpAddressOk returns a tuple with the SystemIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemIpAddress + +`func (o *VendorConfig) SetSystemIpAddress(v string)` + +SetSystemIpAddress sets SystemIpAddress field to given value. + +### HasSystemIpAddress + +`func (o *VendorConfig) HasSystemIpAddress() bool` + +HasSystemIpAddress returns a boolean if a field has been set. + +### GetLicenseKey + +`func (o *VendorConfig) GetLicenseKey() string` + +GetLicenseKey returns the LicenseKey field if non-nil, zero value otherwise. + +### GetLicenseKeyOk + +`func (o *VendorConfig) GetLicenseKeyOk() (*string, bool)` + +GetLicenseKeyOk returns a tuple with the LicenseKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseKey + +`func (o *VendorConfig) SetLicenseKey(v string)` + +SetLicenseKey sets LicenseKey field to given value. + +### HasLicenseKey + +`func (o *VendorConfig) HasLicenseKey() bool` + +HasLicenseKey returns a boolean if a field has been set. + +### GetLicenseSecret + +`func (o *VendorConfig) GetLicenseSecret() string` + +GetLicenseSecret returns the LicenseSecret field if non-nil, zero value otherwise. + +### GetLicenseSecretOk + +`func (o *VendorConfig) GetLicenseSecretOk() (*string, bool)` + +GetLicenseSecretOk returns a tuple with the LicenseSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseSecret + +`func (o *VendorConfig) SetLicenseSecret(v string)` + +SetLicenseSecret sets LicenseSecret field to given value. + +### HasLicenseSecret + +`func (o *VendorConfig) HasLicenseSecret() bool` + +HasLicenseSecret returns a boolean if a field has been set. + +### GetLocalId + +`func (o *VendorConfig) GetLocalId() string` + +GetLocalId returns the LocalId field if non-nil, zero value otherwise. + +### GetLocalIdOk + +`func (o *VendorConfig) GetLocalIdOk() (*string, bool)` + +GetLocalIdOk returns a tuple with the LocalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalId + +`func (o *VendorConfig) SetLocalId(v string)` + +SetLocalId sets LocalId field to given value. + +### HasLocalId + +`func (o *VendorConfig) HasLocalId() bool` + +HasLocalId returns a boolean if a field has been set. + +### GetRemoteId + +`func (o *VendorConfig) GetRemoteId() string` + +GetRemoteId returns the RemoteId field if non-nil, zero value otherwise. + +### GetRemoteIdOk + +`func (o *VendorConfig) GetRemoteIdOk() (*string, bool)` + +GetRemoteIdOk returns a tuple with the RemoteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteId + +`func (o *VendorConfig) SetRemoteId(v string)` + +SetRemoteId sets RemoteId field to given value. + +### HasRemoteId + +`func (o *VendorConfig) HasRemoteId() bool` + +HasRemoteId returns a boolean if a field has been set. + +### GetManagementType + +`func (o *VendorConfig) GetManagementType() string` + +GetManagementType returns the ManagementType field if non-nil, zero value otherwise. + +### GetManagementTypeOk + +`func (o *VendorConfig) GetManagementTypeOk() (*string, bool)` + +GetManagementTypeOk returns a tuple with the ManagementType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementType + +`func (o *VendorConfig) SetManagementType(v string)` + +SetManagementType sets ManagementType field to given value. + +### HasManagementType + +`func (o *VendorConfig) HasManagementType() bool` + +HasManagementType returns a boolean if a field has been set. + +### GetController1 + +`func (o *VendorConfig) GetController1() string` + +GetController1 returns the Controller1 field if non-nil, zero value otherwise. + +### GetController1Ok + +`func (o *VendorConfig) GetController1Ok() (*string, bool)` + +GetController1Ok returns a tuple with the Controller1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetController1 + +`func (o *VendorConfig) SetController1(v string)` + +SetController1 sets Controller1 field to given value. + +### HasController1 + +`func (o *VendorConfig) HasController1() bool` + +HasController1 returns a boolean if a field has been set. + +### GetController2 + +`func (o *VendorConfig) GetController2() string` + +GetController2 returns the Controller2 field if non-nil, zero value otherwise. + +### GetController2Ok + +`func (o *VendorConfig) GetController2Ok() (*string, bool)` + +GetController2Ok returns a tuple with the Controller2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetController2 + +`func (o *VendorConfig) SetController2(v string)` + +SetController2 sets Controller2 field to given value. + +### HasController2 + +`func (o *VendorConfig) HasController2() bool` + +HasController2 returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *VendorConfig) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *VendorConfig) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *VendorConfig) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *VendorConfig) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetAdminPassword + +`func (o *VendorConfig) GetAdminPassword() string` + +GetAdminPassword returns the AdminPassword field if non-nil, zero value otherwise. + +### GetAdminPasswordOk + +`func (o *VendorConfig) GetAdminPasswordOk() (*string, bool)` + +GetAdminPasswordOk returns a tuple with the AdminPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminPassword + +`func (o *VendorConfig) SetAdminPassword(v string)` + +SetAdminPassword sets AdminPassword field to given value. + +### HasAdminPassword + +`func (o *VendorConfig) HasAdminPassword() bool` + +HasAdminPassword returns a boolean if a field has been set. + +### GetActivationKey + +`func (o *VendorConfig) GetActivationKey() string` + +GetActivationKey returns the ActivationKey field if non-nil, zero value otherwise. + +### GetActivationKeyOk + +`func (o *VendorConfig) GetActivationKeyOk() (*string, bool)` + +GetActivationKeyOk returns a tuple with the ActivationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivationKey + +`func (o *VendorConfig) SetActivationKey(v string)` + +SetActivationKey sets ActivationKey field to given value. + +### HasActivationKey + +`func (o *VendorConfig) HasActivationKey() bool` + +HasActivationKey returns a boolean if a field has been set. + +### GetControllerFqdn + +`func (o *VendorConfig) GetControllerFqdn() string` + +GetControllerFqdn returns the ControllerFqdn field if non-nil, zero value otherwise. + +### GetControllerFqdnOk + +`func (o *VendorConfig) GetControllerFqdnOk() (*string, bool)` + +GetControllerFqdnOk returns a tuple with the ControllerFqdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetControllerFqdn + +`func (o *VendorConfig) SetControllerFqdn(v string)` + +SetControllerFqdn sets ControllerFqdn field to given value. + +### HasControllerFqdn + +`func (o *VendorConfig) HasControllerFqdn() bool` + +HasControllerFqdn returns a boolean if a field has been set. + +### GetRootPassword + +`func (o *VendorConfig) GetRootPassword() string` + +GetRootPassword returns the RootPassword field if non-nil, zero value otherwise. + +### GetRootPasswordOk + +`func (o *VendorConfig) GetRootPasswordOk() (*string, bool)` + +GetRootPasswordOk returns a tuple with the RootPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootPassword + +`func (o *VendorConfig) SetRootPassword(v string)` + +SetRootPassword sets RootPassword field to given value. + +### HasRootPassword + +`func (o *VendorConfig) HasRootPassword() bool` + +HasRootPassword returns a boolean if a field has been set. + +### GetAccountName + +`func (o *VendorConfig) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *VendorConfig) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *VendorConfig) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *VendorConfig) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetHostname + +`func (o *VendorConfig) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *VendorConfig) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *VendorConfig) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *VendorConfig) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### GetAccountKey + +`func (o *VendorConfig) GetAccountKey() string` + +GetAccountKey returns the AccountKey field if non-nil, zero value otherwise. + +### GetAccountKeyOk + +`func (o *VendorConfig) GetAccountKeyOk() (*string, bool)` + +GetAccountKeyOk returns a tuple with the AccountKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountKey + +`func (o *VendorConfig) SetAccountKey(v string)` + +SetAccountKey sets AccountKey field to given value. + +### HasAccountKey + +`func (o *VendorConfig) HasAccountKey() bool` + +HasAccountKey returns a boolean if a field has been set. + +### GetApplianceTag + +`func (o *VendorConfig) GetApplianceTag() string` + +GetApplianceTag returns the ApplianceTag field if non-nil, zero value otherwise. + +### GetApplianceTagOk + +`func (o *VendorConfig) GetApplianceTagOk() (*string, bool)` + +GetApplianceTagOk returns a tuple with the ApplianceTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplianceTag + +`func (o *VendorConfig) SetApplianceTag(v string)` + +SetApplianceTag sets ApplianceTag field to given value. + +### HasApplianceTag + +`func (o *VendorConfig) HasApplianceTag() bool` + +HasApplianceTag returns a boolean if a field has been set. + +### GetUserName + +`func (o *VendorConfig) GetUserName() string` + +GetUserName returns the UserName field if non-nil, zero value otherwise. + +### GetUserNameOk + +`func (o *VendorConfig) GetUserNameOk() (*string, bool)` + +GetUserNameOk returns a tuple with the UserName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserName + +`func (o *VendorConfig) SetUserName(v string)` + +SetUserName sets UserName field to given value. + +### HasUserName + +`func (o *VendorConfig) HasUserName() bool` + +HasUserName returns a boolean if a field has been set. + +### GetConnectToCloudVision + +`func (o *VendorConfig) GetConnectToCloudVision() bool` + +GetConnectToCloudVision returns the ConnectToCloudVision field if non-nil, zero value otherwise. + +### GetConnectToCloudVisionOk + +`func (o *VendorConfig) GetConnectToCloudVisionOk() (*bool, bool)` + +GetConnectToCloudVisionOk returns a tuple with the ConnectToCloudVision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectToCloudVision + +`func (o *VendorConfig) SetConnectToCloudVision(v bool)` + +SetConnectToCloudVision sets ConnectToCloudVision field to given value. + +### HasConnectToCloudVision + +`func (o *VendorConfig) HasConnectToCloudVision() bool` + +HasConnectToCloudVision returns a boolean if a field has been set. + +### GetCvpType + +`func (o *VendorConfig) GetCvpType() string` + +GetCvpType returns the CvpType field if non-nil, zero value otherwise. + +### GetCvpTypeOk + +`func (o *VendorConfig) GetCvpTypeOk() (*string, bool)` + +GetCvpTypeOk returns a tuple with the CvpType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpType + +`func (o *VendorConfig) SetCvpType(v string)` + +SetCvpType sets CvpType field to given value. + +### HasCvpType + +`func (o *VendorConfig) HasCvpType() bool` + +HasCvpType returns a boolean if a field has been set. + +### GetCvpFqdn + +`func (o *VendorConfig) GetCvpFqdn() string` + +GetCvpFqdn returns the CvpFqdn field if non-nil, zero value otherwise. + +### GetCvpFqdnOk + +`func (o *VendorConfig) GetCvpFqdnOk() (*string, bool)` + +GetCvpFqdnOk returns a tuple with the CvpFqdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpFqdn + +`func (o *VendorConfig) SetCvpFqdn(v string)` + +SetCvpFqdn sets CvpFqdn field to given value. + +### HasCvpFqdn + +`func (o *VendorConfig) HasCvpFqdn() bool` + +HasCvpFqdn returns a boolean if a field has been set. + +### GetCvpIpAddress + +`func (o *VendorConfig) GetCvpIpAddress() string` + +GetCvpIpAddress returns the CvpIpAddress field if non-nil, zero value otherwise. + +### GetCvpIpAddressOk + +`func (o *VendorConfig) GetCvpIpAddressOk() (*string, bool)` + +GetCvpIpAddressOk returns a tuple with the CvpIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpIpAddress + +`func (o *VendorConfig) SetCvpIpAddress(v string)` + +SetCvpIpAddress sets CvpIpAddress field to given value. + +### HasCvpIpAddress + +`func (o *VendorConfig) HasCvpIpAddress() bool` + +HasCvpIpAddress returns a boolean if a field has been set. + +### GetCvaasPort + +`func (o *VendorConfig) GetCvaasPort() string` + +GetCvaasPort returns the CvaasPort field if non-nil, zero value otherwise. + +### GetCvaasPortOk + +`func (o *VendorConfig) GetCvaasPortOk() (*string, bool)` + +GetCvaasPortOk returns a tuple with the CvaasPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvaasPort + +`func (o *VendorConfig) SetCvaasPort(v string)` + +SetCvaasPort sets CvaasPort field to given value. + +### HasCvaasPort + +`func (o *VendorConfig) HasCvaasPort() bool` + +HasCvaasPort returns a boolean if a field has been set. + +### GetCvpPort + +`func (o *VendorConfig) GetCvpPort() string` + +GetCvpPort returns the CvpPort field if non-nil, zero value otherwise. + +### GetCvpPortOk + +`func (o *VendorConfig) GetCvpPortOk() (*string, bool)` + +GetCvpPortOk returns a tuple with the CvpPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpPort + +`func (o *VendorConfig) SetCvpPort(v string)` + +SetCvpPort sets CvpPort field to given value. + +### HasCvpPort + +`func (o *VendorConfig) HasCvpPort() bool` + +HasCvpPort returns a boolean if a field has been set. + +### GetCvpToken + +`func (o *VendorConfig) GetCvpToken() string` + +GetCvpToken returns the CvpToken field if non-nil, zero value otherwise. + +### GetCvpTokenOk + +`func (o *VendorConfig) GetCvpTokenOk() (*string, bool)` + +GetCvpTokenOk returns a tuple with the CvpToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpToken + +`func (o *VendorConfig) SetCvpToken(v string)` + +SetCvpToken sets CvpToken field to given value. + +### HasCvpToken + +`func (o *VendorConfig) HasCvpToken() bool` + +HasCvpToken returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VendorConfigDetailsNode0.md b/services/networkedgev1/docs/VendorConfigDetailsNode0.md new file mode 100644 index 00000000..eeac1c78 --- /dev/null +++ b/services/networkedgev1/docs/VendorConfigDetailsNode0.md @@ -0,0 +1,186 @@ +# VendorConfigDetailsNode0 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | Pointer to **string** | The host name. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14; Aruba 2-24. | [optional] +**ActivationKey** | Pointer to **string** | | [optional] +**ControllerFqdn** | Pointer to **string** | | [optional] +**RootPassword** | Pointer to **string** | | [optional] +**AdminPassword** | Pointer to **string** | The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. | [optional] +**Controller1** | Pointer to **string** | | [optional] + +## Methods + +### NewVendorConfigDetailsNode0 + +`func NewVendorConfigDetailsNode0() *VendorConfigDetailsNode0` + +NewVendorConfigDetailsNode0 instantiates a new VendorConfigDetailsNode0 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorConfigDetailsNode0WithDefaults + +`func NewVendorConfigDetailsNode0WithDefaults() *VendorConfigDetailsNode0` + +NewVendorConfigDetailsNode0WithDefaults instantiates a new VendorConfigDetailsNode0 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHostname + +`func (o *VendorConfigDetailsNode0) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *VendorConfigDetailsNode0) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *VendorConfigDetailsNode0) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *VendorConfigDetailsNode0) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### GetActivationKey + +`func (o *VendorConfigDetailsNode0) GetActivationKey() string` + +GetActivationKey returns the ActivationKey field if non-nil, zero value otherwise. + +### GetActivationKeyOk + +`func (o *VendorConfigDetailsNode0) GetActivationKeyOk() (*string, bool)` + +GetActivationKeyOk returns a tuple with the ActivationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivationKey + +`func (o *VendorConfigDetailsNode0) SetActivationKey(v string)` + +SetActivationKey sets ActivationKey field to given value. + +### HasActivationKey + +`func (o *VendorConfigDetailsNode0) HasActivationKey() bool` + +HasActivationKey returns a boolean if a field has been set. + +### GetControllerFqdn + +`func (o *VendorConfigDetailsNode0) GetControllerFqdn() string` + +GetControllerFqdn returns the ControllerFqdn field if non-nil, zero value otherwise. + +### GetControllerFqdnOk + +`func (o *VendorConfigDetailsNode0) GetControllerFqdnOk() (*string, bool)` + +GetControllerFqdnOk returns a tuple with the ControllerFqdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetControllerFqdn + +`func (o *VendorConfigDetailsNode0) SetControllerFqdn(v string)` + +SetControllerFqdn sets ControllerFqdn field to given value. + +### HasControllerFqdn + +`func (o *VendorConfigDetailsNode0) HasControllerFqdn() bool` + +HasControllerFqdn returns a boolean if a field has been set. + +### GetRootPassword + +`func (o *VendorConfigDetailsNode0) GetRootPassword() string` + +GetRootPassword returns the RootPassword field if non-nil, zero value otherwise. + +### GetRootPasswordOk + +`func (o *VendorConfigDetailsNode0) GetRootPasswordOk() (*string, bool)` + +GetRootPasswordOk returns a tuple with the RootPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootPassword + +`func (o *VendorConfigDetailsNode0) SetRootPassword(v string)` + +SetRootPassword sets RootPassword field to given value. + +### HasRootPassword + +`func (o *VendorConfigDetailsNode0) HasRootPassword() bool` + +HasRootPassword returns a boolean if a field has been set. + +### GetAdminPassword + +`func (o *VendorConfigDetailsNode0) GetAdminPassword() string` + +GetAdminPassword returns the AdminPassword field if non-nil, zero value otherwise. + +### GetAdminPasswordOk + +`func (o *VendorConfigDetailsNode0) GetAdminPasswordOk() (*string, bool)` + +GetAdminPasswordOk returns a tuple with the AdminPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminPassword + +`func (o *VendorConfigDetailsNode0) SetAdminPassword(v string)` + +SetAdminPassword sets AdminPassword field to given value. + +### HasAdminPassword + +`func (o *VendorConfigDetailsNode0) HasAdminPassword() bool` + +HasAdminPassword returns a boolean if a field has been set. + +### GetController1 + +`func (o *VendorConfigDetailsNode0) GetController1() string` + +GetController1 returns the Controller1 field if non-nil, zero value otherwise. + +### GetController1Ok + +`func (o *VendorConfigDetailsNode0) GetController1Ok() (*string, bool)` + +GetController1Ok returns a tuple with the Controller1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetController1 + +`func (o *VendorConfigDetailsNode0) SetController1(v string)` + +SetController1 sets Controller1 field to given value. + +### HasController1 + +`func (o *VendorConfigDetailsNode0) HasController1() bool` + +HasController1 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VendorConfigDetailsNode1.md b/services/networkedgev1/docs/VendorConfigDetailsNode1.md new file mode 100644 index 00000000..11aed3cd --- /dev/null +++ b/services/networkedgev1/docs/VendorConfigDetailsNode1.md @@ -0,0 +1,108 @@ +# VendorConfigDetailsNode1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | Pointer to **string** | The host name. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14; Aruba 2-24. | [optional] +**RootPassword** | Pointer to **string** | | [optional] +**AdminPassword** | Pointer to **string** | The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. | [optional] + +## Methods + +### NewVendorConfigDetailsNode1 + +`func NewVendorConfigDetailsNode1() *VendorConfigDetailsNode1` + +NewVendorConfigDetailsNode1 instantiates a new VendorConfigDetailsNode1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorConfigDetailsNode1WithDefaults + +`func NewVendorConfigDetailsNode1WithDefaults() *VendorConfigDetailsNode1` + +NewVendorConfigDetailsNode1WithDefaults instantiates a new VendorConfigDetailsNode1 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHostname + +`func (o *VendorConfigDetailsNode1) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *VendorConfigDetailsNode1) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *VendorConfigDetailsNode1) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *VendorConfigDetailsNode1) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### GetRootPassword + +`func (o *VendorConfigDetailsNode1) GetRootPassword() string` + +GetRootPassword returns the RootPassword field if non-nil, zero value otherwise. + +### GetRootPasswordOk + +`func (o *VendorConfigDetailsNode1) GetRootPasswordOk() (*string, bool)` + +GetRootPasswordOk returns a tuple with the RootPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootPassword + +`func (o *VendorConfigDetailsNode1) SetRootPassword(v string)` + +SetRootPassword sets RootPassword field to given value. + +### HasRootPassword + +`func (o *VendorConfigDetailsNode1) HasRootPassword() bool` + +HasRootPassword returns a boolean if a field has been set. + +### GetAdminPassword + +`func (o *VendorConfigDetailsNode1) GetAdminPassword() string` + +GetAdminPassword returns the AdminPassword field if non-nil, zero value otherwise. + +### GetAdminPasswordOk + +`func (o *VendorConfigDetailsNode1) GetAdminPasswordOk() (*string, bool)` + +GetAdminPasswordOk returns a tuple with the AdminPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminPassword + +`func (o *VendorConfigDetailsNode1) SetAdminPassword(v string)` + +SetAdminPassword sets AdminPassword field to given value. + +### HasAdminPassword + +`func (o *VendorConfigDetailsNode1) HasAdminPassword() bool` + +HasAdminPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VendorTermsResponse.md b/services/networkedgev1/docs/VendorTermsResponse.md new file mode 100644 index 00000000..a025b776 --- /dev/null +++ b/services/networkedgev1/docs/VendorTermsResponse.md @@ -0,0 +1,56 @@ +# VendorTermsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Terms** | Pointer to **string** | | [optional] + +## Methods + +### NewVendorTermsResponse + +`func NewVendorTermsResponse() *VendorTermsResponse` + +NewVendorTermsResponse instantiates a new VendorTermsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorTermsResponseWithDefaults + +`func NewVendorTermsResponseWithDefaults() *VendorTermsResponse` + +NewVendorTermsResponseWithDefaults instantiates a new VendorTermsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTerms + +`func (o *VendorTermsResponse) GetTerms() string` + +GetTerms returns the Terms field if non-nil, zero value otherwise. + +### GetTermsOk + +`func (o *VendorTermsResponse) GetTermsOk() (*string, bool)` + +GetTermsOk returns a tuple with the Terms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerms + +`func (o *VendorTermsResponse) SetTerms(v string)` + +SetTerms sets Terms field to given value. + +### HasTerms + +`func (o *VendorTermsResponse) HasTerms() bool` + +HasTerms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VersionDetails.md b/services/networkedgev1/docs/VersionDetails.md new file mode 100644 index 00000000..6b869181 --- /dev/null +++ b/services/networkedgev1/docs/VersionDetails.md @@ -0,0 +1,212 @@ +# VersionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | Pointer to [**VersionDetails**](VersionDetails.md) | | [optional] +**Version** | Pointer to **string** | | [optional] +**ImageName** | Pointer to **string** | | [optional] +**VersionDate** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**StableVersion** | Pointer to **string** | | [optional] +**AllowedUpgradableVersions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewVersionDetails + +`func NewVersionDetails() *VersionDetails` + +NewVersionDetails instantiates a new VersionDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVersionDetailsWithDefaults + +`func NewVersionDetailsWithDefaults() *VersionDetails` + +NewVersionDetailsWithDefaults instantiates a new VersionDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCause + +`func (o *VersionDetails) GetCause() VersionDetails` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *VersionDetails) GetCauseOk() (*VersionDetails, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *VersionDetails) SetCause(v VersionDetails)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *VersionDetails) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetVersion + +`func (o *VersionDetails) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VersionDetails) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *VersionDetails) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *VersionDetails) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetImageName + +`func (o *VersionDetails) GetImageName() string` + +GetImageName returns the ImageName field if non-nil, zero value otherwise. + +### GetImageNameOk + +`func (o *VersionDetails) GetImageNameOk() (*string, bool)` + +GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageName + +`func (o *VersionDetails) SetImageName(v string)` + +SetImageName sets ImageName field to given value. + +### HasImageName + +`func (o *VersionDetails) HasImageName() bool` + +HasImageName returns a boolean if a field has been set. + +### GetVersionDate + +`func (o *VersionDetails) GetVersionDate() string` + +GetVersionDate returns the VersionDate field if non-nil, zero value otherwise. + +### GetVersionDateOk + +`func (o *VersionDetails) GetVersionDateOk() (*string, bool)` + +GetVersionDateOk returns a tuple with the VersionDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionDate + +`func (o *VersionDetails) SetVersionDate(v string)` + +SetVersionDate sets VersionDate field to given value. + +### HasVersionDate + +`func (o *VersionDetails) HasVersionDate() bool` + +HasVersionDate returns a boolean if a field has been set. + +### GetStatus + +`func (o *VersionDetails) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VersionDetails) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VersionDetails) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VersionDetails) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStableVersion + +`func (o *VersionDetails) GetStableVersion() string` + +GetStableVersion returns the StableVersion field if non-nil, zero value otherwise. + +### GetStableVersionOk + +`func (o *VersionDetails) GetStableVersionOk() (*string, bool)` + +GetStableVersionOk returns a tuple with the StableVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStableVersion + +`func (o *VersionDetails) SetStableVersion(v string)` + +SetStableVersion sets StableVersion field to given value. + +### HasStableVersion + +`func (o *VersionDetails) HasStableVersion() bool` + +HasStableVersion returns a boolean if a field has been set. + +### GetAllowedUpgradableVersions + +`func (o *VersionDetails) GetAllowedUpgradableVersions() []string` + +GetAllowedUpgradableVersions returns the AllowedUpgradableVersions field if non-nil, zero value otherwise. + +### GetAllowedUpgradableVersionsOk + +`func (o *VersionDetails) GetAllowedUpgradableVersionsOk() (*[]string, bool)` + +GetAllowedUpgradableVersionsOk returns a tuple with the AllowedUpgradableVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedUpgradableVersions + +`func (o *VersionDetails) SetAllowedUpgradableVersions(v []string)` + +SetAllowedUpgradableVersions sets AllowedUpgradableVersions field to given value. + +### HasAllowedUpgradableVersions + +`func (o *VersionDetails) HasAllowedUpgradableVersions() bool` + +HasAllowedUpgradableVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDevicHARequest.md b/services/networkedgev1/docs/VirtualDevicHARequest.md new file mode 100644 index 00000000..7b7526ac --- /dev/null +++ b/services/networkedgev1/docs/VirtualDevicHARequest.md @@ -0,0 +1,483 @@ +# VirtualDevicHARequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**AccountReferenceId** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | You can only choose a version for the secondary device when adding a secondary device to an existing device. | [optional] +**AdditionalBandwidth** | Pointer to **int32** | Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. | [optional] +**LicenseFileId** | Pointer to **string** | | [optional] +**LicenseToken** | Pointer to **string** | | [optional] +**MetroCode** | **string** | | +**Notifications** | [**[]VirtualDevicHARequestNotificationsInner**](VirtualDevicHARequestNotificationsInner.md) | | +**AclDetails** | Pointer to [**[]ACLDetails**](ACLDetails.md) | An array of ACLs | [optional] +**SshUsers** | Pointer to [**[]SshUserOperationRequest**](SshUserOperationRequest.md) | | [optional] +**VirtualDeviceName** | **string** | Virtual Device Name | +**HostNamePrefix** | Pointer to **string** | Host name prefix for identification. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14 characters; Aruba 2-24 characters. | [optional] +**SiteId** | Pointer to **string** | | [optional] +**SystemIpAddress** | Pointer to **string** | | [optional] +**VendorConfig** | Pointer to [**VendorConfig**](VendorConfig.md) | | [optional] +**SshInterfaceId** | Pointer to **string** | You may specify any available interface on the device as the sshInterfaceId. This field is only applicable to self-configured devices. | [optional] +**SmartLicenseUrl** | Pointer to **string** | License URL. This field is only relevant for Ciso ASAv devices. | [optional] +**CloudInitFileId** | Pointer to **string** | The Id of a previously uploaded license or cloud_init file. | [optional] + +## Methods + +### NewVirtualDevicHARequest + +`func NewVirtualDevicHARequest(metroCode string, notifications []VirtualDevicHARequestNotificationsInner, virtualDeviceName string, ) *VirtualDevicHARequest` + +NewVirtualDevicHARequest instantiates a new VirtualDevicHARequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDevicHARequestWithDefaults + +`func NewVirtualDevicHARequestWithDefaults() *VirtualDevicHARequest` + +NewVirtualDevicHARequestWithDefaults instantiates a new VirtualDevicHARequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *VirtualDevicHARequest) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *VirtualDevicHARequest) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *VirtualDevicHARequest) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *VirtualDevicHARequest) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountReferenceId + +`func (o *VirtualDevicHARequest) GetAccountReferenceId() string` + +GetAccountReferenceId returns the AccountReferenceId field if non-nil, zero value otherwise. + +### GetAccountReferenceIdOk + +`func (o *VirtualDevicHARequest) GetAccountReferenceIdOk() (*string, bool)` + +GetAccountReferenceIdOk returns a tuple with the AccountReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountReferenceId + +`func (o *VirtualDevicHARequest) SetAccountReferenceId(v string)` + +SetAccountReferenceId sets AccountReferenceId field to given value. + +### HasAccountReferenceId + +`func (o *VirtualDevicHARequest) HasAccountReferenceId() bool` + +HasAccountReferenceId returns a boolean if a field has been set. + +### GetVersion + +`func (o *VirtualDevicHARequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VirtualDevicHARequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *VirtualDevicHARequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *VirtualDevicHARequest) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetAdditionalBandwidth + +`func (o *VirtualDevicHARequest) GetAdditionalBandwidth() int32` + +GetAdditionalBandwidth returns the AdditionalBandwidth field if non-nil, zero value otherwise. + +### GetAdditionalBandwidthOk + +`func (o *VirtualDevicHARequest) GetAdditionalBandwidthOk() (*int32, bool)` + +GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalBandwidth + +`func (o *VirtualDevicHARequest) SetAdditionalBandwidth(v int32)` + +SetAdditionalBandwidth sets AdditionalBandwidth field to given value. + +### HasAdditionalBandwidth + +`func (o *VirtualDevicHARequest) HasAdditionalBandwidth() bool` + +HasAdditionalBandwidth returns a boolean if a field has been set. + +### GetLicenseFileId + +`func (o *VirtualDevicHARequest) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *VirtualDevicHARequest) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *VirtualDevicHARequest) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *VirtualDevicHARequest) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetLicenseToken + +`func (o *VirtualDevicHARequest) GetLicenseToken() string` + +GetLicenseToken returns the LicenseToken field if non-nil, zero value otherwise. + +### GetLicenseTokenOk + +`func (o *VirtualDevicHARequest) GetLicenseTokenOk() (*string, bool)` + +GetLicenseTokenOk returns a tuple with the LicenseToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseToken + +`func (o *VirtualDevicHARequest) SetLicenseToken(v string)` + +SetLicenseToken sets LicenseToken field to given value. + +### HasLicenseToken + +`func (o *VirtualDevicHARequest) HasLicenseToken() bool` + +HasLicenseToken returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *VirtualDevicHARequest) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *VirtualDevicHARequest) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *VirtualDevicHARequest) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + + +### GetNotifications + +`func (o *VirtualDevicHARequest) GetNotifications() []VirtualDevicHARequestNotificationsInner` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *VirtualDevicHARequest) GetNotificationsOk() (*[]VirtualDevicHARequestNotificationsInner, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *VirtualDevicHARequest) SetNotifications(v []VirtualDevicHARequestNotificationsInner)` + +SetNotifications sets Notifications field to given value. + + +### GetAclDetails + +`func (o *VirtualDevicHARequest) GetAclDetails() []ACLDetails` + +GetAclDetails returns the AclDetails field if non-nil, zero value otherwise. + +### GetAclDetailsOk + +`func (o *VirtualDevicHARequest) GetAclDetailsOk() (*[]ACLDetails, bool)` + +GetAclDetailsOk returns a tuple with the AclDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAclDetails + +`func (o *VirtualDevicHARequest) SetAclDetails(v []ACLDetails)` + +SetAclDetails sets AclDetails field to given value. + +### HasAclDetails + +`func (o *VirtualDevicHARequest) HasAclDetails() bool` + +HasAclDetails returns a boolean if a field has been set. + +### GetSshUsers + +`func (o *VirtualDevicHARequest) GetSshUsers() []SshUserOperationRequest` + +GetSshUsers returns the SshUsers field if non-nil, zero value otherwise. + +### GetSshUsersOk + +`func (o *VirtualDevicHARequest) GetSshUsersOk() (*[]SshUserOperationRequest, bool)` + +GetSshUsersOk returns a tuple with the SshUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUsers + +`func (o *VirtualDevicHARequest) SetSshUsers(v []SshUserOperationRequest)` + +SetSshUsers sets SshUsers field to given value. + +### HasSshUsers + +`func (o *VirtualDevicHARequest) HasSshUsers() bool` + +HasSshUsers returns a boolean if a field has been set. + +### GetVirtualDeviceName + +`func (o *VirtualDevicHARequest) GetVirtualDeviceName() string` + +GetVirtualDeviceName returns the VirtualDeviceName field if non-nil, zero value otherwise. + +### GetVirtualDeviceNameOk + +`func (o *VirtualDevicHARequest) GetVirtualDeviceNameOk() (*string, bool)` + +GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceName + +`func (o *VirtualDevicHARequest) SetVirtualDeviceName(v string)` + +SetVirtualDeviceName sets VirtualDeviceName field to given value. + + +### GetHostNamePrefix + +`func (o *VirtualDevicHARequest) GetHostNamePrefix() string` + +GetHostNamePrefix returns the HostNamePrefix field if non-nil, zero value otherwise. + +### GetHostNamePrefixOk + +`func (o *VirtualDevicHARequest) GetHostNamePrefixOk() (*string, bool)` + +GetHostNamePrefixOk returns a tuple with the HostNamePrefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostNamePrefix + +`func (o *VirtualDevicHARequest) SetHostNamePrefix(v string)` + +SetHostNamePrefix sets HostNamePrefix field to given value. + +### HasHostNamePrefix + +`func (o *VirtualDevicHARequest) HasHostNamePrefix() bool` + +HasHostNamePrefix returns a boolean if a field has been set. + +### GetSiteId + +`func (o *VirtualDevicHARequest) GetSiteId() string` + +GetSiteId returns the SiteId field if non-nil, zero value otherwise. + +### GetSiteIdOk + +`func (o *VirtualDevicHARequest) GetSiteIdOk() (*string, bool)` + +GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteId + +`func (o *VirtualDevicHARequest) SetSiteId(v string)` + +SetSiteId sets SiteId field to given value. + +### HasSiteId + +`func (o *VirtualDevicHARequest) HasSiteId() bool` + +HasSiteId returns a boolean if a field has been set. + +### GetSystemIpAddress + +`func (o *VirtualDevicHARequest) GetSystemIpAddress() string` + +GetSystemIpAddress returns the SystemIpAddress field if non-nil, zero value otherwise. + +### GetSystemIpAddressOk + +`func (o *VirtualDevicHARequest) GetSystemIpAddressOk() (*string, bool)` + +GetSystemIpAddressOk returns a tuple with the SystemIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemIpAddress + +`func (o *VirtualDevicHARequest) SetSystemIpAddress(v string)` + +SetSystemIpAddress sets SystemIpAddress field to given value. + +### HasSystemIpAddress + +`func (o *VirtualDevicHARequest) HasSystemIpAddress() bool` + +HasSystemIpAddress returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *VirtualDevicHARequest) GetVendorConfig() VendorConfig` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *VirtualDevicHARequest) GetVendorConfigOk() (*VendorConfig, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *VirtualDevicHARequest) SetVendorConfig(v VendorConfig)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *VirtualDevicHARequest) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + +### GetSshInterfaceId + +`func (o *VirtualDevicHARequest) GetSshInterfaceId() string` + +GetSshInterfaceId returns the SshInterfaceId field if non-nil, zero value otherwise. + +### GetSshInterfaceIdOk + +`func (o *VirtualDevicHARequest) GetSshInterfaceIdOk() (*string, bool)` + +GetSshInterfaceIdOk returns a tuple with the SshInterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshInterfaceId + +`func (o *VirtualDevicHARequest) SetSshInterfaceId(v string)` + +SetSshInterfaceId sets SshInterfaceId field to given value. + +### HasSshInterfaceId + +`func (o *VirtualDevicHARequest) HasSshInterfaceId() bool` + +HasSshInterfaceId returns a boolean if a field has been set. + +### GetSmartLicenseUrl + +`func (o *VirtualDevicHARequest) GetSmartLicenseUrl() string` + +GetSmartLicenseUrl returns the SmartLicenseUrl field if non-nil, zero value otherwise. + +### GetSmartLicenseUrlOk + +`func (o *VirtualDevicHARequest) GetSmartLicenseUrlOk() (*string, bool)` + +GetSmartLicenseUrlOk returns a tuple with the SmartLicenseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmartLicenseUrl + +`func (o *VirtualDevicHARequest) SetSmartLicenseUrl(v string)` + +SetSmartLicenseUrl sets SmartLicenseUrl field to given value. + +### HasSmartLicenseUrl + +`func (o *VirtualDevicHARequest) HasSmartLicenseUrl() bool` + +HasSmartLicenseUrl returns a boolean if a field has been set. + +### GetCloudInitFileId + +`func (o *VirtualDevicHARequest) GetCloudInitFileId() string` + +GetCloudInitFileId returns the CloudInitFileId field if non-nil, zero value otherwise. + +### GetCloudInitFileIdOk + +`func (o *VirtualDevicHARequest) GetCloudInitFileIdOk() (*string, bool)` + +GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudInitFileId + +`func (o *VirtualDevicHARequest) SetCloudInitFileId(v string)` + +SetCloudInitFileId sets CloudInitFileId field to given value. + +### HasCloudInitFileId + +`func (o *VirtualDevicHARequest) HasCloudInitFileId() bool` + +HasCloudInitFileId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDevicHARequestNotificationsInner.md b/services/networkedgev1/docs/VirtualDevicHARequestNotificationsInner.md new file mode 100644 index 00000000..fa72cedd --- /dev/null +++ b/services/networkedgev1/docs/VirtualDevicHARequestNotificationsInner.md @@ -0,0 +1,13 @@ +# VirtualDevicHARequestNotificationsInner + +## Enum + + +* `TEST1EXAMPLE_COM` (value: `"test1@example.com"`) + +* `TEST2EXAMPLE_COM` (value: `"test2@example.com"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceACLDetails.md b/services/networkedgev1/docs/VirtualDeviceACLDetails.md new file mode 100644 index 00000000..bdea7430 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceACLDetails.md @@ -0,0 +1,134 @@ +# VirtualDeviceACLDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the virtual device associated with this template. | [optional] +**Uuid** | Pointer to **string** | The unique Id of the virtual device associated with this template. | [optional] +**InterfaceType** | Pointer to **string** | Interface type, WAN or MGMT. | [optional] +**AclStatus** | Pointer to **string** | Device ACL status | [optional] + +## Methods + +### NewVirtualDeviceACLDetails + +`func NewVirtualDeviceACLDetails() *VirtualDeviceACLDetails` + +NewVirtualDeviceACLDetails instantiates a new VirtualDeviceACLDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceACLDetailsWithDefaults + +`func NewVirtualDeviceACLDetailsWithDefaults() *VirtualDeviceACLDetails` + +NewVirtualDeviceACLDetailsWithDefaults instantiates a new VirtualDeviceACLDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *VirtualDeviceACLDetails) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VirtualDeviceACLDetails) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *VirtualDeviceACLDetails) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VirtualDeviceACLDetails) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUuid + +`func (o *VirtualDeviceACLDetails) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualDeviceACLDetails) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *VirtualDeviceACLDetails) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VirtualDeviceACLDetails) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetInterfaceType + +`func (o *VirtualDeviceACLDetails) GetInterfaceType() string` + +GetInterfaceType returns the InterfaceType field if non-nil, zero value otherwise. + +### GetInterfaceTypeOk + +`func (o *VirtualDeviceACLDetails) GetInterfaceTypeOk() (*string, bool)` + +GetInterfaceTypeOk returns a tuple with the InterfaceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceType + +`func (o *VirtualDeviceACLDetails) SetInterfaceType(v string)` + +SetInterfaceType sets InterfaceType field to given value. + +### HasInterfaceType + +`func (o *VirtualDeviceACLDetails) HasInterfaceType() bool` + +HasInterfaceType returns a boolean if a field has been set. + +### GetAclStatus + +`func (o *VirtualDeviceACLDetails) GetAclStatus() string` + +GetAclStatus returns the AclStatus field if non-nil, zero value otherwise. + +### GetAclStatusOk + +`func (o *VirtualDeviceACLDetails) GetAclStatusOk() (*string, bool)` + +GetAclStatusOk returns a tuple with the AclStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAclStatus + +`func (o *VirtualDeviceACLDetails) SetAclStatus(v string)` + +SetAclStatus sets AclStatus field to given value. + +### HasAclStatus + +`func (o *VirtualDeviceACLDetails) HasAclStatus() bool` + +HasAclStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceApi.md b/services/networkedgev1/docs/VirtualDeviceApi.md new file mode 100644 index 00000000..77f17ff5 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceApi.md @@ -0,0 +1,982 @@ +# \VirtualDeviceApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVirtualDeviceUsingPOST**](VirtualDeviceApi.md#CreateVirtualDeviceUsingPOST) | **Post** /ne/v1/devices | Create Virtual Device +[**DeleteVRouterUsingDELETE**](VirtualDeviceApi.md#DeleteVRouterUsingDELETE) | **Delete** /ne/v1/devices/{uuid} | Delete Virtual Devices +[**GetDeviceReloadUsingGET1**](VirtualDeviceApi.md#GetDeviceReloadUsingGET1) | **Get** /ne/v1/devices/{virtualDeviceUUID}/softReboot | Device Reload History +[**GetDeviceUpgradeUsingGET1**](VirtualDeviceApi.md#GetDeviceUpgradeUsingGET1) | **Get** /ne/v1/devices/{virtualDeviceUuid}/resourceUpgrade | Get Device Upgrade History +[**GetInterfaceStatisticsUsingGET**](VirtualDeviceApi.md#GetInterfaceStatisticsUsingGET) | **Get** /ne/v1/devices/{virtualDeviceUuid}/interfaces/{interfaceId}/stats | Get Interface Statistics +[**GetVirtualDeviceInterfacesUsingGET**](VirtualDeviceApi.md#GetVirtualDeviceInterfacesUsingGET) | **Get** /ne/v1/devices/{uuid}/interfaces | Get Device Interfaces +[**GetVirtualDeviceUsingGET**](VirtualDeviceApi.md#GetVirtualDeviceUsingGET) | **Get** /ne/v1/devices/{uuid} | Get Virtual Device {uuid} +[**GetVirtualDevicesUsingGET1**](VirtualDeviceApi.md#GetVirtualDevicesUsingGET1) | **Get** /ne/v1/devices | Get Virtual Devices +[**PingDeviceUsingGET**](VirtualDeviceApi.md#PingDeviceUsingGET) | **Get** /ne/v1/devices/{uuid}/ping | Ping Virtual Device +[**PostDeviceReloadUsingPOST1**](VirtualDeviceApi.md#PostDeviceReloadUsingPOST1) | **Post** /ne/v1/devices/{virtualDeviceUUID}/softReboot | Trigger Soft Reboot +[**UpdateAdditionalBandwidth**](VirtualDeviceApi.md#UpdateAdditionalBandwidth) | **Put** /ne/v1/devices/{uuid}/additionalBandwidths | Update Additional Bandwidth +[**UpdateVirtualDeviceUsingPATCH1**](VirtualDeviceApi.md#UpdateVirtualDeviceUsingPATCH1) | **Patch** /ne/v1/devices/{uuid} | Update Virtual Device +[**UpdateVirtualDeviceUsingPUT**](VirtualDeviceApi.md#UpdateVirtualDeviceUsingPUT) | **Put** /ne/v1/devices/{uuid} | Update Device Draft + + + +## CreateVirtualDeviceUsingPOST + +> VirtualDeviceCreateResponse CreateVirtualDeviceUsingPOST(ctx).Authorization(authorization).VirtualDevice(virtualDevice).Draft(draft).DraftUuid(draftUuid).Execute() + +Create Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + virtualDevice := *openapiclient.NewVirtualDeviceRequest("16.09.03", "C8000V", true, "SUB", "SV", "Router1-c8000v", []string{"Notifications_example"}, "EQUINIX-CONFIGURED", int32(123)) // VirtualDeviceRequest | Create a virtual device (e.g., a router or a firewall) + draft := true // bool | draft (optional) (default to false) + draftUuid := "draftUuid_example" // string | draftUuid (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.CreateVirtualDeviceUsingPOST(context.Background()).Authorization(authorization).VirtualDevice(virtualDevice).Draft(draft).DraftUuid(draftUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.CreateVirtualDeviceUsingPOST``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVirtualDeviceUsingPOST`: VirtualDeviceCreateResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.CreateVirtualDeviceUsingPOST`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateVirtualDeviceUsingPOSTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **virtualDevice** | [**VirtualDeviceRequest**](VirtualDeviceRequest.md) | Create a virtual device (e.g., a router or a firewall) | + **draft** | **bool** | draft | [default to false] + **draftUuid** | **string** | draftUuid | + +### Return type + +[**VirtualDeviceCreateResponse**](VirtualDeviceCreateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteVRouterUsingDELETE + +> DeleteVRouterUsingDELETE(ctx, uuid).Authorization(authorization).DeleteRedundantDevice(deleteRedundantDevice).DeletionInfo(deletionInfo).Execute() + +Delete Virtual Devices + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Unique Id of the virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + deleteRedundantDevice := true // bool | Optional parameter in case you have a secondary device. As both primary and secondary devices are deleted simultaneously, this field must be marked True so we delete both the devices simultaneously. (optional) (default to false) + deletionInfo := *openapiclient.NewVirtualDeviceDeleteRequest() // VirtualDeviceDeleteRequest | deletionInfo (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.DeleteVRouterUsingDELETE(context.Background(), uuid).Authorization(authorization).DeleteRedundantDevice(deleteRedundantDevice).DeletionInfo(deletionInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.DeleteVRouterUsingDELETE``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of the virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteVRouterUsingDELETERequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **deleteRedundantDevice** | **bool** | Optional parameter in case you have a secondary device. As both primary and secondary devices are deleted simultaneously, this field must be marked True so we delete both the devices simultaneously. | [default to false] + **deletionInfo** | [**VirtualDeviceDeleteRequest**](VirtualDeviceDeleteRequest.md) | deletionInfo | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceReloadUsingGET1 + +> DeviceRebootPageResponse GetDeviceReloadUsingGET1(ctx, virtualDeviceUUID).Authorization(authorization).Offset(offset).Limit(limit).Execute() + +Device Reload History + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUUID := "virtualDeviceUUID_example" // string | Unique ID of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetDeviceReloadUsingGET1(context.Background(), virtualDeviceUUID).Authorization(authorization).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetDeviceReloadUsingGET1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceReloadUsingGET1`: DeviceRebootPageResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetDeviceReloadUsingGET1`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUUID** | **string** | Unique ID of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceReloadUsingGET1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**DeviceRebootPageResponse**](DeviceRebootPageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDeviceUpgradeUsingGET1 + +> DeviceUpgradePageResponse GetDeviceUpgradeUsingGET1(ctx, virtualDeviceUuid).Authorization(authorization).Offset(offset).Limit(limit).Execute() + +Get Device Upgrade History + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique ID of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetDeviceUpgradeUsingGET1(context.Background(), virtualDeviceUuid).Authorization(authorization).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetDeviceUpgradeUsingGET1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeviceUpgradeUsingGET1`: DeviceUpgradePageResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetDeviceUpgradeUsingGET1`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique ID of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeviceUpgradeUsingGET1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + +### Return type + +[**DeviceUpgradePageResponse**](DeviceUpgradePageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetInterfaceStatisticsUsingGET + +> InterfaceStatsObject GetInterfaceStatisticsUsingGET(ctx, virtualDeviceUuid, interfaceId).StartDateTime(startDateTime).EndDateTime(endDateTime).Authorization(authorization).Execute() + +Get Interface Statistics + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUuid := "virtualDeviceUuid_example" // string | Unique Id of a device + interfaceId := "interfaceId_example" // string | Interface Id + startDateTime := "startDateTime_example" // string | Start time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) + endDateTime := "endDateTime_example" // string | End time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetInterfaceStatisticsUsingGET(context.Background(), virtualDeviceUuid, interfaceId).StartDateTime(startDateTime).EndDateTime(endDateTime).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetInterfaceStatisticsUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetInterfaceStatisticsUsingGET`: InterfaceStatsObject + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetInterfaceStatisticsUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUuid** | **string** | Unique Id of a device | +**interfaceId** | **string** | Interface Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetInterfaceStatisticsUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **startDateTime** | **string** | Start time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) | + **endDateTime** | **string** | End time of the duration for which you want stats. (YYYY-MM-DDThh:mm:ssZ) | + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**InterfaceStatsObject**](InterfaceStatsObject.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVirtualDeviceInterfacesUsingGET + +> []InterfaceBasicInfoResponse GetVirtualDeviceInterfacesUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get Device Interfaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetVirtualDeviceInterfacesUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetVirtualDeviceInterfacesUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVirtualDeviceInterfacesUsingGET`: []InterfaceBasicInfoResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetVirtualDeviceInterfacesUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVirtualDeviceInterfacesUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**[]InterfaceBasicInfoResponse**](InterfaceBasicInfoResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVirtualDeviceUsingGET + +> VirtualDeviceDetailsResponse GetVirtualDeviceUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Get Virtual Device {uuid} + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | uuid + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetVirtualDeviceUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetVirtualDeviceUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVirtualDeviceUsingGET`: VirtualDeviceDetailsResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetVirtualDeviceUsingGET`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVirtualDeviceUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**VirtualDeviceDetailsResponse**](VirtualDeviceDetailsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVirtualDevicesUsingGET1 + +> VirtualDevicePageResponse GetVirtualDevicesUsingGET1(ctx).Authorization(authorization).Offset(offset).Limit(limit).MetroCode(metroCode).Status(status).ShowOnlySubCustomerDevices(showOnlySubCustomerDevices).AccountUcmId(accountUcmId).SearchText(searchText).Sort(sort).Execute() + +Get Virtual Devices + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + offset := "offset_example" // string | Specifies where to start a page. It is the starting point of the collection returned from the server. (optional) (default to "0") + limit := "limit_example" // string | Specifies the page size. (optional) (default to "20") + metroCode := "metroCode_example" // string | metroCode (optional) + status := "status_example" // string | status (optional) + showOnlySubCustomerDevices := true // bool | Resellers may mark this Yes to see sub customer devices. (optional) + accountUcmId := "accountUcmId_example" // string | Unique ID of the account. (optional) + searchText := "searchText_example" // string | Enter text to fetch only matching device names (optional) + sort := []string{"Inner_example"} // []string | Sorts the output based on field names. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualDeviceApi.GetVirtualDevicesUsingGET1(context.Background()).Authorization(authorization).Offset(offset).Limit(limit).MetroCode(metroCode).Status(status).ShowOnlySubCustomerDevices(showOnlySubCustomerDevices).AccountUcmId(accountUcmId).SearchText(searchText).Sort(sort).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.GetVirtualDevicesUsingGET1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVirtualDevicesUsingGET1`: VirtualDevicePageResponse + fmt.Fprintf(os.Stdout, "Response from `VirtualDeviceApi.GetVirtualDevicesUsingGET1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVirtualDevicesUsingGET1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **offset** | **string** | Specifies where to start a page. It is the starting point of the collection returned from the server. | [default to "0"] + **limit** | **string** | Specifies the page size. | [default to "20"] + **metroCode** | **string** | metroCode | + **status** | **string** | status | + **showOnlySubCustomerDevices** | **bool** | Resellers may mark this Yes to see sub customer devices. | + **accountUcmId** | **string** | Unique ID of the account. | + **searchText** | **string** | Enter text to fetch only matching device names | + **sort** | **[]string** | Sorts the output based on field names. | + +### Return type + +[**VirtualDevicePageResponse**](VirtualDevicePageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PingDeviceUsingGET + +> PingDeviceUsingGET(ctx, uuid).Authorization(authorization).Execute() + +Ping Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | Virtual Device unique Id + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.PingDeviceUsingGET(context.Background(), uuid).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.PingDeviceUsingGET``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Virtual Device unique Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPingDeviceUsingGETRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostDeviceReloadUsingPOST1 + +> PostDeviceReloadUsingPOST1(ctx, virtualDeviceUUID).Authorization(authorization).Execute() + +Trigger Soft Reboot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + virtualDeviceUUID := "virtualDeviceUUID_example" // string | Unique ID of a virtual device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.PostDeviceReloadUsingPOST1(context.Background(), virtualDeviceUUID).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.PostDeviceReloadUsingPOST1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualDeviceUUID** | **string** | Unique ID of a virtual device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostDeviceReloadUsingPOST1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAdditionalBandwidth + +> UpdateAdditionalBandwidth(ctx, uuid).Authorization(authorization).Request(request).Execute() + +Update Additional Bandwidth + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | The unique Id of a virtual device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + request := *openapiclient.NewAdditionalBandwidthRequest() // AdditionalBandwidthRequest | Additional Bandwidth + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.UpdateAdditionalBandwidth(context.Background(), uuid).Authorization(authorization).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.UpdateAdditionalBandwidth``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | The unique Id of a virtual device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAdditionalBandwidthRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **request** | [**AdditionalBandwidthRequest**](AdditionalBandwidthRequest.md) | Additional Bandwidth | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateVirtualDeviceUsingPATCH1 + +> UpdateVirtualDeviceUsingPATCH1(ctx, uuid).Authorization(authorization).VirtualDeviceUpdateRequestDto(virtualDeviceUpdateRequestDto).Execute() + +Update Virtual Device + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + uuid := "uuid_example" // string | The unique Id of the device. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + virtualDeviceUpdateRequestDto := *openapiclient.NewVirtualDeviceInternalPatchRequestDto() // VirtualDeviceInternalPatchRequestDto | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.UpdateVirtualDeviceUsingPATCH1(context.Background(), uuid).Authorization(authorization).VirtualDeviceUpdateRequestDto(virtualDeviceUpdateRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.UpdateVirtualDeviceUsingPATCH1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | The unique Id of the device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateVirtualDeviceUsingPATCH1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **virtualDeviceUpdateRequestDto** | [**VirtualDeviceInternalPatchRequestDto**](VirtualDeviceInternalPatchRequestDto.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateVirtualDeviceUsingPUT + +> UpdateVirtualDeviceUsingPUT(ctx, uuid).Draft(draft).Authorization(authorization).VirtualDevice(virtualDevice).Execute() + +Update Device Draft + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" +) + +func main() { + draft := true // bool | draft (default to true) + uuid := "uuid_example" // string | Unique Id of a Virtual Device + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + virtualDevice := *openapiclient.NewVirtualDeviceRequest("16.09.03", "C8000V", true, "SUB", "SV", "Router1-c8000v", []string{"Notifications_example"}, "EQUINIX-CONFIGURED", int32(123)) // VirtualDeviceRequest | Update virtual device details + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VirtualDeviceApi.UpdateVirtualDeviceUsingPUT(context.Background(), uuid).Draft(draft).Authorization(authorization).VirtualDevice(virtualDevice).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualDeviceApi.UpdateVirtualDeviceUsingPUT``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | Unique Id of a Virtual Device | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateVirtualDeviceUsingPUTRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **draft** | **bool** | draft | [default to true] + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **virtualDevice** | [**VirtualDeviceRequest**](VirtualDeviceRequest.md) | Update virtual device details | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/networkedgev1/docs/VirtualDeviceCreateResponse.md b/services/networkedgev1/docs/VirtualDeviceCreateResponse.md new file mode 100644 index 00000000..336233d3 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceCreateResponse.md @@ -0,0 +1,56 @@ +# VirtualDeviceCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewVirtualDeviceCreateResponse + +`func NewVirtualDeviceCreateResponse() *VirtualDeviceCreateResponse` + +NewVirtualDeviceCreateResponse instantiates a new VirtualDeviceCreateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceCreateResponseWithDefaults + +`func NewVirtualDeviceCreateResponseWithDefaults() *VirtualDeviceCreateResponse` + +NewVirtualDeviceCreateResponseWithDefaults instantiates a new VirtualDeviceCreateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUuid + +`func (o *VirtualDeviceCreateResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualDeviceCreateResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *VirtualDeviceCreateResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VirtualDeviceCreateResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceCreateResponseDto.md b/services/networkedgev1/docs/VirtualDeviceCreateResponseDto.md new file mode 100644 index 00000000..e20b02c7 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceCreateResponseDto.md @@ -0,0 +1,82 @@ +# VirtualDeviceCreateResponseDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecondaryUuid** | Pointer to **string** | | [optional] +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewVirtualDeviceCreateResponseDto + +`func NewVirtualDeviceCreateResponseDto() *VirtualDeviceCreateResponseDto` + +NewVirtualDeviceCreateResponseDto instantiates a new VirtualDeviceCreateResponseDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceCreateResponseDtoWithDefaults + +`func NewVirtualDeviceCreateResponseDtoWithDefaults() *VirtualDeviceCreateResponseDto` + +NewVirtualDeviceCreateResponseDtoWithDefaults instantiates a new VirtualDeviceCreateResponseDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecondaryUuid + +`func (o *VirtualDeviceCreateResponseDto) GetSecondaryUuid() string` + +GetSecondaryUuid returns the SecondaryUuid field if non-nil, zero value otherwise. + +### GetSecondaryUuidOk + +`func (o *VirtualDeviceCreateResponseDto) GetSecondaryUuidOk() (*string, bool)` + +GetSecondaryUuidOk returns a tuple with the SecondaryUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryUuid + +`func (o *VirtualDeviceCreateResponseDto) SetSecondaryUuid(v string)` + +SetSecondaryUuid sets SecondaryUuid field to given value. + +### HasSecondaryUuid + +`func (o *VirtualDeviceCreateResponseDto) HasSecondaryUuid() bool` + +HasSecondaryUuid returns a boolean if a field has been set. + +### GetUuid + +`func (o *VirtualDeviceCreateResponseDto) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualDeviceCreateResponseDto) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *VirtualDeviceCreateResponseDto) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VirtualDeviceCreateResponseDto) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceDeleteRequest.md b/services/networkedgev1/docs/VirtualDeviceDeleteRequest.md new file mode 100644 index 00000000..0a2a53d0 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceDeleteRequest.md @@ -0,0 +1,82 @@ +# VirtualDeviceDeleteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeactivationKey** | Pointer to **string** | If you do not provide a deactivation key for a Palo Alto BYOL device, you must contact your vendor to release the license. | [optional] +**Secondary** | Pointer to [**SecondaryDeviceDeleteRequest**](SecondaryDeviceDeleteRequest.md) | | [optional] + +## Methods + +### NewVirtualDeviceDeleteRequest + +`func NewVirtualDeviceDeleteRequest() *VirtualDeviceDeleteRequest` + +NewVirtualDeviceDeleteRequest instantiates a new VirtualDeviceDeleteRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceDeleteRequestWithDefaults + +`func NewVirtualDeviceDeleteRequestWithDefaults() *VirtualDeviceDeleteRequest` + +NewVirtualDeviceDeleteRequestWithDefaults instantiates a new VirtualDeviceDeleteRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeactivationKey + +`func (o *VirtualDeviceDeleteRequest) GetDeactivationKey() string` + +GetDeactivationKey returns the DeactivationKey field if non-nil, zero value otherwise. + +### GetDeactivationKeyOk + +`func (o *VirtualDeviceDeleteRequest) GetDeactivationKeyOk() (*string, bool)` + +GetDeactivationKeyOk returns a tuple with the DeactivationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeactivationKey + +`func (o *VirtualDeviceDeleteRequest) SetDeactivationKey(v string)` + +SetDeactivationKey sets DeactivationKey field to given value. + +### HasDeactivationKey + +`func (o *VirtualDeviceDeleteRequest) HasDeactivationKey() bool` + +HasDeactivationKey returns a boolean if a field has been set. + +### GetSecondary + +`func (o *VirtualDeviceDeleteRequest) GetSecondary() SecondaryDeviceDeleteRequest` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *VirtualDeviceDeleteRequest) GetSecondaryOk() (*SecondaryDeviceDeleteRequest, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *VirtualDeviceDeleteRequest) SetSecondary(v SecondaryDeviceDeleteRequest)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *VirtualDeviceDeleteRequest) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceDetailsResponse.md b/services/networkedgev1/docs/VirtualDeviceDetailsResponse.md new file mode 100644 index 00000000..d888cd97 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceDetailsResponse.md @@ -0,0 +1,1512 @@ +# VirtualDeviceDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **string** | | [optional] +**AccountNumber** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedDate** | Pointer to **string** | | [optional] +**DeviceSerialNo** | Pointer to **string** | | [optional] +**DeviceTypeCategory** | Pointer to **string** | | [optional] +**DiverseFromDeviceName** | Pointer to **string** | The name of a device that is in a location different from this device. | [optional] +**DiverseFromDeviceUuid** | Pointer to **string** | The unique ID of a device that is in a location different from this device. | [optional] +**DeviceTypeCode** | Pointer to **string** | | [optional] +**DeviceTypeName** | Pointer to **string** | | [optional] +**Expiry** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] +**DeviceTypeVendor** | Pointer to **string** | | [optional] +**HostName** | Pointer to **string** | | [optional] +**Uuid** | Pointer to **string** | | [optional] +**LastUpdatedBy** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**LicenseFileId** | Pointer to **string** | | [optional] +**LicenseName** | Pointer to **string** | | [optional] +**LicenseStatus** | Pointer to **string** | | [optional] +**LicenseType** | Pointer to **string** | | [optional] +**MetroCode** | Pointer to **string** | | [optional] +**MetroName** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Notifications** | Pointer to **[]string** | | [optional] +**PackageCode** | Pointer to **string** | | [optional] +**PackageName** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**PurchaseOrderNumber** | Pointer to **string** | | [optional] +**RedundancyType** | Pointer to **string** | | [optional] +**RedundantUuid** | Pointer to **string** | | [optional] +**Connectivity** | Pointer to **string** | | [optional] +**SshIpAddress** | Pointer to **string** | | [optional] +**SshIpFqdn** | Pointer to **string** | | [optional] +**SshIpFqdnStatus** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Throughput** | Pointer to **int32** | | [optional] +**ThroughputUnit** | Pointer to **string** | | [optional] +**Core** | Pointer to [**CoresDisplayConfig**](CoresDisplayConfig.md) | | [optional] +**PricingDetails** | Pointer to [**PricingSiebelConfig**](PricingSiebelConfig.md) | | [optional] +**InterfaceCount** | Pointer to **int32** | | [optional] +**DeviceManagementType** | Pointer to **string** | | [optional] +**UserPublicKey** | Pointer to [**UserPublicKeyConfig**](UserPublicKeyConfig.md) | | [optional] +**ManagementIp** | Pointer to **string** | | [optional] +**ManagementGatewayIp** | Pointer to **string** | | [optional] +**PublicIp** | Pointer to **string** | | [optional] +**PublicGatewayIp** | Pointer to **string** | | [optional] +**PrimaryDnsName** | Pointer to **string** | | [optional] +**SecondaryDnsName** | Pointer to **string** | | [optional] +**TermLength** | Pointer to **string** | | [optional] +**AdditionalBandwidth** | Pointer to **string** | | [optional] +**SiteId** | Pointer to **string** | | [optional] +**SystemIpAddress** | Pointer to **string** | | [optional] +**VendorConfig** | Pointer to [**VendorConfig**](VendorConfig.md) | | [optional] +**Interfaces** | Pointer to [**[]InterfaceBasicInfoResponse**](InterfaceBasicInfoResponse.md) | | [optional] +**Asn** | Pointer to **float32** | The ASN number. | [optional] +**ChannelPartner** | Pointer to **string** | The name of the channel partner. | [optional] + +## Methods + +### NewVirtualDeviceDetailsResponse + +`func NewVirtualDeviceDetailsResponse() *VirtualDeviceDetailsResponse` + +NewVirtualDeviceDetailsResponse instantiates a new VirtualDeviceDetailsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceDetailsResponseWithDefaults + +`func NewVirtualDeviceDetailsResponseWithDefaults() *VirtualDeviceDetailsResponse` + +NewVirtualDeviceDetailsResponseWithDefaults instantiates a new VirtualDeviceDetailsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *VirtualDeviceDetailsResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *VirtualDeviceDetailsResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *VirtualDeviceDetailsResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *VirtualDeviceDetailsResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetAccountNumber + +`func (o *VirtualDeviceDetailsResponse) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *VirtualDeviceDetailsResponse) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *VirtualDeviceDetailsResponse) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *VirtualDeviceDetailsResponse) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *VirtualDeviceDetailsResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *VirtualDeviceDetailsResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *VirtualDeviceDetailsResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *VirtualDeviceDetailsResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *VirtualDeviceDetailsResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *VirtualDeviceDetailsResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *VirtualDeviceDetailsResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *VirtualDeviceDetailsResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetDeviceSerialNo + +`func (o *VirtualDeviceDetailsResponse) GetDeviceSerialNo() string` + +GetDeviceSerialNo returns the DeviceSerialNo field if non-nil, zero value otherwise. + +### GetDeviceSerialNoOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceSerialNoOk() (*string, bool)` + +GetDeviceSerialNoOk returns a tuple with the DeviceSerialNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceSerialNo + +`func (o *VirtualDeviceDetailsResponse) SetDeviceSerialNo(v string)` + +SetDeviceSerialNo sets DeviceSerialNo field to given value. + +### HasDeviceSerialNo + +`func (o *VirtualDeviceDetailsResponse) HasDeviceSerialNo() bool` + +HasDeviceSerialNo returns a boolean if a field has been set. + +### GetDeviceTypeCategory + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCategory() string` + +GetDeviceTypeCategory returns the DeviceTypeCategory field if non-nil, zero value otherwise. + +### GetDeviceTypeCategoryOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCategoryOk() (*string, bool)` + +GetDeviceTypeCategoryOk returns a tuple with the DeviceTypeCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCategory + +`func (o *VirtualDeviceDetailsResponse) SetDeviceTypeCategory(v string)` + +SetDeviceTypeCategory sets DeviceTypeCategory field to given value. + +### HasDeviceTypeCategory + +`func (o *VirtualDeviceDetailsResponse) HasDeviceTypeCategory() bool` + +HasDeviceTypeCategory returns a boolean if a field has been set. + +### GetDiverseFromDeviceName + +`func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceName() string` + +GetDiverseFromDeviceName returns the DiverseFromDeviceName field if non-nil, zero value otherwise. + +### GetDiverseFromDeviceNameOk + +`func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceNameOk() (*string, bool)` + +GetDiverseFromDeviceNameOk returns a tuple with the DiverseFromDeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiverseFromDeviceName + +`func (o *VirtualDeviceDetailsResponse) SetDiverseFromDeviceName(v string)` + +SetDiverseFromDeviceName sets DiverseFromDeviceName field to given value. + +### HasDiverseFromDeviceName + +`func (o *VirtualDeviceDetailsResponse) HasDiverseFromDeviceName() bool` + +HasDiverseFromDeviceName returns a boolean if a field has been set. + +### GetDiverseFromDeviceUuid + +`func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceUuid() string` + +GetDiverseFromDeviceUuid returns the DiverseFromDeviceUuid field if non-nil, zero value otherwise. + +### GetDiverseFromDeviceUuidOk + +`func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceUuidOk() (*string, bool)` + +GetDiverseFromDeviceUuidOk returns a tuple with the DiverseFromDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiverseFromDeviceUuid + +`func (o *VirtualDeviceDetailsResponse) SetDiverseFromDeviceUuid(v string)` + +SetDiverseFromDeviceUuid sets DiverseFromDeviceUuid field to given value. + +### HasDiverseFromDeviceUuid + +`func (o *VirtualDeviceDetailsResponse) HasDiverseFromDeviceUuid() bool` + +HasDiverseFromDeviceUuid returns a boolean if a field has been set. + +### GetDeviceTypeCode + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCode() string` + +GetDeviceTypeCode returns the DeviceTypeCode field if non-nil, zero value otherwise. + +### GetDeviceTypeCodeOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCodeOk() (*string, bool)` + +GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCode + +`func (o *VirtualDeviceDetailsResponse) SetDeviceTypeCode(v string)` + +SetDeviceTypeCode sets DeviceTypeCode field to given value. + +### HasDeviceTypeCode + +`func (o *VirtualDeviceDetailsResponse) HasDeviceTypeCode() bool` + +HasDeviceTypeCode returns a boolean if a field has been set. + +### GetDeviceTypeName + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeName() string` + +GetDeviceTypeName returns the DeviceTypeName field if non-nil, zero value otherwise. + +### GetDeviceTypeNameOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeNameOk() (*string, bool)` + +GetDeviceTypeNameOk returns a tuple with the DeviceTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeName + +`func (o *VirtualDeviceDetailsResponse) SetDeviceTypeName(v string)` + +SetDeviceTypeName sets DeviceTypeName field to given value. + +### HasDeviceTypeName + +`func (o *VirtualDeviceDetailsResponse) HasDeviceTypeName() bool` + +HasDeviceTypeName returns a boolean if a field has been set. + +### GetExpiry + +`func (o *VirtualDeviceDetailsResponse) GetExpiry() string` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *VirtualDeviceDetailsResponse) GetExpiryOk() (*string, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *VirtualDeviceDetailsResponse) SetExpiry(v string)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *VirtualDeviceDetailsResponse) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### GetRegion + +`func (o *VirtualDeviceDetailsResponse) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *VirtualDeviceDetailsResponse) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *VirtualDeviceDetailsResponse) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *VirtualDeviceDetailsResponse) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetDeviceTypeVendor + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeVendor() string` + +GetDeviceTypeVendor returns the DeviceTypeVendor field if non-nil, zero value otherwise. + +### GetDeviceTypeVendorOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceTypeVendorOk() (*string, bool)` + +GetDeviceTypeVendorOk returns a tuple with the DeviceTypeVendor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeVendor + +`func (o *VirtualDeviceDetailsResponse) SetDeviceTypeVendor(v string)` + +SetDeviceTypeVendor sets DeviceTypeVendor field to given value. + +### HasDeviceTypeVendor + +`func (o *VirtualDeviceDetailsResponse) HasDeviceTypeVendor() bool` + +HasDeviceTypeVendor returns a boolean if a field has been set. + +### GetHostName + +`func (o *VirtualDeviceDetailsResponse) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *VirtualDeviceDetailsResponse) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *VirtualDeviceDetailsResponse) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *VirtualDeviceDetailsResponse) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### GetUuid + +`func (o *VirtualDeviceDetailsResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualDeviceDetailsResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *VirtualDeviceDetailsResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VirtualDeviceDetailsResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetLastUpdatedBy + +`func (o *VirtualDeviceDetailsResponse) GetLastUpdatedBy() string` + +GetLastUpdatedBy returns the LastUpdatedBy field if non-nil, zero value otherwise. + +### GetLastUpdatedByOk + +`func (o *VirtualDeviceDetailsResponse) GetLastUpdatedByOk() (*string, bool)` + +GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedBy + +`func (o *VirtualDeviceDetailsResponse) SetLastUpdatedBy(v string)` + +SetLastUpdatedBy sets LastUpdatedBy field to given value. + +### HasLastUpdatedBy + +`func (o *VirtualDeviceDetailsResponse) HasLastUpdatedBy() bool` + +HasLastUpdatedBy returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *VirtualDeviceDetailsResponse) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *VirtualDeviceDetailsResponse) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *VirtualDeviceDetailsResponse) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *VirtualDeviceDetailsResponse) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetLicenseFileId + +`func (o *VirtualDeviceDetailsResponse) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *VirtualDeviceDetailsResponse) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *VirtualDeviceDetailsResponse) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *VirtualDeviceDetailsResponse) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetLicenseName + +`func (o *VirtualDeviceDetailsResponse) GetLicenseName() string` + +GetLicenseName returns the LicenseName field if non-nil, zero value otherwise. + +### GetLicenseNameOk + +`func (o *VirtualDeviceDetailsResponse) GetLicenseNameOk() (*string, bool)` + +GetLicenseNameOk returns a tuple with the LicenseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseName + +`func (o *VirtualDeviceDetailsResponse) SetLicenseName(v string)` + +SetLicenseName sets LicenseName field to given value. + +### HasLicenseName + +`func (o *VirtualDeviceDetailsResponse) HasLicenseName() bool` + +HasLicenseName returns a boolean if a field has been set. + +### GetLicenseStatus + +`func (o *VirtualDeviceDetailsResponse) GetLicenseStatus() string` + +GetLicenseStatus returns the LicenseStatus field if non-nil, zero value otherwise. + +### GetLicenseStatusOk + +`func (o *VirtualDeviceDetailsResponse) GetLicenseStatusOk() (*string, bool)` + +GetLicenseStatusOk returns a tuple with the LicenseStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseStatus + +`func (o *VirtualDeviceDetailsResponse) SetLicenseStatus(v string)` + +SetLicenseStatus sets LicenseStatus field to given value. + +### HasLicenseStatus + +`func (o *VirtualDeviceDetailsResponse) HasLicenseStatus() bool` + +HasLicenseStatus returns a boolean if a field has been set. + +### GetLicenseType + +`func (o *VirtualDeviceDetailsResponse) GetLicenseType() string` + +GetLicenseType returns the LicenseType field if non-nil, zero value otherwise. + +### GetLicenseTypeOk + +`func (o *VirtualDeviceDetailsResponse) GetLicenseTypeOk() (*string, bool)` + +GetLicenseTypeOk returns a tuple with the LicenseType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseType + +`func (o *VirtualDeviceDetailsResponse) SetLicenseType(v string)` + +SetLicenseType sets LicenseType field to given value. + +### HasLicenseType + +`func (o *VirtualDeviceDetailsResponse) HasLicenseType() bool` + +HasLicenseType returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *VirtualDeviceDetailsResponse) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *VirtualDeviceDetailsResponse) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *VirtualDeviceDetailsResponse) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + +### HasMetroCode + +`func (o *VirtualDeviceDetailsResponse) HasMetroCode() bool` + +HasMetroCode returns a boolean if a field has been set. + +### GetMetroName + +`func (o *VirtualDeviceDetailsResponse) GetMetroName() string` + +GetMetroName returns the MetroName field if non-nil, zero value otherwise. + +### GetMetroNameOk + +`func (o *VirtualDeviceDetailsResponse) GetMetroNameOk() (*string, bool)` + +GetMetroNameOk returns a tuple with the MetroName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroName + +`func (o *VirtualDeviceDetailsResponse) SetMetroName(v string)` + +SetMetroName sets MetroName field to given value. + +### HasMetroName + +`func (o *VirtualDeviceDetailsResponse) HasMetroName() bool` + +HasMetroName returns a boolean if a field has been set. + +### GetName + +`func (o *VirtualDeviceDetailsResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VirtualDeviceDetailsResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *VirtualDeviceDetailsResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VirtualDeviceDetailsResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNotifications + +`func (o *VirtualDeviceDetailsResponse) GetNotifications() []string` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *VirtualDeviceDetailsResponse) GetNotificationsOk() (*[]string, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *VirtualDeviceDetailsResponse) SetNotifications(v []string)` + +SetNotifications sets Notifications field to given value. + +### HasNotifications + +`func (o *VirtualDeviceDetailsResponse) HasNotifications() bool` + +HasNotifications returns a boolean if a field has been set. + +### GetPackageCode + +`func (o *VirtualDeviceDetailsResponse) GetPackageCode() string` + +GetPackageCode returns the PackageCode field if non-nil, zero value otherwise. + +### GetPackageCodeOk + +`func (o *VirtualDeviceDetailsResponse) GetPackageCodeOk() (*string, bool)` + +GetPackageCodeOk returns a tuple with the PackageCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCode + +`func (o *VirtualDeviceDetailsResponse) SetPackageCode(v string)` + +SetPackageCode sets PackageCode field to given value. + +### HasPackageCode + +`func (o *VirtualDeviceDetailsResponse) HasPackageCode() bool` + +HasPackageCode returns a boolean if a field has been set. + +### GetPackageName + +`func (o *VirtualDeviceDetailsResponse) GetPackageName() string` + +GetPackageName returns the PackageName field if non-nil, zero value otherwise. + +### GetPackageNameOk + +`func (o *VirtualDeviceDetailsResponse) GetPackageNameOk() (*string, bool)` + +GetPackageNameOk returns a tuple with the PackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageName + +`func (o *VirtualDeviceDetailsResponse) SetPackageName(v string)` + +SetPackageName sets PackageName field to given value. + +### HasPackageName + +`func (o *VirtualDeviceDetailsResponse) HasPackageName() bool` + +HasPackageName returns a boolean if a field has been set. + +### GetVersion + +`func (o *VirtualDeviceDetailsResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VirtualDeviceDetailsResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *VirtualDeviceDetailsResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *VirtualDeviceDetailsResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetPurchaseOrderNumber + +`func (o *VirtualDeviceDetailsResponse) GetPurchaseOrderNumber() string` + +GetPurchaseOrderNumber returns the PurchaseOrderNumber field if non-nil, zero value otherwise. + +### GetPurchaseOrderNumberOk + +`func (o *VirtualDeviceDetailsResponse) GetPurchaseOrderNumberOk() (*string, bool)` + +GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurchaseOrderNumber + +`func (o *VirtualDeviceDetailsResponse) SetPurchaseOrderNumber(v string)` + +SetPurchaseOrderNumber sets PurchaseOrderNumber field to given value. + +### HasPurchaseOrderNumber + +`func (o *VirtualDeviceDetailsResponse) HasPurchaseOrderNumber() bool` + +HasPurchaseOrderNumber returns a boolean if a field has been set. + +### GetRedundancyType + +`func (o *VirtualDeviceDetailsResponse) GetRedundancyType() string` + +GetRedundancyType returns the RedundancyType field if non-nil, zero value otherwise. + +### GetRedundancyTypeOk + +`func (o *VirtualDeviceDetailsResponse) GetRedundancyTypeOk() (*string, bool)` + +GetRedundancyTypeOk returns a tuple with the RedundancyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancyType + +`func (o *VirtualDeviceDetailsResponse) SetRedundancyType(v string)` + +SetRedundancyType sets RedundancyType field to given value. + +### HasRedundancyType + +`func (o *VirtualDeviceDetailsResponse) HasRedundancyType() bool` + +HasRedundancyType returns a boolean if a field has been set. + +### GetRedundantUuid + +`func (o *VirtualDeviceDetailsResponse) GetRedundantUuid() string` + +GetRedundantUuid returns the RedundantUuid field if non-nil, zero value otherwise. + +### GetRedundantUuidOk + +`func (o *VirtualDeviceDetailsResponse) GetRedundantUuidOk() (*string, bool)` + +GetRedundantUuidOk returns a tuple with the RedundantUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantUuid + +`func (o *VirtualDeviceDetailsResponse) SetRedundantUuid(v string)` + +SetRedundantUuid sets RedundantUuid field to given value. + +### HasRedundantUuid + +`func (o *VirtualDeviceDetailsResponse) HasRedundantUuid() bool` + +HasRedundantUuid returns a boolean if a field has been set. + +### GetConnectivity + +`func (o *VirtualDeviceDetailsResponse) GetConnectivity() string` + +GetConnectivity returns the Connectivity field if non-nil, zero value otherwise. + +### GetConnectivityOk + +`func (o *VirtualDeviceDetailsResponse) GetConnectivityOk() (*string, bool)` + +GetConnectivityOk returns a tuple with the Connectivity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectivity + +`func (o *VirtualDeviceDetailsResponse) SetConnectivity(v string)` + +SetConnectivity sets Connectivity field to given value. + +### HasConnectivity + +`func (o *VirtualDeviceDetailsResponse) HasConnectivity() bool` + +HasConnectivity returns a boolean if a field has been set. + +### GetSshIpAddress + +`func (o *VirtualDeviceDetailsResponse) GetSshIpAddress() string` + +GetSshIpAddress returns the SshIpAddress field if non-nil, zero value otherwise. + +### GetSshIpAddressOk + +`func (o *VirtualDeviceDetailsResponse) GetSshIpAddressOk() (*string, bool)` + +GetSshIpAddressOk returns a tuple with the SshIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshIpAddress + +`func (o *VirtualDeviceDetailsResponse) SetSshIpAddress(v string)` + +SetSshIpAddress sets SshIpAddress field to given value. + +### HasSshIpAddress + +`func (o *VirtualDeviceDetailsResponse) HasSshIpAddress() bool` + +HasSshIpAddress returns a boolean if a field has been set. + +### GetSshIpFqdn + +`func (o *VirtualDeviceDetailsResponse) GetSshIpFqdn() string` + +GetSshIpFqdn returns the SshIpFqdn field if non-nil, zero value otherwise. + +### GetSshIpFqdnOk + +`func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnOk() (*string, bool)` + +GetSshIpFqdnOk returns a tuple with the SshIpFqdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshIpFqdn + +`func (o *VirtualDeviceDetailsResponse) SetSshIpFqdn(v string)` + +SetSshIpFqdn sets SshIpFqdn field to given value. + +### HasSshIpFqdn + +`func (o *VirtualDeviceDetailsResponse) HasSshIpFqdn() bool` + +HasSshIpFqdn returns a boolean if a field has been set. + +### GetSshIpFqdnStatus + +`func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnStatus() string` + +GetSshIpFqdnStatus returns the SshIpFqdnStatus field if non-nil, zero value otherwise. + +### GetSshIpFqdnStatusOk + +`func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnStatusOk() (*string, bool)` + +GetSshIpFqdnStatusOk returns a tuple with the SshIpFqdnStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshIpFqdnStatus + +`func (o *VirtualDeviceDetailsResponse) SetSshIpFqdnStatus(v string)` + +SetSshIpFqdnStatus sets SshIpFqdnStatus field to given value. + +### HasSshIpFqdnStatus + +`func (o *VirtualDeviceDetailsResponse) HasSshIpFqdnStatus() bool` + +HasSshIpFqdnStatus returns a boolean if a field has been set. + +### GetStatus + +`func (o *VirtualDeviceDetailsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VirtualDeviceDetailsResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VirtualDeviceDetailsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VirtualDeviceDetailsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetThroughput + +`func (o *VirtualDeviceDetailsResponse) GetThroughput() int32` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *VirtualDeviceDetailsResponse) GetThroughputOk() (*int32, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *VirtualDeviceDetailsResponse) SetThroughput(v int32)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *VirtualDeviceDetailsResponse) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *VirtualDeviceDetailsResponse) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *VirtualDeviceDetailsResponse) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *VirtualDeviceDetailsResponse) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *VirtualDeviceDetailsResponse) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetCore + +`func (o *VirtualDeviceDetailsResponse) GetCore() CoresDisplayConfig` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *VirtualDeviceDetailsResponse) GetCoreOk() (*CoresDisplayConfig, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *VirtualDeviceDetailsResponse) SetCore(v CoresDisplayConfig)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *VirtualDeviceDetailsResponse) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetPricingDetails + +`func (o *VirtualDeviceDetailsResponse) GetPricingDetails() PricingSiebelConfig` + +GetPricingDetails returns the PricingDetails field if non-nil, zero value otherwise. + +### GetPricingDetailsOk + +`func (o *VirtualDeviceDetailsResponse) GetPricingDetailsOk() (*PricingSiebelConfig, bool)` + +GetPricingDetailsOk returns a tuple with the PricingDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPricingDetails + +`func (o *VirtualDeviceDetailsResponse) SetPricingDetails(v PricingSiebelConfig)` + +SetPricingDetails sets PricingDetails field to given value. + +### HasPricingDetails + +`func (o *VirtualDeviceDetailsResponse) HasPricingDetails() bool` + +HasPricingDetails returns a boolean if a field has been set. + +### GetInterfaceCount + +`func (o *VirtualDeviceDetailsResponse) GetInterfaceCount() int32` + +GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise. + +### GetInterfaceCountOk + +`func (o *VirtualDeviceDetailsResponse) GetInterfaceCountOk() (*int32, bool)` + +GetInterfaceCountOk returns a tuple with the InterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceCount + +`func (o *VirtualDeviceDetailsResponse) SetInterfaceCount(v int32)` + +SetInterfaceCount sets InterfaceCount field to given value. + +### HasInterfaceCount + +`func (o *VirtualDeviceDetailsResponse) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. + +### GetDeviceManagementType + +`func (o *VirtualDeviceDetailsResponse) GetDeviceManagementType() string` + +GetDeviceManagementType returns the DeviceManagementType field if non-nil, zero value otherwise. + +### GetDeviceManagementTypeOk + +`func (o *VirtualDeviceDetailsResponse) GetDeviceManagementTypeOk() (*string, bool)` + +GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceManagementType + +`func (o *VirtualDeviceDetailsResponse) SetDeviceManagementType(v string)` + +SetDeviceManagementType sets DeviceManagementType field to given value. + +### HasDeviceManagementType + +`func (o *VirtualDeviceDetailsResponse) HasDeviceManagementType() bool` + +HasDeviceManagementType returns a boolean if a field has been set. + +### GetUserPublicKey + +`func (o *VirtualDeviceDetailsResponse) GetUserPublicKey() UserPublicKeyConfig` + +GetUserPublicKey returns the UserPublicKey field if non-nil, zero value otherwise. + +### GetUserPublicKeyOk + +`func (o *VirtualDeviceDetailsResponse) GetUserPublicKeyOk() (*UserPublicKeyConfig, bool)` + +GetUserPublicKeyOk returns a tuple with the UserPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPublicKey + +`func (o *VirtualDeviceDetailsResponse) SetUserPublicKey(v UserPublicKeyConfig)` + +SetUserPublicKey sets UserPublicKey field to given value. + +### HasUserPublicKey + +`func (o *VirtualDeviceDetailsResponse) HasUserPublicKey() bool` + +HasUserPublicKey returns a boolean if a field has been set. + +### GetManagementIp + +`func (o *VirtualDeviceDetailsResponse) GetManagementIp() string` + +GetManagementIp returns the ManagementIp field if non-nil, zero value otherwise. + +### GetManagementIpOk + +`func (o *VirtualDeviceDetailsResponse) GetManagementIpOk() (*string, bool)` + +GetManagementIpOk returns a tuple with the ManagementIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementIp + +`func (o *VirtualDeviceDetailsResponse) SetManagementIp(v string)` + +SetManagementIp sets ManagementIp field to given value. + +### HasManagementIp + +`func (o *VirtualDeviceDetailsResponse) HasManagementIp() bool` + +HasManagementIp returns a boolean if a field has been set. + +### GetManagementGatewayIp + +`func (o *VirtualDeviceDetailsResponse) GetManagementGatewayIp() string` + +GetManagementGatewayIp returns the ManagementGatewayIp field if non-nil, zero value otherwise. + +### GetManagementGatewayIpOk + +`func (o *VirtualDeviceDetailsResponse) GetManagementGatewayIpOk() (*string, bool)` + +GetManagementGatewayIpOk returns a tuple with the ManagementGatewayIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementGatewayIp + +`func (o *VirtualDeviceDetailsResponse) SetManagementGatewayIp(v string)` + +SetManagementGatewayIp sets ManagementGatewayIp field to given value. + +### HasManagementGatewayIp + +`func (o *VirtualDeviceDetailsResponse) HasManagementGatewayIp() bool` + +HasManagementGatewayIp returns a boolean if a field has been set. + +### GetPublicIp + +`func (o *VirtualDeviceDetailsResponse) GetPublicIp() string` + +GetPublicIp returns the PublicIp field if non-nil, zero value otherwise. + +### GetPublicIpOk + +`func (o *VirtualDeviceDetailsResponse) GetPublicIpOk() (*string, bool)` + +GetPublicIpOk returns a tuple with the PublicIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicIp + +`func (o *VirtualDeviceDetailsResponse) SetPublicIp(v string)` + +SetPublicIp sets PublicIp field to given value. + +### HasPublicIp + +`func (o *VirtualDeviceDetailsResponse) HasPublicIp() bool` + +HasPublicIp returns a boolean if a field has been set. + +### GetPublicGatewayIp + +`func (o *VirtualDeviceDetailsResponse) GetPublicGatewayIp() string` + +GetPublicGatewayIp returns the PublicGatewayIp field if non-nil, zero value otherwise. + +### GetPublicGatewayIpOk + +`func (o *VirtualDeviceDetailsResponse) GetPublicGatewayIpOk() (*string, bool)` + +GetPublicGatewayIpOk returns a tuple with the PublicGatewayIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicGatewayIp + +`func (o *VirtualDeviceDetailsResponse) SetPublicGatewayIp(v string)` + +SetPublicGatewayIp sets PublicGatewayIp field to given value. + +### HasPublicGatewayIp + +`func (o *VirtualDeviceDetailsResponse) HasPublicGatewayIp() bool` + +HasPublicGatewayIp returns a boolean if a field has been set. + +### GetPrimaryDnsName + +`func (o *VirtualDeviceDetailsResponse) GetPrimaryDnsName() string` + +GetPrimaryDnsName returns the PrimaryDnsName field if non-nil, zero value otherwise. + +### GetPrimaryDnsNameOk + +`func (o *VirtualDeviceDetailsResponse) GetPrimaryDnsNameOk() (*string, bool)` + +GetPrimaryDnsNameOk returns a tuple with the PrimaryDnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryDnsName + +`func (o *VirtualDeviceDetailsResponse) SetPrimaryDnsName(v string)` + +SetPrimaryDnsName sets PrimaryDnsName field to given value. + +### HasPrimaryDnsName + +`func (o *VirtualDeviceDetailsResponse) HasPrimaryDnsName() bool` + +HasPrimaryDnsName returns a boolean if a field has been set. + +### GetSecondaryDnsName + +`func (o *VirtualDeviceDetailsResponse) GetSecondaryDnsName() string` + +GetSecondaryDnsName returns the SecondaryDnsName field if non-nil, zero value otherwise. + +### GetSecondaryDnsNameOk + +`func (o *VirtualDeviceDetailsResponse) GetSecondaryDnsNameOk() (*string, bool)` + +GetSecondaryDnsNameOk returns a tuple with the SecondaryDnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryDnsName + +`func (o *VirtualDeviceDetailsResponse) SetSecondaryDnsName(v string)` + +SetSecondaryDnsName sets SecondaryDnsName field to given value. + +### HasSecondaryDnsName + +`func (o *VirtualDeviceDetailsResponse) HasSecondaryDnsName() bool` + +HasSecondaryDnsName returns a boolean if a field has been set. + +### GetTermLength + +`func (o *VirtualDeviceDetailsResponse) GetTermLength() string` + +GetTermLength returns the TermLength field if non-nil, zero value otherwise. + +### GetTermLengthOk + +`func (o *VirtualDeviceDetailsResponse) GetTermLengthOk() (*string, bool)` + +GetTermLengthOk returns a tuple with the TermLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermLength + +`func (o *VirtualDeviceDetailsResponse) SetTermLength(v string)` + +SetTermLength sets TermLength field to given value. + +### HasTermLength + +`func (o *VirtualDeviceDetailsResponse) HasTermLength() bool` + +HasTermLength returns a boolean if a field has been set. + +### GetAdditionalBandwidth + +`func (o *VirtualDeviceDetailsResponse) GetAdditionalBandwidth() string` + +GetAdditionalBandwidth returns the AdditionalBandwidth field if non-nil, zero value otherwise. + +### GetAdditionalBandwidthOk + +`func (o *VirtualDeviceDetailsResponse) GetAdditionalBandwidthOk() (*string, bool)` + +GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalBandwidth + +`func (o *VirtualDeviceDetailsResponse) SetAdditionalBandwidth(v string)` + +SetAdditionalBandwidth sets AdditionalBandwidth field to given value. + +### HasAdditionalBandwidth + +`func (o *VirtualDeviceDetailsResponse) HasAdditionalBandwidth() bool` + +HasAdditionalBandwidth returns a boolean if a field has been set. + +### GetSiteId + +`func (o *VirtualDeviceDetailsResponse) GetSiteId() string` + +GetSiteId returns the SiteId field if non-nil, zero value otherwise. + +### GetSiteIdOk + +`func (o *VirtualDeviceDetailsResponse) GetSiteIdOk() (*string, bool)` + +GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteId + +`func (o *VirtualDeviceDetailsResponse) SetSiteId(v string)` + +SetSiteId sets SiteId field to given value. + +### HasSiteId + +`func (o *VirtualDeviceDetailsResponse) HasSiteId() bool` + +HasSiteId returns a boolean if a field has been set. + +### GetSystemIpAddress + +`func (o *VirtualDeviceDetailsResponse) GetSystemIpAddress() string` + +GetSystemIpAddress returns the SystemIpAddress field if non-nil, zero value otherwise. + +### GetSystemIpAddressOk + +`func (o *VirtualDeviceDetailsResponse) GetSystemIpAddressOk() (*string, bool)` + +GetSystemIpAddressOk returns a tuple with the SystemIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemIpAddress + +`func (o *VirtualDeviceDetailsResponse) SetSystemIpAddress(v string)` + +SetSystemIpAddress sets SystemIpAddress field to given value. + +### HasSystemIpAddress + +`func (o *VirtualDeviceDetailsResponse) HasSystemIpAddress() bool` + +HasSystemIpAddress returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *VirtualDeviceDetailsResponse) GetVendorConfig() VendorConfig` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *VirtualDeviceDetailsResponse) GetVendorConfigOk() (*VendorConfig, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *VirtualDeviceDetailsResponse) SetVendorConfig(v VendorConfig)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *VirtualDeviceDetailsResponse) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + +### GetInterfaces + +`func (o *VirtualDeviceDetailsResponse) GetInterfaces() []InterfaceBasicInfoResponse` + +GetInterfaces returns the Interfaces field if non-nil, zero value otherwise. + +### GetInterfacesOk + +`func (o *VirtualDeviceDetailsResponse) GetInterfacesOk() (*[]InterfaceBasicInfoResponse, bool)` + +GetInterfacesOk returns a tuple with the Interfaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaces + +`func (o *VirtualDeviceDetailsResponse) SetInterfaces(v []InterfaceBasicInfoResponse)` + +SetInterfaces sets Interfaces field to given value. + +### HasInterfaces + +`func (o *VirtualDeviceDetailsResponse) HasInterfaces() bool` + +HasInterfaces returns a boolean if a field has been set. + +### GetAsn + +`func (o *VirtualDeviceDetailsResponse) GetAsn() float32` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *VirtualDeviceDetailsResponse) GetAsnOk() (*float32, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *VirtualDeviceDetailsResponse) SetAsn(v float32)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *VirtualDeviceDetailsResponse) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetChannelPartner + +`func (o *VirtualDeviceDetailsResponse) GetChannelPartner() string` + +GetChannelPartner returns the ChannelPartner field if non-nil, zero value otherwise. + +### GetChannelPartnerOk + +`func (o *VirtualDeviceDetailsResponse) GetChannelPartnerOk() (*string, bool)` + +GetChannelPartnerOk returns a tuple with the ChannelPartner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelPartner + +`func (o *VirtualDeviceDetailsResponse) SetChannelPartner(v string)` + +SetChannelPartner sets ChannelPartner field to given value. + +### HasChannelPartner + +`func (o *VirtualDeviceDetailsResponse) HasChannelPartner() bool` + +HasChannelPartner returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDto.md b/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDto.md new file mode 100644 index 00000000..6775049b --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDto.md @@ -0,0 +1,212 @@ +# VirtualDeviceInternalPatchRequestDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Core** | Pointer to **int32** | Use this field to resize your device. When you call this API for device resizing, you cannot change other fields simultaneously. | [optional] +**Notifications** | Pointer to **[]string** | | [optional] +**TermLength** | Pointer to **string** | Term length in months. Please keep in mind that you cannot downgrade the term length. | [optional] +**VirtualDeviceName** | Pointer to **string** | Virtual device name. This should be a minimum of 3 and a maximum of 50 characters. | [optional] +**ClusterName** | Pointer to **string** | Cluster name. This should be a minimum of 3 and a maximum of 50 characters. | [optional] +**Status** | Pointer to **string** | Status of the device. Use this field to update the license status of a device. | [optional] +**VendorConfig** | Pointer to [**VirtualDeviceInternalPatchRequestDtoVendorConfig**](VirtualDeviceInternalPatchRequestDtoVendorConfig.md) | | [optional] + +## Methods + +### NewVirtualDeviceInternalPatchRequestDto + +`func NewVirtualDeviceInternalPatchRequestDto() *VirtualDeviceInternalPatchRequestDto` + +NewVirtualDeviceInternalPatchRequestDto instantiates a new VirtualDeviceInternalPatchRequestDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceInternalPatchRequestDtoWithDefaults + +`func NewVirtualDeviceInternalPatchRequestDtoWithDefaults() *VirtualDeviceInternalPatchRequestDto` + +NewVirtualDeviceInternalPatchRequestDtoWithDefaults instantiates a new VirtualDeviceInternalPatchRequestDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCore + +`func (o *VirtualDeviceInternalPatchRequestDto) GetCore() int32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetCoreOk() (*int32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *VirtualDeviceInternalPatchRequestDto) SetCore(v int32)` + +SetCore sets Core field to given value. + +### HasCore + +`func (o *VirtualDeviceInternalPatchRequestDto) HasCore() bool` + +HasCore returns a boolean if a field has been set. + +### GetNotifications + +`func (o *VirtualDeviceInternalPatchRequestDto) GetNotifications() []string` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetNotificationsOk() (*[]string, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *VirtualDeviceInternalPatchRequestDto) SetNotifications(v []string)` + +SetNotifications sets Notifications field to given value. + +### HasNotifications + +`func (o *VirtualDeviceInternalPatchRequestDto) HasNotifications() bool` + +HasNotifications returns a boolean if a field has been set. + +### GetTermLength + +`func (o *VirtualDeviceInternalPatchRequestDto) GetTermLength() string` + +GetTermLength returns the TermLength field if non-nil, zero value otherwise. + +### GetTermLengthOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetTermLengthOk() (*string, bool)` + +GetTermLengthOk returns a tuple with the TermLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermLength + +`func (o *VirtualDeviceInternalPatchRequestDto) SetTermLength(v string)` + +SetTermLength sets TermLength field to given value. + +### HasTermLength + +`func (o *VirtualDeviceInternalPatchRequestDto) HasTermLength() bool` + +HasTermLength returns a boolean if a field has been set. + +### GetVirtualDeviceName + +`func (o *VirtualDeviceInternalPatchRequestDto) GetVirtualDeviceName() string` + +GetVirtualDeviceName returns the VirtualDeviceName field if non-nil, zero value otherwise. + +### GetVirtualDeviceNameOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetVirtualDeviceNameOk() (*string, bool)` + +GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceName + +`func (o *VirtualDeviceInternalPatchRequestDto) SetVirtualDeviceName(v string)` + +SetVirtualDeviceName sets VirtualDeviceName field to given value. + +### HasVirtualDeviceName + +`func (o *VirtualDeviceInternalPatchRequestDto) HasVirtualDeviceName() bool` + +HasVirtualDeviceName returns a boolean if a field has been set. + +### GetClusterName + +`func (o *VirtualDeviceInternalPatchRequestDto) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *VirtualDeviceInternalPatchRequestDto) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + +### HasClusterName + +`func (o *VirtualDeviceInternalPatchRequestDto) HasClusterName() bool` + +HasClusterName returns a boolean if a field has been set. + +### GetStatus + +`func (o *VirtualDeviceInternalPatchRequestDto) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VirtualDeviceInternalPatchRequestDto) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VirtualDeviceInternalPatchRequestDto) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *VirtualDeviceInternalPatchRequestDto) GetVendorConfig() VirtualDeviceInternalPatchRequestDtoVendorConfig` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *VirtualDeviceInternalPatchRequestDto) GetVendorConfigOk() (*VirtualDeviceInternalPatchRequestDtoVendorConfig, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *VirtualDeviceInternalPatchRequestDto) SetVendorConfig(v VirtualDeviceInternalPatchRequestDtoVendorConfig)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *VirtualDeviceInternalPatchRequestDto) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDtoVendorConfig.md b/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDtoVendorConfig.md new file mode 100644 index 00000000..8ca7ba97 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceInternalPatchRequestDtoVendorConfig.md @@ -0,0 +1,56 @@ +# VirtualDeviceInternalPatchRequestDtoVendorConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisablePassword** | Pointer to **bool** | Disable device password. | [optional] + +## Methods + +### NewVirtualDeviceInternalPatchRequestDtoVendorConfig + +`func NewVirtualDeviceInternalPatchRequestDtoVendorConfig() *VirtualDeviceInternalPatchRequestDtoVendorConfig` + +NewVirtualDeviceInternalPatchRequestDtoVendorConfig instantiates a new VirtualDeviceInternalPatchRequestDtoVendorConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceInternalPatchRequestDtoVendorConfigWithDefaults + +`func NewVirtualDeviceInternalPatchRequestDtoVendorConfigWithDefaults() *VirtualDeviceInternalPatchRequestDtoVendorConfig` + +NewVirtualDeviceInternalPatchRequestDtoVendorConfigWithDefaults instantiates a new VirtualDeviceInternalPatchRequestDtoVendorConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisablePassword + +`func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) GetDisablePassword() bool` + +GetDisablePassword returns the DisablePassword field if non-nil, zero value otherwise. + +### GetDisablePasswordOk + +`func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) GetDisablePasswordOk() (*bool, bool)` + +GetDisablePasswordOk returns a tuple with the DisablePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisablePassword + +`func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) SetDisablePassword(v bool)` + +SetDisablePassword sets DisablePassword field to given value. + +### HasDisablePassword + +`func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) HasDisablePassword() bool` + +HasDisablePassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDevicePageResponse.md b/services/networkedgev1/docs/VirtualDevicePageResponse.md new file mode 100644 index 00000000..15cbb28d --- /dev/null +++ b/services/networkedgev1/docs/VirtualDevicePageResponse.md @@ -0,0 +1,82 @@ +# VirtualDevicePageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]VirtualDeviceDetailsResponse**](VirtualDeviceDetailsResponse.md) | | [optional] + +## Methods + +### NewVirtualDevicePageResponse + +`func NewVirtualDevicePageResponse() *VirtualDevicePageResponse` + +NewVirtualDevicePageResponse instantiates a new VirtualDevicePageResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDevicePageResponseWithDefaults + +`func NewVirtualDevicePageResponseWithDefaults() *VirtualDevicePageResponse` + +NewVirtualDevicePageResponseWithDefaults instantiates a new VirtualDevicePageResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *VirtualDevicePageResponse) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *VirtualDevicePageResponse) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *VirtualDevicePageResponse) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *VirtualDevicePageResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *VirtualDevicePageResponse) GetData() []VirtualDeviceDetailsResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *VirtualDevicePageResponse) GetDataOk() (*[]VirtualDeviceDetailsResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *VirtualDevicePageResponse) SetData(v []VirtualDeviceDetailsResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *VirtualDevicePageResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceRequest.md b/services/networkedgev1/docs/VirtualDeviceRequest.md new file mode 100644 index 00000000..59ccdda7 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceRequest.md @@ -0,0 +1,1025 @@ +# VirtualDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | Account number. Either an account number or accountReferenceId is required. | [optional] +**AccountReferenceId** | Pointer to **string** | AccountReferenceId. This is a temporary ID that can be used to create a device when the account status is still pending, not active. Either an account number or accountReferenceId is required. | [optional] +**Version** | **string** | Version. | +**DeviceTypeCode** | **string** | Virtual device type (device type code) | +**HostNamePrefix** | Pointer to **string** | Host name prefix for identification. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14 characters; Aruba 2-24 characters. | [optional] +**AgreeOrderTerms** | **bool** | To create a device, you must accept the order terms. Call Get Order Terms to review the details. If you are creating an Equinix-Configured device, read your vendor's terms by calling Get Vendor Terms. | +**LicenseMode** | **string** | License type. One of SUB (Subscription) or BYOL (Bring Your Own License) | +**LicenseCategory** | Pointer to **string** | This field is required for Fortinet devices. Select \"flex\" to enter a token and \"classic\" if you want to upload a license file. The actual token or license is not required at the time of device creation for Fortinet devices. | [optional] +**LicenseFileId** | Pointer to **string** | For Juniper devices you need to provide a licenseFileId if you want to BYOL (Bring Your Own License). You get a licenseFileId when you upload a license file by calling license upload API (Upload a license file before creating a virtual device). For Cisco devices, you do not need to provide a licenseFileId at the time of device creation. Once the device is provisioned, you can get the deviceSerialNo by calling Get virtual device {uuid} API. With the deviceSerialNo you can generate a license file on Cisco site. Afterward, you can upload the license file by calling license upload API (Upload a license file after creating a virtual device). | [optional] +**LicenseToken** | Pointer to **string** | In case you want to BYOL (Bring Your Own License) for a Palo Alto device, you must provide a license token. This field must have 8 alphanumeric characters. | [optional] +**Termlength** | Pointer to **string** | Term length in months. | [optional] +**MetroCode** | **string** | Metro code | +**PackageCode** | Pointer to **string** | Software package code | [optional] +**SshUsers** | Pointer to [**[]SshUsers**](SshUsers.md) | An array of sshUsernames and passwords | [optional] +**Throughput** | Pointer to **int32** | Device throughput. This is required for Juniper devices. | [optional] +**ThroughputUnit** | Pointer to **string** | Throughput unit. This is required for Juniper devices. | [optional] +**VirtualDeviceName** | **string** | Virtual device name for identification. This should be minimum 3 and maximum 50 characters long. | +**OrderingContact** | Pointer to **string** | | [optional] +**Notifications** | **[]string** | Email addresses for notification. We need a minimum of 1 and no more than 5 email addresses. | +**AclDetails** | Pointer to [**[]ACLDetails**](ACLDetails.md) | An array of ACLs | [optional] +**AdditionalBandwidth** | Pointer to **int32** | Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. | [optional] +**DeviceManagementType** | **string** | Whether the device is SELF-CONFIGURED or EQUINIX-CONFIGURED | +**Core** | **int32** | | +**InterfaceCount** | Pointer to **int32** | | [optional] +**SiteId** | Pointer to **string** | | [optional] +**SystemIpAddress** | Pointer to **string** | | [optional] +**VendorConfig** | Pointer to [**VendorConfig**](VendorConfig.md) | | [optional] +**UserPublicKey** | Pointer to [**UserPublicKeyRequest**](UserPublicKeyRequest.md) | | [optional] +**IpType** | Pointer to **string** | If you are creating a CSRSDWAN, you may specify the ipType, either DHCP or Static. If you do not specify a value, Equinix will default to Static. | [optional] +**SshInterfaceId** | Pointer to **string** | You may specify any available interface on the device as the sshInterfaceId. This field is only applicable to self-configured devices. | [optional] +**SmartLicenseUrl** | Pointer to **string** | License URL. This field is only relevant for Ciso ASAv devices. | [optional] +**DiverseFromDeviceUuid** | Pointer to **string** | Unique ID of an existing device. Use this field to let Equinix know if you want your new device to be in a different location from any existing virtual device. This field is only meaningful for single devices. | [optional] +**ClusterDetails** | Pointer to [**ClusterConfig**](ClusterConfig.md) | | [optional] +**PrimaryDeviceUuid** | Pointer to **string** | This field is mandatory if you are using this API to add a secondary device to an existing primary device. | [optional] +**Connectivity** | Pointer to **string** | Specifies the connectivity on the device. You can have INTERNET-ACCESS, PRIVATE, or INTERNET-ACCESS-WITH-PRVT-MGMT. Private devices don't have ACLs or bandwidth. | [optional] +**ChannelPartner** | Pointer to **string** | The name of the channel partner. | [optional] +**CloudInitFileId** | Pointer to **string** | The Id of a previously uploaded license or cloud_init file. | [optional] +**PurchaseOrderNumber** | Pointer to **string** | Purchase Order information will be included in your order confirmation email. | [optional] +**OrderReference** | Pointer to **string** | Enter a short name/number to identify this order on the invoice. | [optional] +**Secondary** | Pointer to [**VirtualDevicHARequest**](VirtualDevicHARequest.md) | | [optional] + +## Methods + +### NewVirtualDeviceRequest + +`func NewVirtualDeviceRequest(version string, deviceTypeCode string, agreeOrderTerms bool, licenseMode string, metroCode string, virtualDeviceName string, notifications []string, deviceManagementType string, core int32, ) *VirtualDeviceRequest` + +NewVirtualDeviceRequest instantiates a new VirtualDeviceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceRequestWithDefaults + +`func NewVirtualDeviceRequestWithDefaults() *VirtualDeviceRequest` + +NewVirtualDeviceRequestWithDefaults instantiates a new VirtualDeviceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *VirtualDeviceRequest) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *VirtualDeviceRequest) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *VirtualDeviceRequest) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *VirtualDeviceRequest) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountReferenceId + +`func (o *VirtualDeviceRequest) GetAccountReferenceId() string` + +GetAccountReferenceId returns the AccountReferenceId field if non-nil, zero value otherwise. + +### GetAccountReferenceIdOk + +`func (o *VirtualDeviceRequest) GetAccountReferenceIdOk() (*string, bool)` + +GetAccountReferenceIdOk returns a tuple with the AccountReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountReferenceId + +`func (o *VirtualDeviceRequest) SetAccountReferenceId(v string)` + +SetAccountReferenceId sets AccountReferenceId field to given value. + +### HasAccountReferenceId + +`func (o *VirtualDeviceRequest) HasAccountReferenceId() bool` + +HasAccountReferenceId returns a boolean if a field has been set. + +### GetVersion + +`func (o *VirtualDeviceRequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VirtualDeviceRequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *VirtualDeviceRequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetDeviceTypeCode + +`func (o *VirtualDeviceRequest) GetDeviceTypeCode() string` + +GetDeviceTypeCode returns the DeviceTypeCode field if non-nil, zero value otherwise. + +### GetDeviceTypeCodeOk + +`func (o *VirtualDeviceRequest) GetDeviceTypeCodeOk() (*string, bool)` + +GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCode + +`func (o *VirtualDeviceRequest) SetDeviceTypeCode(v string)` + +SetDeviceTypeCode sets DeviceTypeCode field to given value. + + +### GetHostNamePrefix + +`func (o *VirtualDeviceRequest) GetHostNamePrefix() string` + +GetHostNamePrefix returns the HostNamePrefix field if non-nil, zero value otherwise. + +### GetHostNamePrefixOk + +`func (o *VirtualDeviceRequest) GetHostNamePrefixOk() (*string, bool)` + +GetHostNamePrefixOk returns a tuple with the HostNamePrefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostNamePrefix + +`func (o *VirtualDeviceRequest) SetHostNamePrefix(v string)` + +SetHostNamePrefix sets HostNamePrefix field to given value. + +### HasHostNamePrefix + +`func (o *VirtualDeviceRequest) HasHostNamePrefix() bool` + +HasHostNamePrefix returns a boolean if a field has been set. + +### GetAgreeOrderTerms + +`func (o *VirtualDeviceRequest) GetAgreeOrderTerms() bool` + +GetAgreeOrderTerms returns the AgreeOrderTerms field if non-nil, zero value otherwise. + +### GetAgreeOrderTermsOk + +`func (o *VirtualDeviceRequest) GetAgreeOrderTermsOk() (*bool, bool)` + +GetAgreeOrderTermsOk returns a tuple with the AgreeOrderTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgreeOrderTerms + +`func (o *VirtualDeviceRequest) SetAgreeOrderTerms(v bool)` + +SetAgreeOrderTerms sets AgreeOrderTerms field to given value. + + +### GetLicenseMode + +`func (o *VirtualDeviceRequest) GetLicenseMode() string` + +GetLicenseMode returns the LicenseMode field if non-nil, zero value otherwise. + +### GetLicenseModeOk + +`func (o *VirtualDeviceRequest) GetLicenseModeOk() (*string, bool)` + +GetLicenseModeOk returns a tuple with the LicenseMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseMode + +`func (o *VirtualDeviceRequest) SetLicenseMode(v string)` + +SetLicenseMode sets LicenseMode field to given value. + + +### GetLicenseCategory + +`func (o *VirtualDeviceRequest) GetLicenseCategory() string` + +GetLicenseCategory returns the LicenseCategory field if non-nil, zero value otherwise. + +### GetLicenseCategoryOk + +`func (o *VirtualDeviceRequest) GetLicenseCategoryOk() (*string, bool)` + +GetLicenseCategoryOk returns a tuple with the LicenseCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseCategory + +`func (o *VirtualDeviceRequest) SetLicenseCategory(v string)` + +SetLicenseCategory sets LicenseCategory field to given value. + +### HasLicenseCategory + +`func (o *VirtualDeviceRequest) HasLicenseCategory() bool` + +HasLicenseCategory returns a boolean if a field has been set. + +### GetLicenseFileId + +`func (o *VirtualDeviceRequest) GetLicenseFileId() string` + +GetLicenseFileId returns the LicenseFileId field if non-nil, zero value otherwise. + +### GetLicenseFileIdOk + +`func (o *VirtualDeviceRequest) GetLicenseFileIdOk() (*string, bool)` + +GetLicenseFileIdOk returns a tuple with the LicenseFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseFileId + +`func (o *VirtualDeviceRequest) SetLicenseFileId(v string)` + +SetLicenseFileId sets LicenseFileId field to given value. + +### HasLicenseFileId + +`func (o *VirtualDeviceRequest) HasLicenseFileId() bool` + +HasLicenseFileId returns a boolean if a field has been set. + +### GetLicenseToken + +`func (o *VirtualDeviceRequest) GetLicenseToken() string` + +GetLicenseToken returns the LicenseToken field if non-nil, zero value otherwise. + +### GetLicenseTokenOk + +`func (o *VirtualDeviceRequest) GetLicenseTokenOk() (*string, bool)` + +GetLicenseTokenOk returns a tuple with the LicenseToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseToken + +`func (o *VirtualDeviceRequest) SetLicenseToken(v string)` + +SetLicenseToken sets LicenseToken field to given value. + +### HasLicenseToken + +`func (o *VirtualDeviceRequest) HasLicenseToken() bool` + +HasLicenseToken returns a boolean if a field has been set. + +### GetTermlength + +`func (o *VirtualDeviceRequest) GetTermlength() string` + +GetTermlength returns the Termlength field if non-nil, zero value otherwise. + +### GetTermlengthOk + +`func (o *VirtualDeviceRequest) GetTermlengthOk() (*string, bool)` + +GetTermlengthOk returns a tuple with the Termlength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermlength + +`func (o *VirtualDeviceRequest) SetTermlength(v string)` + +SetTermlength sets Termlength field to given value. + +### HasTermlength + +`func (o *VirtualDeviceRequest) HasTermlength() bool` + +HasTermlength returns a boolean if a field has been set. + +### GetMetroCode + +`func (o *VirtualDeviceRequest) GetMetroCode() string` + +GetMetroCode returns the MetroCode field if non-nil, zero value otherwise. + +### GetMetroCodeOk + +`func (o *VirtualDeviceRequest) GetMetroCodeOk() (*string, bool)` + +GetMetroCodeOk returns a tuple with the MetroCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroCode + +`func (o *VirtualDeviceRequest) SetMetroCode(v string)` + +SetMetroCode sets MetroCode field to given value. + + +### GetPackageCode + +`func (o *VirtualDeviceRequest) GetPackageCode() string` + +GetPackageCode returns the PackageCode field if non-nil, zero value otherwise. + +### GetPackageCodeOk + +`func (o *VirtualDeviceRequest) GetPackageCodeOk() (*string, bool)` + +GetPackageCodeOk returns a tuple with the PackageCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageCode + +`func (o *VirtualDeviceRequest) SetPackageCode(v string)` + +SetPackageCode sets PackageCode field to given value. + +### HasPackageCode + +`func (o *VirtualDeviceRequest) HasPackageCode() bool` + +HasPackageCode returns a boolean if a field has been set. + +### GetSshUsers + +`func (o *VirtualDeviceRequest) GetSshUsers() []SshUsers` + +GetSshUsers returns the SshUsers field if non-nil, zero value otherwise. + +### GetSshUsersOk + +`func (o *VirtualDeviceRequest) GetSshUsersOk() (*[]SshUsers, bool)` + +GetSshUsersOk returns a tuple with the SshUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshUsers + +`func (o *VirtualDeviceRequest) SetSshUsers(v []SshUsers)` + +SetSshUsers sets SshUsers field to given value. + +### HasSshUsers + +`func (o *VirtualDeviceRequest) HasSshUsers() bool` + +HasSshUsers returns a boolean if a field has been set. + +### GetThroughput + +`func (o *VirtualDeviceRequest) GetThroughput() int32` + +GetThroughput returns the Throughput field if non-nil, zero value otherwise. + +### GetThroughputOk + +`func (o *VirtualDeviceRequest) GetThroughputOk() (*int32, bool)` + +GetThroughputOk returns a tuple with the Throughput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughput + +`func (o *VirtualDeviceRequest) SetThroughput(v int32)` + +SetThroughput sets Throughput field to given value. + +### HasThroughput + +`func (o *VirtualDeviceRequest) HasThroughput() bool` + +HasThroughput returns a boolean if a field has been set. + +### GetThroughputUnit + +`func (o *VirtualDeviceRequest) GetThroughputUnit() string` + +GetThroughputUnit returns the ThroughputUnit field if non-nil, zero value otherwise. + +### GetThroughputUnitOk + +`func (o *VirtualDeviceRequest) GetThroughputUnitOk() (*string, bool)` + +GetThroughputUnitOk returns a tuple with the ThroughputUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThroughputUnit + +`func (o *VirtualDeviceRequest) SetThroughputUnit(v string)` + +SetThroughputUnit sets ThroughputUnit field to given value. + +### HasThroughputUnit + +`func (o *VirtualDeviceRequest) HasThroughputUnit() bool` + +HasThroughputUnit returns a boolean if a field has been set. + +### GetVirtualDeviceName + +`func (o *VirtualDeviceRequest) GetVirtualDeviceName() string` + +GetVirtualDeviceName returns the VirtualDeviceName field if non-nil, zero value otherwise. + +### GetVirtualDeviceNameOk + +`func (o *VirtualDeviceRequest) GetVirtualDeviceNameOk() (*string, bool)` + +GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceName + +`func (o *VirtualDeviceRequest) SetVirtualDeviceName(v string)` + +SetVirtualDeviceName sets VirtualDeviceName field to given value. + + +### GetOrderingContact + +`func (o *VirtualDeviceRequest) GetOrderingContact() string` + +GetOrderingContact returns the OrderingContact field if non-nil, zero value otherwise. + +### GetOrderingContactOk + +`func (o *VirtualDeviceRequest) GetOrderingContactOk() (*string, bool)` + +GetOrderingContactOk returns a tuple with the OrderingContact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderingContact + +`func (o *VirtualDeviceRequest) SetOrderingContact(v string)` + +SetOrderingContact sets OrderingContact field to given value. + +### HasOrderingContact + +`func (o *VirtualDeviceRequest) HasOrderingContact() bool` + +HasOrderingContact returns a boolean if a field has been set. + +### GetNotifications + +`func (o *VirtualDeviceRequest) GetNotifications() []string` + +GetNotifications returns the Notifications field if non-nil, zero value otherwise. + +### GetNotificationsOk + +`func (o *VirtualDeviceRequest) GetNotificationsOk() (*[]string, bool)` + +GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotifications + +`func (o *VirtualDeviceRequest) SetNotifications(v []string)` + +SetNotifications sets Notifications field to given value. + + +### GetAclDetails + +`func (o *VirtualDeviceRequest) GetAclDetails() []ACLDetails` + +GetAclDetails returns the AclDetails field if non-nil, zero value otherwise. + +### GetAclDetailsOk + +`func (o *VirtualDeviceRequest) GetAclDetailsOk() (*[]ACLDetails, bool)` + +GetAclDetailsOk returns a tuple with the AclDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAclDetails + +`func (o *VirtualDeviceRequest) SetAclDetails(v []ACLDetails)` + +SetAclDetails sets AclDetails field to given value. + +### HasAclDetails + +`func (o *VirtualDeviceRequest) HasAclDetails() bool` + +HasAclDetails returns a boolean if a field has been set. + +### GetAdditionalBandwidth + +`func (o *VirtualDeviceRequest) GetAdditionalBandwidth() int32` + +GetAdditionalBandwidth returns the AdditionalBandwidth field if non-nil, zero value otherwise. + +### GetAdditionalBandwidthOk + +`func (o *VirtualDeviceRequest) GetAdditionalBandwidthOk() (*int32, bool)` + +GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalBandwidth + +`func (o *VirtualDeviceRequest) SetAdditionalBandwidth(v int32)` + +SetAdditionalBandwidth sets AdditionalBandwidth field to given value. + +### HasAdditionalBandwidth + +`func (o *VirtualDeviceRequest) HasAdditionalBandwidth() bool` + +HasAdditionalBandwidth returns a boolean if a field has been set. + +### GetDeviceManagementType + +`func (o *VirtualDeviceRequest) GetDeviceManagementType() string` + +GetDeviceManagementType returns the DeviceManagementType field if non-nil, zero value otherwise. + +### GetDeviceManagementTypeOk + +`func (o *VirtualDeviceRequest) GetDeviceManagementTypeOk() (*string, bool)` + +GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceManagementType + +`func (o *VirtualDeviceRequest) SetDeviceManagementType(v string)` + +SetDeviceManagementType sets DeviceManagementType field to given value. + + +### GetCore + +`func (o *VirtualDeviceRequest) GetCore() int32` + +GetCore returns the Core field if non-nil, zero value otherwise. + +### GetCoreOk + +`func (o *VirtualDeviceRequest) GetCoreOk() (*int32, bool)` + +GetCoreOk returns a tuple with the Core field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCore + +`func (o *VirtualDeviceRequest) SetCore(v int32)` + +SetCore sets Core field to given value. + + +### GetInterfaceCount + +`func (o *VirtualDeviceRequest) GetInterfaceCount() int32` + +GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise. + +### GetInterfaceCountOk + +`func (o *VirtualDeviceRequest) GetInterfaceCountOk() (*int32, bool)` + +GetInterfaceCountOk returns a tuple with the InterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceCount + +`func (o *VirtualDeviceRequest) SetInterfaceCount(v int32)` + +SetInterfaceCount sets InterfaceCount field to given value. + +### HasInterfaceCount + +`func (o *VirtualDeviceRequest) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. + +### GetSiteId + +`func (o *VirtualDeviceRequest) GetSiteId() string` + +GetSiteId returns the SiteId field if non-nil, zero value otherwise. + +### GetSiteIdOk + +`func (o *VirtualDeviceRequest) GetSiteIdOk() (*string, bool)` + +GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteId + +`func (o *VirtualDeviceRequest) SetSiteId(v string)` + +SetSiteId sets SiteId field to given value. + +### HasSiteId + +`func (o *VirtualDeviceRequest) HasSiteId() bool` + +HasSiteId returns a boolean if a field has been set. + +### GetSystemIpAddress + +`func (o *VirtualDeviceRequest) GetSystemIpAddress() string` + +GetSystemIpAddress returns the SystemIpAddress field if non-nil, zero value otherwise. + +### GetSystemIpAddressOk + +`func (o *VirtualDeviceRequest) GetSystemIpAddressOk() (*string, bool)` + +GetSystemIpAddressOk returns a tuple with the SystemIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemIpAddress + +`func (o *VirtualDeviceRequest) SetSystemIpAddress(v string)` + +SetSystemIpAddress sets SystemIpAddress field to given value. + +### HasSystemIpAddress + +`func (o *VirtualDeviceRequest) HasSystemIpAddress() bool` + +HasSystemIpAddress returns a boolean if a field has been set. + +### GetVendorConfig + +`func (o *VirtualDeviceRequest) GetVendorConfig() VendorConfig` + +GetVendorConfig returns the VendorConfig field if non-nil, zero value otherwise. + +### GetVendorConfigOk + +`func (o *VirtualDeviceRequest) GetVendorConfigOk() (*VendorConfig, bool)` + +GetVendorConfigOk returns a tuple with the VendorConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorConfig + +`func (o *VirtualDeviceRequest) SetVendorConfig(v VendorConfig)` + +SetVendorConfig sets VendorConfig field to given value. + +### HasVendorConfig + +`func (o *VirtualDeviceRequest) HasVendorConfig() bool` + +HasVendorConfig returns a boolean if a field has been set. + +### GetUserPublicKey + +`func (o *VirtualDeviceRequest) GetUserPublicKey() UserPublicKeyRequest` + +GetUserPublicKey returns the UserPublicKey field if non-nil, zero value otherwise. + +### GetUserPublicKeyOk + +`func (o *VirtualDeviceRequest) GetUserPublicKeyOk() (*UserPublicKeyRequest, bool)` + +GetUserPublicKeyOk returns a tuple with the UserPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPublicKey + +`func (o *VirtualDeviceRequest) SetUserPublicKey(v UserPublicKeyRequest)` + +SetUserPublicKey sets UserPublicKey field to given value. + +### HasUserPublicKey + +`func (o *VirtualDeviceRequest) HasUserPublicKey() bool` + +HasUserPublicKey returns a boolean if a field has been set. + +### GetIpType + +`func (o *VirtualDeviceRequest) GetIpType() string` + +GetIpType returns the IpType field if non-nil, zero value otherwise. + +### GetIpTypeOk + +`func (o *VirtualDeviceRequest) GetIpTypeOk() (*string, bool)` + +GetIpTypeOk returns a tuple with the IpType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpType + +`func (o *VirtualDeviceRequest) SetIpType(v string)` + +SetIpType sets IpType field to given value. + +### HasIpType + +`func (o *VirtualDeviceRequest) HasIpType() bool` + +HasIpType returns a boolean if a field has been set. + +### GetSshInterfaceId + +`func (o *VirtualDeviceRequest) GetSshInterfaceId() string` + +GetSshInterfaceId returns the SshInterfaceId field if non-nil, zero value otherwise. + +### GetSshInterfaceIdOk + +`func (o *VirtualDeviceRequest) GetSshInterfaceIdOk() (*string, bool)` + +GetSshInterfaceIdOk returns a tuple with the SshInterfaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSshInterfaceId + +`func (o *VirtualDeviceRequest) SetSshInterfaceId(v string)` + +SetSshInterfaceId sets SshInterfaceId field to given value. + +### HasSshInterfaceId + +`func (o *VirtualDeviceRequest) HasSshInterfaceId() bool` + +HasSshInterfaceId returns a boolean if a field has been set. + +### GetSmartLicenseUrl + +`func (o *VirtualDeviceRequest) GetSmartLicenseUrl() string` + +GetSmartLicenseUrl returns the SmartLicenseUrl field if non-nil, zero value otherwise. + +### GetSmartLicenseUrlOk + +`func (o *VirtualDeviceRequest) GetSmartLicenseUrlOk() (*string, bool)` + +GetSmartLicenseUrlOk returns a tuple with the SmartLicenseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmartLicenseUrl + +`func (o *VirtualDeviceRequest) SetSmartLicenseUrl(v string)` + +SetSmartLicenseUrl sets SmartLicenseUrl field to given value. + +### HasSmartLicenseUrl + +`func (o *VirtualDeviceRequest) HasSmartLicenseUrl() bool` + +HasSmartLicenseUrl returns a boolean if a field has been set. + +### GetDiverseFromDeviceUuid + +`func (o *VirtualDeviceRequest) GetDiverseFromDeviceUuid() string` + +GetDiverseFromDeviceUuid returns the DiverseFromDeviceUuid field if non-nil, zero value otherwise. + +### GetDiverseFromDeviceUuidOk + +`func (o *VirtualDeviceRequest) GetDiverseFromDeviceUuidOk() (*string, bool)` + +GetDiverseFromDeviceUuidOk returns a tuple with the DiverseFromDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiverseFromDeviceUuid + +`func (o *VirtualDeviceRequest) SetDiverseFromDeviceUuid(v string)` + +SetDiverseFromDeviceUuid sets DiverseFromDeviceUuid field to given value. + +### HasDiverseFromDeviceUuid + +`func (o *VirtualDeviceRequest) HasDiverseFromDeviceUuid() bool` + +HasDiverseFromDeviceUuid returns a boolean if a field has been set. + +### GetClusterDetails + +`func (o *VirtualDeviceRequest) GetClusterDetails() ClusterConfig` + +GetClusterDetails returns the ClusterDetails field if non-nil, zero value otherwise. + +### GetClusterDetailsOk + +`func (o *VirtualDeviceRequest) GetClusterDetailsOk() (*ClusterConfig, bool)` + +GetClusterDetailsOk returns a tuple with the ClusterDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterDetails + +`func (o *VirtualDeviceRequest) SetClusterDetails(v ClusterConfig)` + +SetClusterDetails sets ClusterDetails field to given value. + +### HasClusterDetails + +`func (o *VirtualDeviceRequest) HasClusterDetails() bool` + +HasClusterDetails returns a boolean if a field has been set. + +### GetPrimaryDeviceUuid + +`func (o *VirtualDeviceRequest) GetPrimaryDeviceUuid() string` + +GetPrimaryDeviceUuid returns the PrimaryDeviceUuid field if non-nil, zero value otherwise. + +### GetPrimaryDeviceUuidOk + +`func (o *VirtualDeviceRequest) GetPrimaryDeviceUuidOk() (*string, bool)` + +GetPrimaryDeviceUuidOk returns a tuple with the PrimaryDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryDeviceUuid + +`func (o *VirtualDeviceRequest) SetPrimaryDeviceUuid(v string)` + +SetPrimaryDeviceUuid sets PrimaryDeviceUuid field to given value. + +### HasPrimaryDeviceUuid + +`func (o *VirtualDeviceRequest) HasPrimaryDeviceUuid() bool` + +HasPrimaryDeviceUuid returns a boolean if a field has been set. + +### GetConnectivity + +`func (o *VirtualDeviceRequest) GetConnectivity() string` + +GetConnectivity returns the Connectivity field if non-nil, zero value otherwise. + +### GetConnectivityOk + +`func (o *VirtualDeviceRequest) GetConnectivityOk() (*string, bool)` + +GetConnectivityOk returns a tuple with the Connectivity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectivity + +`func (o *VirtualDeviceRequest) SetConnectivity(v string)` + +SetConnectivity sets Connectivity field to given value. + +### HasConnectivity + +`func (o *VirtualDeviceRequest) HasConnectivity() bool` + +HasConnectivity returns a boolean if a field has been set. + +### GetChannelPartner + +`func (o *VirtualDeviceRequest) GetChannelPartner() string` + +GetChannelPartner returns the ChannelPartner field if non-nil, zero value otherwise. + +### GetChannelPartnerOk + +`func (o *VirtualDeviceRequest) GetChannelPartnerOk() (*string, bool)` + +GetChannelPartnerOk returns a tuple with the ChannelPartner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelPartner + +`func (o *VirtualDeviceRequest) SetChannelPartner(v string)` + +SetChannelPartner sets ChannelPartner field to given value. + +### HasChannelPartner + +`func (o *VirtualDeviceRequest) HasChannelPartner() bool` + +HasChannelPartner returns a boolean if a field has been set. + +### GetCloudInitFileId + +`func (o *VirtualDeviceRequest) GetCloudInitFileId() string` + +GetCloudInitFileId returns the CloudInitFileId field if non-nil, zero value otherwise. + +### GetCloudInitFileIdOk + +`func (o *VirtualDeviceRequest) GetCloudInitFileIdOk() (*string, bool)` + +GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudInitFileId + +`func (o *VirtualDeviceRequest) SetCloudInitFileId(v string)` + +SetCloudInitFileId sets CloudInitFileId field to given value. + +### HasCloudInitFileId + +`func (o *VirtualDeviceRequest) HasCloudInitFileId() bool` + +HasCloudInitFileId returns a boolean if a field has been set. + +### GetPurchaseOrderNumber + +`func (o *VirtualDeviceRequest) GetPurchaseOrderNumber() string` + +GetPurchaseOrderNumber returns the PurchaseOrderNumber field if non-nil, zero value otherwise. + +### GetPurchaseOrderNumberOk + +`func (o *VirtualDeviceRequest) GetPurchaseOrderNumberOk() (*string, bool)` + +GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurchaseOrderNumber + +`func (o *VirtualDeviceRequest) SetPurchaseOrderNumber(v string)` + +SetPurchaseOrderNumber sets PurchaseOrderNumber field to given value. + +### HasPurchaseOrderNumber + +`func (o *VirtualDeviceRequest) HasPurchaseOrderNumber() bool` + +HasPurchaseOrderNumber returns a boolean if a field has been set. + +### GetOrderReference + +`func (o *VirtualDeviceRequest) GetOrderReference() string` + +GetOrderReference returns the OrderReference field if non-nil, zero value otherwise. + +### GetOrderReferenceOk + +`func (o *VirtualDeviceRequest) GetOrderReferenceOk() (*string, bool)` + +GetOrderReferenceOk returns a tuple with the OrderReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderReference + +`func (o *VirtualDeviceRequest) SetOrderReference(v string)` + +SetOrderReference sets OrderReference field to given value. + +### HasOrderReference + +`func (o *VirtualDeviceRequest) HasOrderReference() bool` + +HasOrderReference returns a boolean if a field has been set. + +### GetSecondary + +`func (o *VirtualDeviceRequest) GetSecondary() VirtualDevicHARequest` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *VirtualDeviceRequest) GetSecondaryOk() (*VirtualDevicHARequest, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *VirtualDeviceRequest) SetSecondary(v VirtualDevicHARequest)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *VirtualDeviceRequest) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceType.md b/services/networkedgev1/docs/VirtualDeviceType.md new file mode 100644 index 00000000..226e25c5 --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceType.md @@ -0,0 +1,342 @@ +# VirtualDeviceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceTypeCode** | Pointer to **string** | The type of the device. | [optional] +**Name** | Pointer to **string** | The name of the device. | [optional] +**Description** | Pointer to **string** | The description of the device. | [optional] +**Vendor** | Pointer to **string** | The vendor of the device. | [optional] +**Category** | Pointer to **string** | The type of the virtual device, whether router or firewall. | [optional] +**MaxInterfaceCount** | Pointer to **int32** | The maximum available number of interfaces. | [optional] +**DefaultInterfaceCount** | Pointer to **int32** | The default number of interfaces. | [optional] +**ClusterMaxInterfaceCount** | Pointer to **int32** | The maximum number of available interfaces in case you are clustering. | [optional] +**ClusterDefaultInterfaceCount** | Pointer to **int32** | The default number of available interfaces in case you are clustering. | [optional] +**AvailableMetros** | Pointer to [**[]Metro**](Metro.md) | An array of metros where the device is available. | [optional] +**SoftwarePackages** | Pointer to [**[]SoftwarePackage**](SoftwarePackage.md) | An array of available software packages | [optional] +**DeviceManagementTypes** | Pointer to [**VirtualDeviceTypeDeviceManagementTypes**](VirtualDeviceTypeDeviceManagementTypes.md) | | [optional] + +## Methods + +### NewVirtualDeviceType + +`func NewVirtualDeviceType() *VirtualDeviceType` + +NewVirtualDeviceType instantiates a new VirtualDeviceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceTypeWithDefaults + +`func NewVirtualDeviceTypeWithDefaults() *VirtualDeviceType` + +NewVirtualDeviceTypeWithDefaults instantiates a new VirtualDeviceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceTypeCode + +`func (o *VirtualDeviceType) GetDeviceTypeCode() string` + +GetDeviceTypeCode returns the DeviceTypeCode field if non-nil, zero value otherwise. + +### GetDeviceTypeCodeOk + +`func (o *VirtualDeviceType) GetDeviceTypeCodeOk() (*string, bool)` + +GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceTypeCode + +`func (o *VirtualDeviceType) SetDeviceTypeCode(v string)` + +SetDeviceTypeCode sets DeviceTypeCode field to given value. + +### HasDeviceTypeCode + +`func (o *VirtualDeviceType) HasDeviceTypeCode() bool` + +HasDeviceTypeCode returns a boolean if a field has been set. + +### GetName + +`func (o *VirtualDeviceType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VirtualDeviceType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *VirtualDeviceType) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VirtualDeviceType) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *VirtualDeviceType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualDeviceType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *VirtualDeviceType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualDeviceType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVendor + +`func (o *VirtualDeviceType) GetVendor() string` + +GetVendor returns the Vendor field if non-nil, zero value otherwise. + +### GetVendorOk + +`func (o *VirtualDeviceType) GetVendorOk() (*string, bool)` + +GetVendorOk returns a tuple with the Vendor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendor + +`func (o *VirtualDeviceType) SetVendor(v string)` + +SetVendor sets Vendor field to given value. + +### HasVendor + +`func (o *VirtualDeviceType) HasVendor() bool` + +HasVendor returns a boolean if a field has been set. + +### GetCategory + +`func (o *VirtualDeviceType) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *VirtualDeviceType) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *VirtualDeviceType) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *VirtualDeviceType) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetMaxInterfaceCount + +`func (o *VirtualDeviceType) GetMaxInterfaceCount() int32` + +GetMaxInterfaceCount returns the MaxInterfaceCount field if non-nil, zero value otherwise. + +### GetMaxInterfaceCountOk + +`func (o *VirtualDeviceType) GetMaxInterfaceCountOk() (*int32, bool)` + +GetMaxInterfaceCountOk returns a tuple with the MaxInterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxInterfaceCount + +`func (o *VirtualDeviceType) SetMaxInterfaceCount(v int32)` + +SetMaxInterfaceCount sets MaxInterfaceCount field to given value. + +### HasMaxInterfaceCount + +`func (o *VirtualDeviceType) HasMaxInterfaceCount() bool` + +HasMaxInterfaceCount returns a boolean if a field has been set. + +### GetDefaultInterfaceCount + +`func (o *VirtualDeviceType) GetDefaultInterfaceCount() int32` + +GetDefaultInterfaceCount returns the DefaultInterfaceCount field if non-nil, zero value otherwise. + +### GetDefaultInterfaceCountOk + +`func (o *VirtualDeviceType) GetDefaultInterfaceCountOk() (*int32, bool)` + +GetDefaultInterfaceCountOk returns a tuple with the DefaultInterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultInterfaceCount + +`func (o *VirtualDeviceType) SetDefaultInterfaceCount(v int32)` + +SetDefaultInterfaceCount sets DefaultInterfaceCount field to given value. + +### HasDefaultInterfaceCount + +`func (o *VirtualDeviceType) HasDefaultInterfaceCount() bool` + +HasDefaultInterfaceCount returns a boolean if a field has been set. + +### GetClusterMaxInterfaceCount + +`func (o *VirtualDeviceType) GetClusterMaxInterfaceCount() int32` + +GetClusterMaxInterfaceCount returns the ClusterMaxInterfaceCount field if non-nil, zero value otherwise. + +### GetClusterMaxInterfaceCountOk + +`func (o *VirtualDeviceType) GetClusterMaxInterfaceCountOk() (*int32, bool)` + +GetClusterMaxInterfaceCountOk returns a tuple with the ClusterMaxInterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterMaxInterfaceCount + +`func (o *VirtualDeviceType) SetClusterMaxInterfaceCount(v int32)` + +SetClusterMaxInterfaceCount sets ClusterMaxInterfaceCount field to given value. + +### HasClusterMaxInterfaceCount + +`func (o *VirtualDeviceType) HasClusterMaxInterfaceCount() bool` + +HasClusterMaxInterfaceCount returns a boolean if a field has been set. + +### GetClusterDefaultInterfaceCount + +`func (o *VirtualDeviceType) GetClusterDefaultInterfaceCount() int32` + +GetClusterDefaultInterfaceCount returns the ClusterDefaultInterfaceCount field if non-nil, zero value otherwise. + +### GetClusterDefaultInterfaceCountOk + +`func (o *VirtualDeviceType) GetClusterDefaultInterfaceCountOk() (*int32, bool)` + +GetClusterDefaultInterfaceCountOk returns a tuple with the ClusterDefaultInterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterDefaultInterfaceCount + +`func (o *VirtualDeviceType) SetClusterDefaultInterfaceCount(v int32)` + +SetClusterDefaultInterfaceCount sets ClusterDefaultInterfaceCount field to given value. + +### HasClusterDefaultInterfaceCount + +`func (o *VirtualDeviceType) HasClusterDefaultInterfaceCount() bool` + +HasClusterDefaultInterfaceCount returns a boolean if a field has been set. + +### GetAvailableMetros + +`func (o *VirtualDeviceType) GetAvailableMetros() []Metro` + +GetAvailableMetros returns the AvailableMetros field if non-nil, zero value otherwise. + +### GetAvailableMetrosOk + +`func (o *VirtualDeviceType) GetAvailableMetrosOk() (*[]Metro, bool)` + +GetAvailableMetrosOk returns a tuple with the AvailableMetros field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableMetros + +`func (o *VirtualDeviceType) SetAvailableMetros(v []Metro)` + +SetAvailableMetros sets AvailableMetros field to given value. + +### HasAvailableMetros + +`func (o *VirtualDeviceType) HasAvailableMetros() bool` + +HasAvailableMetros returns a boolean if a field has been set. + +### GetSoftwarePackages + +`func (o *VirtualDeviceType) GetSoftwarePackages() []SoftwarePackage` + +GetSoftwarePackages returns the SoftwarePackages field if non-nil, zero value otherwise. + +### GetSoftwarePackagesOk + +`func (o *VirtualDeviceType) GetSoftwarePackagesOk() (*[]SoftwarePackage, bool)` + +GetSoftwarePackagesOk returns a tuple with the SoftwarePackages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoftwarePackages + +`func (o *VirtualDeviceType) SetSoftwarePackages(v []SoftwarePackage)` + +SetSoftwarePackages sets SoftwarePackages field to given value. + +### HasSoftwarePackages + +`func (o *VirtualDeviceType) HasSoftwarePackages() bool` + +HasSoftwarePackages returns a boolean if a field has been set. + +### GetDeviceManagementTypes + +`func (o *VirtualDeviceType) GetDeviceManagementTypes() VirtualDeviceTypeDeviceManagementTypes` + +GetDeviceManagementTypes returns the DeviceManagementTypes field if non-nil, zero value otherwise. + +### GetDeviceManagementTypesOk + +`func (o *VirtualDeviceType) GetDeviceManagementTypesOk() (*VirtualDeviceTypeDeviceManagementTypes, bool)` + +GetDeviceManagementTypesOk returns a tuple with the DeviceManagementTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceManagementTypes + +`func (o *VirtualDeviceType) SetDeviceManagementTypes(v VirtualDeviceTypeDeviceManagementTypes)` + +SetDeviceManagementTypes sets DeviceManagementTypes field to given value. + +### HasDeviceManagementTypes + +`func (o *VirtualDeviceType) HasDeviceManagementTypes() bool` + +HasDeviceManagementTypes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VirtualDeviceTypeDeviceManagementTypes.md b/services/networkedgev1/docs/VirtualDeviceTypeDeviceManagementTypes.md new file mode 100644 index 00000000..6089810b --- /dev/null +++ b/services/networkedgev1/docs/VirtualDeviceTypeDeviceManagementTypes.md @@ -0,0 +1,82 @@ +# VirtualDeviceTypeDeviceManagementTypes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EQUINIX_CONFIGURED** | Pointer to [**EquinixConfiguredConfig**](EquinixConfiguredConfig.md) | | [optional] +**SELF_CONFIGURED** | Pointer to [**SelfConfiguredConfig**](SelfConfiguredConfig.md) | | [optional] + +## Methods + +### NewVirtualDeviceTypeDeviceManagementTypes + +`func NewVirtualDeviceTypeDeviceManagementTypes() *VirtualDeviceTypeDeviceManagementTypes` + +NewVirtualDeviceTypeDeviceManagementTypes instantiates a new VirtualDeviceTypeDeviceManagementTypes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceTypeDeviceManagementTypesWithDefaults + +`func NewVirtualDeviceTypeDeviceManagementTypesWithDefaults() *VirtualDeviceTypeDeviceManagementTypes` + +NewVirtualDeviceTypeDeviceManagementTypesWithDefaults instantiates a new VirtualDeviceTypeDeviceManagementTypes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEQUINIX_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) GetEQUINIX_CONFIGURED() EquinixConfiguredConfig` + +GetEQUINIX_CONFIGURED returns the EQUINIX_CONFIGURED field if non-nil, zero value otherwise. + +### GetEQUINIX_CONFIGUREDOk + +`func (o *VirtualDeviceTypeDeviceManagementTypes) GetEQUINIX_CONFIGUREDOk() (*EquinixConfiguredConfig, bool)` + +GetEQUINIX_CONFIGUREDOk returns a tuple with the EQUINIX_CONFIGURED field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEQUINIX_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) SetEQUINIX_CONFIGURED(v EquinixConfiguredConfig)` + +SetEQUINIX_CONFIGURED sets EQUINIX_CONFIGURED field to given value. + +### HasEQUINIX_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) HasEQUINIX_CONFIGURED() bool` + +HasEQUINIX_CONFIGURED returns a boolean if a field has been set. + +### GetSELF_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) GetSELF_CONFIGURED() SelfConfiguredConfig` + +GetSELF_CONFIGURED returns the SELF_CONFIGURED field if non-nil, zero value otherwise. + +### GetSELF_CONFIGUREDOk + +`func (o *VirtualDeviceTypeDeviceManagementTypes) GetSELF_CONFIGUREDOk() (*SelfConfiguredConfig, bool)` + +GetSELF_CONFIGUREDOk returns a tuple with the SELF_CONFIGURED field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSELF_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) SetSELF_CONFIGURED(v SelfConfiguredConfig)` + +SetSELF_CONFIGURED sets SELF_CONFIGURED field to given value. + +### HasSELF_CONFIGURED + +`func (o *VirtualDeviceTypeDeviceManagementTypes) HasSELF_CONFIGURED() bool` + +HasSELF_CONFIGURED returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/Vpn.md b/services/networkedgev1/docs/Vpn.md new file mode 100644 index 00000000..f830d420 --- /dev/null +++ b/services/networkedgev1/docs/Vpn.md @@ -0,0 +1,276 @@ +# Vpn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SiteName** | **string** | | +**VirtualDeviceUuid** | **string** | The unique Id of the primary device. | +**ConfigName** | Pointer to **string** | | [optional] +**PeerIp** | **string** | | +**PeerSharedKey** | **string** | | +**RemoteAsn** | **int64** | Remote Customer ASN - Customer side | +**RemoteIpAddress** | **string** | Remote Customer IP Address - Customer side | +**Password** | **string** | BGP Password | +**LocalAsn** | Pointer to **int64** | Local ASN - Equinix side | [optional] +**TunnelIp** | **string** | Local Tunnel IP Address in CIDR format | +**Secondary** | Pointer to [**VpnRequest**](VpnRequest.md) | | [optional] + +## Methods + +### NewVpn + +`func NewVpn(siteName string, virtualDeviceUuid string, peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string, ) *Vpn` + +NewVpn instantiates a new Vpn object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVpnWithDefaults + +`func NewVpnWithDefaults() *Vpn` + +NewVpnWithDefaults instantiates a new Vpn object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSiteName + +`func (o *Vpn) GetSiteName() string` + +GetSiteName returns the SiteName field if non-nil, zero value otherwise. + +### GetSiteNameOk + +`func (o *Vpn) GetSiteNameOk() (*string, bool)` + +GetSiteNameOk returns a tuple with the SiteName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteName + +`func (o *Vpn) SetSiteName(v string)` + +SetSiteName sets SiteName field to given value. + + +### GetVirtualDeviceUuid + +`func (o *Vpn) GetVirtualDeviceUuid() string` + +GetVirtualDeviceUuid returns the VirtualDeviceUuid field if non-nil, zero value otherwise. + +### GetVirtualDeviceUuidOk + +`func (o *Vpn) GetVirtualDeviceUuidOk() (*string, bool)` + +GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceUuid + +`func (o *Vpn) SetVirtualDeviceUuid(v string)` + +SetVirtualDeviceUuid sets VirtualDeviceUuid field to given value. + + +### GetConfigName + +`func (o *Vpn) GetConfigName() string` + +GetConfigName returns the ConfigName field if non-nil, zero value otherwise. + +### GetConfigNameOk + +`func (o *Vpn) GetConfigNameOk() (*string, bool)` + +GetConfigNameOk returns a tuple with the ConfigName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigName + +`func (o *Vpn) SetConfigName(v string)` + +SetConfigName sets ConfigName field to given value. + +### HasConfigName + +`func (o *Vpn) HasConfigName() bool` + +HasConfigName returns a boolean if a field has been set. + +### GetPeerIp + +`func (o *Vpn) GetPeerIp() string` + +GetPeerIp returns the PeerIp field if non-nil, zero value otherwise. + +### GetPeerIpOk + +`func (o *Vpn) GetPeerIpOk() (*string, bool)` + +GetPeerIpOk returns a tuple with the PeerIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerIp + +`func (o *Vpn) SetPeerIp(v string)` + +SetPeerIp sets PeerIp field to given value. + + +### GetPeerSharedKey + +`func (o *Vpn) GetPeerSharedKey() string` + +GetPeerSharedKey returns the PeerSharedKey field if non-nil, zero value otherwise. + +### GetPeerSharedKeyOk + +`func (o *Vpn) GetPeerSharedKeyOk() (*string, bool)` + +GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerSharedKey + +`func (o *Vpn) SetPeerSharedKey(v string)` + +SetPeerSharedKey sets PeerSharedKey field to given value. + + +### GetRemoteAsn + +`func (o *Vpn) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *Vpn) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *Vpn) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + + +### GetRemoteIpAddress + +`func (o *Vpn) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *Vpn) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *Vpn) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + + +### GetPassword + +`func (o *Vpn) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *Vpn) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *Vpn) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetLocalAsn + +`func (o *Vpn) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *Vpn) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *Vpn) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *Vpn) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetTunnelIp + +`func (o *Vpn) GetTunnelIp() string` + +GetTunnelIp returns the TunnelIp field if non-nil, zero value otherwise. + +### GetTunnelIpOk + +`func (o *Vpn) GetTunnelIpOk() (*string, bool)` + +GetTunnelIpOk returns a tuple with the TunnelIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelIp + +`func (o *Vpn) SetTunnelIp(v string)` + +SetTunnelIp sets TunnelIp field to given value. + + +### GetSecondary + +`func (o *Vpn) GetSecondary() VpnRequest` + +GetSecondary returns the Secondary field if non-nil, zero value otherwise. + +### GetSecondaryOk + +`func (o *Vpn) GetSecondaryOk() (*VpnRequest, bool)` + +GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondary + +`func (o *Vpn) SetSecondary(v VpnRequest)` + +SetSecondary sets Secondary field to given value. + +### HasSecondary + +`func (o *Vpn) HasSecondary() bool` + +HasSecondary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VpnRequest.md b/services/networkedgev1/docs/VpnRequest.md new file mode 100644 index 00000000..f8b9efb7 --- /dev/null +++ b/services/networkedgev1/docs/VpnRequest.md @@ -0,0 +1,208 @@ +# VpnRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigName** | Pointer to **string** | | [optional] +**PeerIp** | **string** | | +**PeerSharedKey** | **string** | | +**RemoteAsn** | **int64** | Remote Customer ASN - Customer side | +**RemoteIpAddress** | **string** | Remote Customer IP Address - Customer side | +**Password** | **string** | BGP Password | +**LocalAsn** | Pointer to **int64** | Local ASN - Equinix side | [optional] +**TunnelIp** | **string** | Local Tunnel IP Address in CIDR format | + +## Methods + +### NewVpnRequest + +`func NewVpnRequest(peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string, ) *VpnRequest` + +NewVpnRequest instantiates a new VpnRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVpnRequestWithDefaults + +`func NewVpnRequestWithDefaults() *VpnRequest` + +NewVpnRequestWithDefaults instantiates a new VpnRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigName + +`func (o *VpnRequest) GetConfigName() string` + +GetConfigName returns the ConfigName field if non-nil, zero value otherwise. + +### GetConfigNameOk + +`func (o *VpnRequest) GetConfigNameOk() (*string, bool)` + +GetConfigNameOk returns a tuple with the ConfigName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigName + +`func (o *VpnRequest) SetConfigName(v string)` + +SetConfigName sets ConfigName field to given value. + +### HasConfigName + +`func (o *VpnRequest) HasConfigName() bool` + +HasConfigName returns a boolean if a field has been set. + +### GetPeerIp + +`func (o *VpnRequest) GetPeerIp() string` + +GetPeerIp returns the PeerIp field if non-nil, zero value otherwise. + +### GetPeerIpOk + +`func (o *VpnRequest) GetPeerIpOk() (*string, bool)` + +GetPeerIpOk returns a tuple with the PeerIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerIp + +`func (o *VpnRequest) SetPeerIp(v string)` + +SetPeerIp sets PeerIp field to given value. + + +### GetPeerSharedKey + +`func (o *VpnRequest) GetPeerSharedKey() string` + +GetPeerSharedKey returns the PeerSharedKey field if non-nil, zero value otherwise. + +### GetPeerSharedKeyOk + +`func (o *VpnRequest) GetPeerSharedKeyOk() (*string, bool)` + +GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerSharedKey + +`func (o *VpnRequest) SetPeerSharedKey(v string)` + +SetPeerSharedKey sets PeerSharedKey field to given value. + + +### GetRemoteAsn + +`func (o *VpnRequest) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *VpnRequest) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *VpnRequest) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + + +### GetRemoteIpAddress + +`func (o *VpnRequest) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *VpnRequest) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *VpnRequest) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + + +### GetPassword + +`func (o *VpnRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *VpnRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *VpnRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetLocalAsn + +`func (o *VpnRequest) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *VpnRequest) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *VpnRequest) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *VpnRequest) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetTunnelIp + +`func (o *VpnRequest) GetTunnelIp() string` + +GetTunnelIp returns the TunnelIp field if non-nil, zero value otherwise. + +### GetTunnelIpOk + +`func (o *VpnRequest) GetTunnelIpOk() (*string, bool)` + +GetTunnelIpOk returns a tuple with the TunnelIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelIp + +`func (o *VpnRequest) SetTunnelIp(v string)` + +SetTunnelIp sets TunnelIp field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VpnResponse.md b/services/networkedgev1/docs/VpnResponse.md new file mode 100644 index 00000000..d2bd96ae --- /dev/null +++ b/services/networkedgev1/docs/VpnResponse.md @@ -0,0 +1,1056 @@ +# VpnResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SiteName** | **string** | | +**Uuid** | Pointer to **string** | | [optional] +**VirtualDeviceUuid** | **string** | | +**ConfigName** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**PeerIp** | **string** | | +**PeerSharedKey** | **string** | | +**RemoteAsn** | **int64** | Remote Customer ASN - Customer side | +**RemoteIpAddress** | **string** | Remote Customer IP Address - Customer side | +**Password** | **string** | BGP Password | +**LocalAsn** | Pointer to **int64** | Local ASN - Equinix side | [optional] +**TunnelIp** | **string** | Local Tunnel IP Address in CIDR format | +**BgpState** | Pointer to **string** | | [optional] +**InboundBytes** | Pointer to **string** | | [optional] +**InboundPackets** | Pointer to **string** | | [optional] +**OutboundBytes** | Pointer to **string** | | [optional] +**OutboundPackets** | Pointer to **string** | | [optional] +**TunnelStatus** | Pointer to **string** | | [optional] +**CustOrgId** | Pointer to **int64** | | [optional] +**CreatedDate** | Pointer to **string** | | [optional] +**CreatedByFirstName** | Pointer to **string** | | [optional] +**CreatedByLastName** | Pointer to **string** | | [optional] +**CreatedByEmail** | Pointer to **string** | | [optional] +**CreatedByUserKey** | Pointer to **int64** | | [optional] +**CreatedByAccountUcmId** | Pointer to **int64** | | [optional] +**CreatedByUserName** | Pointer to **string** | | [optional] +**CreatedByCustOrgId** | Pointer to **int64** | | [optional] +**CreatedByCustOrgName** | Pointer to **string** | | [optional] +**CreatedByUserStatus** | Pointer to **string** | | [optional] +**CreatedByCompanyName** | Pointer to **string** | | [optional] +**LastUpdatedDate** | Pointer to **string** | | [optional] +**UpdatedByFirstName** | Pointer to **string** | | [optional] +**UpdatedByLastName** | Pointer to **string** | | [optional] +**UpdatedByEmail** | Pointer to **string** | | [optional] +**UpdatedByUserKey** | Pointer to **int64** | | [optional] +**UpdatedByAccountUcmId** | Pointer to **int64** | | [optional] +**UpdatedByUserName** | Pointer to **string** | | [optional] +**UpdatedByCustOrgId** | Pointer to **int64** | | [optional] +**UpdatedByCustOrgName** | Pointer to **string** | | [optional] +**UpdatedByUserStatus** | Pointer to **string** | | [optional] +**UpdatedByCompanyName** | Pointer to **string** | | [optional] + +## Methods + +### NewVpnResponse + +`func NewVpnResponse(siteName string, virtualDeviceUuid string, peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string, ) *VpnResponse` + +NewVpnResponse instantiates a new VpnResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVpnResponseWithDefaults + +`func NewVpnResponseWithDefaults() *VpnResponse` + +NewVpnResponseWithDefaults instantiates a new VpnResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSiteName + +`func (o *VpnResponse) GetSiteName() string` + +GetSiteName returns the SiteName field if non-nil, zero value otherwise. + +### GetSiteNameOk + +`func (o *VpnResponse) GetSiteNameOk() (*string, bool)` + +GetSiteNameOk returns a tuple with the SiteName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteName + +`func (o *VpnResponse) SetSiteName(v string)` + +SetSiteName sets SiteName field to given value. + + +### GetUuid + +`func (o *VpnResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VpnResponse) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *VpnResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VpnResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetVirtualDeviceUuid + +`func (o *VpnResponse) GetVirtualDeviceUuid() string` + +GetVirtualDeviceUuid returns the VirtualDeviceUuid field if non-nil, zero value otherwise. + +### GetVirtualDeviceUuidOk + +`func (o *VpnResponse) GetVirtualDeviceUuidOk() (*string, bool)` + +GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDeviceUuid + +`func (o *VpnResponse) SetVirtualDeviceUuid(v string)` + +SetVirtualDeviceUuid sets VirtualDeviceUuid field to given value. + + +### GetConfigName + +`func (o *VpnResponse) GetConfigName() string` + +GetConfigName returns the ConfigName field if non-nil, zero value otherwise. + +### GetConfigNameOk + +`func (o *VpnResponse) GetConfigNameOk() (*string, bool)` + +GetConfigNameOk returns a tuple with the ConfigName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigName + +`func (o *VpnResponse) SetConfigName(v string)` + +SetConfigName sets ConfigName field to given value. + +### HasConfigName + +`func (o *VpnResponse) HasConfigName() bool` + +HasConfigName returns a boolean if a field has been set. + +### GetStatus + +`func (o *VpnResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VpnResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VpnResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VpnResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetPeerIp + +`func (o *VpnResponse) GetPeerIp() string` + +GetPeerIp returns the PeerIp field if non-nil, zero value otherwise. + +### GetPeerIpOk + +`func (o *VpnResponse) GetPeerIpOk() (*string, bool)` + +GetPeerIpOk returns a tuple with the PeerIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerIp + +`func (o *VpnResponse) SetPeerIp(v string)` + +SetPeerIp sets PeerIp field to given value. + + +### GetPeerSharedKey + +`func (o *VpnResponse) GetPeerSharedKey() string` + +GetPeerSharedKey returns the PeerSharedKey field if non-nil, zero value otherwise. + +### GetPeerSharedKeyOk + +`func (o *VpnResponse) GetPeerSharedKeyOk() (*string, bool)` + +GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeerSharedKey + +`func (o *VpnResponse) SetPeerSharedKey(v string)` + +SetPeerSharedKey sets PeerSharedKey field to given value. + + +### GetRemoteAsn + +`func (o *VpnResponse) GetRemoteAsn() int64` + +GetRemoteAsn returns the RemoteAsn field if non-nil, zero value otherwise. + +### GetRemoteAsnOk + +`func (o *VpnResponse) GetRemoteAsnOk() (*int64, bool)` + +GetRemoteAsnOk returns a tuple with the RemoteAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteAsn + +`func (o *VpnResponse) SetRemoteAsn(v int64)` + +SetRemoteAsn sets RemoteAsn field to given value. + + +### GetRemoteIpAddress + +`func (o *VpnResponse) GetRemoteIpAddress() string` + +GetRemoteIpAddress returns the RemoteIpAddress field if non-nil, zero value otherwise. + +### GetRemoteIpAddressOk + +`func (o *VpnResponse) GetRemoteIpAddressOk() (*string, bool)` + +GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteIpAddress + +`func (o *VpnResponse) SetRemoteIpAddress(v string)` + +SetRemoteIpAddress sets RemoteIpAddress field to given value. + + +### GetPassword + +`func (o *VpnResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *VpnResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *VpnResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetLocalAsn + +`func (o *VpnResponse) GetLocalAsn() int64` + +GetLocalAsn returns the LocalAsn field if non-nil, zero value otherwise. + +### GetLocalAsnOk + +`func (o *VpnResponse) GetLocalAsnOk() (*int64, bool)` + +GetLocalAsnOk returns a tuple with the LocalAsn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalAsn + +`func (o *VpnResponse) SetLocalAsn(v int64)` + +SetLocalAsn sets LocalAsn field to given value. + +### HasLocalAsn + +`func (o *VpnResponse) HasLocalAsn() bool` + +HasLocalAsn returns a boolean if a field has been set. + +### GetTunnelIp + +`func (o *VpnResponse) GetTunnelIp() string` + +GetTunnelIp returns the TunnelIp field if non-nil, zero value otherwise. + +### GetTunnelIpOk + +`func (o *VpnResponse) GetTunnelIpOk() (*string, bool)` + +GetTunnelIpOk returns a tuple with the TunnelIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelIp + +`func (o *VpnResponse) SetTunnelIp(v string)` + +SetTunnelIp sets TunnelIp field to given value. + + +### GetBgpState + +`func (o *VpnResponse) GetBgpState() string` + +GetBgpState returns the BgpState field if non-nil, zero value otherwise. + +### GetBgpStateOk + +`func (o *VpnResponse) GetBgpStateOk() (*string, bool)` + +GetBgpStateOk returns a tuple with the BgpState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBgpState + +`func (o *VpnResponse) SetBgpState(v string)` + +SetBgpState sets BgpState field to given value. + +### HasBgpState + +`func (o *VpnResponse) HasBgpState() bool` + +HasBgpState returns a boolean if a field has been set. + +### GetInboundBytes + +`func (o *VpnResponse) GetInboundBytes() string` + +GetInboundBytes returns the InboundBytes field if non-nil, zero value otherwise. + +### GetInboundBytesOk + +`func (o *VpnResponse) GetInboundBytesOk() (*string, bool)` + +GetInboundBytesOk returns a tuple with the InboundBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundBytes + +`func (o *VpnResponse) SetInboundBytes(v string)` + +SetInboundBytes sets InboundBytes field to given value. + +### HasInboundBytes + +`func (o *VpnResponse) HasInboundBytes() bool` + +HasInboundBytes returns a boolean if a field has been set. + +### GetInboundPackets + +`func (o *VpnResponse) GetInboundPackets() string` + +GetInboundPackets returns the InboundPackets field if non-nil, zero value otherwise. + +### GetInboundPacketsOk + +`func (o *VpnResponse) GetInboundPacketsOk() (*string, bool)` + +GetInboundPacketsOk returns a tuple with the InboundPackets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundPackets + +`func (o *VpnResponse) SetInboundPackets(v string)` + +SetInboundPackets sets InboundPackets field to given value. + +### HasInboundPackets + +`func (o *VpnResponse) HasInboundPackets() bool` + +HasInboundPackets returns a boolean if a field has been set. + +### GetOutboundBytes + +`func (o *VpnResponse) GetOutboundBytes() string` + +GetOutboundBytes returns the OutboundBytes field if non-nil, zero value otherwise. + +### GetOutboundBytesOk + +`func (o *VpnResponse) GetOutboundBytesOk() (*string, bool)` + +GetOutboundBytesOk returns a tuple with the OutboundBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutboundBytes + +`func (o *VpnResponse) SetOutboundBytes(v string)` + +SetOutboundBytes sets OutboundBytes field to given value. + +### HasOutboundBytes + +`func (o *VpnResponse) HasOutboundBytes() bool` + +HasOutboundBytes returns a boolean if a field has been set. + +### GetOutboundPackets + +`func (o *VpnResponse) GetOutboundPackets() string` + +GetOutboundPackets returns the OutboundPackets field if non-nil, zero value otherwise. + +### GetOutboundPacketsOk + +`func (o *VpnResponse) GetOutboundPacketsOk() (*string, bool)` + +GetOutboundPacketsOk returns a tuple with the OutboundPackets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutboundPackets + +`func (o *VpnResponse) SetOutboundPackets(v string)` + +SetOutboundPackets sets OutboundPackets field to given value. + +### HasOutboundPackets + +`func (o *VpnResponse) HasOutboundPackets() bool` + +HasOutboundPackets returns a boolean if a field has been set. + +### GetTunnelStatus + +`func (o *VpnResponse) GetTunnelStatus() string` + +GetTunnelStatus returns the TunnelStatus field if non-nil, zero value otherwise. + +### GetTunnelStatusOk + +`func (o *VpnResponse) GetTunnelStatusOk() (*string, bool)` + +GetTunnelStatusOk returns a tuple with the TunnelStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelStatus + +`func (o *VpnResponse) SetTunnelStatus(v string)` + +SetTunnelStatus sets TunnelStatus field to given value. + +### HasTunnelStatus + +`func (o *VpnResponse) HasTunnelStatus() bool` + +HasTunnelStatus returns a boolean if a field has been set. + +### GetCustOrgId + +`func (o *VpnResponse) GetCustOrgId() int64` + +GetCustOrgId returns the CustOrgId field if non-nil, zero value otherwise. + +### GetCustOrgIdOk + +`func (o *VpnResponse) GetCustOrgIdOk() (*int64, bool)` + +GetCustOrgIdOk returns a tuple with the CustOrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustOrgId + +`func (o *VpnResponse) SetCustOrgId(v int64)` + +SetCustOrgId sets CustOrgId field to given value. + +### HasCustOrgId + +`func (o *VpnResponse) HasCustOrgId() bool` + +HasCustOrgId returns a boolean if a field has been set. + +### GetCreatedDate + +`func (o *VpnResponse) GetCreatedDate() string` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *VpnResponse) GetCreatedDateOk() (*string, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *VpnResponse) SetCreatedDate(v string)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *VpnResponse) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedByFirstName + +`func (o *VpnResponse) GetCreatedByFirstName() string` + +GetCreatedByFirstName returns the CreatedByFirstName field if non-nil, zero value otherwise. + +### GetCreatedByFirstNameOk + +`func (o *VpnResponse) GetCreatedByFirstNameOk() (*string, bool)` + +GetCreatedByFirstNameOk returns a tuple with the CreatedByFirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByFirstName + +`func (o *VpnResponse) SetCreatedByFirstName(v string)` + +SetCreatedByFirstName sets CreatedByFirstName field to given value. + +### HasCreatedByFirstName + +`func (o *VpnResponse) HasCreatedByFirstName() bool` + +HasCreatedByFirstName returns a boolean if a field has been set. + +### GetCreatedByLastName + +`func (o *VpnResponse) GetCreatedByLastName() string` + +GetCreatedByLastName returns the CreatedByLastName field if non-nil, zero value otherwise. + +### GetCreatedByLastNameOk + +`func (o *VpnResponse) GetCreatedByLastNameOk() (*string, bool)` + +GetCreatedByLastNameOk returns a tuple with the CreatedByLastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByLastName + +`func (o *VpnResponse) SetCreatedByLastName(v string)` + +SetCreatedByLastName sets CreatedByLastName field to given value. + +### HasCreatedByLastName + +`func (o *VpnResponse) HasCreatedByLastName() bool` + +HasCreatedByLastName returns a boolean if a field has been set. + +### GetCreatedByEmail + +`func (o *VpnResponse) GetCreatedByEmail() string` + +GetCreatedByEmail returns the CreatedByEmail field if non-nil, zero value otherwise. + +### GetCreatedByEmailOk + +`func (o *VpnResponse) GetCreatedByEmailOk() (*string, bool)` + +GetCreatedByEmailOk returns a tuple with the CreatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByEmail + +`func (o *VpnResponse) SetCreatedByEmail(v string)` + +SetCreatedByEmail sets CreatedByEmail field to given value. + +### HasCreatedByEmail + +`func (o *VpnResponse) HasCreatedByEmail() bool` + +HasCreatedByEmail returns a boolean if a field has been set. + +### GetCreatedByUserKey + +`func (o *VpnResponse) GetCreatedByUserKey() int64` + +GetCreatedByUserKey returns the CreatedByUserKey field if non-nil, zero value otherwise. + +### GetCreatedByUserKeyOk + +`func (o *VpnResponse) GetCreatedByUserKeyOk() (*int64, bool)` + +GetCreatedByUserKeyOk returns a tuple with the CreatedByUserKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserKey + +`func (o *VpnResponse) SetCreatedByUserKey(v int64)` + +SetCreatedByUserKey sets CreatedByUserKey field to given value. + +### HasCreatedByUserKey + +`func (o *VpnResponse) HasCreatedByUserKey() bool` + +HasCreatedByUserKey returns a boolean if a field has been set. + +### GetCreatedByAccountUcmId + +`func (o *VpnResponse) GetCreatedByAccountUcmId() int64` + +GetCreatedByAccountUcmId returns the CreatedByAccountUcmId field if non-nil, zero value otherwise. + +### GetCreatedByAccountUcmIdOk + +`func (o *VpnResponse) GetCreatedByAccountUcmIdOk() (*int64, bool)` + +GetCreatedByAccountUcmIdOk returns a tuple with the CreatedByAccountUcmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByAccountUcmId + +`func (o *VpnResponse) SetCreatedByAccountUcmId(v int64)` + +SetCreatedByAccountUcmId sets CreatedByAccountUcmId field to given value. + +### HasCreatedByAccountUcmId + +`func (o *VpnResponse) HasCreatedByAccountUcmId() bool` + +HasCreatedByAccountUcmId returns a boolean if a field has been set. + +### GetCreatedByUserName + +`func (o *VpnResponse) GetCreatedByUserName() string` + +GetCreatedByUserName returns the CreatedByUserName field if non-nil, zero value otherwise. + +### GetCreatedByUserNameOk + +`func (o *VpnResponse) GetCreatedByUserNameOk() (*string, bool)` + +GetCreatedByUserNameOk returns a tuple with the CreatedByUserName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserName + +`func (o *VpnResponse) SetCreatedByUserName(v string)` + +SetCreatedByUserName sets CreatedByUserName field to given value. + +### HasCreatedByUserName + +`func (o *VpnResponse) HasCreatedByUserName() bool` + +HasCreatedByUserName returns a boolean if a field has been set. + +### GetCreatedByCustOrgId + +`func (o *VpnResponse) GetCreatedByCustOrgId() int64` + +GetCreatedByCustOrgId returns the CreatedByCustOrgId field if non-nil, zero value otherwise. + +### GetCreatedByCustOrgIdOk + +`func (o *VpnResponse) GetCreatedByCustOrgIdOk() (*int64, bool)` + +GetCreatedByCustOrgIdOk returns a tuple with the CreatedByCustOrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByCustOrgId + +`func (o *VpnResponse) SetCreatedByCustOrgId(v int64)` + +SetCreatedByCustOrgId sets CreatedByCustOrgId field to given value. + +### HasCreatedByCustOrgId + +`func (o *VpnResponse) HasCreatedByCustOrgId() bool` + +HasCreatedByCustOrgId returns a boolean if a field has been set. + +### GetCreatedByCustOrgName + +`func (o *VpnResponse) GetCreatedByCustOrgName() string` + +GetCreatedByCustOrgName returns the CreatedByCustOrgName field if non-nil, zero value otherwise. + +### GetCreatedByCustOrgNameOk + +`func (o *VpnResponse) GetCreatedByCustOrgNameOk() (*string, bool)` + +GetCreatedByCustOrgNameOk returns a tuple with the CreatedByCustOrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByCustOrgName + +`func (o *VpnResponse) SetCreatedByCustOrgName(v string)` + +SetCreatedByCustOrgName sets CreatedByCustOrgName field to given value. + +### HasCreatedByCustOrgName + +`func (o *VpnResponse) HasCreatedByCustOrgName() bool` + +HasCreatedByCustOrgName returns a boolean if a field has been set. + +### GetCreatedByUserStatus + +`func (o *VpnResponse) GetCreatedByUserStatus() string` + +GetCreatedByUserStatus returns the CreatedByUserStatus field if non-nil, zero value otherwise. + +### GetCreatedByUserStatusOk + +`func (o *VpnResponse) GetCreatedByUserStatusOk() (*string, bool)` + +GetCreatedByUserStatusOk returns a tuple with the CreatedByUserStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserStatus + +`func (o *VpnResponse) SetCreatedByUserStatus(v string)` + +SetCreatedByUserStatus sets CreatedByUserStatus field to given value. + +### HasCreatedByUserStatus + +`func (o *VpnResponse) HasCreatedByUserStatus() bool` + +HasCreatedByUserStatus returns a boolean if a field has been set. + +### GetCreatedByCompanyName + +`func (o *VpnResponse) GetCreatedByCompanyName() string` + +GetCreatedByCompanyName returns the CreatedByCompanyName field if non-nil, zero value otherwise. + +### GetCreatedByCompanyNameOk + +`func (o *VpnResponse) GetCreatedByCompanyNameOk() (*string, bool)` + +GetCreatedByCompanyNameOk returns a tuple with the CreatedByCompanyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByCompanyName + +`func (o *VpnResponse) SetCreatedByCompanyName(v string)` + +SetCreatedByCompanyName sets CreatedByCompanyName field to given value. + +### HasCreatedByCompanyName + +`func (o *VpnResponse) HasCreatedByCompanyName() bool` + +HasCreatedByCompanyName returns a boolean if a field has been set. + +### GetLastUpdatedDate + +`func (o *VpnResponse) GetLastUpdatedDate() string` + +GetLastUpdatedDate returns the LastUpdatedDate field if non-nil, zero value otherwise. + +### GetLastUpdatedDateOk + +`func (o *VpnResponse) GetLastUpdatedDateOk() (*string, bool)` + +GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedDate + +`func (o *VpnResponse) SetLastUpdatedDate(v string)` + +SetLastUpdatedDate sets LastUpdatedDate field to given value. + +### HasLastUpdatedDate + +`func (o *VpnResponse) HasLastUpdatedDate() bool` + +HasLastUpdatedDate returns a boolean if a field has been set. + +### GetUpdatedByFirstName + +`func (o *VpnResponse) GetUpdatedByFirstName() string` + +GetUpdatedByFirstName returns the UpdatedByFirstName field if non-nil, zero value otherwise. + +### GetUpdatedByFirstNameOk + +`func (o *VpnResponse) GetUpdatedByFirstNameOk() (*string, bool)` + +GetUpdatedByFirstNameOk returns a tuple with the UpdatedByFirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByFirstName + +`func (o *VpnResponse) SetUpdatedByFirstName(v string)` + +SetUpdatedByFirstName sets UpdatedByFirstName field to given value. + +### HasUpdatedByFirstName + +`func (o *VpnResponse) HasUpdatedByFirstName() bool` + +HasUpdatedByFirstName returns a boolean if a field has been set. + +### GetUpdatedByLastName + +`func (o *VpnResponse) GetUpdatedByLastName() string` + +GetUpdatedByLastName returns the UpdatedByLastName field if non-nil, zero value otherwise. + +### GetUpdatedByLastNameOk + +`func (o *VpnResponse) GetUpdatedByLastNameOk() (*string, bool)` + +GetUpdatedByLastNameOk returns a tuple with the UpdatedByLastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByLastName + +`func (o *VpnResponse) SetUpdatedByLastName(v string)` + +SetUpdatedByLastName sets UpdatedByLastName field to given value. + +### HasUpdatedByLastName + +`func (o *VpnResponse) HasUpdatedByLastName() bool` + +HasUpdatedByLastName returns a boolean if a field has been set. + +### GetUpdatedByEmail + +`func (o *VpnResponse) GetUpdatedByEmail() string` + +GetUpdatedByEmail returns the UpdatedByEmail field if non-nil, zero value otherwise. + +### GetUpdatedByEmailOk + +`func (o *VpnResponse) GetUpdatedByEmailOk() (*string, bool)` + +GetUpdatedByEmailOk returns a tuple with the UpdatedByEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByEmail + +`func (o *VpnResponse) SetUpdatedByEmail(v string)` + +SetUpdatedByEmail sets UpdatedByEmail field to given value. + +### HasUpdatedByEmail + +`func (o *VpnResponse) HasUpdatedByEmail() bool` + +HasUpdatedByEmail returns a boolean if a field has been set. + +### GetUpdatedByUserKey + +`func (o *VpnResponse) GetUpdatedByUserKey() int64` + +GetUpdatedByUserKey returns the UpdatedByUserKey field if non-nil, zero value otherwise. + +### GetUpdatedByUserKeyOk + +`func (o *VpnResponse) GetUpdatedByUserKeyOk() (*int64, bool)` + +GetUpdatedByUserKeyOk returns a tuple with the UpdatedByUserKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByUserKey + +`func (o *VpnResponse) SetUpdatedByUserKey(v int64)` + +SetUpdatedByUserKey sets UpdatedByUserKey field to given value. + +### HasUpdatedByUserKey + +`func (o *VpnResponse) HasUpdatedByUserKey() bool` + +HasUpdatedByUserKey returns a boolean if a field has been set. + +### GetUpdatedByAccountUcmId + +`func (o *VpnResponse) GetUpdatedByAccountUcmId() int64` + +GetUpdatedByAccountUcmId returns the UpdatedByAccountUcmId field if non-nil, zero value otherwise. + +### GetUpdatedByAccountUcmIdOk + +`func (o *VpnResponse) GetUpdatedByAccountUcmIdOk() (*int64, bool)` + +GetUpdatedByAccountUcmIdOk returns a tuple with the UpdatedByAccountUcmId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByAccountUcmId + +`func (o *VpnResponse) SetUpdatedByAccountUcmId(v int64)` + +SetUpdatedByAccountUcmId sets UpdatedByAccountUcmId field to given value. + +### HasUpdatedByAccountUcmId + +`func (o *VpnResponse) HasUpdatedByAccountUcmId() bool` + +HasUpdatedByAccountUcmId returns a boolean if a field has been set. + +### GetUpdatedByUserName + +`func (o *VpnResponse) GetUpdatedByUserName() string` + +GetUpdatedByUserName returns the UpdatedByUserName field if non-nil, zero value otherwise. + +### GetUpdatedByUserNameOk + +`func (o *VpnResponse) GetUpdatedByUserNameOk() (*string, bool)` + +GetUpdatedByUserNameOk returns a tuple with the UpdatedByUserName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByUserName + +`func (o *VpnResponse) SetUpdatedByUserName(v string)` + +SetUpdatedByUserName sets UpdatedByUserName field to given value. + +### HasUpdatedByUserName + +`func (o *VpnResponse) HasUpdatedByUserName() bool` + +HasUpdatedByUserName returns a boolean if a field has been set. + +### GetUpdatedByCustOrgId + +`func (o *VpnResponse) GetUpdatedByCustOrgId() int64` + +GetUpdatedByCustOrgId returns the UpdatedByCustOrgId field if non-nil, zero value otherwise. + +### GetUpdatedByCustOrgIdOk + +`func (o *VpnResponse) GetUpdatedByCustOrgIdOk() (*int64, bool)` + +GetUpdatedByCustOrgIdOk returns a tuple with the UpdatedByCustOrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByCustOrgId + +`func (o *VpnResponse) SetUpdatedByCustOrgId(v int64)` + +SetUpdatedByCustOrgId sets UpdatedByCustOrgId field to given value. + +### HasUpdatedByCustOrgId + +`func (o *VpnResponse) HasUpdatedByCustOrgId() bool` + +HasUpdatedByCustOrgId returns a boolean if a field has been set. + +### GetUpdatedByCustOrgName + +`func (o *VpnResponse) GetUpdatedByCustOrgName() string` + +GetUpdatedByCustOrgName returns the UpdatedByCustOrgName field if non-nil, zero value otherwise. + +### GetUpdatedByCustOrgNameOk + +`func (o *VpnResponse) GetUpdatedByCustOrgNameOk() (*string, bool)` + +GetUpdatedByCustOrgNameOk returns a tuple with the UpdatedByCustOrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByCustOrgName + +`func (o *VpnResponse) SetUpdatedByCustOrgName(v string)` + +SetUpdatedByCustOrgName sets UpdatedByCustOrgName field to given value. + +### HasUpdatedByCustOrgName + +`func (o *VpnResponse) HasUpdatedByCustOrgName() bool` + +HasUpdatedByCustOrgName returns a boolean if a field has been set. + +### GetUpdatedByUserStatus + +`func (o *VpnResponse) GetUpdatedByUserStatus() string` + +GetUpdatedByUserStatus returns the UpdatedByUserStatus field if non-nil, zero value otherwise. + +### GetUpdatedByUserStatusOk + +`func (o *VpnResponse) GetUpdatedByUserStatusOk() (*string, bool)` + +GetUpdatedByUserStatusOk returns a tuple with the UpdatedByUserStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByUserStatus + +`func (o *VpnResponse) SetUpdatedByUserStatus(v string)` + +SetUpdatedByUserStatus sets UpdatedByUserStatus field to given value. + +### HasUpdatedByUserStatus + +`func (o *VpnResponse) HasUpdatedByUserStatus() bool` + +HasUpdatedByUserStatus returns a boolean if a field has been set. + +### GetUpdatedByCompanyName + +`func (o *VpnResponse) GetUpdatedByCompanyName() string` + +GetUpdatedByCompanyName returns the UpdatedByCompanyName field if non-nil, zero value otherwise. + +### GetUpdatedByCompanyNameOk + +`func (o *VpnResponse) GetUpdatedByCompanyNameOk() (*string, bool)` + +GetUpdatedByCompanyNameOk returns a tuple with the UpdatedByCompanyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedByCompanyName + +`func (o *VpnResponse) SetUpdatedByCompanyName(v string)` + +SetUpdatedByCompanyName sets UpdatedByCompanyName field to given value. + +### HasUpdatedByCompanyName + +`func (o *VpnResponse) HasUpdatedByCompanyName() bool` + +HasUpdatedByCompanyName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/docs/VpnResponseDto.md b/services/networkedgev1/docs/VpnResponseDto.md new file mode 100644 index 00000000..cc161b91 --- /dev/null +++ b/services/networkedgev1/docs/VpnResponseDto.md @@ -0,0 +1,82 @@ +# VpnResponseDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**PaginationResponseDto**](PaginationResponseDto.md) | | [optional] +**Data** | Pointer to [**[]VpnResponse**](VpnResponse.md) | | [optional] + +## Methods + +### NewVpnResponseDto + +`func NewVpnResponseDto() *VpnResponseDto` + +NewVpnResponseDto instantiates a new VpnResponseDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVpnResponseDtoWithDefaults + +`func NewVpnResponseDtoWithDefaults() *VpnResponseDto` + +NewVpnResponseDtoWithDefaults instantiates a new VpnResponseDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *VpnResponseDto) GetPagination() PaginationResponseDto` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *VpnResponseDto) GetPaginationOk() (*PaginationResponseDto, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *VpnResponseDto) SetPagination(v PaginationResponseDto)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *VpnResponseDto) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *VpnResponseDto) GetData() []VpnResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *VpnResponseDto) GetDataOk() (*[]VpnResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *VpnResponseDto) SetData(v []VpnResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *VpnResponseDto) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/networkedgev1/model_acl_details.go b/services/networkedgev1/model_acl_details.go new file mode 100644 index 00000000..f8ac65a0 --- /dev/null +++ b/services/networkedgev1/model_acl_details.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ACLDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ACLDetails{} + +// ACLDetails struct for ACLDetails +type ACLDetails struct { + // Interface type, whether MGMT or WAN. + InterfaceType *string `json:"interfaceType,omitempty"` + // The unique ID of ACL. + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ACLDetails ACLDetails + +// NewACLDetails instantiates a new ACLDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewACLDetails() *ACLDetails { + this := ACLDetails{} + return &this +} + +// NewACLDetailsWithDefaults instantiates a new ACLDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewACLDetailsWithDefaults() *ACLDetails { + this := ACLDetails{} + return &this +} + +// GetInterfaceType returns the InterfaceType field value if set, zero value otherwise. +func (o *ACLDetails) GetInterfaceType() string { + if o == nil || IsNil(o.InterfaceType) { + var ret string + return ret + } + return *o.InterfaceType +} + +// GetInterfaceTypeOk returns a tuple with the InterfaceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLDetails) GetInterfaceTypeOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceType) { + return nil, false + } + return o.InterfaceType, true +} + +// HasInterfaceType returns a boolean if a field has been set. +func (o *ACLDetails) HasInterfaceType() bool { + if o != nil && !IsNil(o.InterfaceType) { + return true + } + + return false +} + +// SetInterfaceType gets a reference to the given string and assigns it to the InterfaceType field. +func (o *ACLDetails) SetInterfaceType(v string) { + o.InterfaceType = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *ACLDetails) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLDetails) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *ACLDetails) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *ACLDetails) SetUuid(v string) { + o.Uuid = &v +} + +func (o ACLDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ACLDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InterfaceType) { + toSerialize["interfaceType"] = o.InterfaceType + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ACLDetails) UnmarshalJSON(data []byte) (err error) { + varACLDetails := _ACLDetails{} + + err = json.Unmarshal(data, &varACLDetails) + + if err != nil { + return err + } + + *o = ACLDetails(varACLDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "interfaceType") + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableACLDetails struct { + value *ACLDetails + isSet bool +} + +func (v NullableACLDetails) Get() *ACLDetails { + return v.value +} + +func (v *NullableACLDetails) Set(val *ACLDetails) { + v.value = val + v.isSet = true +} + +func (v NullableACLDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableACLDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableACLDetails(val *ACLDetails) *NullableACLDetails { + return &NullableACLDetails{value: val, isSet: true} +} + +func (v NullableACLDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableACLDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_acl_object.go b/services/networkedgev1/model_acl_object.go new file mode 100644 index 00000000..bbc207fa --- /dev/null +++ b/services/networkedgev1/model_acl_object.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AclObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AclObject{} + +// AclObject struct for AclObject +type AclObject struct { + // Type of interface, whether MGMT or WAN. + InterfaceType *string `json:"interfaceType,omitempty"` + // The unique ID of template. + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AclObject AclObject + +// NewAclObject instantiates a new AclObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAclObject() *AclObject { + this := AclObject{} + return &this +} + +// NewAclObjectWithDefaults instantiates a new AclObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAclObjectWithDefaults() *AclObject { + this := AclObject{} + return &this +} + +// GetInterfaceType returns the InterfaceType field value if set, zero value otherwise. +func (o *AclObject) GetInterfaceType() string { + if o == nil || IsNil(o.InterfaceType) { + var ret string + return ret + } + return *o.InterfaceType +} + +// GetInterfaceTypeOk returns a tuple with the InterfaceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclObject) GetInterfaceTypeOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceType) { + return nil, false + } + return o.InterfaceType, true +} + +// HasInterfaceType returns a boolean if a field has been set. +func (o *AclObject) HasInterfaceType() bool { + if o != nil && !IsNil(o.InterfaceType) { + return true + } + + return false +} + +// SetInterfaceType gets a reference to the given string and assigns it to the InterfaceType field. +func (o *AclObject) SetInterfaceType(v string) { + o.InterfaceType = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *AclObject) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclObject) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *AclObject) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *AclObject) SetUuid(v string) { + o.Uuid = &v +} + +func (o AclObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AclObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InterfaceType) { + toSerialize["interfaceType"] = o.InterfaceType + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AclObject) UnmarshalJSON(data []byte) (err error) { + varAclObject := _AclObject{} + + err = json.Unmarshal(data, &varAclObject) + + if err != nil { + return err + } + + *o = AclObject(varAclObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "interfaceType") + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAclObject struct { + value *AclObject + isSet bool +} + +func (v NullableAclObject) Get() *AclObject { + return v.value +} + +func (v *NullableAclObject) Set(val *AclObject) { + v.value = val + v.isSet = true +} + +func (v NullableAclObject) IsSet() bool { + return v.isSet +} + +func (v *NullableAclObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclObject(val *AclObject) *NullableAclObject { + return &NullableAclObject{value: val, isSet: true} +} + +func (v NullableAclObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_acl_template_details_response.go b/services/networkedgev1/model_acl_template_details_response.go new file mode 100644 index 00000000..caf77687 --- /dev/null +++ b/services/networkedgev1/model_acl_template_details_response.go @@ -0,0 +1,383 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ACLTemplateDetailsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ACLTemplateDetailsResponse{} + +// ACLTemplateDetailsResponse struct for ACLTemplateDetailsResponse +type ACLTemplateDetailsResponse struct { + // The name of the ACL template. + Name *string `json:"name,omitempty"` + // The unique Id of the ACL template. + Uuid *string `json:"uuid,omitempty"` + // The description of the ACL template. + Description *string `json:"description,omitempty"` + // An array of inbound rules + InboundRules []InboundRules `json:"inboundRules,omitempty"` + // The array of devices associated with this ACL template + VirtualDeviceDetails []VirtualDeviceACLDetails `json:"virtualDeviceDetails,omitempty"` + // Created by + CreatedBy *string `json:"createdBy,omitempty"` + // Created date + CreatedDate *string `json:"createdDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ACLTemplateDetailsResponse ACLTemplateDetailsResponse + +// NewACLTemplateDetailsResponse instantiates a new ACLTemplateDetailsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewACLTemplateDetailsResponse() *ACLTemplateDetailsResponse { + this := ACLTemplateDetailsResponse{} + return &this +} + +// NewACLTemplateDetailsResponseWithDefaults instantiates a new ACLTemplateDetailsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewACLTemplateDetailsResponseWithDefaults() *ACLTemplateDetailsResponse { + this := ACLTemplateDetailsResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ACLTemplateDetailsResponse) SetName(v string) { + o.Name = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *ACLTemplateDetailsResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ACLTemplateDetailsResponse) SetDescription(v string) { + o.Description = &v +} + +// GetInboundRules returns the InboundRules field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetInboundRules() []InboundRules { + if o == nil || IsNil(o.InboundRules) { + var ret []InboundRules + return ret + } + return o.InboundRules +} + +// GetInboundRulesOk returns a tuple with the InboundRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetInboundRulesOk() ([]InboundRules, bool) { + if o == nil || IsNil(o.InboundRules) { + return nil, false + } + return o.InboundRules, true +} + +// HasInboundRules returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasInboundRules() bool { + if o != nil && !IsNil(o.InboundRules) { + return true + } + + return false +} + +// SetInboundRules gets a reference to the given []InboundRules and assigns it to the InboundRules field. +func (o *ACLTemplateDetailsResponse) SetInboundRules(v []InboundRules) { + o.InboundRules = v +} + +// GetVirtualDeviceDetails returns the VirtualDeviceDetails field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetVirtualDeviceDetails() []VirtualDeviceACLDetails { + if o == nil || IsNil(o.VirtualDeviceDetails) { + var ret []VirtualDeviceACLDetails + return ret + } + return o.VirtualDeviceDetails +} + +// GetVirtualDeviceDetailsOk returns a tuple with the VirtualDeviceDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetVirtualDeviceDetailsOk() ([]VirtualDeviceACLDetails, bool) { + if o == nil || IsNil(o.VirtualDeviceDetails) { + return nil, false + } + return o.VirtualDeviceDetails, true +} + +// HasVirtualDeviceDetails returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasVirtualDeviceDetails() bool { + if o != nil && !IsNil(o.VirtualDeviceDetails) { + return true + } + + return false +} + +// SetVirtualDeviceDetails gets a reference to the given []VirtualDeviceACLDetails and assigns it to the VirtualDeviceDetails field. +func (o *ACLTemplateDetailsResponse) SetVirtualDeviceDetails(v []VirtualDeviceACLDetails) { + o.VirtualDeviceDetails = v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ACLTemplateDetailsResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *ACLTemplateDetailsResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ACLTemplateDetailsResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *ACLTemplateDetailsResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *ACLTemplateDetailsResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +func (o ACLTemplateDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ACLTemplateDetailsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.InboundRules) { + toSerialize["inboundRules"] = o.InboundRules + } + if !IsNil(o.VirtualDeviceDetails) { + toSerialize["virtualDeviceDetails"] = o.VirtualDeviceDetails + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ACLTemplateDetailsResponse) UnmarshalJSON(data []byte) (err error) { + varACLTemplateDetailsResponse := _ACLTemplateDetailsResponse{} + + err = json.Unmarshal(data, &varACLTemplateDetailsResponse) + + if err != nil { + return err + } + + *o = ACLTemplateDetailsResponse(varACLTemplateDetailsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "uuid") + delete(additionalProperties, "description") + delete(additionalProperties, "inboundRules") + delete(additionalProperties, "virtualDeviceDetails") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableACLTemplateDetailsResponse struct { + value *ACLTemplateDetailsResponse + isSet bool +} + +func (v NullableACLTemplateDetailsResponse) Get() *ACLTemplateDetailsResponse { + return v.value +} + +func (v *NullableACLTemplateDetailsResponse) Set(val *ACLTemplateDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableACLTemplateDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableACLTemplateDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableACLTemplateDetailsResponse(val *ACLTemplateDetailsResponse) *NullableACLTemplateDetailsResponse { + return &NullableACLTemplateDetailsResponse{value: val, isSet: true} +} + +func (v NullableACLTemplateDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableACLTemplateDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_additional_bandwidth_request.go b/services/networkedgev1/model_additional_bandwidth_request.go new file mode 100644 index 00000000..01af0e36 --- /dev/null +++ b/services/networkedgev1/model_additional_bandwidth_request.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AdditionalBandwidthRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdditionalBandwidthRequest{} + +// AdditionalBandwidthRequest struct for AdditionalBandwidthRequest +type AdditionalBandwidthRequest struct { + AdditionalBandwidth *int32 `json:"additionalBandwidth,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AdditionalBandwidthRequest AdditionalBandwidthRequest + +// NewAdditionalBandwidthRequest instantiates a new AdditionalBandwidthRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdditionalBandwidthRequest() *AdditionalBandwidthRequest { + this := AdditionalBandwidthRequest{} + return &this +} + +// NewAdditionalBandwidthRequestWithDefaults instantiates a new AdditionalBandwidthRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdditionalBandwidthRequestWithDefaults() *AdditionalBandwidthRequest { + this := AdditionalBandwidthRequest{} + return &this +} + +// GetAdditionalBandwidth returns the AdditionalBandwidth field value if set, zero value otherwise. +func (o *AdditionalBandwidthRequest) GetAdditionalBandwidth() int32 { + if o == nil || IsNil(o.AdditionalBandwidth) { + var ret int32 + return ret + } + return *o.AdditionalBandwidth +} + +// GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdditionalBandwidthRequest) GetAdditionalBandwidthOk() (*int32, bool) { + if o == nil || IsNil(o.AdditionalBandwidth) { + return nil, false + } + return o.AdditionalBandwidth, true +} + +// HasAdditionalBandwidth returns a boolean if a field has been set. +func (o *AdditionalBandwidthRequest) HasAdditionalBandwidth() bool { + if o != nil && !IsNil(o.AdditionalBandwidth) { + return true + } + + return false +} + +// SetAdditionalBandwidth gets a reference to the given int32 and assigns it to the AdditionalBandwidth field. +func (o *AdditionalBandwidthRequest) SetAdditionalBandwidth(v int32) { + o.AdditionalBandwidth = &v +} + +func (o AdditionalBandwidthRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdditionalBandwidthRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AdditionalBandwidth) { + toSerialize["additionalBandwidth"] = o.AdditionalBandwidth + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AdditionalBandwidthRequest) UnmarshalJSON(data []byte) (err error) { + varAdditionalBandwidthRequest := _AdditionalBandwidthRequest{} + + err = json.Unmarshal(data, &varAdditionalBandwidthRequest) + + if err != nil { + return err + } + + *o = AdditionalBandwidthRequest(varAdditionalBandwidthRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "additionalBandwidth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAdditionalBandwidthRequest struct { + value *AdditionalBandwidthRequest + isSet bool +} + +func (v NullableAdditionalBandwidthRequest) Get() *AdditionalBandwidthRequest { + return v.value +} + +func (v *NullableAdditionalBandwidthRequest) Set(val *AdditionalBandwidthRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAdditionalBandwidthRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAdditionalBandwidthRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdditionalBandwidthRequest(val *AdditionalBandwidthRequest) *NullableAdditionalBandwidthRequest { + return &NullableAdditionalBandwidthRequest{value: val, isSet: true} +} + +func (v NullableAdditionalBandwidthRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdditionalBandwidthRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_additional_fields_config.go b/services/networkedgev1/model_additional_fields_config.go new file mode 100644 index 00000000..d09d58cb --- /dev/null +++ b/services/networkedgev1/model_additional_fields_config.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AdditionalFieldsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdditionalFieldsConfig{} + +// AdditionalFieldsConfig struct for AdditionalFieldsConfig +type AdditionalFieldsConfig struct { + // The name of field. + Name *string `json:"name,omitempty"` + // Whether or not the field is required at the time of device creation. + Required *bool `json:"required,omitempty"` + // Whether or not you need two distinct values for primary and secondary devices at the time of device creation. This field is only useful for HA devices. + IsSameValueAllowedForPrimaryAndSecondary *bool `json:"isSameValueAllowedForPrimaryAndSecondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AdditionalFieldsConfig AdditionalFieldsConfig + +// NewAdditionalFieldsConfig instantiates a new AdditionalFieldsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdditionalFieldsConfig() *AdditionalFieldsConfig { + this := AdditionalFieldsConfig{} + return &this +} + +// NewAdditionalFieldsConfigWithDefaults instantiates a new AdditionalFieldsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdditionalFieldsConfigWithDefaults() *AdditionalFieldsConfig { + this := AdditionalFieldsConfig{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AdditionalFieldsConfig) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdditionalFieldsConfig) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *AdditionalFieldsConfig) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *AdditionalFieldsConfig) SetName(v string) { + o.Name = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *AdditionalFieldsConfig) GetRequired() bool { + if o == nil || IsNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdditionalFieldsConfig) GetRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *AdditionalFieldsConfig) HasRequired() bool { + if o != nil && !IsNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *AdditionalFieldsConfig) SetRequired(v bool) { + o.Required = &v +} + +// GetIsSameValueAllowedForPrimaryAndSecondary returns the IsSameValueAllowedForPrimaryAndSecondary field value if set, zero value otherwise. +func (o *AdditionalFieldsConfig) GetIsSameValueAllowedForPrimaryAndSecondary() bool { + if o == nil || IsNil(o.IsSameValueAllowedForPrimaryAndSecondary) { + var ret bool + return ret + } + return *o.IsSameValueAllowedForPrimaryAndSecondary +} + +// GetIsSameValueAllowedForPrimaryAndSecondaryOk returns a tuple with the IsSameValueAllowedForPrimaryAndSecondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdditionalFieldsConfig) GetIsSameValueAllowedForPrimaryAndSecondaryOk() (*bool, bool) { + if o == nil || IsNil(o.IsSameValueAllowedForPrimaryAndSecondary) { + return nil, false + } + return o.IsSameValueAllowedForPrimaryAndSecondary, true +} + +// HasIsSameValueAllowedForPrimaryAndSecondary returns a boolean if a field has been set. +func (o *AdditionalFieldsConfig) HasIsSameValueAllowedForPrimaryAndSecondary() bool { + if o != nil && !IsNil(o.IsSameValueAllowedForPrimaryAndSecondary) { + return true + } + + return false +} + +// SetIsSameValueAllowedForPrimaryAndSecondary gets a reference to the given bool and assigns it to the IsSameValueAllowedForPrimaryAndSecondary field. +func (o *AdditionalFieldsConfig) SetIsSameValueAllowedForPrimaryAndSecondary(v bool) { + o.IsSameValueAllowedForPrimaryAndSecondary = &v +} + +func (o AdditionalFieldsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdditionalFieldsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.IsSameValueAllowedForPrimaryAndSecondary) { + toSerialize["isSameValueAllowedForPrimaryAndSecondary"] = o.IsSameValueAllowedForPrimaryAndSecondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AdditionalFieldsConfig) UnmarshalJSON(data []byte) (err error) { + varAdditionalFieldsConfig := _AdditionalFieldsConfig{} + + err = json.Unmarshal(data, &varAdditionalFieldsConfig) + + if err != nil { + return err + } + + *o = AdditionalFieldsConfig(varAdditionalFieldsConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "required") + delete(additionalProperties, "isSameValueAllowedForPrimaryAndSecondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAdditionalFieldsConfig struct { + value *AdditionalFieldsConfig + isSet bool +} + +func (v NullableAdditionalFieldsConfig) Get() *AdditionalFieldsConfig { + return v.value +} + +func (v *NullableAdditionalFieldsConfig) Set(val *AdditionalFieldsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableAdditionalFieldsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableAdditionalFieldsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdditionalFieldsConfig(val *AdditionalFieldsConfig) *NullableAdditionalFieldsConfig { + return &NullableAdditionalFieldsConfig{value: val, isSet: true} +} + +func (v NullableAdditionalFieldsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdditionalFieldsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_agreement_accept_request.go b/services/networkedgev1/model_agreement_accept_request.go new file mode 100644 index 00000000..48f1b2d1 --- /dev/null +++ b/services/networkedgev1/model_agreement_accept_request.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AgreementAcceptRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AgreementAcceptRequest{} + +// AgreementAcceptRequest struct for AgreementAcceptRequest +type AgreementAcceptRequest struct { + AccountNumber *string `json:"accountNumber,omitempty"` + // The version number of the agreement + ApttusId *string `json:"apttusId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AgreementAcceptRequest AgreementAcceptRequest + +// NewAgreementAcceptRequest instantiates a new AgreementAcceptRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAgreementAcceptRequest() *AgreementAcceptRequest { + this := AgreementAcceptRequest{} + return &this +} + +// NewAgreementAcceptRequestWithDefaults instantiates a new AgreementAcceptRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAgreementAcceptRequestWithDefaults() *AgreementAcceptRequest { + this := AgreementAcceptRequest{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *AgreementAcceptRequest) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementAcceptRequest) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *AgreementAcceptRequest) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *AgreementAcceptRequest) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetApttusId returns the ApttusId field value if set, zero value otherwise. +func (o *AgreementAcceptRequest) GetApttusId() string { + if o == nil || IsNil(o.ApttusId) { + var ret string + return ret + } + return *o.ApttusId +} + +// GetApttusIdOk returns a tuple with the ApttusId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementAcceptRequest) GetApttusIdOk() (*string, bool) { + if o == nil || IsNil(o.ApttusId) { + return nil, false + } + return o.ApttusId, true +} + +// HasApttusId returns a boolean if a field has been set. +func (o *AgreementAcceptRequest) HasApttusId() bool { + if o != nil && !IsNil(o.ApttusId) { + return true + } + + return false +} + +// SetApttusId gets a reference to the given string and assigns it to the ApttusId field. +func (o *AgreementAcceptRequest) SetApttusId(v string) { + o.ApttusId = &v +} + +func (o AgreementAcceptRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AgreementAcceptRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.ApttusId) { + toSerialize["apttusId"] = o.ApttusId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AgreementAcceptRequest) UnmarshalJSON(data []byte) (err error) { + varAgreementAcceptRequest := _AgreementAcceptRequest{} + + err = json.Unmarshal(data, &varAgreementAcceptRequest) + + if err != nil { + return err + } + + *o = AgreementAcceptRequest(varAgreementAcceptRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "apttusId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAgreementAcceptRequest struct { + value *AgreementAcceptRequest + isSet bool +} + +func (v NullableAgreementAcceptRequest) Get() *AgreementAcceptRequest { + return v.value +} + +func (v *NullableAgreementAcceptRequest) Set(val *AgreementAcceptRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAgreementAcceptRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAgreementAcceptRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAgreementAcceptRequest(val *AgreementAcceptRequest) *NullableAgreementAcceptRequest { + return &NullableAgreementAcceptRequest{value: val, isSet: true} +} + +func (v NullableAgreementAcceptRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAgreementAcceptRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_agreement_accept_response.go b/services/networkedgev1/model_agreement_accept_response.go new file mode 100644 index 00000000..295fc0c2 --- /dev/null +++ b/services/networkedgev1/model_agreement_accept_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AgreementAcceptResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AgreementAcceptResponse{} + +// AgreementAcceptResponse struct for AgreementAcceptResponse +type AgreementAcceptResponse struct { + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AgreementAcceptResponse AgreementAcceptResponse + +// NewAgreementAcceptResponse instantiates a new AgreementAcceptResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAgreementAcceptResponse() *AgreementAcceptResponse { + this := AgreementAcceptResponse{} + return &this +} + +// NewAgreementAcceptResponseWithDefaults instantiates a new AgreementAcceptResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAgreementAcceptResponseWithDefaults() *AgreementAcceptResponse { + this := AgreementAcceptResponse{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AgreementAcceptResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementAcceptResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AgreementAcceptResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *AgreementAcceptResponse) SetStatus(v string) { + o.Status = &v +} + +func (o AgreementAcceptResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AgreementAcceptResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AgreementAcceptResponse) UnmarshalJSON(data []byte) (err error) { + varAgreementAcceptResponse := _AgreementAcceptResponse{} + + err = json.Unmarshal(data, &varAgreementAcceptResponse) + + if err != nil { + return err + } + + *o = AgreementAcceptResponse(varAgreementAcceptResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAgreementAcceptResponse struct { + value *AgreementAcceptResponse + isSet bool +} + +func (v NullableAgreementAcceptResponse) Get() *AgreementAcceptResponse { + return v.value +} + +func (v *NullableAgreementAcceptResponse) Set(val *AgreementAcceptResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAgreementAcceptResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAgreementAcceptResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAgreementAcceptResponse(val *AgreementAcceptResponse) *NullableAgreementAcceptResponse { + return &NullableAgreementAcceptResponse{value: val, isSet: true} +} + +func (v NullableAgreementAcceptResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAgreementAcceptResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_agreement_status_response.go b/services/networkedgev1/model_agreement_status_response.go new file mode 100644 index 00000000..82d49fef --- /dev/null +++ b/services/networkedgev1/model_agreement_status_response.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AgreementStatusResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AgreementStatusResponse{} + +// AgreementStatusResponse struct for AgreementStatusResponse +type AgreementStatusResponse struct { + ErrorMessage *string `json:"errorMessage,omitempty"` + IsValid *string `json:"isValid,omitempty"` + Terms *string `json:"terms,omitempty"` + TermsVersionID *string `json:"termsVersionID,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AgreementStatusResponse AgreementStatusResponse + +// NewAgreementStatusResponse instantiates a new AgreementStatusResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAgreementStatusResponse() *AgreementStatusResponse { + this := AgreementStatusResponse{} + return &this +} + +// NewAgreementStatusResponseWithDefaults instantiates a new AgreementStatusResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAgreementStatusResponseWithDefaults() *AgreementStatusResponse { + this := AgreementStatusResponse{} + return &this +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *AgreementStatusResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementStatusResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *AgreementStatusResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *AgreementStatusResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetIsValid returns the IsValid field value if set, zero value otherwise. +func (o *AgreementStatusResponse) GetIsValid() string { + if o == nil || IsNil(o.IsValid) { + var ret string + return ret + } + return *o.IsValid +} + +// GetIsValidOk returns a tuple with the IsValid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementStatusResponse) GetIsValidOk() (*string, bool) { + if o == nil || IsNil(o.IsValid) { + return nil, false + } + return o.IsValid, true +} + +// HasIsValid returns a boolean if a field has been set. +func (o *AgreementStatusResponse) HasIsValid() bool { + if o != nil && !IsNil(o.IsValid) { + return true + } + + return false +} + +// SetIsValid gets a reference to the given string and assigns it to the IsValid field. +func (o *AgreementStatusResponse) SetIsValid(v string) { + o.IsValid = &v +} + +// GetTerms returns the Terms field value if set, zero value otherwise. +func (o *AgreementStatusResponse) GetTerms() string { + if o == nil || IsNil(o.Terms) { + var ret string + return ret + } + return *o.Terms +} + +// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementStatusResponse) GetTermsOk() (*string, bool) { + if o == nil || IsNil(o.Terms) { + return nil, false + } + return o.Terms, true +} + +// HasTerms returns a boolean if a field has been set. +func (o *AgreementStatusResponse) HasTerms() bool { + if o != nil && !IsNil(o.Terms) { + return true + } + + return false +} + +// SetTerms gets a reference to the given string and assigns it to the Terms field. +func (o *AgreementStatusResponse) SetTerms(v string) { + o.Terms = &v +} + +// GetTermsVersionID returns the TermsVersionID field value if set, zero value otherwise. +func (o *AgreementStatusResponse) GetTermsVersionID() string { + if o == nil || IsNil(o.TermsVersionID) { + var ret string + return ret + } + return *o.TermsVersionID +} + +// GetTermsVersionIDOk returns a tuple with the TermsVersionID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AgreementStatusResponse) GetTermsVersionIDOk() (*string, bool) { + if o == nil || IsNil(o.TermsVersionID) { + return nil, false + } + return o.TermsVersionID, true +} + +// HasTermsVersionID returns a boolean if a field has been set. +func (o *AgreementStatusResponse) HasTermsVersionID() bool { + if o != nil && !IsNil(o.TermsVersionID) { + return true + } + + return false +} + +// SetTermsVersionID gets a reference to the given string and assigns it to the TermsVersionID field. +func (o *AgreementStatusResponse) SetTermsVersionID(v string) { + o.TermsVersionID = &v +} + +func (o AgreementStatusResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AgreementStatusResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.IsValid) { + toSerialize["isValid"] = o.IsValid + } + if !IsNil(o.Terms) { + toSerialize["terms"] = o.Terms + } + if !IsNil(o.TermsVersionID) { + toSerialize["termsVersionID"] = o.TermsVersionID + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AgreementStatusResponse) UnmarshalJSON(data []byte) (err error) { + varAgreementStatusResponse := _AgreementStatusResponse{} + + err = json.Unmarshal(data, &varAgreementStatusResponse) + + if err != nil { + return err + } + + *o = AgreementStatusResponse(varAgreementStatusResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "isValid") + delete(additionalProperties, "terms") + delete(additionalProperties, "termsVersionID") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAgreementStatusResponse struct { + value *AgreementStatusResponse + isSet bool +} + +func (v NullableAgreementStatusResponse) Get() *AgreementStatusResponse { + return v.value +} + +func (v *NullableAgreementStatusResponse) Set(val *AgreementStatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAgreementStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAgreementStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAgreementStatusResponse(val *AgreementStatusResponse) *NullableAgreementStatusResponse { + return &NullableAgreementStatusResponse{value: val, isSet: true} +} + +func (v NullableAgreementStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAgreementStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_allowed_interface_profiles.go b/services/networkedgev1/model_allowed_interface_profiles.go new file mode 100644 index 00000000..426b8d3a --- /dev/null +++ b/services/networkedgev1/model_allowed_interface_profiles.go @@ -0,0 +1,230 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AllowedInterfaceProfiles type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AllowedInterfaceProfiles{} + +// AllowedInterfaceProfiles struct for AllowedInterfaceProfiles +type AllowedInterfaceProfiles struct { + // Allowed interface count + Count *float32 `json:"count,omitempty"` + Interfaces []InterfaceDetails `json:"interfaces,omitempty"` + // Whether this will be the default interface count if you do not provide a number. + Default *bool `json:"default,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AllowedInterfaceProfiles AllowedInterfaceProfiles + +// NewAllowedInterfaceProfiles instantiates a new AllowedInterfaceProfiles object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAllowedInterfaceProfiles() *AllowedInterfaceProfiles { + this := AllowedInterfaceProfiles{} + return &this +} + +// NewAllowedInterfaceProfilesWithDefaults instantiates a new AllowedInterfaceProfiles object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAllowedInterfaceProfilesWithDefaults() *AllowedInterfaceProfiles { + this := AllowedInterfaceProfiles{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AllowedInterfaceProfiles) GetCount() float32 { + if o == nil || IsNil(o.Count) { + var ret float32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AllowedInterfaceProfiles) GetCountOk() (*float32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AllowedInterfaceProfiles) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given float32 and assigns it to the Count field. +func (o *AllowedInterfaceProfiles) SetCount(v float32) { + o.Count = &v +} + +// GetInterfaces returns the Interfaces field value if set, zero value otherwise. +func (o *AllowedInterfaceProfiles) GetInterfaces() []InterfaceDetails { + if o == nil || IsNil(o.Interfaces) { + var ret []InterfaceDetails + return ret + } + return o.Interfaces +} + +// GetInterfacesOk returns a tuple with the Interfaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AllowedInterfaceProfiles) GetInterfacesOk() ([]InterfaceDetails, bool) { + if o == nil || IsNil(o.Interfaces) { + return nil, false + } + return o.Interfaces, true +} + +// HasInterfaces returns a boolean if a field has been set. +func (o *AllowedInterfaceProfiles) HasInterfaces() bool { + if o != nil && !IsNil(o.Interfaces) { + return true + } + + return false +} + +// SetInterfaces gets a reference to the given []InterfaceDetails and assigns it to the Interfaces field. +func (o *AllowedInterfaceProfiles) SetInterfaces(v []InterfaceDetails) { + o.Interfaces = v +} + +// GetDefault returns the Default field value if set, zero value otherwise. +func (o *AllowedInterfaceProfiles) GetDefault() bool { + if o == nil || IsNil(o.Default) { + var ret bool + return ret + } + return *o.Default +} + +// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AllowedInterfaceProfiles) GetDefaultOk() (*bool, bool) { + if o == nil || IsNil(o.Default) { + return nil, false + } + return o.Default, true +} + +// HasDefault returns a boolean if a field has been set. +func (o *AllowedInterfaceProfiles) HasDefault() bool { + if o != nil && !IsNil(o.Default) { + return true + } + + return false +} + +// SetDefault gets a reference to the given bool and assigns it to the Default field. +func (o *AllowedInterfaceProfiles) SetDefault(v bool) { + o.Default = &v +} + +func (o AllowedInterfaceProfiles) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AllowedInterfaceProfiles) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.Interfaces) { + toSerialize["interfaces"] = o.Interfaces + } + if !IsNil(o.Default) { + toSerialize["default"] = o.Default + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AllowedInterfaceProfiles) UnmarshalJSON(data []byte) (err error) { + varAllowedInterfaceProfiles := _AllowedInterfaceProfiles{} + + err = json.Unmarshal(data, &varAllowedInterfaceProfiles) + + if err != nil { + return err + } + + *o = AllowedInterfaceProfiles(varAllowedInterfaceProfiles) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "interfaces") + delete(additionalProperties, "default") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAllowedInterfaceProfiles struct { + value *AllowedInterfaceProfiles + isSet bool +} + +func (v NullableAllowedInterfaceProfiles) Get() *AllowedInterfaceProfiles { + return v.value +} + +func (v *NullableAllowedInterfaceProfiles) Set(val *AllowedInterfaceProfiles) { + v.value = val + v.isSet = true +} + +func (v NullableAllowedInterfaceProfiles) IsSet() bool { + return v.isSet +} + +func (v *NullableAllowedInterfaceProfiles) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAllowedInterfaceProfiles(val *AllowedInterfaceProfiles) *NullableAllowedInterfaceProfiles { + return &NullableAllowedInterfaceProfiles{value: val, isSet: true} +} + +func (v NullableAllowedInterfaceProfiles) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAllowedInterfaceProfiles) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_allowed_interface_response.go b/services/networkedgev1/model_allowed_interface_response.go new file mode 100644 index 00000000..eb9e04a6 --- /dev/null +++ b/services/networkedgev1/model_allowed_interface_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the AllowedInterfaceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AllowedInterfaceResponse{} + +// AllowedInterfaceResponse struct for AllowedInterfaceResponse +type AllowedInterfaceResponse struct { + InterfaceProfiles []AllowedInterfaceProfiles `json:"interfaceProfiles,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AllowedInterfaceResponse AllowedInterfaceResponse + +// NewAllowedInterfaceResponse instantiates a new AllowedInterfaceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAllowedInterfaceResponse() *AllowedInterfaceResponse { + this := AllowedInterfaceResponse{} + return &this +} + +// NewAllowedInterfaceResponseWithDefaults instantiates a new AllowedInterfaceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAllowedInterfaceResponseWithDefaults() *AllowedInterfaceResponse { + this := AllowedInterfaceResponse{} + return &this +} + +// GetInterfaceProfiles returns the InterfaceProfiles field value if set, zero value otherwise. +func (o *AllowedInterfaceResponse) GetInterfaceProfiles() []AllowedInterfaceProfiles { + if o == nil || IsNil(o.InterfaceProfiles) { + var ret []AllowedInterfaceProfiles + return ret + } + return o.InterfaceProfiles +} + +// GetInterfaceProfilesOk returns a tuple with the InterfaceProfiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AllowedInterfaceResponse) GetInterfaceProfilesOk() ([]AllowedInterfaceProfiles, bool) { + if o == nil || IsNil(o.InterfaceProfiles) { + return nil, false + } + return o.InterfaceProfiles, true +} + +// HasInterfaceProfiles returns a boolean if a field has been set. +func (o *AllowedInterfaceResponse) HasInterfaceProfiles() bool { + if o != nil && !IsNil(o.InterfaceProfiles) { + return true + } + + return false +} + +// SetInterfaceProfiles gets a reference to the given []AllowedInterfaceProfiles and assigns it to the InterfaceProfiles field. +func (o *AllowedInterfaceResponse) SetInterfaceProfiles(v []AllowedInterfaceProfiles) { + o.InterfaceProfiles = v +} + +func (o AllowedInterfaceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AllowedInterfaceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InterfaceProfiles) { + toSerialize["interfaceProfiles"] = o.InterfaceProfiles + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AllowedInterfaceResponse) UnmarshalJSON(data []byte) (err error) { + varAllowedInterfaceResponse := _AllowedInterfaceResponse{} + + err = json.Unmarshal(data, &varAllowedInterfaceResponse) + + if err != nil { + return err + } + + *o = AllowedInterfaceResponse(varAllowedInterfaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "interfaceProfiles") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAllowedInterfaceResponse struct { + value *AllowedInterfaceResponse + isSet bool +} + +func (v NullableAllowedInterfaceResponse) Get() *AllowedInterfaceResponse { + return v.value +} + +func (v *NullableAllowedInterfaceResponse) Set(val *AllowedInterfaceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAllowedInterfaceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAllowedInterfaceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAllowedInterfaceResponse(val *AllowedInterfaceResponse) *NullableAllowedInterfaceResponse { + return &NullableAllowedInterfaceResponse{value: val, isSet: true} +} + +func (v NullableAllowedInterfaceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAllowedInterfaceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_bgp_async_response.go b/services/networkedgev1/model_bgp_async_response.go new file mode 100644 index 00000000..295731df --- /dev/null +++ b/services/networkedgev1/model_bgp_async_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the BgpAsyncResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BgpAsyncResponse{} + +// BgpAsyncResponse struct for BgpAsyncResponse +type BgpAsyncResponse struct { + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BgpAsyncResponse BgpAsyncResponse + +// NewBgpAsyncResponse instantiates a new BgpAsyncResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBgpAsyncResponse() *BgpAsyncResponse { + this := BgpAsyncResponse{} + return &this +} + +// NewBgpAsyncResponseWithDefaults instantiates a new BgpAsyncResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBgpAsyncResponseWithDefaults() *BgpAsyncResponse { + this := BgpAsyncResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *BgpAsyncResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpAsyncResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *BgpAsyncResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *BgpAsyncResponse) SetUuid(v string) { + o.Uuid = &v +} + +func (o BgpAsyncResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BgpAsyncResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BgpAsyncResponse) UnmarshalJSON(data []byte) (err error) { + varBgpAsyncResponse := _BgpAsyncResponse{} + + err = json.Unmarshal(data, &varBgpAsyncResponse) + + if err != nil { + return err + } + + *o = BgpAsyncResponse(varBgpAsyncResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBgpAsyncResponse struct { + value *BgpAsyncResponse + isSet bool +} + +func (v NullableBgpAsyncResponse) Get() *BgpAsyncResponse { + return v.value +} + +func (v *NullableBgpAsyncResponse) Set(val *BgpAsyncResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBgpAsyncResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBgpAsyncResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBgpAsyncResponse(val *BgpAsyncResponse) *NullableBgpAsyncResponse { + return &NullableBgpAsyncResponse{value: val, isSet: true} +} + +func (v NullableBgpAsyncResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBgpAsyncResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_bgp_config_add_request.go b/services/networkedgev1/model_bgp_config_add_request.go new file mode 100644 index 00000000..a72493c6 --- /dev/null +++ b/services/networkedgev1/model_bgp_config_add_request.go @@ -0,0 +1,345 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the BgpConfigAddRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BgpConfigAddRequest{} + +// BgpConfigAddRequest struct for BgpConfigAddRequest +type BgpConfigAddRequest struct { + // Provide a key value that you can use later to authenticate. + AuthenticationKey *string `json:"authenticationKey,omitempty"` + // The unique Id of a connection between the virtual device and the cloud service provider + ConnectionUuid *string `json:"connectionUuid,omitempty"` + // Local ASN (autonomous system network). This is the ASN of the virtual device. + LocalAsn *int64 `json:"localAsn,omitempty"` + // Local IP Address. This is the IP address of the virtual device in CIDR format. + LocalIpAddress *string `json:"localIpAddress,omitempty"` + // Remote ASN (autonomous system network). This is the ASN of the cloud service provider. + RemoteAsn *int64 `json:"remoteAsn,omitempty"` + // Remote IP Address. This is the IP address of the cloud service provider. + RemoteIpAddress *string `json:"remoteIpAddress,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BgpConfigAddRequest BgpConfigAddRequest + +// NewBgpConfigAddRequest instantiates a new BgpConfigAddRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBgpConfigAddRequest() *BgpConfigAddRequest { + this := BgpConfigAddRequest{} + return &this +} + +// NewBgpConfigAddRequestWithDefaults instantiates a new BgpConfigAddRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBgpConfigAddRequestWithDefaults() *BgpConfigAddRequest { + this := BgpConfigAddRequest{} + return &this +} + +// GetAuthenticationKey returns the AuthenticationKey field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetAuthenticationKey() string { + if o == nil || IsNil(o.AuthenticationKey) { + var ret string + return ret + } + return *o.AuthenticationKey +} + +// GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetAuthenticationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticationKey) { + return nil, false + } + return o.AuthenticationKey, true +} + +// HasAuthenticationKey returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasAuthenticationKey() bool { + if o != nil && !IsNil(o.AuthenticationKey) { + return true + } + + return false +} + +// SetAuthenticationKey gets a reference to the given string and assigns it to the AuthenticationKey field. +func (o *BgpConfigAddRequest) SetAuthenticationKey(v string) { + o.AuthenticationKey = &v +} + +// GetConnectionUuid returns the ConnectionUuid field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetConnectionUuid() string { + if o == nil || IsNil(o.ConnectionUuid) { + var ret string + return ret + } + return *o.ConnectionUuid +} + +// GetConnectionUuidOk returns a tuple with the ConnectionUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetConnectionUuidOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionUuid) { + return nil, false + } + return o.ConnectionUuid, true +} + +// HasConnectionUuid returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasConnectionUuid() bool { + if o != nil && !IsNil(o.ConnectionUuid) { + return true + } + + return false +} + +// SetConnectionUuid gets a reference to the given string and assigns it to the ConnectionUuid field. +func (o *BgpConfigAddRequest) SetConnectionUuid(v string) { + o.ConnectionUuid = &v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *BgpConfigAddRequest) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetLocalIpAddress returns the LocalIpAddress field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetLocalIpAddress() string { + if o == nil || IsNil(o.LocalIpAddress) { + var ret string + return ret + } + return *o.LocalIpAddress +} + +// GetLocalIpAddressOk returns a tuple with the LocalIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetLocalIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.LocalIpAddress) { + return nil, false + } + return o.LocalIpAddress, true +} + +// HasLocalIpAddress returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasLocalIpAddress() bool { + if o != nil && !IsNil(o.LocalIpAddress) { + return true + } + + return false +} + +// SetLocalIpAddress gets a reference to the given string and assigns it to the LocalIpAddress field. +func (o *BgpConfigAddRequest) SetLocalIpAddress(v string) { + o.LocalIpAddress = &v +} + +// GetRemoteAsn returns the RemoteAsn field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetRemoteAsn() int64 { + if o == nil || IsNil(o.RemoteAsn) { + var ret int64 + return ret + } + return *o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetRemoteAsnOk() (*int64, bool) { + if o == nil || IsNil(o.RemoteAsn) { + return nil, false + } + return o.RemoteAsn, true +} + +// HasRemoteAsn returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasRemoteAsn() bool { + if o != nil && !IsNil(o.RemoteAsn) { + return true + } + + return false +} + +// SetRemoteAsn gets a reference to the given int64 and assigns it to the RemoteAsn field. +func (o *BgpConfigAddRequest) SetRemoteAsn(v int64) { + o.RemoteAsn = &v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value if set, zero value otherwise. +func (o *BgpConfigAddRequest) GetRemoteIpAddress() string { + if o == nil || IsNil(o.RemoteIpAddress) { + var ret string + return ret + } + return *o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConfigAddRequest) GetRemoteIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.RemoteIpAddress) { + return nil, false + } + return o.RemoteIpAddress, true +} + +// HasRemoteIpAddress returns a boolean if a field has been set. +func (o *BgpConfigAddRequest) HasRemoteIpAddress() bool { + if o != nil && !IsNil(o.RemoteIpAddress) { + return true + } + + return false +} + +// SetRemoteIpAddress gets a reference to the given string and assigns it to the RemoteIpAddress field. +func (o *BgpConfigAddRequest) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = &v +} + +func (o BgpConfigAddRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BgpConfigAddRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthenticationKey) { + toSerialize["authenticationKey"] = o.AuthenticationKey + } + if !IsNil(o.ConnectionUuid) { + toSerialize["connectionUuid"] = o.ConnectionUuid + } + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + if !IsNil(o.LocalIpAddress) { + toSerialize["localIpAddress"] = o.LocalIpAddress + } + if !IsNil(o.RemoteAsn) { + toSerialize["remoteAsn"] = o.RemoteAsn + } + if !IsNil(o.RemoteIpAddress) { + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BgpConfigAddRequest) UnmarshalJSON(data []byte) (err error) { + varBgpConfigAddRequest := _BgpConfigAddRequest{} + + err = json.Unmarshal(data, &varBgpConfigAddRequest) + + if err != nil { + return err + } + + *o = BgpConfigAddRequest(varBgpConfigAddRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "authenticationKey") + delete(additionalProperties, "connectionUuid") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "localIpAddress") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBgpConfigAddRequest struct { + value *BgpConfigAddRequest + isSet bool +} + +func (v NullableBgpConfigAddRequest) Get() *BgpConfigAddRequest { + return v.value +} + +func (v *NullableBgpConfigAddRequest) Set(val *BgpConfigAddRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBgpConfigAddRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBgpConfigAddRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBgpConfigAddRequest(val *BgpConfigAddRequest) *NullableBgpConfigAddRequest { + return &NullableBgpConfigAddRequest{value: val, isSet: true} +} + +func (v NullableBgpConfigAddRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBgpConfigAddRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_bgp_connection_info.go b/services/networkedgev1/model_bgp_connection_info.go new file mode 100644 index 00000000..dd1084d0 --- /dev/null +++ b/services/networkedgev1/model_bgp_connection_info.go @@ -0,0 +1,487 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the BgpConnectionInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BgpConnectionInfo{} + +// BgpConnectionInfo struct for BgpConnectionInfo +type BgpConnectionInfo struct { + BgpStatus *string `json:"bgpStatus,omitempty"` + IsPrimary *bool `json:"isPrimary,omitempty"` + Metro *string `json:"metro,omitempty"` + Name *string `json:"name,omitempty"` + ProviderStatus *string `json:"providerStatus,omitempty"` + RedundantConnection *BgpConnectionInfo `json:"redundantConnection,omitempty"` + RedundantUUID *string `json:"redundantUUID,omitempty"` + SellerOrganizationName *string `json:"sellerOrganizationName,omitempty"` + Status *string `json:"status,omitempty"` + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BgpConnectionInfo BgpConnectionInfo + +// NewBgpConnectionInfo instantiates a new BgpConnectionInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBgpConnectionInfo() *BgpConnectionInfo { + this := BgpConnectionInfo{} + return &this +} + +// NewBgpConnectionInfoWithDefaults instantiates a new BgpConnectionInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBgpConnectionInfoWithDefaults() *BgpConnectionInfo { + this := BgpConnectionInfo{} + return &this +} + +// GetBgpStatus returns the BgpStatus field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetBgpStatus() string { + if o == nil || IsNil(o.BgpStatus) { + var ret string + return ret + } + return *o.BgpStatus +} + +// GetBgpStatusOk returns a tuple with the BgpStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetBgpStatusOk() (*string, bool) { + if o == nil || IsNil(o.BgpStatus) { + return nil, false + } + return o.BgpStatus, true +} + +// HasBgpStatus returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasBgpStatus() bool { + if o != nil && !IsNil(o.BgpStatus) { + return true + } + + return false +} + +// SetBgpStatus gets a reference to the given string and assigns it to the BgpStatus field. +func (o *BgpConnectionInfo) SetBgpStatus(v string) { + o.BgpStatus = &v +} + +// GetIsPrimary returns the IsPrimary field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetIsPrimary() bool { + if o == nil || IsNil(o.IsPrimary) { + var ret bool + return ret + } + return *o.IsPrimary +} + +// GetIsPrimaryOk returns a tuple with the IsPrimary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetIsPrimaryOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrimary) { + return nil, false + } + return o.IsPrimary, true +} + +// HasIsPrimary returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasIsPrimary() bool { + if o != nil && !IsNil(o.IsPrimary) { + return true + } + + return false +} + +// SetIsPrimary gets a reference to the given bool and assigns it to the IsPrimary field. +func (o *BgpConnectionInfo) SetIsPrimary(v bool) { + o.IsPrimary = &v +} + +// GetMetro returns the Metro field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetMetro() string { + if o == nil || IsNil(o.Metro) { + var ret string + return ret + } + return *o.Metro +} + +// GetMetroOk returns a tuple with the Metro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetMetroOk() (*string, bool) { + if o == nil || IsNil(o.Metro) { + return nil, false + } + return o.Metro, true +} + +// HasMetro returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasMetro() bool { + if o != nil && !IsNil(o.Metro) { + return true + } + + return false +} + +// SetMetro gets a reference to the given string and assigns it to the Metro field. +func (o *BgpConnectionInfo) SetMetro(v string) { + o.Metro = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BgpConnectionInfo) SetName(v string) { + o.Name = &v +} + +// GetProviderStatus returns the ProviderStatus field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetProviderStatus() string { + if o == nil || IsNil(o.ProviderStatus) { + var ret string + return ret + } + return *o.ProviderStatus +} + +// GetProviderStatusOk returns a tuple with the ProviderStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetProviderStatusOk() (*string, bool) { + if o == nil || IsNil(o.ProviderStatus) { + return nil, false + } + return o.ProviderStatus, true +} + +// HasProviderStatus returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasProviderStatus() bool { + if o != nil && !IsNil(o.ProviderStatus) { + return true + } + + return false +} + +// SetProviderStatus gets a reference to the given string and assigns it to the ProviderStatus field. +func (o *BgpConnectionInfo) SetProviderStatus(v string) { + o.ProviderStatus = &v +} + +// GetRedundantConnection returns the RedundantConnection field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetRedundantConnection() BgpConnectionInfo { + if o == nil || IsNil(o.RedundantConnection) { + var ret BgpConnectionInfo + return ret + } + return *o.RedundantConnection +} + +// GetRedundantConnectionOk returns a tuple with the RedundantConnection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetRedundantConnectionOk() (*BgpConnectionInfo, bool) { + if o == nil || IsNil(o.RedundantConnection) { + return nil, false + } + return o.RedundantConnection, true +} + +// HasRedundantConnection returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasRedundantConnection() bool { + if o != nil && !IsNil(o.RedundantConnection) { + return true + } + + return false +} + +// SetRedundantConnection gets a reference to the given BgpConnectionInfo and assigns it to the RedundantConnection field. +func (o *BgpConnectionInfo) SetRedundantConnection(v BgpConnectionInfo) { + o.RedundantConnection = &v +} + +// GetRedundantUUID returns the RedundantUUID field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetRedundantUUID() string { + if o == nil || IsNil(o.RedundantUUID) { + var ret string + return ret + } + return *o.RedundantUUID +} + +// GetRedundantUUIDOk returns a tuple with the RedundantUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetRedundantUUIDOk() (*string, bool) { + if o == nil || IsNil(o.RedundantUUID) { + return nil, false + } + return o.RedundantUUID, true +} + +// HasRedundantUUID returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasRedundantUUID() bool { + if o != nil && !IsNil(o.RedundantUUID) { + return true + } + + return false +} + +// SetRedundantUUID gets a reference to the given string and assigns it to the RedundantUUID field. +func (o *BgpConnectionInfo) SetRedundantUUID(v string) { + o.RedundantUUID = &v +} + +// GetSellerOrganizationName returns the SellerOrganizationName field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetSellerOrganizationName() string { + if o == nil || IsNil(o.SellerOrganizationName) { + var ret string + return ret + } + return *o.SellerOrganizationName +} + +// GetSellerOrganizationNameOk returns a tuple with the SellerOrganizationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetSellerOrganizationNameOk() (*string, bool) { + if o == nil || IsNil(o.SellerOrganizationName) { + return nil, false + } + return o.SellerOrganizationName, true +} + +// HasSellerOrganizationName returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasSellerOrganizationName() bool { + if o != nil && !IsNil(o.SellerOrganizationName) { + return true + } + + return false +} + +// SetSellerOrganizationName gets a reference to the given string and assigns it to the SellerOrganizationName field. +func (o *BgpConnectionInfo) SetSellerOrganizationName(v string) { + o.SellerOrganizationName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *BgpConnectionInfo) SetStatus(v string) { + o.Status = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *BgpConnectionInfo) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpConnectionInfo) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *BgpConnectionInfo) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *BgpConnectionInfo) SetUuid(v string) { + o.Uuid = &v +} + +func (o BgpConnectionInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BgpConnectionInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BgpStatus) { + toSerialize["bgpStatus"] = o.BgpStatus + } + if !IsNil(o.IsPrimary) { + toSerialize["isPrimary"] = o.IsPrimary + } + if !IsNil(o.Metro) { + toSerialize["metro"] = o.Metro + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ProviderStatus) { + toSerialize["providerStatus"] = o.ProviderStatus + } + if !IsNil(o.RedundantConnection) { + toSerialize["redundantConnection"] = o.RedundantConnection + } + if !IsNil(o.RedundantUUID) { + toSerialize["redundantUUID"] = o.RedundantUUID + } + if !IsNil(o.SellerOrganizationName) { + toSerialize["sellerOrganizationName"] = o.SellerOrganizationName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BgpConnectionInfo) UnmarshalJSON(data []byte) (err error) { + varBgpConnectionInfo := _BgpConnectionInfo{} + + err = json.Unmarshal(data, &varBgpConnectionInfo) + + if err != nil { + return err + } + + *o = BgpConnectionInfo(varBgpConnectionInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bgpStatus") + delete(additionalProperties, "isPrimary") + delete(additionalProperties, "metro") + delete(additionalProperties, "name") + delete(additionalProperties, "providerStatus") + delete(additionalProperties, "redundantConnection") + delete(additionalProperties, "redundantUUID") + delete(additionalProperties, "sellerOrganizationName") + delete(additionalProperties, "status") + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBgpConnectionInfo struct { + value *BgpConnectionInfo + isSet bool +} + +func (v NullableBgpConnectionInfo) Get() *BgpConnectionInfo { + return v.value +} + +func (v *NullableBgpConnectionInfo) Set(val *BgpConnectionInfo) { + v.value = val + v.isSet = true +} + +func (v NullableBgpConnectionInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableBgpConnectionInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBgpConnectionInfo(val *BgpConnectionInfo) *NullableBgpConnectionInfo { + return &NullableBgpConnectionInfo{value: val, isSet: true} +} + +func (v NullableBgpConnectionInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBgpConnectionInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_bgp_info.go b/services/networkedgev1/model_bgp_info.go new file mode 100644 index 00000000..78b3bb5d --- /dev/null +++ b/services/networkedgev1/model_bgp_info.go @@ -0,0 +1,931 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the BgpInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BgpInfo{} + +// BgpInfo struct for BgpInfo +type BgpInfo struct { + AuthenticationKey *string `json:"authenticationKey,omitempty"` + ConnectionUuid *string `json:"connectionUuid,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByEmail *string `json:"createdByEmail,omitempty"` + CreatedByFullName *string `json:"createdByFullName,omitempty"` + CreatedDate *string `json:"createdDate,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByEmail *string `json:"deletedByEmail,omitempty"` + DeletedByFullName *string `json:"deletedByFullName,omitempty"` + DeletedDate *string `json:"deletedDate,omitempty"` + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + LastUpdatedByEmail *string `json:"lastUpdatedByEmail,omitempty"` + LastUpdatedByFullName *string `json:"lastUpdatedByFullName,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + LocalAsn *int64 `json:"localAsn,omitempty"` + LocalIpAddress *string `json:"localIpAddress,omitempty"` + ProvisioningStatus *string `json:"provisioningStatus,omitempty"` + RemoteAsn *int64 `json:"remoteAsn,omitempty"` + RemoteIpAddress *string `json:"remoteIpAddress,omitempty"` + State *string `json:"state,omitempty"` + Uuid *string `json:"uuid,omitempty"` + VirtualDeviceUuid *string `json:"virtualDeviceUuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BgpInfo BgpInfo + +// NewBgpInfo instantiates a new BgpInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBgpInfo() *BgpInfo { + this := BgpInfo{} + return &this +} + +// NewBgpInfoWithDefaults instantiates a new BgpInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBgpInfoWithDefaults() *BgpInfo { + this := BgpInfo{} + return &this +} + +// GetAuthenticationKey returns the AuthenticationKey field value if set, zero value otherwise. +func (o *BgpInfo) GetAuthenticationKey() string { + if o == nil || IsNil(o.AuthenticationKey) { + var ret string + return ret + } + return *o.AuthenticationKey +} + +// GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetAuthenticationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticationKey) { + return nil, false + } + return o.AuthenticationKey, true +} + +// HasAuthenticationKey returns a boolean if a field has been set. +func (o *BgpInfo) HasAuthenticationKey() bool { + if o != nil && !IsNil(o.AuthenticationKey) { + return true + } + + return false +} + +// SetAuthenticationKey gets a reference to the given string and assigns it to the AuthenticationKey field. +func (o *BgpInfo) SetAuthenticationKey(v string) { + o.AuthenticationKey = &v +} + +// GetConnectionUuid returns the ConnectionUuid field value if set, zero value otherwise. +func (o *BgpInfo) GetConnectionUuid() string { + if o == nil || IsNil(o.ConnectionUuid) { + var ret string + return ret + } + return *o.ConnectionUuid +} + +// GetConnectionUuidOk returns a tuple with the ConnectionUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetConnectionUuidOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionUuid) { + return nil, false + } + return o.ConnectionUuid, true +} + +// HasConnectionUuid returns a boolean if a field has been set. +func (o *BgpInfo) HasConnectionUuid() bool { + if o != nil && !IsNil(o.ConnectionUuid) { + return true + } + + return false +} + +// SetConnectionUuid gets a reference to the given string and assigns it to the ConnectionUuid field. +func (o *BgpInfo) SetConnectionUuid(v string) { + o.ConnectionUuid = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *BgpInfo) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *BgpInfo) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *BgpInfo) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByEmail returns the CreatedByEmail field value if set, zero value otherwise. +func (o *BgpInfo) GetCreatedByEmail() string { + if o == nil || IsNil(o.CreatedByEmail) { + var ret string + return ret + } + return *o.CreatedByEmail +} + +// GetCreatedByEmailOk returns a tuple with the CreatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetCreatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByEmail) { + return nil, false + } + return o.CreatedByEmail, true +} + +// HasCreatedByEmail returns a boolean if a field has been set. +func (o *BgpInfo) HasCreatedByEmail() bool { + if o != nil && !IsNil(o.CreatedByEmail) { + return true + } + + return false +} + +// SetCreatedByEmail gets a reference to the given string and assigns it to the CreatedByEmail field. +func (o *BgpInfo) SetCreatedByEmail(v string) { + o.CreatedByEmail = &v +} + +// GetCreatedByFullName returns the CreatedByFullName field value if set, zero value otherwise. +func (o *BgpInfo) GetCreatedByFullName() string { + if o == nil || IsNil(o.CreatedByFullName) { + var ret string + return ret + } + return *o.CreatedByFullName +} + +// GetCreatedByFullNameOk returns a tuple with the CreatedByFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetCreatedByFullNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByFullName) { + return nil, false + } + return o.CreatedByFullName, true +} + +// HasCreatedByFullName returns a boolean if a field has been set. +func (o *BgpInfo) HasCreatedByFullName() bool { + if o != nil && !IsNil(o.CreatedByFullName) { + return true + } + + return false +} + +// SetCreatedByFullName gets a reference to the given string and assigns it to the CreatedByFullName field. +func (o *BgpInfo) SetCreatedByFullName(v string) { + o.CreatedByFullName = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *BgpInfo) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *BgpInfo) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *BgpInfo) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetDeletedBy returns the DeletedBy field value if set, zero value otherwise. +func (o *BgpInfo) GetDeletedBy() string { + if o == nil || IsNil(o.DeletedBy) { + var ret string + return ret + } + return *o.DeletedBy +} + +// GetDeletedByOk returns a tuple with the DeletedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetDeletedByOk() (*string, bool) { + if o == nil || IsNil(o.DeletedBy) { + return nil, false + } + return o.DeletedBy, true +} + +// HasDeletedBy returns a boolean if a field has been set. +func (o *BgpInfo) HasDeletedBy() bool { + if o != nil && !IsNil(o.DeletedBy) { + return true + } + + return false +} + +// SetDeletedBy gets a reference to the given string and assigns it to the DeletedBy field. +func (o *BgpInfo) SetDeletedBy(v string) { + o.DeletedBy = &v +} + +// GetDeletedByEmail returns the DeletedByEmail field value if set, zero value otherwise. +func (o *BgpInfo) GetDeletedByEmail() string { + if o == nil || IsNil(o.DeletedByEmail) { + var ret string + return ret + } + return *o.DeletedByEmail +} + +// GetDeletedByEmailOk returns a tuple with the DeletedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetDeletedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.DeletedByEmail) { + return nil, false + } + return o.DeletedByEmail, true +} + +// HasDeletedByEmail returns a boolean if a field has been set. +func (o *BgpInfo) HasDeletedByEmail() bool { + if o != nil && !IsNil(o.DeletedByEmail) { + return true + } + + return false +} + +// SetDeletedByEmail gets a reference to the given string and assigns it to the DeletedByEmail field. +func (o *BgpInfo) SetDeletedByEmail(v string) { + o.DeletedByEmail = &v +} + +// GetDeletedByFullName returns the DeletedByFullName field value if set, zero value otherwise. +func (o *BgpInfo) GetDeletedByFullName() string { + if o == nil || IsNil(o.DeletedByFullName) { + var ret string + return ret + } + return *o.DeletedByFullName +} + +// GetDeletedByFullNameOk returns a tuple with the DeletedByFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetDeletedByFullNameOk() (*string, bool) { + if o == nil || IsNil(o.DeletedByFullName) { + return nil, false + } + return o.DeletedByFullName, true +} + +// HasDeletedByFullName returns a boolean if a field has been set. +func (o *BgpInfo) HasDeletedByFullName() bool { + if o != nil && !IsNil(o.DeletedByFullName) { + return true + } + + return false +} + +// SetDeletedByFullName gets a reference to the given string and assigns it to the DeletedByFullName field. +func (o *BgpInfo) SetDeletedByFullName(v string) { + o.DeletedByFullName = &v +} + +// GetDeletedDate returns the DeletedDate field value if set, zero value otherwise. +func (o *BgpInfo) GetDeletedDate() string { + if o == nil || IsNil(o.DeletedDate) { + var ret string + return ret + } + return *o.DeletedDate +} + +// GetDeletedDateOk returns a tuple with the DeletedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetDeletedDateOk() (*string, bool) { + if o == nil || IsNil(o.DeletedDate) { + return nil, false + } + return o.DeletedDate, true +} + +// HasDeletedDate returns a boolean if a field has been set. +func (o *BgpInfo) HasDeletedDate() bool { + if o != nil && !IsNil(o.DeletedDate) { + return true + } + + return false +} + +// SetDeletedDate gets a reference to the given string and assigns it to the DeletedDate field. +func (o *BgpInfo) SetDeletedDate(v string) { + o.DeletedDate = &v +} + +// GetLastUpdatedBy returns the LastUpdatedBy field value if set, zero value otherwise. +func (o *BgpInfo) GetLastUpdatedBy() string { + if o == nil || IsNil(o.LastUpdatedBy) { + var ret string + return ret + } + return *o.LastUpdatedBy +} + +// GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLastUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedBy) { + return nil, false + } + return o.LastUpdatedBy, true +} + +// HasLastUpdatedBy returns a boolean if a field has been set. +func (o *BgpInfo) HasLastUpdatedBy() bool { + if o != nil && !IsNil(o.LastUpdatedBy) { + return true + } + + return false +} + +// SetLastUpdatedBy gets a reference to the given string and assigns it to the LastUpdatedBy field. +func (o *BgpInfo) SetLastUpdatedBy(v string) { + o.LastUpdatedBy = &v +} + +// GetLastUpdatedByEmail returns the LastUpdatedByEmail field value if set, zero value otherwise. +func (o *BgpInfo) GetLastUpdatedByEmail() string { + if o == nil || IsNil(o.LastUpdatedByEmail) { + var ret string + return ret + } + return *o.LastUpdatedByEmail +} + +// GetLastUpdatedByEmailOk returns a tuple with the LastUpdatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLastUpdatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedByEmail) { + return nil, false + } + return o.LastUpdatedByEmail, true +} + +// HasLastUpdatedByEmail returns a boolean if a field has been set. +func (o *BgpInfo) HasLastUpdatedByEmail() bool { + if o != nil && !IsNil(o.LastUpdatedByEmail) { + return true + } + + return false +} + +// SetLastUpdatedByEmail gets a reference to the given string and assigns it to the LastUpdatedByEmail field. +func (o *BgpInfo) SetLastUpdatedByEmail(v string) { + o.LastUpdatedByEmail = &v +} + +// GetLastUpdatedByFullName returns the LastUpdatedByFullName field value if set, zero value otherwise. +func (o *BgpInfo) GetLastUpdatedByFullName() string { + if o == nil || IsNil(o.LastUpdatedByFullName) { + var ret string + return ret + } + return *o.LastUpdatedByFullName +} + +// GetLastUpdatedByFullNameOk returns a tuple with the LastUpdatedByFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLastUpdatedByFullNameOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedByFullName) { + return nil, false + } + return o.LastUpdatedByFullName, true +} + +// HasLastUpdatedByFullName returns a boolean if a field has been set. +func (o *BgpInfo) HasLastUpdatedByFullName() bool { + if o != nil && !IsNil(o.LastUpdatedByFullName) { + return true + } + + return false +} + +// SetLastUpdatedByFullName gets a reference to the given string and assigns it to the LastUpdatedByFullName field. +func (o *BgpInfo) SetLastUpdatedByFullName(v string) { + o.LastUpdatedByFullName = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *BgpInfo) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *BgpInfo) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *BgpInfo) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *BgpInfo) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *BgpInfo) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *BgpInfo) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetLocalIpAddress returns the LocalIpAddress field value if set, zero value otherwise. +func (o *BgpInfo) GetLocalIpAddress() string { + if o == nil || IsNil(o.LocalIpAddress) { + var ret string + return ret + } + return *o.LocalIpAddress +} + +// GetLocalIpAddressOk returns a tuple with the LocalIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetLocalIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.LocalIpAddress) { + return nil, false + } + return o.LocalIpAddress, true +} + +// HasLocalIpAddress returns a boolean if a field has been set. +func (o *BgpInfo) HasLocalIpAddress() bool { + if o != nil && !IsNil(o.LocalIpAddress) { + return true + } + + return false +} + +// SetLocalIpAddress gets a reference to the given string and assigns it to the LocalIpAddress field. +func (o *BgpInfo) SetLocalIpAddress(v string) { + o.LocalIpAddress = &v +} + +// GetProvisioningStatus returns the ProvisioningStatus field value if set, zero value otherwise. +func (o *BgpInfo) GetProvisioningStatus() string { + if o == nil || IsNil(o.ProvisioningStatus) { + var ret string + return ret + } + return *o.ProvisioningStatus +} + +// GetProvisioningStatusOk returns a tuple with the ProvisioningStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetProvisioningStatusOk() (*string, bool) { + if o == nil || IsNil(o.ProvisioningStatus) { + return nil, false + } + return o.ProvisioningStatus, true +} + +// HasProvisioningStatus returns a boolean if a field has been set. +func (o *BgpInfo) HasProvisioningStatus() bool { + if o != nil && !IsNil(o.ProvisioningStatus) { + return true + } + + return false +} + +// SetProvisioningStatus gets a reference to the given string and assigns it to the ProvisioningStatus field. +func (o *BgpInfo) SetProvisioningStatus(v string) { + o.ProvisioningStatus = &v +} + +// GetRemoteAsn returns the RemoteAsn field value if set, zero value otherwise. +func (o *BgpInfo) GetRemoteAsn() int64 { + if o == nil || IsNil(o.RemoteAsn) { + var ret int64 + return ret + } + return *o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetRemoteAsnOk() (*int64, bool) { + if o == nil || IsNil(o.RemoteAsn) { + return nil, false + } + return o.RemoteAsn, true +} + +// HasRemoteAsn returns a boolean if a field has been set. +func (o *BgpInfo) HasRemoteAsn() bool { + if o != nil && !IsNil(o.RemoteAsn) { + return true + } + + return false +} + +// SetRemoteAsn gets a reference to the given int64 and assigns it to the RemoteAsn field. +func (o *BgpInfo) SetRemoteAsn(v int64) { + o.RemoteAsn = &v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value if set, zero value otherwise. +func (o *BgpInfo) GetRemoteIpAddress() string { + if o == nil || IsNil(o.RemoteIpAddress) { + var ret string + return ret + } + return *o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetRemoteIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.RemoteIpAddress) { + return nil, false + } + return o.RemoteIpAddress, true +} + +// HasRemoteIpAddress returns a boolean if a field has been set. +func (o *BgpInfo) HasRemoteIpAddress() bool { + if o != nil && !IsNil(o.RemoteIpAddress) { + return true + } + + return false +} + +// SetRemoteIpAddress gets a reference to the given string and assigns it to the RemoteIpAddress field. +func (o *BgpInfo) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *BgpInfo) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *BgpInfo) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *BgpInfo) SetState(v string) { + o.State = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *BgpInfo) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *BgpInfo) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *BgpInfo) SetUuid(v string) { + o.Uuid = &v +} + +// GetVirtualDeviceUuid returns the VirtualDeviceUuid field value if set, zero value otherwise. +func (o *BgpInfo) GetVirtualDeviceUuid() string { + if o == nil || IsNil(o.VirtualDeviceUuid) { + var ret string + return ret + } + return *o.VirtualDeviceUuid +} + +// GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpInfo) GetVirtualDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.VirtualDeviceUuid) { + return nil, false + } + return o.VirtualDeviceUuid, true +} + +// HasVirtualDeviceUuid returns a boolean if a field has been set. +func (o *BgpInfo) HasVirtualDeviceUuid() bool { + if o != nil && !IsNil(o.VirtualDeviceUuid) { + return true + } + + return false +} + +// SetVirtualDeviceUuid gets a reference to the given string and assigns it to the VirtualDeviceUuid field. +func (o *BgpInfo) SetVirtualDeviceUuid(v string) { + o.VirtualDeviceUuid = &v +} + +func (o BgpInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BgpInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthenticationKey) { + toSerialize["authenticationKey"] = o.AuthenticationKey + } + if !IsNil(o.ConnectionUuid) { + toSerialize["connectionUuid"] = o.ConnectionUuid + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByEmail) { + toSerialize["createdByEmail"] = o.CreatedByEmail + } + if !IsNil(o.CreatedByFullName) { + toSerialize["createdByFullName"] = o.CreatedByFullName + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.DeletedBy) { + toSerialize["deletedBy"] = o.DeletedBy + } + if !IsNil(o.DeletedByEmail) { + toSerialize["deletedByEmail"] = o.DeletedByEmail + } + if !IsNil(o.DeletedByFullName) { + toSerialize["deletedByFullName"] = o.DeletedByFullName + } + if !IsNil(o.DeletedDate) { + toSerialize["deletedDate"] = o.DeletedDate + } + if !IsNil(o.LastUpdatedBy) { + toSerialize["lastUpdatedBy"] = o.LastUpdatedBy + } + if !IsNil(o.LastUpdatedByEmail) { + toSerialize["lastUpdatedByEmail"] = o.LastUpdatedByEmail + } + if !IsNil(o.LastUpdatedByFullName) { + toSerialize["lastUpdatedByFullName"] = o.LastUpdatedByFullName + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + if !IsNil(o.LocalIpAddress) { + toSerialize["localIpAddress"] = o.LocalIpAddress + } + if !IsNil(o.ProvisioningStatus) { + toSerialize["provisioningStatus"] = o.ProvisioningStatus + } + if !IsNil(o.RemoteAsn) { + toSerialize["remoteAsn"] = o.RemoteAsn + } + if !IsNil(o.RemoteIpAddress) { + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.VirtualDeviceUuid) { + toSerialize["virtualDeviceUuid"] = o.VirtualDeviceUuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BgpInfo) UnmarshalJSON(data []byte) (err error) { + varBgpInfo := _BgpInfo{} + + err = json.Unmarshal(data, &varBgpInfo) + + if err != nil { + return err + } + + *o = BgpInfo(varBgpInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "authenticationKey") + delete(additionalProperties, "connectionUuid") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdByEmail") + delete(additionalProperties, "createdByFullName") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "deletedBy") + delete(additionalProperties, "deletedByEmail") + delete(additionalProperties, "deletedByFullName") + delete(additionalProperties, "deletedDate") + delete(additionalProperties, "lastUpdatedBy") + delete(additionalProperties, "lastUpdatedByEmail") + delete(additionalProperties, "lastUpdatedByFullName") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "localIpAddress") + delete(additionalProperties, "provisioningStatus") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + delete(additionalProperties, "state") + delete(additionalProperties, "uuid") + delete(additionalProperties, "virtualDeviceUuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBgpInfo struct { + value *BgpInfo + isSet bool +} + +func (v NullableBgpInfo) Get() *BgpInfo { + return v.value +} + +func (v *NullableBgpInfo) Set(val *BgpInfo) { + v.value = val + v.isSet = true +} + +func (v NullableBgpInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableBgpInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBgpInfo(val *BgpInfo) *NullableBgpInfo { + return &NullableBgpInfo{value: val, isSet: true} +} + +func (v NullableBgpInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBgpInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_bgp_update_request.go b/services/networkedgev1/model_bgp_update_request.go new file mode 100644 index 00000000..5d16edfa --- /dev/null +++ b/services/networkedgev1/model_bgp_update_request.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the BgpUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BgpUpdateRequest{} + +// BgpUpdateRequest struct for BgpUpdateRequest +type BgpUpdateRequest struct { + // Authentication Key + AuthenticationKey *string `json:"authenticationKey,omitempty"` + // Local ASN + LocalAsn *int64 `json:"localAsn,omitempty"` + // Local IP Address with subnet + LocalIpAddress *string `json:"localIpAddress,omitempty"` + // Remote ASN + RemoteAsn *int64 `json:"remoteAsn,omitempty"` + // Remote IP Address + RemoteIpAddress *string `json:"remoteIpAddress,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BgpUpdateRequest BgpUpdateRequest + +// NewBgpUpdateRequest instantiates a new BgpUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBgpUpdateRequest() *BgpUpdateRequest { + this := BgpUpdateRequest{} + return &this +} + +// NewBgpUpdateRequestWithDefaults instantiates a new BgpUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBgpUpdateRequestWithDefaults() *BgpUpdateRequest { + this := BgpUpdateRequest{} + return &this +} + +// GetAuthenticationKey returns the AuthenticationKey field value if set, zero value otherwise. +func (o *BgpUpdateRequest) GetAuthenticationKey() string { + if o == nil || IsNil(o.AuthenticationKey) { + var ret string + return ret + } + return *o.AuthenticationKey +} + +// GetAuthenticationKeyOk returns a tuple with the AuthenticationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpUpdateRequest) GetAuthenticationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthenticationKey) { + return nil, false + } + return o.AuthenticationKey, true +} + +// HasAuthenticationKey returns a boolean if a field has been set. +func (o *BgpUpdateRequest) HasAuthenticationKey() bool { + if o != nil && !IsNil(o.AuthenticationKey) { + return true + } + + return false +} + +// SetAuthenticationKey gets a reference to the given string and assigns it to the AuthenticationKey field. +func (o *BgpUpdateRequest) SetAuthenticationKey(v string) { + o.AuthenticationKey = &v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *BgpUpdateRequest) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpUpdateRequest) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *BgpUpdateRequest) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *BgpUpdateRequest) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetLocalIpAddress returns the LocalIpAddress field value if set, zero value otherwise. +func (o *BgpUpdateRequest) GetLocalIpAddress() string { + if o == nil || IsNil(o.LocalIpAddress) { + var ret string + return ret + } + return *o.LocalIpAddress +} + +// GetLocalIpAddressOk returns a tuple with the LocalIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpUpdateRequest) GetLocalIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.LocalIpAddress) { + return nil, false + } + return o.LocalIpAddress, true +} + +// HasLocalIpAddress returns a boolean if a field has been set. +func (o *BgpUpdateRequest) HasLocalIpAddress() bool { + if o != nil && !IsNil(o.LocalIpAddress) { + return true + } + + return false +} + +// SetLocalIpAddress gets a reference to the given string and assigns it to the LocalIpAddress field. +func (o *BgpUpdateRequest) SetLocalIpAddress(v string) { + o.LocalIpAddress = &v +} + +// GetRemoteAsn returns the RemoteAsn field value if set, zero value otherwise. +func (o *BgpUpdateRequest) GetRemoteAsn() int64 { + if o == nil || IsNil(o.RemoteAsn) { + var ret int64 + return ret + } + return *o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpUpdateRequest) GetRemoteAsnOk() (*int64, bool) { + if o == nil || IsNil(o.RemoteAsn) { + return nil, false + } + return o.RemoteAsn, true +} + +// HasRemoteAsn returns a boolean if a field has been set. +func (o *BgpUpdateRequest) HasRemoteAsn() bool { + if o != nil && !IsNil(o.RemoteAsn) { + return true + } + + return false +} + +// SetRemoteAsn gets a reference to the given int64 and assigns it to the RemoteAsn field. +func (o *BgpUpdateRequest) SetRemoteAsn(v int64) { + o.RemoteAsn = &v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value if set, zero value otherwise. +func (o *BgpUpdateRequest) GetRemoteIpAddress() string { + if o == nil || IsNil(o.RemoteIpAddress) { + var ret string + return ret + } + return *o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BgpUpdateRequest) GetRemoteIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.RemoteIpAddress) { + return nil, false + } + return o.RemoteIpAddress, true +} + +// HasRemoteIpAddress returns a boolean if a field has been set. +func (o *BgpUpdateRequest) HasRemoteIpAddress() bool { + if o != nil && !IsNil(o.RemoteIpAddress) { + return true + } + + return false +} + +// SetRemoteIpAddress gets a reference to the given string and assigns it to the RemoteIpAddress field. +func (o *BgpUpdateRequest) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = &v +} + +func (o BgpUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BgpUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AuthenticationKey) { + toSerialize["authenticationKey"] = o.AuthenticationKey + } + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + if !IsNil(o.LocalIpAddress) { + toSerialize["localIpAddress"] = o.LocalIpAddress + } + if !IsNil(o.RemoteAsn) { + toSerialize["remoteAsn"] = o.RemoteAsn + } + if !IsNil(o.RemoteIpAddress) { + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BgpUpdateRequest) UnmarshalJSON(data []byte) (err error) { + varBgpUpdateRequest := _BgpUpdateRequest{} + + err = json.Unmarshal(data, &varBgpUpdateRequest) + + if err != nil { + return err + } + + *o = BgpUpdateRequest(varBgpUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "authenticationKey") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "localIpAddress") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBgpUpdateRequest struct { + value *BgpUpdateRequest + isSet bool +} + +func (v NullableBgpUpdateRequest) Get() *BgpUpdateRequest { + return v.value +} + +func (v *NullableBgpUpdateRequest) Set(val *BgpUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBgpUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBgpUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBgpUpdateRequest(val *BgpUpdateRequest) *NullableBgpUpdateRequest { + return &NullableBgpUpdateRequest{value: val, isSet: true} +} + +func (v NullableBgpUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBgpUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_charges.go b/services/networkedgev1/model_charges.go new file mode 100644 index 00000000..503db4ba --- /dev/null +++ b/services/networkedgev1/model_charges.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Charges type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Charges{} + +// Charges struct for Charges +type Charges struct { + // The description of the charge, whether it is for the virtual device, the device license, or the additional bandwidth. + Description *string `json:"description,omitempty"` + // The monthly charges. + MonthlyRecurringCharges *string `json:"monthlyRecurringCharges,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Charges Charges + +// NewCharges instantiates a new Charges object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCharges() *Charges { + this := Charges{} + return &this +} + +// NewChargesWithDefaults instantiates a new Charges object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChargesWithDefaults() *Charges { + this := Charges{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Charges) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Charges) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Charges) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Charges) SetDescription(v string) { + o.Description = &v +} + +// GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field value if set, zero value otherwise. +func (o *Charges) GetMonthlyRecurringCharges() string { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + var ret string + return ret + } + return *o.MonthlyRecurringCharges +} + +// GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Charges) GetMonthlyRecurringChargesOk() (*string, bool) { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + return nil, false + } + return o.MonthlyRecurringCharges, true +} + +// HasMonthlyRecurringCharges returns a boolean if a field has been set. +func (o *Charges) HasMonthlyRecurringCharges() bool { + if o != nil && !IsNil(o.MonthlyRecurringCharges) { + return true + } + + return false +} + +// SetMonthlyRecurringCharges gets a reference to the given string and assigns it to the MonthlyRecurringCharges field. +func (o *Charges) SetMonthlyRecurringCharges(v string) { + o.MonthlyRecurringCharges = &v +} + +func (o Charges) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Charges) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.MonthlyRecurringCharges) { + toSerialize["monthlyRecurringCharges"] = o.MonthlyRecurringCharges + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Charges) UnmarshalJSON(data []byte) (err error) { + varCharges := _Charges{} + + err = json.Unmarshal(data, &varCharges) + + if err != nil { + return err + } + + *o = Charges(varCharges) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "monthlyRecurringCharges") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCharges struct { + value *Charges + isSet bool +} + +func (v NullableCharges) Get() *Charges { + return v.value +} + +func (v *NullableCharges) Set(val *Charges) { + v.value = val + v.isSet = true +} + +func (v NullableCharges) IsSet() bool { + return v.isSet +} + +func (v *NullableCharges) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCharges(val *Charges) *NullableCharges { + return &NullableCharges{value: val, isSet: true} +} + +func (v NullableCharges) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCharges) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_cluster_config.go b/services/networkedgev1/model_cluster_config.go new file mode 100644 index 00000000..c7dd734e --- /dev/null +++ b/services/networkedgev1/model_cluster_config.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ClusterConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterConfig{} + +// ClusterConfig struct for ClusterConfig +type ClusterConfig struct { + // The cluster name. + ClusterName *string `json:"clusterName,omitempty"` + ClusterNodeDetails *ClusterNodeDetails `json:"clusterNodeDetails,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusterConfig ClusterConfig + +// NewClusterConfig instantiates a new ClusterConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClusterConfig() *ClusterConfig { + this := ClusterConfig{} + return &this +} + +// NewClusterConfigWithDefaults instantiates a new ClusterConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClusterConfigWithDefaults() *ClusterConfig { + this := ClusterConfig{} + return &this +} + +// GetClusterName returns the ClusterName field value if set, zero value otherwise. +func (o *ClusterConfig) GetClusterName() string { + if o == nil || IsNil(o.ClusterName) { + var ret string + return ret + } + return *o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterConfig) GetClusterNameOk() (*string, bool) { + if o == nil || IsNil(o.ClusterName) { + return nil, false + } + return o.ClusterName, true +} + +// HasClusterName returns a boolean if a field has been set. +func (o *ClusterConfig) HasClusterName() bool { + if o != nil && !IsNil(o.ClusterName) { + return true + } + + return false +} + +// SetClusterName gets a reference to the given string and assigns it to the ClusterName field. +func (o *ClusterConfig) SetClusterName(v string) { + o.ClusterName = &v +} + +// GetClusterNodeDetails returns the ClusterNodeDetails field value if set, zero value otherwise. +func (o *ClusterConfig) GetClusterNodeDetails() ClusterNodeDetails { + if o == nil || IsNil(o.ClusterNodeDetails) { + var ret ClusterNodeDetails + return ret + } + return *o.ClusterNodeDetails +} + +// GetClusterNodeDetailsOk returns a tuple with the ClusterNodeDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterConfig) GetClusterNodeDetailsOk() (*ClusterNodeDetails, bool) { + if o == nil || IsNil(o.ClusterNodeDetails) { + return nil, false + } + return o.ClusterNodeDetails, true +} + +// HasClusterNodeDetails returns a boolean if a field has been set. +func (o *ClusterConfig) HasClusterNodeDetails() bool { + if o != nil && !IsNil(o.ClusterNodeDetails) { + return true + } + + return false +} + +// SetClusterNodeDetails gets a reference to the given ClusterNodeDetails and assigns it to the ClusterNodeDetails field. +func (o *ClusterConfig) SetClusterNodeDetails(v ClusterNodeDetails) { + o.ClusterNodeDetails = &v +} + +func (o ClusterConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClusterName) { + toSerialize["clusterName"] = o.ClusterName + } + if !IsNil(o.ClusterNodeDetails) { + toSerialize["clusterNodeDetails"] = o.ClusterNodeDetails + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusterConfig) UnmarshalJSON(data []byte) (err error) { + varClusterConfig := _ClusterConfig{} + + err = json.Unmarshal(data, &varClusterConfig) + + if err != nil { + return err + } + + *o = ClusterConfig(varClusterConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "clusterName") + delete(additionalProperties, "clusterNodeDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterConfig struct { + value *ClusterConfig + isSet bool +} + +func (v NullableClusterConfig) Get() *ClusterConfig { + return v.value +} + +func (v *NullableClusterConfig) Set(val *ClusterConfig) { + v.value = val + v.isSet = true +} + +func (v NullableClusterConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterConfig(val *ClusterConfig) *NullableClusterConfig { + return &NullableClusterConfig{value: val, isSet: true} +} + +func (v NullableClusterConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_cluster_node_details.go b/services/networkedgev1/model_cluster_node_details.go new file mode 100644 index 00000000..229074ce --- /dev/null +++ b/services/networkedgev1/model_cluster_node_details.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ClusterNodeDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterNodeDetails{} + +// ClusterNodeDetails struct for ClusterNodeDetails +type ClusterNodeDetails struct { + Node0 *Node0Details `json:"node0,omitempty"` + Node1 *Node1Details `json:"node1,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusterNodeDetails ClusterNodeDetails + +// NewClusterNodeDetails instantiates a new ClusterNodeDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClusterNodeDetails() *ClusterNodeDetails { + this := ClusterNodeDetails{} + return &this +} + +// NewClusterNodeDetailsWithDefaults instantiates a new ClusterNodeDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClusterNodeDetailsWithDefaults() *ClusterNodeDetails { + this := ClusterNodeDetails{} + return &this +} + +// GetNode0 returns the Node0 field value if set, zero value otherwise. +func (o *ClusterNodeDetails) GetNode0() Node0Details { + if o == nil || IsNil(o.Node0) { + var ret Node0Details + return ret + } + return *o.Node0 +} + +// GetNode0Ok returns a tuple with the Node0 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterNodeDetails) GetNode0Ok() (*Node0Details, bool) { + if o == nil || IsNil(o.Node0) { + return nil, false + } + return o.Node0, true +} + +// HasNode0 returns a boolean if a field has been set. +func (o *ClusterNodeDetails) HasNode0() bool { + if o != nil && !IsNil(o.Node0) { + return true + } + + return false +} + +// SetNode0 gets a reference to the given Node0Details and assigns it to the Node0 field. +func (o *ClusterNodeDetails) SetNode0(v Node0Details) { + o.Node0 = &v +} + +// GetNode1 returns the Node1 field value if set, zero value otherwise. +func (o *ClusterNodeDetails) GetNode1() Node1Details { + if o == nil || IsNil(o.Node1) { + var ret Node1Details + return ret + } + return *o.Node1 +} + +// GetNode1Ok returns a tuple with the Node1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterNodeDetails) GetNode1Ok() (*Node1Details, bool) { + if o == nil || IsNil(o.Node1) { + return nil, false + } + return o.Node1, true +} + +// HasNode1 returns a boolean if a field has been set. +func (o *ClusterNodeDetails) HasNode1() bool { + if o != nil && !IsNil(o.Node1) { + return true + } + + return false +} + +// SetNode1 gets a reference to the given Node1Details and assigns it to the Node1 field. +func (o *ClusterNodeDetails) SetNode1(v Node1Details) { + o.Node1 = &v +} + +func (o ClusterNodeDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterNodeDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Node0) { + toSerialize["node0"] = o.Node0 + } + if !IsNil(o.Node1) { + toSerialize["node1"] = o.Node1 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusterNodeDetails) UnmarshalJSON(data []byte) (err error) { + varClusterNodeDetails := _ClusterNodeDetails{} + + err = json.Unmarshal(data, &varClusterNodeDetails) + + if err != nil { + return err + } + + *o = ClusterNodeDetails(varClusterNodeDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "node0") + delete(additionalProperties, "node1") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterNodeDetails struct { + value *ClusterNodeDetails + isSet bool +} + +func (v NullableClusterNodeDetails) Get() *ClusterNodeDetails { + return v.value +} + +func (v *NullableClusterNodeDetails) Set(val *ClusterNodeDetails) { + v.value = val + v.isSet = true +} + +func (v NullableClusterNodeDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterNodeDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterNodeDetails(val *ClusterNodeDetails) *NullableClusterNodeDetails { + return &NullableClusterNodeDetails{value: val, isSet: true} +} + +func (v NullableClusterNodeDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterNodeDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_clustering_details.go b/services/networkedgev1/model_clustering_details.go new file mode 100644 index 00000000..7c625fb7 --- /dev/null +++ b/services/networkedgev1/model_clustering_details.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ClusteringDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusteringDetails{} + +// ClusteringDetails struct for ClusteringDetails +type ClusteringDetails struct { + // Whether this device management type supports clustering. + ClusteringEnabled *bool `json:"clusteringEnabled,omitempty"` + // The number of nodes you can have for a cluster device. + MaxAllowedNodes *int32 `json:"maxAllowedNodes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusteringDetails ClusteringDetails + +// NewClusteringDetails instantiates a new ClusteringDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClusteringDetails() *ClusteringDetails { + this := ClusteringDetails{} + return &this +} + +// NewClusteringDetailsWithDefaults instantiates a new ClusteringDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClusteringDetailsWithDefaults() *ClusteringDetails { + this := ClusteringDetails{} + return &this +} + +// GetClusteringEnabled returns the ClusteringEnabled field value if set, zero value otherwise. +func (o *ClusteringDetails) GetClusteringEnabled() bool { + if o == nil || IsNil(o.ClusteringEnabled) { + var ret bool + return ret + } + return *o.ClusteringEnabled +} + +// GetClusteringEnabledOk returns a tuple with the ClusteringEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusteringDetails) GetClusteringEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ClusteringEnabled) { + return nil, false + } + return o.ClusteringEnabled, true +} + +// HasClusteringEnabled returns a boolean if a field has been set. +func (o *ClusteringDetails) HasClusteringEnabled() bool { + if o != nil && !IsNil(o.ClusteringEnabled) { + return true + } + + return false +} + +// SetClusteringEnabled gets a reference to the given bool and assigns it to the ClusteringEnabled field. +func (o *ClusteringDetails) SetClusteringEnabled(v bool) { + o.ClusteringEnabled = &v +} + +// GetMaxAllowedNodes returns the MaxAllowedNodes field value if set, zero value otherwise. +func (o *ClusteringDetails) GetMaxAllowedNodes() int32 { + if o == nil || IsNil(o.MaxAllowedNodes) { + var ret int32 + return ret + } + return *o.MaxAllowedNodes +} + +// GetMaxAllowedNodesOk returns a tuple with the MaxAllowedNodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusteringDetails) GetMaxAllowedNodesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxAllowedNodes) { + return nil, false + } + return o.MaxAllowedNodes, true +} + +// HasMaxAllowedNodes returns a boolean if a field has been set. +func (o *ClusteringDetails) HasMaxAllowedNodes() bool { + if o != nil && !IsNil(o.MaxAllowedNodes) { + return true + } + + return false +} + +// SetMaxAllowedNodes gets a reference to the given int32 and assigns it to the MaxAllowedNodes field. +func (o *ClusteringDetails) SetMaxAllowedNodes(v int32) { + o.MaxAllowedNodes = &v +} + +func (o ClusteringDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusteringDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClusteringEnabled) { + toSerialize["clusteringEnabled"] = o.ClusteringEnabled + } + if !IsNil(o.MaxAllowedNodes) { + toSerialize["maxAllowedNodes"] = o.MaxAllowedNodes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusteringDetails) UnmarshalJSON(data []byte) (err error) { + varClusteringDetails := _ClusteringDetails{} + + err = json.Unmarshal(data, &varClusteringDetails) + + if err != nil { + return err + } + + *o = ClusteringDetails(varClusteringDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "clusteringEnabled") + delete(additionalProperties, "maxAllowedNodes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusteringDetails struct { + value *ClusteringDetails + isSet bool +} + +func (v NullableClusteringDetails) Get() *ClusteringDetails { + return v.value +} + +func (v *NullableClusteringDetails) Set(val *ClusteringDetails) { + v.value = val + v.isSet = true +} + +func (v NullableClusteringDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableClusteringDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusteringDetails(val *ClusteringDetails) *NullableClusteringDetails { + return &NullableClusteringDetails{value: val, isSet: true} +} + +func (v NullableClusteringDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusteringDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_composite_price_response.go b/services/networkedgev1/model_composite_price_response.go new file mode 100644 index 00000000..1986b764 --- /dev/null +++ b/services/networkedgev1/model_composite_price_response.go @@ -0,0 +1,228 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the CompositePriceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CompositePriceResponse{} + +// CompositePriceResponse struct for CompositePriceResponse +type CompositePriceResponse struct { + Primary *PriceResponse `json:"primary,omitempty"` + Secondary *PriceResponse `json:"secondary,omitempty"` + TermLength *string `json:"termLength,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CompositePriceResponse CompositePriceResponse + +// NewCompositePriceResponse instantiates a new CompositePriceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCompositePriceResponse() *CompositePriceResponse { + this := CompositePriceResponse{} + return &this +} + +// NewCompositePriceResponseWithDefaults instantiates a new CompositePriceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCompositePriceResponseWithDefaults() *CompositePriceResponse { + this := CompositePriceResponse{} + return &this +} + +// GetPrimary returns the Primary field value if set, zero value otherwise. +func (o *CompositePriceResponse) GetPrimary() PriceResponse { + if o == nil || IsNil(o.Primary) { + var ret PriceResponse + return ret + } + return *o.Primary +} + +// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompositePriceResponse) GetPrimaryOk() (*PriceResponse, bool) { + if o == nil || IsNil(o.Primary) { + return nil, false + } + return o.Primary, true +} + +// HasPrimary returns a boolean if a field has been set. +func (o *CompositePriceResponse) HasPrimary() bool { + if o != nil && !IsNil(o.Primary) { + return true + } + + return false +} + +// SetPrimary gets a reference to the given PriceResponse and assigns it to the Primary field. +func (o *CompositePriceResponse) SetPrimary(v PriceResponse) { + o.Primary = &v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *CompositePriceResponse) GetSecondary() PriceResponse { + if o == nil || IsNil(o.Secondary) { + var ret PriceResponse + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompositePriceResponse) GetSecondaryOk() (*PriceResponse, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *CompositePriceResponse) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given PriceResponse and assigns it to the Secondary field. +func (o *CompositePriceResponse) SetSecondary(v PriceResponse) { + o.Secondary = &v +} + +// GetTermLength returns the TermLength field value if set, zero value otherwise. +func (o *CompositePriceResponse) GetTermLength() string { + if o == nil || IsNil(o.TermLength) { + var ret string + return ret + } + return *o.TermLength +} + +// GetTermLengthOk returns a tuple with the TermLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompositePriceResponse) GetTermLengthOk() (*string, bool) { + if o == nil || IsNil(o.TermLength) { + return nil, false + } + return o.TermLength, true +} + +// HasTermLength returns a boolean if a field has been set. +func (o *CompositePriceResponse) HasTermLength() bool { + if o != nil && !IsNil(o.TermLength) { + return true + } + + return false +} + +// SetTermLength gets a reference to the given string and assigns it to the TermLength field. +func (o *CompositePriceResponse) SetTermLength(v string) { + o.TermLength = &v +} + +func (o CompositePriceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CompositePriceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Primary) { + toSerialize["primary"] = o.Primary + } + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + if !IsNil(o.TermLength) { + toSerialize["termLength"] = o.TermLength + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CompositePriceResponse) UnmarshalJSON(data []byte) (err error) { + varCompositePriceResponse := _CompositePriceResponse{} + + err = json.Unmarshal(data, &varCompositePriceResponse) + + if err != nil { + return err + } + + *o = CompositePriceResponse(varCompositePriceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "primary") + delete(additionalProperties, "secondary") + delete(additionalProperties, "termLength") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCompositePriceResponse struct { + value *CompositePriceResponse + isSet bool +} + +func (v NullableCompositePriceResponse) Get() *CompositePriceResponse { + return v.value +} + +func (v *NullableCompositePriceResponse) Set(val *CompositePriceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCompositePriceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCompositePriceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCompositePriceResponse(val *CompositePriceResponse) *NullableCompositePriceResponse { + return &NullableCompositePriceResponse{value: val, isSet: true} +} + +func (v NullableCompositePriceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCompositePriceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_cores_config.go b/services/networkedgev1/model_cores_config.go new file mode 100644 index 00000000..39bd53b9 --- /dev/null +++ b/services/networkedgev1/model_cores_config.go @@ -0,0 +1,383 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the CoresConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CoresConfig{} + +// CoresConfig struct for CoresConfig +type CoresConfig struct { + // The number of cores. + Core *int32 `json:"core,omitempty"` + // The amount of memory. + Memory *int32 `json:"memory,omitempty"` + // The unit of memory. + Unit *string `json:"unit,omitempty"` + // Small, medium or large. + Flavor *string `json:"flavor,omitempty"` + // An array that has all the software packages and throughput options. + PackageCodes []PackageCodes `json:"packageCodes,omitempty"` + // Whether or not this core is supported. + Supported *bool `json:"supported,omitempty"` + // Tier is relevant only for Cisco 8000V devices + Tier *int32 `json:"tier,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CoresConfig CoresConfig + +// NewCoresConfig instantiates a new CoresConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCoresConfig() *CoresConfig { + this := CoresConfig{} + return &this +} + +// NewCoresConfigWithDefaults instantiates a new CoresConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCoresConfigWithDefaults() *CoresConfig { + this := CoresConfig{} + return &this +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *CoresConfig) GetCore() int32 { + if o == nil || IsNil(o.Core) { + var ret int32 + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetCoreOk() (*int32, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *CoresConfig) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given int32 and assigns it to the Core field. +func (o *CoresConfig) SetCore(v int32) { + o.Core = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *CoresConfig) GetMemory() int32 { + if o == nil || IsNil(o.Memory) { + var ret int32 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetMemoryOk() (*int32, bool) { + if o == nil || IsNil(o.Memory) { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *CoresConfig) HasMemory() bool { + if o != nil && !IsNil(o.Memory) { + return true + } + + return false +} + +// SetMemory gets a reference to the given int32 and assigns it to the Memory field. +func (o *CoresConfig) SetMemory(v int32) { + o.Memory = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *CoresConfig) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *CoresConfig) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *CoresConfig) SetUnit(v string) { + o.Unit = &v +} + +// GetFlavor returns the Flavor field value if set, zero value otherwise. +func (o *CoresConfig) GetFlavor() string { + if o == nil || IsNil(o.Flavor) { + var ret string + return ret + } + return *o.Flavor +} + +// GetFlavorOk returns a tuple with the Flavor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetFlavorOk() (*string, bool) { + if o == nil || IsNil(o.Flavor) { + return nil, false + } + return o.Flavor, true +} + +// HasFlavor returns a boolean if a field has been set. +func (o *CoresConfig) HasFlavor() bool { + if o != nil && !IsNil(o.Flavor) { + return true + } + + return false +} + +// SetFlavor gets a reference to the given string and assigns it to the Flavor field. +func (o *CoresConfig) SetFlavor(v string) { + o.Flavor = &v +} + +// GetPackageCodes returns the PackageCodes field value if set, zero value otherwise. +func (o *CoresConfig) GetPackageCodes() []PackageCodes { + if o == nil || IsNil(o.PackageCodes) { + var ret []PackageCodes + return ret + } + return o.PackageCodes +} + +// GetPackageCodesOk returns a tuple with the PackageCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetPackageCodesOk() ([]PackageCodes, bool) { + if o == nil || IsNil(o.PackageCodes) { + return nil, false + } + return o.PackageCodes, true +} + +// HasPackageCodes returns a boolean if a field has been set. +func (o *CoresConfig) HasPackageCodes() bool { + if o != nil && !IsNil(o.PackageCodes) { + return true + } + + return false +} + +// SetPackageCodes gets a reference to the given []PackageCodes and assigns it to the PackageCodes field. +func (o *CoresConfig) SetPackageCodes(v []PackageCodes) { + o.PackageCodes = v +} + +// GetSupported returns the Supported field value if set, zero value otherwise. +func (o *CoresConfig) GetSupported() bool { + if o == nil || IsNil(o.Supported) { + var ret bool + return ret + } + return *o.Supported +} + +// GetSupportedOk returns a tuple with the Supported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.Supported) { + return nil, false + } + return o.Supported, true +} + +// HasSupported returns a boolean if a field has been set. +func (o *CoresConfig) HasSupported() bool { + if o != nil && !IsNil(o.Supported) { + return true + } + + return false +} + +// SetSupported gets a reference to the given bool and assigns it to the Supported field. +func (o *CoresConfig) SetSupported(v bool) { + o.Supported = &v +} + +// GetTier returns the Tier field value if set, zero value otherwise. +func (o *CoresConfig) GetTier() int32 { + if o == nil || IsNil(o.Tier) { + var ret int32 + return ret + } + return *o.Tier +} + +// GetTierOk returns a tuple with the Tier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresConfig) GetTierOk() (*int32, bool) { + if o == nil || IsNil(o.Tier) { + return nil, false + } + return o.Tier, true +} + +// HasTier returns a boolean if a field has been set. +func (o *CoresConfig) HasTier() bool { + if o != nil && !IsNil(o.Tier) { + return true + } + + return false +} + +// SetTier gets a reference to the given int32 and assigns it to the Tier field. +func (o *CoresConfig) SetTier(v int32) { + o.Tier = &v +} + +func (o CoresConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CoresConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Flavor) { + toSerialize["flavor"] = o.Flavor + } + if !IsNil(o.PackageCodes) { + toSerialize["packageCodes"] = o.PackageCodes + } + if !IsNil(o.Supported) { + toSerialize["supported"] = o.Supported + } + if !IsNil(o.Tier) { + toSerialize["tier"] = o.Tier + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CoresConfig) UnmarshalJSON(data []byte) (err error) { + varCoresConfig := _CoresConfig{} + + err = json.Unmarshal(data, &varCoresConfig) + + if err != nil { + return err + } + + *o = CoresConfig(varCoresConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "core") + delete(additionalProperties, "memory") + delete(additionalProperties, "unit") + delete(additionalProperties, "flavor") + delete(additionalProperties, "packageCodes") + delete(additionalProperties, "supported") + delete(additionalProperties, "tier") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCoresConfig struct { + value *CoresConfig + isSet bool +} + +func (v NullableCoresConfig) Get() *CoresConfig { + return v.value +} + +func (v *NullableCoresConfig) Set(val *CoresConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCoresConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCoresConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoresConfig(val *CoresConfig) *NullableCoresConfig { + return &NullableCoresConfig{value: val, isSet: true} +} + +func (v NullableCoresConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoresConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_cores_display_config.go b/services/networkedgev1/model_cores_display_config.go new file mode 100644 index 00000000..84fdd3b2 --- /dev/null +++ b/services/networkedgev1/model_cores_display_config.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the CoresDisplayConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CoresDisplayConfig{} + +// CoresDisplayConfig struct for CoresDisplayConfig +type CoresDisplayConfig struct { + // The number of cores. + Core *int32 `json:"core,omitempty"` + // The amount of memory. + Memory *int32 `json:"memory,omitempty"` + // The unit of memory. + Unit *string `json:"unit,omitempty"` + // Tier is only relevant for Cisco8000V devices. + Tier *int32 `json:"tier,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CoresDisplayConfig CoresDisplayConfig + +// NewCoresDisplayConfig instantiates a new CoresDisplayConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCoresDisplayConfig() *CoresDisplayConfig { + this := CoresDisplayConfig{} + return &this +} + +// NewCoresDisplayConfigWithDefaults instantiates a new CoresDisplayConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCoresDisplayConfigWithDefaults() *CoresDisplayConfig { + this := CoresDisplayConfig{} + return &this +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *CoresDisplayConfig) GetCore() int32 { + if o == nil || IsNil(o.Core) { + var ret int32 + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresDisplayConfig) GetCoreOk() (*int32, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *CoresDisplayConfig) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given int32 and assigns it to the Core field. +func (o *CoresDisplayConfig) SetCore(v int32) { + o.Core = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *CoresDisplayConfig) GetMemory() int32 { + if o == nil || IsNil(o.Memory) { + var ret int32 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresDisplayConfig) GetMemoryOk() (*int32, bool) { + if o == nil || IsNil(o.Memory) { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *CoresDisplayConfig) HasMemory() bool { + if o != nil && !IsNil(o.Memory) { + return true + } + + return false +} + +// SetMemory gets a reference to the given int32 and assigns it to the Memory field. +func (o *CoresDisplayConfig) SetMemory(v int32) { + o.Memory = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *CoresDisplayConfig) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresDisplayConfig) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *CoresDisplayConfig) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *CoresDisplayConfig) SetUnit(v string) { + o.Unit = &v +} + +// GetTier returns the Tier field value if set, zero value otherwise. +func (o *CoresDisplayConfig) GetTier() int32 { + if o == nil || IsNil(o.Tier) { + var ret int32 + return ret + } + return *o.Tier +} + +// GetTierOk returns a tuple with the Tier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoresDisplayConfig) GetTierOk() (*int32, bool) { + if o == nil || IsNil(o.Tier) { + return nil, false + } + return o.Tier, true +} + +// HasTier returns a boolean if a field has been set. +func (o *CoresDisplayConfig) HasTier() bool { + if o != nil && !IsNil(o.Tier) { + return true + } + + return false +} + +// SetTier gets a reference to the given int32 and assigns it to the Tier field. +func (o *CoresDisplayConfig) SetTier(v int32) { + o.Tier = &v +} + +func (o CoresDisplayConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CoresDisplayConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Tier) { + toSerialize["tier"] = o.Tier + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CoresDisplayConfig) UnmarshalJSON(data []byte) (err error) { + varCoresDisplayConfig := _CoresDisplayConfig{} + + err = json.Unmarshal(data, &varCoresDisplayConfig) + + if err != nil { + return err + } + + *o = CoresDisplayConfig(varCoresDisplayConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "core") + delete(additionalProperties, "memory") + delete(additionalProperties, "unit") + delete(additionalProperties, "tier") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCoresDisplayConfig struct { + value *CoresDisplayConfig + isSet bool +} + +func (v NullableCoresDisplayConfig) Get() *CoresDisplayConfig { + return v.value +} + +func (v *NullableCoresDisplayConfig) Set(val *CoresDisplayConfig) { + v.value = val + v.isSet = true +} + +func (v NullableCoresDisplayConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableCoresDisplayConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoresDisplayConfig(val *CoresDisplayConfig) *NullableCoresDisplayConfig { + return &NullableCoresDisplayConfig{value: val, isSet: true} +} + +func (v NullableCoresDisplayConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoresDisplayConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_default_acls_config.go b/services/networkedgev1/model_default_acls_config.go new file mode 100644 index 00000000..db2bac88 --- /dev/null +++ b/services/networkedgev1/model_default_acls_config.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DefaultAclsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DefaultAclsConfig{} + +// DefaultAclsConfig struct for DefaultAclsConfig +type DefaultAclsConfig struct { + DnsServers []string `json:"dnsServers,omitempty"` + NtpServers []string `json:"ntpServers,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DefaultAclsConfig DefaultAclsConfig + +// NewDefaultAclsConfig instantiates a new DefaultAclsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDefaultAclsConfig() *DefaultAclsConfig { + this := DefaultAclsConfig{} + return &this +} + +// NewDefaultAclsConfigWithDefaults instantiates a new DefaultAclsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDefaultAclsConfigWithDefaults() *DefaultAclsConfig { + this := DefaultAclsConfig{} + return &this +} + +// GetDnsServers returns the DnsServers field value if set, zero value otherwise. +func (o *DefaultAclsConfig) GetDnsServers() []string { + if o == nil || IsNil(o.DnsServers) { + var ret []string + return ret + } + return o.DnsServers +} + +// GetDnsServersOk returns a tuple with the DnsServers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DefaultAclsConfig) GetDnsServersOk() ([]string, bool) { + if o == nil || IsNil(o.DnsServers) { + return nil, false + } + return o.DnsServers, true +} + +// HasDnsServers returns a boolean if a field has been set. +func (o *DefaultAclsConfig) HasDnsServers() bool { + if o != nil && !IsNil(o.DnsServers) { + return true + } + + return false +} + +// SetDnsServers gets a reference to the given []string and assigns it to the DnsServers field. +func (o *DefaultAclsConfig) SetDnsServers(v []string) { + o.DnsServers = v +} + +// GetNtpServers returns the NtpServers field value if set, zero value otherwise. +func (o *DefaultAclsConfig) GetNtpServers() []string { + if o == nil || IsNil(o.NtpServers) { + var ret []string + return ret + } + return o.NtpServers +} + +// GetNtpServersOk returns a tuple with the NtpServers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DefaultAclsConfig) GetNtpServersOk() ([]string, bool) { + if o == nil || IsNil(o.NtpServers) { + return nil, false + } + return o.NtpServers, true +} + +// HasNtpServers returns a boolean if a field has been set. +func (o *DefaultAclsConfig) HasNtpServers() bool { + if o != nil && !IsNil(o.NtpServers) { + return true + } + + return false +} + +// SetNtpServers gets a reference to the given []string and assigns it to the NtpServers field. +func (o *DefaultAclsConfig) SetNtpServers(v []string) { + o.NtpServers = v +} + +func (o DefaultAclsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DefaultAclsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DnsServers) { + toSerialize["dnsServers"] = o.DnsServers + } + if !IsNil(o.NtpServers) { + toSerialize["ntpServers"] = o.NtpServers + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DefaultAclsConfig) UnmarshalJSON(data []byte) (err error) { + varDefaultAclsConfig := _DefaultAclsConfig{} + + err = json.Unmarshal(data, &varDefaultAclsConfig) + + if err != nil { + return err + } + + *o = DefaultAclsConfig(varDefaultAclsConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dnsServers") + delete(additionalProperties, "ntpServers") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDefaultAclsConfig struct { + value *DefaultAclsConfig + isSet bool +} + +func (v NullableDefaultAclsConfig) Get() *DefaultAclsConfig { + return v.value +} + +func (v *NullableDefaultAclsConfig) Set(val *DefaultAclsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDefaultAclsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDefaultAclsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDefaultAclsConfig(val *DefaultAclsConfig) *NullableDefaultAclsConfig { + return &NullableDefaultAclsConfig{value: val, isSet: true} +} + +func (v NullableDefaultAclsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDefaultAclsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_delete_connection_response.go b/services/networkedgev1/model_delete_connection_response.go new file mode 100644 index 00000000..300f47d4 --- /dev/null +++ b/services/networkedgev1/model_delete_connection_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeleteConnectionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteConnectionResponse{} + +// DeleteConnectionResponse struct for DeleteConnectionResponse +type DeleteConnectionResponse struct { + Message *string `json:"message,omitempty"` + PrimaryConnectionId *string `json:"primaryConnectionId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteConnectionResponse DeleteConnectionResponse + +// NewDeleteConnectionResponse instantiates a new DeleteConnectionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteConnectionResponse() *DeleteConnectionResponse { + this := DeleteConnectionResponse{} + return &this +} + +// NewDeleteConnectionResponseWithDefaults instantiates a new DeleteConnectionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteConnectionResponseWithDefaults() *DeleteConnectionResponse { + this := DeleteConnectionResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteConnectionResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteConnectionResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *DeleteConnectionResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *DeleteConnectionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetPrimaryConnectionId returns the PrimaryConnectionId field value if set, zero value otherwise. +func (o *DeleteConnectionResponse) GetPrimaryConnectionId() string { + if o == nil || IsNil(o.PrimaryConnectionId) { + var ret string + return ret + } + return *o.PrimaryConnectionId +} + +// GetPrimaryConnectionIdOk returns a tuple with the PrimaryConnectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteConnectionResponse) GetPrimaryConnectionIdOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryConnectionId) { + return nil, false + } + return o.PrimaryConnectionId, true +} + +// HasPrimaryConnectionId returns a boolean if a field has been set. +func (o *DeleteConnectionResponse) HasPrimaryConnectionId() bool { + if o != nil && !IsNil(o.PrimaryConnectionId) { + return true + } + + return false +} + +// SetPrimaryConnectionId gets a reference to the given string and assigns it to the PrimaryConnectionId field. +func (o *DeleteConnectionResponse) SetPrimaryConnectionId(v string) { + o.PrimaryConnectionId = &v +} + +func (o DeleteConnectionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteConnectionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.PrimaryConnectionId) { + toSerialize["primaryConnectionId"] = o.PrimaryConnectionId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteConnectionResponse) UnmarshalJSON(data []byte) (err error) { + varDeleteConnectionResponse := _DeleteConnectionResponse{} + + err = json.Unmarshal(data, &varDeleteConnectionResponse) + + if err != nil { + return err + } + + *o = DeleteConnectionResponse(varDeleteConnectionResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "primaryConnectionId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteConnectionResponse struct { + value *DeleteConnectionResponse + isSet bool +} + +func (v NullableDeleteConnectionResponse) Get() *DeleteConnectionResponse { + return v.value +} + +func (v *NullableDeleteConnectionResponse) Set(val *DeleteConnectionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteConnectionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteConnectionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteConnectionResponse(val *DeleteConnectionResponse) *NullableDeleteConnectionResponse { + return &NullableDeleteConnectionResponse{value: val, isSet: true} +} + +func (v NullableDeleteConnectionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteConnectionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_acl_details_response.go b/services/networkedgev1/model_device_acl_details_response.go new file mode 100644 index 00000000..b9ae46fe --- /dev/null +++ b/services/networkedgev1/model_device_acl_details_response.go @@ -0,0 +1,383 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceACLDetailsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceACLDetailsResponse{} + +// DeviceACLDetailsResponse struct for DeviceACLDetailsResponse +type DeviceACLDetailsResponse struct { + // The name of the ACL template. + Name *string `json:"name,omitempty"` + // The unique Id of the ACL template. + Uuid *string `json:"uuid,omitempty"` + // The description of the ACL template. + Description *string `json:"description,omitempty"` + // An array of inbound rules + InboundRules []InboundRules `json:"inboundRules,omitempty"` + // Created by + CreatedBy *string `json:"createdBy,omitempty"` + // Created date + CreatedDate *string `json:"createdDate,omitempty"` + // The status of the ACL template on the device. Possible values are PROVISIONED, DEPROVISIONED, DEVICE_NOT_READY, FAILED, NOT_APPLIED, PROVISIONING. + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceACLDetailsResponse DeviceACLDetailsResponse + +// NewDeviceACLDetailsResponse instantiates a new DeviceACLDetailsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceACLDetailsResponse() *DeviceACLDetailsResponse { + this := DeviceACLDetailsResponse{} + return &this +} + +// NewDeviceACLDetailsResponseWithDefaults instantiates a new DeviceACLDetailsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceACLDetailsResponseWithDefaults() *DeviceACLDetailsResponse { + this := DeviceACLDetailsResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *DeviceACLDetailsResponse) SetName(v string) { + o.Name = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceACLDetailsResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *DeviceACLDetailsResponse) SetDescription(v string) { + o.Description = &v +} + +// GetInboundRules returns the InboundRules field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetInboundRules() []InboundRules { + if o == nil || IsNil(o.InboundRules) { + var ret []InboundRules + return ret + } + return o.InboundRules +} + +// GetInboundRulesOk returns a tuple with the InboundRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetInboundRulesOk() ([]InboundRules, bool) { + if o == nil || IsNil(o.InboundRules) { + return nil, false + } + return o.InboundRules, true +} + +// HasInboundRules returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasInboundRules() bool { + if o != nil && !IsNil(o.InboundRules) { + return true + } + + return false +} + +// SetInboundRules gets a reference to the given []InboundRules and assigns it to the InboundRules field. +func (o *DeviceACLDetailsResponse) SetInboundRules(v []InboundRules) { + o.InboundRules = v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *DeviceACLDetailsResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *DeviceACLDetailsResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceACLDetailsResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLDetailsResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceACLDetailsResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceACLDetailsResponse) SetStatus(v string) { + o.Status = &v +} + +func (o DeviceACLDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceACLDetailsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.InboundRules) { + toSerialize["inboundRules"] = o.InboundRules + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceACLDetailsResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceACLDetailsResponse := _DeviceACLDetailsResponse{} + + err = json.Unmarshal(data, &varDeviceACLDetailsResponse) + + if err != nil { + return err + } + + *o = DeviceACLDetailsResponse(varDeviceACLDetailsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "uuid") + delete(additionalProperties, "description") + delete(additionalProperties, "inboundRules") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceACLDetailsResponse struct { + value *DeviceACLDetailsResponse + isSet bool +} + +func (v NullableDeviceACLDetailsResponse) Get() *DeviceACLDetailsResponse { + return v.value +} + +func (v *NullableDeviceACLDetailsResponse) Set(val *DeviceACLDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceACLDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceACLDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceACLDetailsResponse(val *DeviceACLDetailsResponse) *NullableDeviceACLDetailsResponse { + return &NullableDeviceACLDetailsResponse{value: val, isSet: true} +} + +func (v NullableDeviceACLDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceACLDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_acl_page_response.go b/services/networkedgev1/model_device_acl_page_response.go new file mode 100644 index 00000000..94d8f5d1 --- /dev/null +++ b/services/networkedgev1/model_device_acl_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceACLPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceACLPageResponse{} + +// DeviceACLPageResponse struct for DeviceACLPageResponse +type DeviceACLPageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []DeviceACLTemplatesResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceACLPageResponse DeviceACLPageResponse + +// NewDeviceACLPageResponse instantiates a new DeviceACLPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceACLPageResponse() *DeviceACLPageResponse { + this := DeviceACLPageResponse{} + return &this +} + +// NewDeviceACLPageResponseWithDefaults instantiates a new DeviceACLPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceACLPageResponseWithDefaults() *DeviceACLPageResponse { + this := DeviceACLPageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *DeviceACLPageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLPageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *DeviceACLPageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *DeviceACLPageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeviceACLPageResponse) GetData() []DeviceACLTemplatesResponse { + if o == nil || IsNil(o.Data) { + var ret []DeviceACLTemplatesResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLPageResponse) GetDataOk() ([]DeviceACLTemplatesResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeviceACLPageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []DeviceACLTemplatesResponse and assigns it to the Data field. +func (o *DeviceACLPageResponse) SetData(v []DeviceACLTemplatesResponse) { + o.Data = v +} + +func (o DeviceACLPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceACLPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceACLPageResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceACLPageResponse := _DeviceACLPageResponse{} + + err = json.Unmarshal(data, &varDeviceACLPageResponse) + + if err != nil { + return err + } + + *o = DeviceACLPageResponse(varDeviceACLPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceACLPageResponse struct { + value *DeviceACLPageResponse + isSet bool +} + +func (v NullableDeviceACLPageResponse) Get() *DeviceACLPageResponse { + return v.value +} + +func (v *NullableDeviceACLPageResponse) Set(val *DeviceACLPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceACLPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceACLPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceACLPageResponse(val *DeviceACLPageResponse) *NullableDeviceACLPageResponse { + return &NullableDeviceACLPageResponse{value: val, isSet: true} +} + +func (v NullableDeviceACLPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceACLPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_acl_template_request.go b/services/networkedgev1/model_device_acl_template_request.go new file mode 100644 index 00000000..24a4c5db --- /dev/null +++ b/services/networkedgev1/model_device_acl_template_request.go @@ -0,0 +1,228 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the DeviceACLTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceACLTemplateRequest{} + +// DeviceACLTemplateRequest struct for DeviceACLTemplateRequest +type DeviceACLTemplateRequest struct { + // The ACL template name. + Name string `json:"name"` + // The ACL template description. + Description string `json:"description"` + // An array of inbound rules. + InboundRules []InboundRules `json:"inboundRules"` + AdditionalProperties map[string]interface{} +} + +type _DeviceACLTemplateRequest DeviceACLTemplateRequest + +// NewDeviceACLTemplateRequest instantiates a new DeviceACLTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceACLTemplateRequest(name string, description string, inboundRules []InboundRules) *DeviceACLTemplateRequest { + this := DeviceACLTemplateRequest{} + this.Name = name + this.Description = description + this.InboundRules = inboundRules + return &this +} + +// NewDeviceACLTemplateRequestWithDefaults instantiates a new DeviceACLTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceACLTemplateRequestWithDefaults() *DeviceACLTemplateRequest { + this := DeviceACLTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *DeviceACLTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeviceACLTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *DeviceACLTemplateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *DeviceACLTemplateRequest) SetDescription(v string) { + o.Description = v +} + +// GetInboundRules returns the InboundRules field value +func (o *DeviceACLTemplateRequest) GetInboundRules() []InboundRules { + if o == nil { + var ret []InboundRules + return ret + } + + return o.InboundRules +} + +// GetInboundRulesOk returns a tuple with the InboundRules field value +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplateRequest) GetInboundRulesOk() ([]InboundRules, bool) { + if o == nil { + return nil, false + } + return o.InboundRules, true +} + +// SetInboundRules sets field value +func (o *DeviceACLTemplateRequest) SetInboundRules(v []InboundRules) { + o.InboundRules = v +} + +func (o DeviceACLTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceACLTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["inboundRules"] = o.InboundRules + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceACLTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "description", + "inboundRules", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeviceACLTemplateRequest := _DeviceACLTemplateRequest{} + + err = json.Unmarshal(data, &varDeviceACLTemplateRequest) + + if err != nil { + return err + } + + *o = DeviceACLTemplateRequest(varDeviceACLTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "inboundRules") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceACLTemplateRequest struct { + value *DeviceACLTemplateRequest + isSet bool +} + +func (v NullableDeviceACLTemplateRequest) Get() *DeviceACLTemplateRequest { + return v.value +} + +func (v *NullableDeviceACLTemplateRequest) Set(val *DeviceACLTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceACLTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceACLTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceACLTemplateRequest(val *DeviceACLTemplateRequest) *NullableDeviceACLTemplateRequest { + return &NullableDeviceACLTemplateRequest{value: val, isSet: true} +} + +func (v NullableDeviceACLTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceACLTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_acl_templates_response.go b/services/networkedgev1/model_device_acl_templates_response.go new file mode 100644 index 00000000..809e918b --- /dev/null +++ b/services/networkedgev1/model_device_acl_templates_response.go @@ -0,0 +1,345 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceACLTemplatesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceACLTemplatesResponse{} + +// DeviceACLTemplatesResponse struct for DeviceACLTemplatesResponse +type DeviceACLTemplatesResponse struct { + // The name of the ACL template. + Name *string `json:"name,omitempty"` + // The unique Id of the ACL template. + Uuid *string `json:"uuid,omitempty"` + // The description of the ACL template. + Description *string `json:"description,omitempty"` + // An array of inbound rules + InboundRules []InboundRules `json:"inboundRules,omitempty"` + // Created by + CreatedBy *string `json:"createdBy,omitempty"` + // Created date + CreatedDate *string `json:"createdDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceACLTemplatesResponse DeviceACLTemplatesResponse + +// NewDeviceACLTemplatesResponse instantiates a new DeviceACLTemplatesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceACLTemplatesResponse() *DeviceACLTemplatesResponse { + this := DeviceACLTemplatesResponse{} + return &this +} + +// NewDeviceACLTemplatesResponseWithDefaults instantiates a new DeviceACLTemplatesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceACLTemplatesResponseWithDefaults() *DeviceACLTemplatesResponse { + this := DeviceACLTemplatesResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *DeviceACLTemplatesResponse) SetName(v string) { + o.Name = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceACLTemplatesResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *DeviceACLTemplatesResponse) SetDescription(v string) { + o.Description = &v +} + +// GetInboundRules returns the InboundRules field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetInboundRules() []InboundRules { + if o == nil || IsNil(o.InboundRules) { + var ret []InboundRules + return ret + } + return o.InboundRules +} + +// GetInboundRulesOk returns a tuple with the InboundRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetInboundRulesOk() ([]InboundRules, bool) { + if o == nil || IsNil(o.InboundRules) { + return nil, false + } + return o.InboundRules, true +} + +// HasInboundRules returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasInboundRules() bool { + if o != nil && !IsNil(o.InboundRules) { + return true + } + + return false +} + +// SetInboundRules gets a reference to the given []InboundRules and assigns it to the InboundRules field. +func (o *DeviceACLTemplatesResponse) SetInboundRules(v []InboundRules) { + o.InboundRules = v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *DeviceACLTemplatesResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *DeviceACLTemplatesResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceACLTemplatesResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *DeviceACLTemplatesResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *DeviceACLTemplatesResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +func (o DeviceACLTemplatesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceACLTemplatesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.InboundRules) { + toSerialize["inboundRules"] = o.InboundRules + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceACLTemplatesResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceACLTemplatesResponse := _DeviceACLTemplatesResponse{} + + err = json.Unmarshal(data, &varDeviceACLTemplatesResponse) + + if err != nil { + return err + } + + *o = DeviceACLTemplatesResponse(varDeviceACLTemplatesResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "uuid") + delete(additionalProperties, "description") + delete(additionalProperties, "inboundRules") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceACLTemplatesResponse struct { + value *DeviceACLTemplatesResponse + isSet bool +} + +func (v NullableDeviceACLTemplatesResponse) Get() *DeviceACLTemplatesResponse { + return v.value +} + +func (v *NullableDeviceACLTemplatesResponse) Set(val *DeviceACLTemplatesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceACLTemplatesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceACLTemplatesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceACLTemplatesResponse(val *DeviceACLTemplatesResponse) *NullableDeviceACLTemplatesResponse { + return &NullableDeviceACLTemplatesResponse{value: val, isSet: true} +} + +func (v NullableDeviceACLTemplatesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceACLTemplatesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_create_request.go b/services/networkedgev1/model_device_backup_create_request.go new file mode 100644 index 00000000..ba09d988 --- /dev/null +++ b/services/networkedgev1/model_device_backup_create_request.go @@ -0,0 +1,198 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the DeviceBackupCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupCreateRequest{} + +// DeviceBackupCreateRequest struct for DeviceBackupCreateRequest +type DeviceBackupCreateRequest struct { + // The unique Id of a virtual device. + DeviceUuid string `json:"deviceUuid"` + // The name of backup. + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupCreateRequest DeviceBackupCreateRequest + +// NewDeviceBackupCreateRequest instantiates a new DeviceBackupCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupCreateRequest(deviceUuid string, name string) *DeviceBackupCreateRequest { + this := DeviceBackupCreateRequest{} + this.DeviceUuid = deviceUuid + this.Name = name + return &this +} + +// NewDeviceBackupCreateRequestWithDefaults instantiates a new DeviceBackupCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupCreateRequestWithDefaults() *DeviceBackupCreateRequest { + this := DeviceBackupCreateRequest{} + return &this +} + +// GetDeviceUuid returns the DeviceUuid field value +func (o *DeviceBackupCreateRequest) GetDeviceUuid() string { + if o == nil { + var ret string + return ret + } + + return o.DeviceUuid +} + +// GetDeviceUuidOk returns a tuple with the DeviceUuid field value +// and a boolean to check if the value has been set. +func (o *DeviceBackupCreateRequest) GetDeviceUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeviceUuid, true +} + +// SetDeviceUuid sets field value +func (o *DeviceBackupCreateRequest) SetDeviceUuid(v string) { + o.DeviceUuid = v +} + +// GetName returns the Name field value +func (o *DeviceBackupCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeviceBackupCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeviceBackupCreateRequest) SetName(v string) { + o.Name = v +} + +func (o DeviceBackupCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["deviceUuid"] = o.DeviceUuid + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupCreateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "deviceUuid", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeviceBackupCreateRequest := _DeviceBackupCreateRequest{} + + err = json.Unmarshal(data, &varDeviceBackupCreateRequest) + + if err != nil { + return err + } + + *o = DeviceBackupCreateRequest(varDeviceBackupCreateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceUuid") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupCreateRequest struct { + value *DeviceBackupCreateRequest + isSet bool +} + +func (v NullableDeviceBackupCreateRequest) Get() *DeviceBackupCreateRequest { + return v.value +} + +func (v *NullableDeviceBackupCreateRequest) Set(val *DeviceBackupCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupCreateRequest(val *DeviceBackupCreateRequest) *NullableDeviceBackupCreateRequest { + return &NullableDeviceBackupCreateRequest{value: val, isSet: true} +} + +func (v NullableDeviceBackupCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_create_response.go b/services/networkedgev1/model_device_backup_create_response.go new file mode 100644 index 00000000..3ed6c991 --- /dev/null +++ b/services/networkedgev1/model_device_backup_create_response.go @@ -0,0 +1,155 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceBackupCreateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupCreateResponse{} + +// DeviceBackupCreateResponse struct for DeviceBackupCreateResponse +type DeviceBackupCreateResponse struct { + // The ID of the backup that is being created. + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupCreateResponse DeviceBackupCreateResponse + +// NewDeviceBackupCreateResponse instantiates a new DeviceBackupCreateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupCreateResponse() *DeviceBackupCreateResponse { + this := DeviceBackupCreateResponse{} + return &this +} + +// NewDeviceBackupCreateResponseWithDefaults instantiates a new DeviceBackupCreateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupCreateResponseWithDefaults() *DeviceBackupCreateResponse { + this := DeviceBackupCreateResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceBackupCreateResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupCreateResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceBackupCreateResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceBackupCreateResponse) SetUuid(v string) { + o.Uuid = &v +} + +func (o DeviceBackupCreateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupCreateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupCreateResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceBackupCreateResponse := _DeviceBackupCreateResponse{} + + err = json.Unmarshal(data, &varDeviceBackupCreateResponse) + + if err != nil { + return err + } + + *o = DeviceBackupCreateResponse(varDeviceBackupCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupCreateResponse struct { + value *DeviceBackupCreateResponse + isSet bool +} + +func (v NullableDeviceBackupCreateResponse) Get() *DeviceBackupCreateResponse { + return v.value +} + +func (v *NullableDeviceBackupCreateResponse) Set(val *DeviceBackupCreateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupCreateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupCreateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupCreateResponse(val *DeviceBackupCreateResponse) *NullableDeviceBackupCreateResponse { + return &NullableDeviceBackupCreateResponse{value: val, isSet: true} +} + +func (v NullableDeviceBackupCreateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupCreateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_info_verbose.go b/services/networkedgev1/model_device_backup_info_verbose.go new file mode 100644 index 00000000..29c41272 --- /dev/null +++ b/services/networkedgev1/model_device_backup_info_verbose.go @@ -0,0 +1,534 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceBackupInfoVerbose type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupInfoVerbose{} + +// DeviceBackupInfoVerbose struct for DeviceBackupInfoVerbose +type DeviceBackupInfoVerbose struct { + // The unique Id of the device backup. + Uuid *string `json:"uuid,omitempty"` + // The name of the backup. + Name *string `json:"name,omitempty"` + // Version of the device + Version *string `json:"version,omitempty"` + // The type of backup. + Type *string `json:"type,omitempty"` + // The status of the backup. + Status *string `json:"status,omitempty"` + // Created by. + CreatedBy *string `json:"createdBy,omitempty"` + // Last updated date. + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + // URL where you can download the backup. + DownloadUrl *string `json:"downloadUrl,omitempty"` + // Whether or not you can delete the backup. + DeleteAllowed *bool `json:"deleteAllowed,omitempty"` + Restores []PreviousBackups `json:"restores,omitempty"` + // Unique Id of the device + DeviceUuid *string `json:"deviceUuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupInfoVerbose DeviceBackupInfoVerbose + +// NewDeviceBackupInfoVerbose instantiates a new DeviceBackupInfoVerbose object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupInfoVerbose() *DeviceBackupInfoVerbose { + this := DeviceBackupInfoVerbose{} + return &this +} + +// NewDeviceBackupInfoVerboseWithDefaults instantiates a new DeviceBackupInfoVerbose object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupInfoVerboseWithDefaults() *DeviceBackupInfoVerbose { + this := DeviceBackupInfoVerbose{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceBackupInfoVerbose) SetUuid(v string) { + o.Uuid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *DeviceBackupInfoVerbose) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *DeviceBackupInfoVerbose) SetVersion(v string) { + o.Version = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *DeviceBackupInfoVerbose) SetType(v string) { + o.Type = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceBackupInfoVerbose) SetStatus(v string) { + o.Status = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *DeviceBackupInfoVerbose) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *DeviceBackupInfoVerbose) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *DeviceBackupInfoVerbose) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +// GetDeleteAllowed returns the DeleteAllowed field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetDeleteAllowed() bool { + if o == nil || IsNil(o.DeleteAllowed) { + var ret bool + return ret + } + return *o.DeleteAllowed +} + +// GetDeleteAllowedOk returns a tuple with the DeleteAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetDeleteAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.DeleteAllowed) { + return nil, false + } + return o.DeleteAllowed, true +} + +// HasDeleteAllowed returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasDeleteAllowed() bool { + if o != nil && !IsNil(o.DeleteAllowed) { + return true + } + + return false +} + +// SetDeleteAllowed gets a reference to the given bool and assigns it to the DeleteAllowed field. +func (o *DeviceBackupInfoVerbose) SetDeleteAllowed(v bool) { + o.DeleteAllowed = &v +} + +// GetRestores returns the Restores field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetRestores() []PreviousBackups { + if o == nil || IsNil(o.Restores) { + var ret []PreviousBackups + return ret + } + return o.Restores +} + +// GetRestoresOk returns a tuple with the Restores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetRestoresOk() ([]PreviousBackups, bool) { + if o == nil || IsNil(o.Restores) { + return nil, false + } + return o.Restores, true +} + +// HasRestores returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasRestores() bool { + if o != nil && !IsNil(o.Restores) { + return true + } + + return false +} + +// SetRestores gets a reference to the given []PreviousBackups and assigns it to the Restores field. +func (o *DeviceBackupInfoVerbose) SetRestores(v []PreviousBackups) { + o.Restores = v +} + +// GetDeviceUuid returns the DeviceUuid field value if set, zero value otherwise. +func (o *DeviceBackupInfoVerbose) GetDeviceUuid() string { + if o == nil || IsNil(o.DeviceUuid) { + var ret string + return ret + } + return *o.DeviceUuid +} + +// GetDeviceUuidOk returns a tuple with the DeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupInfoVerbose) GetDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.DeviceUuid) { + return nil, false + } + return o.DeviceUuid, true +} + +// HasDeviceUuid returns a boolean if a field has been set. +func (o *DeviceBackupInfoVerbose) HasDeviceUuid() bool { + if o != nil && !IsNil(o.DeviceUuid) { + return true + } + + return false +} + +// SetDeviceUuid gets a reference to the given string and assigns it to the DeviceUuid field. +func (o *DeviceBackupInfoVerbose) SetDeviceUuid(v string) { + o.DeviceUuid = &v +} + +func (o DeviceBackupInfoVerbose) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupInfoVerbose) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.DownloadUrl) { + toSerialize["downloadUrl"] = o.DownloadUrl + } + if !IsNil(o.DeleteAllowed) { + toSerialize["deleteAllowed"] = o.DeleteAllowed + } + if !IsNil(o.Restores) { + toSerialize["restores"] = o.Restores + } + if !IsNil(o.DeviceUuid) { + toSerialize["deviceUuid"] = o.DeviceUuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupInfoVerbose) UnmarshalJSON(data []byte) (err error) { + varDeviceBackupInfoVerbose := _DeviceBackupInfoVerbose{} + + err = json.Unmarshal(data, &varDeviceBackupInfoVerbose) + + if err != nil { + return err + } + + *o = DeviceBackupInfoVerbose(varDeviceBackupInfoVerbose) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "name") + delete(additionalProperties, "version") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "downloadUrl") + delete(additionalProperties, "deleteAllowed") + delete(additionalProperties, "restores") + delete(additionalProperties, "deviceUuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupInfoVerbose struct { + value *DeviceBackupInfoVerbose + isSet bool +} + +func (v NullableDeviceBackupInfoVerbose) Get() *DeviceBackupInfoVerbose { + return v.value +} + +func (v *NullableDeviceBackupInfoVerbose) Set(val *DeviceBackupInfoVerbose) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupInfoVerbose) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupInfoVerbose) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupInfoVerbose(val *DeviceBackupInfoVerbose) *NullableDeviceBackupInfoVerbose { + return &NullableDeviceBackupInfoVerbose{value: val, isSet: true} +} + +func (v NullableDeviceBackupInfoVerbose) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupInfoVerbose) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_page_response.go b/services/networkedgev1/model_device_backup_page_response.go new file mode 100644 index 00000000..b8502a59 --- /dev/null +++ b/services/networkedgev1/model_device_backup_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceBackupPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupPageResponse{} + +// DeviceBackupPageResponse struct for DeviceBackupPageResponse +type DeviceBackupPageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []DeviceBackupInfoVerbose `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupPageResponse DeviceBackupPageResponse + +// NewDeviceBackupPageResponse instantiates a new DeviceBackupPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupPageResponse() *DeviceBackupPageResponse { + this := DeviceBackupPageResponse{} + return &this +} + +// NewDeviceBackupPageResponseWithDefaults instantiates a new DeviceBackupPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupPageResponseWithDefaults() *DeviceBackupPageResponse { + this := DeviceBackupPageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *DeviceBackupPageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupPageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *DeviceBackupPageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *DeviceBackupPageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeviceBackupPageResponse) GetData() []DeviceBackupInfoVerbose { + if o == nil || IsNil(o.Data) { + var ret []DeviceBackupInfoVerbose + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupPageResponse) GetDataOk() ([]DeviceBackupInfoVerbose, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeviceBackupPageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []DeviceBackupInfoVerbose and assigns it to the Data field. +func (o *DeviceBackupPageResponse) SetData(v []DeviceBackupInfoVerbose) { + o.Data = v +} + +func (o DeviceBackupPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupPageResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceBackupPageResponse := _DeviceBackupPageResponse{} + + err = json.Unmarshal(data, &varDeviceBackupPageResponse) + + if err != nil { + return err + } + + *o = DeviceBackupPageResponse(varDeviceBackupPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupPageResponse struct { + value *DeviceBackupPageResponse + isSet bool +} + +func (v NullableDeviceBackupPageResponse) Get() *DeviceBackupPageResponse { + return v.value +} + +func (v *NullableDeviceBackupPageResponse) Set(val *DeviceBackupPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupPageResponse(val *DeviceBackupPageResponse) *NullableDeviceBackupPageResponse { + return &NullableDeviceBackupPageResponse{value: val, isSet: true} +} + +func (v NullableDeviceBackupPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_restore.go b/services/networkedgev1/model_device_backup_restore.go new file mode 100644 index 00000000..df1a1034 --- /dev/null +++ b/services/networkedgev1/model_device_backup_restore.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceBackupRestore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupRestore{} + +// DeviceBackupRestore struct for DeviceBackupRestore +type DeviceBackupRestore struct { + // The unique ID of the backup. + Uuid *string `json:"uuid,omitempty"` + // The name of the backup. + Name *string `json:"name,omitempty"` + // The status of the backup. + Status *string `json:"status,omitempty"` + // Whether you can delete the backup. Only backups in the COMPELTED or FAILED states can be deleted. + DeleteAllowed *bool `json:"deleteAllowed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupRestore DeviceBackupRestore + +// NewDeviceBackupRestore instantiates a new DeviceBackupRestore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupRestore() *DeviceBackupRestore { + this := DeviceBackupRestore{} + return &this +} + +// NewDeviceBackupRestoreWithDefaults instantiates a new DeviceBackupRestore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupRestoreWithDefaults() *DeviceBackupRestore { + this := DeviceBackupRestore{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceBackupRestore) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupRestore) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceBackupRestore) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceBackupRestore) SetUuid(v string) { + o.Uuid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *DeviceBackupRestore) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupRestore) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *DeviceBackupRestore) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *DeviceBackupRestore) SetName(v string) { + o.Name = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceBackupRestore) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupRestore) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceBackupRestore) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceBackupRestore) SetStatus(v string) { + o.Status = &v +} + +// GetDeleteAllowed returns the DeleteAllowed field value if set, zero value otherwise. +func (o *DeviceBackupRestore) GetDeleteAllowed() bool { + if o == nil || IsNil(o.DeleteAllowed) { + var ret bool + return ret + } + return *o.DeleteAllowed +} + +// GetDeleteAllowedOk returns a tuple with the DeleteAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBackupRestore) GetDeleteAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.DeleteAllowed) { + return nil, false + } + return o.DeleteAllowed, true +} + +// HasDeleteAllowed returns a boolean if a field has been set. +func (o *DeviceBackupRestore) HasDeleteAllowed() bool { + if o != nil && !IsNil(o.DeleteAllowed) { + return true + } + + return false +} + +// SetDeleteAllowed gets a reference to the given bool and assigns it to the DeleteAllowed field. +func (o *DeviceBackupRestore) SetDeleteAllowed(v bool) { + o.DeleteAllowed = &v +} + +func (o DeviceBackupRestore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupRestore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.DeleteAllowed) { + toSerialize["deleteAllowed"] = o.DeleteAllowed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupRestore) UnmarshalJSON(data []byte) (err error) { + varDeviceBackupRestore := _DeviceBackupRestore{} + + err = json.Unmarshal(data, &varDeviceBackupRestore) + + if err != nil { + return err + } + + *o = DeviceBackupRestore(varDeviceBackupRestore) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "deleteAllowed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupRestore struct { + value *DeviceBackupRestore + isSet bool +} + +func (v NullableDeviceBackupRestore) Get() *DeviceBackupRestore { + return v.value +} + +func (v *NullableDeviceBackupRestore) Set(val *DeviceBackupRestore) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupRestore) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupRestore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupRestore(val *DeviceBackupRestore) *NullableDeviceBackupRestore { + return &NullableDeviceBackupRestore{value: val, isSet: true} +} + +func (v NullableDeviceBackupRestore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupRestore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_backup_update_request.go b/services/networkedgev1/model_device_backup_update_request.go new file mode 100644 index 00000000..a956b84f --- /dev/null +++ b/services/networkedgev1/model_device_backup_update_request.go @@ -0,0 +1,168 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the DeviceBackupUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceBackupUpdateRequest{} + +// DeviceBackupUpdateRequest struct for DeviceBackupUpdateRequest +type DeviceBackupUpdateRequest struct { + // The name of backup. + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _DeviceBackupUpdateRequest DeviceBackupUpdateRequest + +// NewDeviceBackupUpdateRequest instantiates a new DeviceBackupUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceBackupUpdateRequest(name string) *DeviceBackupUpdateRequest { + this := DeviceBackupUpdateRequest{} + this.Name = name + return &this +} + +// NewDeviceBackupUpdateRequestWithDefaults instantiates a new DeviceBackupUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceBackupUpdateRequestWithDefaults() *DeviceBackupUpdateRequest { + this := DeviceBackupUpdateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *DeviceBackupUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeviceBackupUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeviceBackupUpdateRequest) SetName(v string) { + o.Name = v +} + +func (o DeviceBackupUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceBackupUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceBackupUpdateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeviceBackupUpdateRequest := _DeviceBackupUpdateRequest{} + + err = json.Unmarshal(data, &varDeviceBackupUpdateRequest) + + if err != nil { + return err + } + + *o = DeviceBackupUpdateRequest(varDeviceBackupUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceBackupUpdateRequest struct { + value *DeviceBackupUpdateRequest + isSet bool +} + +func (v NullableDeviceBackupUpdateRequest) Get() *DeviceBackupUpdateRequest { + return v.value +} + +func (v *NullableDeviceBackupUpdateRequest) Set(val *DeviceBackupUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceBackupUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceBackupUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceBackupUpdateRequest(val *DeviceBackupUpdateRequest) *NullableDeviceBackupUpdateRequest { + return &NullableDeviceBackupUpdateRequest{value: val, isSet: true} +} + +func (v NullableDeviceBackupUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceBackupUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_element.go b/services/networkedgev1/model_device_element.go new file mode 100644 index 00000000..1c6c2238 --- /dev/null +++ b/services/networkedgev1/model_device_element.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceElement type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceElement{} + +// DeviceElement struct for DeviceElement +type DeviceElement struct { + Description *string `json:"description,omitempty"` + MonthlyRecurringCharges *float64 `json:"monthlyRecurringCharges,omitempty"` + NonRecurringCharges *float64 `json:"nonRecurringCharges,omitempty"` + ProductCode *string `json:"productCode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceElement DeviceElement + +// NewDeviceElement instantiates a new DeviceElement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceElement() *DeviceElement { + this := DeviceElement{} + return &this +} + +// NewDeviceElementWithDefaults instantiates a new DeviceElement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceElementWithDefaults() *DeviceElement { + this := DeviceElement{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DeviceElement) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceElement) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *DeviceElement) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *DeviceElement) SetDescription(v string) { + o.Description = &v +} + +// GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field value if set, zero value otherwise. +func (o *DeviceElement) GetMonthlyRecurringCharges() float64 { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + var ret float64 + return ret + } + return *o.MonthlyRecurringCharges +} + +// GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceElement) GetMonthlyRecurringChargesOk() (*float64, bool) { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + return nil, false + } + return o.MonthlyRecurringCharges, true +} + +// HasMonthlyRecurringCharges returns a boolean if a field has been set. +func (o *DeviceElement) HasMonthlyRecurringCharges() bool { + if o != nil && !IsNil(o.MonthlyRecurringCharges) { + return true + } + + return false +} + +// SetMonthlyRecurringCharges gets a reference to the given float64 and assigns it to the MonthlyRecurringCharges field. +func (o *DeviceElement) SetMonthlyRecurringCharges(v float64) { + o.MonthlyRecurringCharges = &v +} + +// GetNonRecurringCharges returns the NonRecurringCharges field value if set, zero value otherwise. +func (o *DeviceElement) GetNonRecurringCharges() float64 { + if o == nil || IsNil(o.NonRecurringCharges) { + var ret float64 + return ret + } + return *o.NonRecurringCharges +} + +// GetNonRecurringChargesOk returns a tuple with the NonRecurringCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceElement) GetNonRecurringChargesOk() (*float64, bool) { + if o == nil || IsNil(o.NonRecurringCharges) { + return nil, false + } + return o.NonRecurringCharges, true +} + +// HasNonRecurringCharges returns a boolean if a field has been set. +func (o *DeviceElement) HasNonRecurringCharges() bool { + if o != nil && !IsNil(o.NonRecurringCharges) { + return true + } + + return false +} + +// SetNonRecurringCharges gets a reference to the given float64 and assigns it to the NonRecurringCharges field. +func (o *DeviceElement) SetNonRecurringCharges(v float64) { + o.NonRecurringCharges = &v +} + +// GetProductCode returns the ProductCode field value if set, zero value otherwise. +func (o *DeviceElement) GetProductCode() string { + if o == nil || IsNil(o.ProductCode) { + var ret string + return ret + } + return *o.ProductCode +} + +// GetProductCodeOk returns a tuple with the ProductCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceElement) GetProductCodeOk() (*string, bool) { + if o == nil || IsNil(o.ProductCode) { + return nil, false + } + return o.ProductCode, true +} + +// HasProductCode returns a boolean if a field has been set. +func (o *DeviceElement) HasProductCode() bool { + if o != nil && !IsNil(o.ProductCode) { + return true + } + + return false +} + +// SetProductCode gets a reference to the given string and assigns it to the ProductCode field. +func (o *DeviceElement) SetProductCode(v string) { + o.ProductCode = &v +} + +func (o DeviceElement) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceElement) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.MonthlyRecurringCharges) { + toSerialize["monthlyRecurringCharges"] = o.MonthlyRecurringCharges + } + if !IsNil(o.NonRecurringCharges) { + toSerialize["nonRecurringCharges"] = o.NonRecurringCharges + } + if !IsNil(o.ProductCode) { + toSerialize["productCode"] = o.ProductCode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceElement) UnmarshalJSON(data []byte) (err error) { + varDeviceElement := _DeviceElement{} + + err = json.Unmarshal(data, &varDeviceElement) + + if err != nil { + return err + } + + *o = DeviceElement(varDeviceElement) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "monthlyRecurringCharges") + delete(additionalProperties, "nonRecurringCharges") + delete(additionalProperties, "productCode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceElement struct { + value *DeviceElement + isSet bool +} + +func (v NullableDeviceElement) Get() *DeviceElement { + return v.value +} + +func (v *NullableDeviceElement) Set(val *DeviceElement) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceElement) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceElement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceElement(val *DeviceElement) *NullableDeviceElement { + return &NullableDeviceElement{value: val, isSet: true} +} + +func (v NullableDeviceElement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceElement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_info.go b/services/networkedgev1/model_device_info.go new file mode 100644 index 00000000..330f82a0 --- /dev/null +++ b/services/networkedgev1/model_device_info.go @@ -0,0 +1,755 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceInfo{} + +// DeviceInfo struct for DeviceInfo +type DeviceInfo struct { + Aside *JsonNode `json:"aside,omitempty"` + // Category of the device. + Category *string `json:"category,omitempty"` + CloudProfileProvisioningStatus *string `json:"cloudProfileProvisioningStatus,omitempty"` + ConnectionStatus *string `json:"connectionStatus,omitempty"` + ConnectionUuid *string `json:"connectionUuid,omitempty"` + // Name of the device. + DeviceName *string `json:"deviceName,omitempty"` + // Device type code. + DeviceTypeCode *string `json:"deviceTypeCode,omitempty"` + // Unique Id of the device. + DeviceUUID *string `json:"deviceUUID,omitempty"` + InterfaceId *string `json:"interfaceId,omitempty"` + InterfaceOverlayStatus *string `json:"interfaceOverlayStatus,omitempty"` + // Unique Id of the interface used to link the device. + InterfaceUUID *string `json:"interfaceUUID,omitempty"` + // Assigned IP address of the device. + IpAssigned *string `json:"ipAssigned,omitempty"` + NetworkDetails *JsonNode `json:"networkDetails,omitempty"` + // Status of the device. + Status *string `json:"status,omitempty"` + // Throughput of the device. + Throughput *string `json:"throughput,omitempty"` + // Throughput unit of the device. + ThroughputUnit *string `json:"throughputUnit,omitempty"` + Vxlan *string `json:"vxlan,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceInfo DeviceInfo + +// NewDeviceInfo instantiates a new DeviceInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceInfo() *DeviceInfo { + this := DeviceInfo{} + return &this +} + +// NewDeviceInfoWithDefaults instantiates a new DeviceInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceInfoWithDefaults() *DeviceInfo { + this := DeviceInfo{} + return &this +} + +// GetAside returns the Aside field value if set, zero value otherwise. +func (o *DeviceInfo) GetAside() JsonNode { + if o == nil || IsNil(o.Aside) { + var ret JsonNode + return ret + } + return *o.Aside +} + +// GetAsideOk returns a tuple with the Aside field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetAsideOk() (*JsonNode, bool) { + if o == nil || IsNil(o.Aside) { + return nil, false + } + return o.Aside, true +} + +// HasAside returns a boolean if a field has been set. +func (o *DeviceInfo) HasAside() bool { + if o != nil && !IsNil(o.Aside) { + return true + } + + return false +} + +// SetAside gets a reference to the given JsonNode and assigns it to the Aside field. +func (o *DeviceInfo) SetAside(v JsonNode) { + o.Aside = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *DeviceInfo) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *DeviceInfo) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *DeviceInfo) SetCategory(v string) { + o.Category = &v +} + +// GetCloudProfileProvisioningStatus returns the CloudProfileProvisioningStatus field value if set, zero value otherwise. +func (o *DeviceInfo) GetCloudProfileProvisioningStatus() string { + if o == nil || IsNil(o.CloudProfileProvisioningStatus) { + var ret string + return ret + } + return *o.CloudProfileProvisioningStatus +} + +// GetCloudProfileProvisioningStatusOk returns a tuple with the CloudProfileProvisioningStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetCloudProfileProvisioningStatusOk() (*string, bool) { + if o == nil || IsNil(o.CloudProfileProvisioningStatus) { + return nil, false + } + return o.CloudProfileProvisioningStatus, true +} + +// HasCloudProfileProvisioningStatus returns a boolean if a field has been set. +func (o *DeviceInfo) HasCloudProfileProvisioningStatus() bool { + if o != nil && !IsNil(o.CloudProfileProvisioningStatus) { + return true + } + + return false +} + +// SetCloudProfileProvisioningStatus gets a reference to the given string and assigns it to the CloudProfileProvisioningStatus field. +func (o *DeviceInfo) SetCloudProfileProvisioningStatus(v string) { + o.CloudProfileProvisioningStatus = &v +} + +// GetConnectionStatus returns the ConnectionStatus field value if set, zero value otherwise. +func (o *DeviceInfo) GetConnectionStatus() string { + if o == nil || IsNil(o.ConnectionStatus) { + var ret string + return ret + } + return *o.ConnectionStatus +} + +// GetConnectionStatusOk returns a tuple with the ConnectionStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetConnectionStatusOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionStatus) { + return nil, false + } + return o.ConnectionStatus, true +} + +// HasConnectionStatus returns a boolean if a field has been set. +func (o *DeviceInfo) HasConnectionStatus() bool { + if o != nil && !IsNil(o.ConnectionStatus) { + return true + } + + return false +} + +// SetConnectionStatus gets a reference to the given string and assigns it to the ConnectionStatus field. +func (o *DeviceInfo) SetConnectionStatus(v string) { + o.ConnectionStatus = &v +} + +// GetConnectionUuid returns the ConnectionUuid field value if set, zero value otherwise. +func (o *DeviceInfo) GetConnectionUuid() string { + if o == nil || IsNil(o.ConnectionUuid) { + var ret string + return ret + } + return *o.ConnectionUuid +} + +// GetConnectionUuidOk returns a tuple with the ConnectionUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetConnectionUuidOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionUuid) { + return nil, false + } + return o.ConnectionUuid, true +} + +// HasConnectionUuid returns a boolean if a field has been set. +func (o *DeviceInfo) HasConnectionUuid() bool { + if o != nil && !IsNil(o.ConnectionUuid) { + return true + } + + return false +} + +// SetConnectionUuid gets a reference to the given string and assigns it to the ConnectionUuid field. +func (o *DeviceInfo) SetConnectionUuid(v string) { + o.ConnectionUuid = &v +} + +// GetDeviceName returns the DeviceName field value if set, zero value otherwise. +func (o *DeviceInfo) GetDeviceName() string { + if o == nil || IsNil(o.DeviceName) { + var ret string + return ret + } + return *o.DeviceName +} + +// GetDeviceNameOk returns a tuple with the DeviceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetDeviceNameOk() (*string, bool) { + if o == nil || IsNil(o.DeviceName) { + return nil, false + } + return o.DeviceName, true +} + +// HasDeviceName returns a boolean if a field has been set. +func (o *DeviceInfo) HasDeviceName() bool { + if o != nil && !IsNil(o.DeviceName) { + return true + } + + return false +} + +// SetDeviceName gets a reference to the given string and assigns it to the DeviceName field. +func (o *DeviceInfo) SetDeviceName(v string) { + o.DeviceName = &v +} + +// GetDeviceTypeCode returns the DeviceTypeCode field value if set, zero value otherwise. +func (o *DeviceInfo) GetDeviceTypeCode() string { + if o == nil || IsNil(o.DeviceTypeCode) { + var ret string + return ret + } + return *o.DeviceTypeCode +} + +// GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetDeviceTypeCodeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeCode) { + return nil, false + } + return o.DeviceTypeCode, true +} + +// HasDeviceTypeCode returns a boolean if a field has been set. +func (o *DeviceInfo) HasDeviceTypeCode() bool { + if o != nil && !IsNil(o.DeviceTypeCode) { + return true + } + + return false +} + +// SetDeviceTypeCode gets a reference to the given string and assigns it to the DeviceTypeCode field. +func (o *DeviceInfo) SetDeviceTypeCode(v string) { + o.DeviceTypeCode = &v +} + +// GetDeviceUUID returns the DeviceUUID field value if set, zero value otherwise. +func (o *DeviceInfo) GetDeviceUUID() string { + if o == nil || IsNil(o.DeviceUUID) { + var ret string + return ret + } + return *o.DeviceUUID +} + +// GetDeviceUUIDOk returns a tuple with the DeviceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetDeviceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.DeviceUUID) { + return nil, false + } + return o.DeviceUUID, true +} + +// HasDeviceUUID returns a boolean if a field has been set. +func (o *DeviceInfo) HasDeviceUUID() bool { + if o != nil && !IsNil(o.DeviceUUID) { + return true + } + + return false +} + +// SetDeviceUUID gets a reference to the given string and assigns it to the DeviceUUID field. +func (o *DeviceInfo) SetDeviceUUID(v string) { + o.DeviceUUID = &v +} + +// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise. +func (o *DeviceInfo) GetInterfaceId() string { + if o == nil || IsNil(o.InterfaceId) { + var ret string + return ret + } + return *o.InterfaceId +} + +// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetInterfaceIdOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceId) { + return nil, false + } + return o.InterfaceId, true +} + +// HasInterfaceId returns a boolean if a field has been set. +func (o *DeviceInfo) HasInterfaceId() bool { + if o != nil && !IsNil(o.InterfaceId) { + return true + } + + return false +} + +// SetInterfaceId gets a reference to the given string and assigns it to the InterfaceId field. +func (o *DeviceInfo) SetInterfaceId(v string) { + o.InterfaceId = &v +} + +// GetInterfaceOverlayStatus returns the InterfaceOverlayStatus field value if set, zero value otherwise. +func (o *DeviceInfo) GetInterfaceOverlayStatus() string { + if o == nil || IsNil(o.InterfaceOverlayStatus) { + var ret string + return ret + } + return *o.InterfaceOverlayStatus +} + +// GetInterfaceOverlayStatusOk returns a tuple with the InterfaceOverlayStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetInterfaceOverlayStatusOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceOverlayStatus) { + return nil, false + } + return o.InterfaceOverlayStatus, true +} + +// HasInterfaceOverlayStatus returns a boolean if a field has been set. +func (o *DeviceInfo) HasInterfaceOverlayStatus() bool { + if o != nil && !IsNil(o.InterfaceOverlayStatus) { + return true + } + + return false +} + +// SetInterfaceOverlayStatus gets a reference to the given string and assigns it to the InterfaceOverlayStatus field. +func (o *DeviceInfo) SetInterfaceOverlayStatus(v string) { + o.InterfaceOverlayStatus = &v +} + +// GetInterfaceUUID returns the InterfaceUUID field value if set, zero value otherwise. +func (o *DeviceInfo) GetInterfaceUUID() string { + if o == nil || IsNil(o.InterfaceUUID) { + var ret string + return ret + } + return *o.InterfaceUUID +} + +// GetInterfaceUUIDOk returns a tuple with the InterfaceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetInterfaceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceUUID) { + return nil, false + } + return o.InterfaceUUID, true +} + +// HasInterfaceUUID returns a boolean if a field has been set. +func (o *DeviceInfo) HasInterfaceUUID() bool { + if o != nil && !IsNil(o.InterfaceUUID) { + return true + } + + return false +} + +// SetInterfaceUUID gets a reference to the given string and assigns it to the InterfaceUUID field. +func (o *DeviceInfo) SetInterfaceUUID(v string) { + o.InterfaceUUID = &v +} + +// GetIpAssigned returns the IpAssigned field value if set, zero value otherwise. +func (o *DeviceInfo) GetIpAssigned() string { + if o == nil || IsNil(o.IpAssigned) { + var ret string + return ret + } + return *o.IpAssigned +} + +// GetIpAssignedOk returns a tuple with the IpAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetIpAssignedOk() (*string, bool) { + if o == nil || IsNil(o.IpAssigned) { + return nil, false + } + return o.IpAssigned, true +} + +// HasIpAssigned returns a boolean if a field has been set. +func (o *DeviceInfo) HasIpAssigned() bool { + if o != nil && !IsNil(o.IpAssigned) { + return true + } + + return false +} + +// SetIpAssigned gets a reference to the given string and assigns it to the IpAssigned field. +func (o *DeviceInfo) SetIpAssigned(v string) { + o.IpAssigned = &v +} + +// GetNetworkDetails returns the NetworkDetails field value if set, zero value otherwise. +func (o *DeviceInfo) GetNetworkDetails() JsonNode { + if o == nil || IsNil(o.NetworkDetails) { + var ret JsonNode + return ret + } + return *o.NetworkDetails +} + +// GetNetworkDetailsOk returns a tuple with the NetworkDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetNetworkDetailsOk() (*JsonNode, bool) { + if o == nil || IsNil(o.NetworkDetails) { + return nil, false + } + return o.NetworkDetails, true +} + +// HasNetworkDetails returns a boolean if a field has been set. +func (o *DeviceInfo) HasNetworkDetails() bool { + if o != nil && !IsNil(o.NetworkDetails) { + return true + } + + return false +} + +// SetNetworkDetails gets a reference to the given JsonNode and assigns it to the NetworkDetails field. +func (o *DeviceInfo) SetNetworkDetails(v JsonNode) { + o.NetworkDetails = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceInfo) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceInfo) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceInfo) SetStatus(v string) { + o.Status = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *DeviceInfo) GetThroughput() string { + if o == nil || IsNil(o.Throughput) { + var ret string + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetThroughputOk() (*string, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *DeviceInfo) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given string and assigns it to the Throughput field. +func (o *DeviceInfo) SetThroughput(v string) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *DeviceInfo) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *DeviceInfo) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *DeviceInfo) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetVxlan returns the Vxlan field value if set, zero value otherwise. +func (o *DeviceInfo) GetVxlan() string { + if o == nil || IsNil(o.Vxlan) { + var ret string + return ret + } + return *o.Vxlan +} + +// GetVxlanOk returns a tuple with the Vxlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceInfo) GetVxlanOk() (*string, bool) { + if o == nil || IsNil(o.Vxlan) { + return nil, false + } + return o.Vxlan, true +} + +// HasVxlan returns a boolean if a field has been set. +func (o *DeviceInfo) HasVxlan() bool { + if o != nil && !IsNil(o.Vxlan) { + return true + } + + return false +} + +// SetVxlan gets a reference to the given string and assigns it to the Vxlan field. +func (o *DeviceInfo) SetVxlan(v string) { + o.Vxlan = &v +} + +func (o DeviceInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Aside) { + toSerialize["aside"] = o.Aside + } + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.CloudProfileProvisioningStatus) { + toSerialize["cloudProfileProvisioningStatus"] = o.CloudProfileProvisioningStatus + } + if !IsNil(o.ConnectionStatus) { + toSerialize["connectionStatus"] = o.ConnectionStatus + } + if !IsNil(o.ConnectionUuid) { + toSerialize["connectionUuid"] = o.ConnectionUuid + } + if !IsNil(o.DeviceName) { + toSerialize["deviceName"] = o.DeviceName + } + if !IsNil(o.DeviceTypeCode) { + toSerialize["deviceTypeCode"] = o.DeviceTypeCode + } + if !IsNil(o.DeviceUUID) { + toSerialize["deviceUUID"] = o.DeviceUUID + } + if !IsNil(o.InterfaceId) { + toSerialize["interfaceId"] = o.InterfaceId + } + if !IsNil(o.InterfaceOverlayStatus) { + toSerialize["interfaceOverlayStatus"] = o.InterfaceOverlayStatus + } + if !IsNil(o.InterfaceUUID) { + toSerialize["interfaceUUID"] = o.InterfaceUUID + } + if !IsNil(o.IpAssigned) { + toSerialize["ipAssigned"] = o.IpAssigned + } + if !IsNil(o.NetworkDetails) { + toSerialize["networkDetails"] = o.NetworkDetails + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + if !IsNil(o.Vxlan) { + toSerialize["vxlan"] = o.Vxlan + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceInfo) UnmarshalJSON(data []byte) (err error) { + varDeviceInfo := _DeviceInfo{} + + err = json.Unmarshal(data, &varDeviceInfo) + + if err != nil { + return err + } + + *o = DeviceInfo(varDeviceInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "aside") + delete(additionalProperties, "category") + delete(additionalProperties, "cloudProfileProvisioningStatus") + delete(additionalProperties, "connectionStatus") + delete(additionalProperties, "connectionUuid") + delete(additionalProperties, "deviceName") + delete(additionalProperties, "deviceTypeCode") + delete(additionalProperties, "deviceUUID") + delete(additionalProperties, "interfaceId") + delete(additionalProperties, "interfaceOverlayStatus") + delete(additionalProperties, "interfaceUUID") + delete(additionalProperties, "ipAssigned") + delete(additionalProperties, "networkDetails") + delete(additionalProperties, "status") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + delete(additionalProperties, "vxlan") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceInfo struct { + value *DeviceInfo + isSet bool +} + +func (v NullableDeviceInfo) Get() *DeviceInfo { + return v.value +} + +func (v *NullableDeviceInfo) Set(val *DeviceInfo) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceInfo(val *DeviceInfo) *NullableDeviceInfo { + return &NullableDeviceInfo{value: val, isSet: true} +} + +func (v NullableDeviceInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_link_group_dto.go b/services/networkedgev1/model_device_link_group_dto.go new file mode 100644 index 00000000..2e061ca6 --- /dev/null +++ b/services/networkedgev1/model_device_link_group_dto.go @@ -0,0 +1,533 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceLinkGroupDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceLinkGroupDto{} + +// DeviceLinkGroupDto struct for DeviceLinkGroupDto +type DeviceLinkGroupDto struct { + // Unique Id of the linked group. + Uuid *string `json:"uuid,omitempty"` + // The name of the linked group + GroupName *string `json:"groupName,omitempty"` + // Subnet of the link group. + Subnet *string `json:"subnet,omitempty"` + // Whether the connection is through Fabric's primary or secondary port. + RedundancyType *string `json:"redundancyType,omitempty"` + // Status of the linked group + Status *string `json:"status,omitempty"` + // Created by username. + CreatedBy *string `json:"createdBy,omitempty"` + // Created date. + CreatedDate *string `json:"createdDate,omitempty"` + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + // An array of links + MetroLinks []LinkInfoResponse `json:"metroLinks,omitempty"` + // An array of metros and the devices in the metros belonging to the group. + LinkDevices []LinkDeviceResponse `json:"linkDevices,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceLinkGroupDto DeviceLinkGroupDto + +// NewDeviceLinkGroupDto instantiates a new DeviceLinkGroupDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceLinkGroupDto() *DeviceLinkGroupDto { + this := DeviceLinkGroupDto{} + return &this +} + +// NewDeviceLinkGroupDtoWithDefaults instantiates a new DeviceLinkGroupDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceLinkGroupDtoWithDefaults() *DeviceLinkGroupDto { + this := DeviceLinkGroupDto{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceLinkGroupDto) SetUuid(v string) { + o.Uuid = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetGroupName() string { + if o == nil || IsNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetGroupNameOk() (*string, bool) { + if o == nil || IsNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasGroupName() bool { + if o != nil && !IsNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *DeviceLinkGroupDto) SetGroupName(v string) { + o.GroupName = &v +} + +// GetSubnet returns the Subnet field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetSubnet() string { + if o == nil || IsNil(o.Subnet) { + var ret string + return ret + } + return *o.Subnet +} + +// GetSubnetOk returns a tuple with the Subnet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetSubnetOk() (*string, bool) { + if o == nil || IsNil(o.Subnet) { + return nil, false + } + return o.Subnet, true +} + +// HasSubnet returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasSubnet() bool { + if o != nil && !IsNil(o.Subnet) { + return true + } + + return false +} + +// SetSubnet gets a reference to the given string and assigns it to the Subnet field. +func (o *DeviceLinkGroupDto) SetSubnet(v string) { + o.Subnet = &v +} + +// GetRedundancyType returns the RedundancyType field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetRedundancyType() string { + if o == nil || IsNil(o.RedundancyType) { + var ret string + return ret + } + return *o.RedundancyType +} + +// GetRedundancyTypeOk returns a tuple with the RedundancyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetRedundancyTypeOk() (*string, bool) { + if o == nil || IsNil(o.RedundancyType) { + return nil, false + } + return o.RedundancyType, true +} + +// HasRedundancyType returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasRedundancyType() bool { + if o != nil && !IsNil(o.RedundancyType) { + return true + } + + return false +} + +// SetRedundancyType gets a reference to the given string and assigns it to the RedundancyType field. +func (o *DeviceLinkGroupDto) SetRedundancyType(v string) { + o.RedundancyType = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceLinkGroupDto) SetStatus(v string) { + o.Status = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *DeviceLinkGroupDto) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *DeviceLinkGroupDto) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetLastUpdatedBy returns the LastUpdatedBy field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetLastUpdatedBy() string { + if o == nil || IsNil(o.LastUpdatedBy) { + var ret string + return ret + } + return *o.LastUpdatedBy +} + +// GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetLastUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedBy) { + return nil, false + } + return o.LastUpdatedBy, true +} + +// HasLastUpdatedBy returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasLastUpdatedBy() bool { + if o != nil && !IsNil(o.LastUpdatedBy) { + return true + } + + return false +} + +// SetLastUpdatedBy gets a reference to the given string and assigns it to the LastUpdatedBy field. +func (o *DeviceLinkGroupDto) SetLastUpdatedBy(v string) { + o.LastUpdatedBy = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *DeviceLinkGroupDto) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetMetroLinks returns the MetroLinks field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetMetroLinks() []LinkInfoResponse { + if o == nil || IsNil(o.MetroLinks) { + var ret []LinkInfoResponse + return ret + } + return o.MetroLinks +} + +// GetMetroLinksOk returns a tuple with the MetroLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetMetroLinksOk() ([]LinkInfoResponse, bool) { + if o == nil || IsNil(o.MetroLinks) { + return nil, false + } + return o.MetroLinks, true +} + +// HasMetroLinks returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasMetroLinks() bool { + if o != nil && !IsNil(o.MetroLinks) { + return true + } + + return false +} + +// SetMetroLinks gets a reference to the given []LinkInfoResponse and assigns it to the MetroLinks field. +func (o *DeviceLinkGroupDto) SetMetroLinks(v []LinkInfoResponse) { + o.MetroLinks = v +} + +// GetLinkDevices returns the LinkDevices field value if set, zero value otherwise. +func (o *DeviceLinkGroupDto) GetLinkDevices() []LinkDeviceResponse { + if o == nil || IsNil(o.LinkDevices) { + var ret []LinkDeviceResponse + return ret + } + return o.LinkDevices +} + +// GetLinkDevicesOk returns a tuple with the LinkDevices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupDto) GetLinkDevicesOk() ([]LinkDeviceResponse, bool) { + if o == nil || IsNil(o.LinkDevices) { + return nil, false + } + return o.LinkDevices, true +} + +// HasLinkDevices returns a boolean if a field has been set. +func (o *DeviceLinkGroupDto) HasLinkDevices() bool { + if o != nil && !IsNil(o.LinkDevices) { + return true + } + + return false +} + +// SetLinkDevices gets a reference to the given []LinkDeviceResponse and assigns it to the LinkDevices field. +func (o *DeviceLinkGroupDto) SetLinkDevices(v []LinkDeviceResponse) { + o.LinkDevices = v +} + +func (o DeviceLinkGroupDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceLinkGroupDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.GroupName) { + toSerialize["groupName"] = o.GroupName + } + if !IsNil(o.Subnet) { + toSerialize["subnet"] = o.Subnet + } + if !IsNil(o.RedundancyType) { + toSerialize["redundancyType"] = o.RedundancyType + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.LastUpdatedBy) { + toSerialize["lastUpdatedBy"] = o.LastUpdatedBy + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.MetroLinks) { + toSerialize["metroLinks"] = o.MetroLinks + } + if !IsNil(o.LinkDevices) { + toSerialize["linkDevices"] = o.LinkDevices + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceLinkGroupDto) UnmarshalJSON(data []byte) (err error) { + varDeviceLinkGroupDto := _DeviceLinkGroupDto{} + + err = json.Unmarshal(data, &varDeviceLinkGroupDto) + + if err != nil { + return err + } + + *o = DeviceLinkGroupDto(varDeviceLinkGroupDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "groupName") + delete(additionalProperties, "subnet") + delete(additionalProperties, "redundancyType") + delete(additionalProperties, "status") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "lastUpdatedBy") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "metroLinks") + delete(additionalProperties, "linkDevices") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceLinkGroupDto struct { + value *DeviceLinkGroupDto + isSet bool +} + +func (v NullableDeviceLinkGroupDto) Get() *DeviceLinkGroupDto { + return v.value +} + +func (v *NullableDeviceLinkGroupDto) Set(val *DeviceLinkGroupDto) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceLinkGroupDto) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceLinkGroupDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceLinkGroupDto(val *DeviceLinkGroupDto) *NullableDeviceLinkGroupDto { + return &NullableDeviceLinkGroupDto{value: val, isSet: true} +} + +func (v NullableDeviceLinkGroupDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceLinkGroupDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_link_group_response.go b/services/networkedgev1/model_device_link_group_response.go new file mode 100644 index 00000000..b1f03c8b --- /dev/null +++ b/services/networkedgev1/model_device_link_group_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceLinkGroupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceLinkGroupResponse{} + +// DeviceLinkGroupResponse struct for DeviceLinkGroupResponse +type DeviceLinkGroupResponse struct { + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceLinkGroupResponse DeviceLinkGroupResponse + +// NewDeviceLinkGroupResponse instantiates a new DeviceLinkGroupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceLinkGroupResponse() *DeviceLinkGroupResponse { + this := DeviceLinkGroupResponse{} + return &this +} + +// NewDeviceLinkGroupResponseWithDefaults instantiates a new DeviceLinkGroupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceLinkGroupResponseWithDefaults() *DeviceLinkGroupResponse { + this := DeviceLinkGroupResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceLinkGroupResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkGroupResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceLinkGroupResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceLinkGroupResponse) SetUuid(v string) { + o.Uuid = &v +} + +func (o DeviceLinkGroupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceLinkGroupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceLinkGroupResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceLinkGroupResponse := _DeviceLinkGroupResponse{} + + err = json.Unmarshal(data, &varDeviceLinkGroupResponse) + + if err != nil { + return err + } + + *o = DeviceLinkGroupResponse(varDeviceLinkGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceLinkGroupResponse struct { + value *DeviceLinkGroupResponse + isSet bool +} + +func (v NullableDeviceLinkGroupResponse) Get() *DeviceLinkGroupResponse { + return v.value +} + +func (v *NullableDeviceLinkGroupResponse) Set(val *DeviceLinkGroupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceLinkGroupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceLinkGroupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceLinkGroupResponse(val *DeviceLinkGroupResponse) *NullableDeviceLinkGroupResponse { + return &NullableDeviceLinkGroupResponse{value: val, isSet: true} +} + +func (v NullableDeviceLinkGroupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceLinkGroupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_link_request.go b/services/networkedgev1/model_device_link_request.go new file mode 100644 index 00000000..01b752ff --- /dev/null +++ b/services/networkedgev1/model_device_link_request.go @@ -0,0 +1,312 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the DeviceLinkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceLinkRequest{} + +// DeviceLinkRequest struct for DeviceLinkRequest +type DeviceLinkRequest struct { + // Group name. + GroupName string `json:"groupName"` + // Subnet of the link group. + Subnet string `json:"subnet"` + // Whether the connection should be created through Fabric's primary or secondary port. + RedundancyType *string `json:"redundancyType,omitempty"` + // An array of devices to link. + LinkDevices []LinkDeviceInfo `json:"linkDevices,omitempty"` + // An array of links. + MetroLinks []LinkInfo `json:"metroLinks,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceLinkRequest DeviceLinkRequest + +// NewDeviceLinkRequest instantiates a new DeviceLinkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceLinkRequest(groupName string, subnet string) *DeviceLinkRequest { + this := DeviceLinkRequest{} + this.GroupName = groupName + this.Subnet = subnet + return &this +} + +// NewDeviceLinkRequestWithDefaults instantiates a new DeviceLinkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceLinkRequestWithDefaults() *DeviceLinkRequest { + this := DeviceLinkRequest{} + return &this +} + +// GetGroupName returns the GroupName field value +func (o *DeviceLinkRequest) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *DeviceLinkRequest) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *DeviceLinkRequest) SetGroupName(v string) { + o.GroupName = v +} + +// GetSubnet returns the Subnet field value +func (o *DeviceLinkRequest) GetSubnet() string { + if o == nil { + var ret string + return ret + } + + return o.Subnet +} + +// GetSubnetOk returns a tuple with the Subnet field value +// and a boolean to check if the value has been set. +func (o *DeviceLinkRequest) GetSubnetOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subnet, true +} + +// SetSubnet sets field value +func (o *DeviceLinkRequest) SetSubnet(v string) { + o.Subnet = v +} + +// GetRedundancyType returns the RedundancyType field value if set, zero value otherwise. +func (o *DeviceLinkRequest) GetRedundancyType() string { + if o == nil || IsNil(o.RedundancyType) { + var ret string + return ret + } + return *o.RedundancyType +} + +// GetRedundancyTypeOk returns a tuple with the RedundancyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkRequest) GetRedundancyTypeOk() (*string, bool) { + if o == nil || IsNil(o.RedundancyType) { + return nil, false + } + return o.RedundancyType, true +} + +// HasRedundancyType returns a boolean if a field has been set. +func (o *DeviceLinkRequest) HasRedundancyType() bool { + if o != nil && !IsNil(o.RedundancyType) { + return true + } + + return false +} + +// SetRedundancyType gets a reference to the given string and assigns it to the RedundancyType field. +func (o *DeviceLinkRequest) SetRedundancyType(v string) { + o.RedundancyType = &v +} + +// GetLinkDevices returns the LinkDevices field value if set, zero value otherwise. +func (o *DeviceLinkRequest) GetLinkDevices() []LinkDeviceInfo { + if o == nil || IsNil(o.LinkDevices) { + var ret []LinkDeviceInfo + return ret + } + return o.LinkDevices +} + +// GetLinkDevicesOk returns a tuple with the LinkDevices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkRequest) GetLinkDevicesOk() ([]LinkDeviceInfo, bool) { + if o == nil || IsNil(o.LinkDevices) { + return nil, false + } + return o.LinkDevices, true +} + +// HasLinkDevices returns a boolean if a field has been set. +func (o *DeviceLinkRequest) HasLinkDevices() bool { + if o != nil && !IsNil(o.LinkDevices) { + return true + } + + return false +} + +// SetLinkDevices gets a reference to the given []LinkDeviceInfo and assigns it to the LinkDevices field. +func (o *DeviceLinkRequest) SetLinkDevices(v []LinkDeviceInfo) { + o.LinkDevices = v +} + +// GetMetroLinks returns the MetroLinks field value if set, zero value otherwise. +func (o *DeviceLinkRequest) GetMetroLinks() []LinkInfo { + if o == nil || IsNil(o.MetroLinks) { + var ret []LinkInfo + return ret + } + return o.MetroLinks +} + +// GetMetroLinksOk returns a tuple with the MetroLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceLinkRequest) GetMetroLinksOk() ([]LinkInfo, bool) { + if o == nil || IsNil(o.MetroLinks) { + return nil, false + } + return o.MetroLinks, true +} + +// HasMetroLinks returns a boolean if a field has been set. +func (o *DeviceLinkRequest) HasMetroLinks() bool { + if o != nil && !IsNil(o.MetroLinks) { + return true + } + + return false +} + +// SetMetroLinks gets a reference to the given []LinkInfo and assigns it to the MetroLinks field. +func (o *DeviceLinkRequest) SetMetroLinks(v []LinkInfo) { + o.MetroLinks = v +} + +func (o DeviceLinkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceLinkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["groupName"] = o.GroupName + toSerialize["subnet"] = o.Subnet + if !IsNil(o.RedundancyType) { + toSerialize["redundancyType"] = o.RedundancyType + } + if !IsNil(o.LinkDevices) { + toSerialize["linkDevices"] = o.LinkDevices + } + if !IsNil(o.MetroLinks) { + toSerialize["metroLinks"] = o.MetroLinks + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceLinkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "groupName", + "subnet", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeviceLinkRequest := _DeviceLinkRequest{} + + err = json.Unmarshal(data, &varDeviceLinkRequest) + + if err != nil { + return err + } + + *o = DeviceLinkRequest(varDeviceLinkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "groupName") + delete(additionalProperties, "subnet") + delete(additionalProperties, "redundancyType") + delete(additionalProperties, "linkDevices") + delete(additionalProperties, "metroLinks") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceLinkRequest struct { + value *DeviceLinkRequest + isSet bool +} + +func (v NullableDeviceLinkRequest) Get() *DeviceLinkRequest { + return v.value +} + +func (v *NullableDeviceLinkRequest) Set(val *DeviceLinkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceLinkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceLinkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceLinkRequest(val *DeviceLinkRequest) *NullableDeviceLinkRequest { + return &NullableDeviceLinkRequest{value: val, isSet: true} +} + +func (v NullableDeviceLinkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceLinkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_reboot_page_response.go b/services/networkedgev1/model_device_reboot_page_response.go new file mode 100644 index 00000000..f3388916 --- /dev/null +++ b/services/networkedgev1/model_device_reboot_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceRebootPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceRebootPageResponse{} + +// DeviceRebootPageResponse struct for DeviceRebootPageResponse +type DeviceRebootPageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []DeviceRebootResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceRebootPageResponse DeviceRebootPageResponse + +// NewDeviceRebootPageResponse instantiates a new DeviceRebootPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceRebootPageResponse() *DeviceRebootPageResponse { + this := DeviceRebootPageResponse{} + return &this +} + +// NewDeviceRebootPageResponseWithDefaults instantiates a new DeviceRebootPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceRebootPageResponseWithDefaults() *DeviceRebootPageResponse { + this := DeviceRebootPageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *DeviceRebootPageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootPageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *DeviceRebootPageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *DeviceRebootPageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeviceRebootPageResponse) GetData() []DeviceRebootResponse { + if o == nil || IsNil(o.Data) { + var ret []DeviceRebootResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootPageResponse) GetDataOk() ([]DeviceRebootResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeviceRebootPageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []DeviceRebootResponse and assigns it to the Data field. +func (o *DeviceRebootPageResponse) SetData(v []DeviceRebootResponse) { + o.Data = v +} + +func (o DeviceRebootPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceRebootPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceRebootPageResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceRebootPageResponse := _DeviceRebootPageResponse{} + + err = json.Unmarshal(data, &varDeviceRebootPageResponse) + + if err != nil { + return err + } + + *o = DeviceRebootPageResponse(varDeviceRebootPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceRebootPageResponse struct { + value *DeviceRebootPageResponse + isSet bool +} + +func (v NullableDeviceRebootPageResponse) Get() *DeviceRebootPageResponse { + return v.value +} + +func (v *NullableDeviceRebootPageResponse) Set(val *DeviceRebootPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceRebootPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceRebootPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceRebootPageResponse(val *DeviceRebootPageResponse) *NullableDeviceRebootPageResponse { + return &NullableDeviceRebootPageResponse{value: val, isSet: true} +} + +func (v NullableDeviceRebootPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceRebootPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_reboot_response.go b/services/networkedgev1/model_device_reboot_response.go new file mode 100644 index 00000000..64ff91d3 --- /dev/null +++ b/services/networkedgev1/model_device_reboot_response.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceRebootResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceRebootResponse{} + +// DeviceRebootResponse struct for DeviceRebootResponse +type DeviceRebootResponse struct { + // Unique Id of the device. + DeviceUUID *string `json:"deviceUUID,omitempty"` + // The status of the reboot. + Status *string `json:"status,omitempty"` + // Requested by + RequestedBy *string `json:"requestedBy,omitempty"` + // Requested date + RequestedDate *string `json:"requestedDate,omitempty"` + // Requested date + CompletiondDate *string `json:"completiondDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceRebootResponse DeviceRebootResponse + +// NewDeviceRebootResponse instantiates a new DeviceRebootResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceRebootResponse() *DeviceRebootResponse { + this := DeviceRebootResponse{} + return &this +} + +// NewDeviceRebootResponseWithDefaults instantiates a new DeviceRebootResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceRebootResponseWithDefaults() *DeviceRebootResponse { + this := DeviceRebootResponse{} + return &this +} + +// GetDeviceUUID returns the DeviceUUID field value if set, zero value otherwise. +func (o *DeviceRebootResponse) GetDeviceUUID() string { + if o == nil || IsNil(o.DeviceUUID) { + var ret string + return ret + } + return *o.DeviceUUID +} + +// GetDeviceUUIDOk returns a tuple with the DeviceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootResponse) GetDeviceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.DeviceUUID) { + return nil, false + } + return o.DeviceUUID, true +} + +// HasDeviceUUID returns a boolean if a field has been set. +func (o *DeviceRebootResponse) HasDeviceUUID() bool { + if o != nil && !IsNil(o.DeviceUUID) { + return true + } + + return false +} + +// SetDeviceUUID gets a reference to the given string and assigns it to the DeviceUUID field. +func (o *DeviceRebootResponse) SetDeviceUUID(v string) { + o.DeviceUUID = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceRebootResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceRebootResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceRebootResponse) SetStatus(v string) { + o.Status = &v +} + +// GetRequestedBy returns the RequestedBy field value if set, zero value otherwise. +func (o *DeviceRebootResponse) GetRequestedBy() string { + if o == nil || IsNil(o.RequestedBy) { + var ret string + return ret + } + return *o.RequestedBy +} + +// GetRequestedByOk returns a tuple with the RequestedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootResponse) GetRequestedByOk() (*string, bool) { + if o == nil || IsNil(o.RequestedBy) { + return nil, false + } + return o.RequestedBy, true +} + +// HasRequestedBy returns a boolean if a field has been set. +func (o *DeviceRebootResponse) HasRequestedBy() bool { + if o != nil && !IsNil(o.RequestedBy) { + return true + } + + return false +} + +// SetRequestedBy gets a reference to the given string and assigns it to the RequestedBy field. +func (o *DeviceRebootResponse) SetRequestedBy(v string) { + o.RequestedBy = &v +} + +// GetRequestedDate returns the RequestedDate field value if set, zero value otherwise. +func (o *DeviceRebootResponse) GetRequestedDate() string { + if o == nil || IsNil(o.RequestedDate) { + var ret string + return ret + } + return *o.RequestedDate +} + +// GetRequestedDateOk returns a tuple with the RequestedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootResponse) GetRequestedDateOk() (*string, bool) { + if o == nil || IsNil(o.RequestedDate) { + return nil, false + } + return o.RequestedDate, true +} + +// HasRequestedDate returns a boolean if a field has been set. +func (o *DeviceRebootResponse) HasRequestedDate() bool { + if o != nil && !IsNil(o.RequestedDate) { + return true + } + + return false +} + +// SetRequestedDate gets a reference to the given string and assigns it to the RequestedDate field. +func (o *DeviceRebootResponse) SetRequestedDate(v string) { + o.RequestedDate = &v +} + +// GetCompletiondDate returns the CompletiondDate field value if set, zero value otherwise. +func (o *DeviceRebootResponse) GetCompletiondDate() string { + if o == nil || IsNil(o.CompletiondDate) { + var ret string + return ret + } + return *o.CompletiondDate +} + +// GetCompletiondDateOk returns a tuple with the CompletiondDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRebootResponse) GetCompletiondDateOk() (*string, bool) { + if o == nil || IsNil(o.CompletiondDate) { + return nil, false + } + return o.CompletiondDate, true +} + +// HasCompletiondDate returns a boolean if a field has been set. +func (o *DeviceRebootResponse) HasCompletiondDate() bool { + if o != nil && !IsNil(o.CompletiondDate) { + return true + } + + return false +} + +// SetCompletiondDate gets a reference to the given string and assigns it to the CompletiondDate field. +func (o *DeviceRebootResponse) SetCompletiondDate(v string) { + o.CompletiondDate = &v +} + +func (o DeviceRebootResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceRebootResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceUUID) { + toSerialize["deviceUUID"] = o.DeviceUUID + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.RequestedBy) { + toSerialize["requestedBy"] = o.RequestedBy + } + if !IsNil(o.RequestedDate) { + toSerialize["requestedDate"] = o.RequestedDate + } + if !IsNil(o.CompletiondDate) { + toSerialize["completiondDate"] = o.CompletiondDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceRebootResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceRebootResponse := _DeviceRebootResponse{} + + err = json.Unmarshal(data, &varDeviceRebootResponse) + + if err != nil { + return err + } + + *o = DeviceRebootResponse(varDeviceRebootResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceUUID") + delete(additionalProperties, "status") + delete(additionalProperties, "requestedBy") + delete(additionalProperties, "requestedDate") + delete(additionalProperties, "completiondDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceRebootResponse struct { + value *DeviceRebootResponse + isSet bool +} + +func (v NullableDeviceRebootResponse) Get() *DeviceRebootResponse { + return v.value +} + +func (v *NullableDeviceRebootResponse) Set(val *DeviceRebootResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceRebootResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceRebootResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceRebootResponse(val *DeviceRebootResponse) *NullableDeviceRebootResponse { + return &NullableDeviceRebootResponse{value: val, isSet: true} +} + +func (v NullableDeviceRebootResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceRebootResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_rma_info.go b/services/networkedgev1/model_device_rma_info.go new file mode 100644 index 00000000..711092f4 --- /dev/null +++ b/services/networkedgev1/model_device_rma_info.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceRMAInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceRMAInfo{} + +// DeviceRMAInfo struct for DeviceRMAInfo +type DeviceRMAInfo struct { + // Array of previous RMA requests + Data []RmaDetailObject `json:"data,omitempty"` + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceRMAInfo DeviceRMAInfo + +// NewDeviceRMAInfo instantiates a new DeviceRMAInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceRMAInfo() *DeviceRMAInfo { + this := DeviceRMAInfo{} + return &this +} + +// NewDeviceRMAInfoWithDefaults instantiates a new DeviceRMAInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceRMAInfoWithDefaults() *DeviceRMAInfo { + this := DeviceRMAInfo{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeviceRMAInfo) GetData() []RmaDetailObject { + if o == nil || IsNil(o.Data) { + var ret []RmaDetailObject + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAInfo) GetDataOk() ([]RmaDetailObject, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeviceRMAInfo) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []RmaDetailObject and assigns it to the Data field. +func (o *DeviceRMAInfo) SetData(v []RmaDetailObject) { + o.Data = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *DeviceRMAInfo) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAInfo) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *DeviceRMAInfo) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *DeviceRMAInfo) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +func (o DeviceRMAInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceRMAInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceRMAInfo) UnmarshalJSON(data []byte) (err error) { + varDeviceRMAInfo := _DeviceRMAInfo{} + + err = json.Unmarshal(data, &varDeviceRMAInfo) + + if err != nil { + return err + } + + *o = DeviceRMAInfo(varDeviceRMAInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceRMAInfo struct { + value *DeviceRMAInfo + isSet bool +} + +func (v NullableDeviceRMAInfo) Get() *DeviceRMAInfo { + return v.value +} + +func (v *NullableDeviceRMAInfo) Set(val *DeviceRMAInfo) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceRMAInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceRMAInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceRMAInfo(val *DeviceRMAInfo) *NullableDeviceRMAInfo { + return &NullableDeviceRMAInfo{value: val, isSet: true} +} + +func (v NullableDeviceRMAInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceRMAInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_rma_post_request.go b/services/networkedgev1/model_device_rma_post_request.go new file mode 100644 index 00000000..d51ce26a --- /dev/null +++ b/services/networkedgev1/model_device_rma_post_request.go @@ -0,0 +1,356 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the DeviceRMAPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceRMAPostRequest{} + +// DeviceRMAPostRequest struct for DeviceRMAPostRequest +type DeviceRMAPostRequest struct { + // Any version you want. + Version string `json:"version"` + // For a C8KV device, this is the Id of the uploaded bootstrap file. Upload your Cisco bootstrap file by calling Upload File. In the response, you'll get a fileUuid that you can enter here as cloudInitFileId. This field may be required for some vendors. + CloudInitFileId *string `json:"cloudInitFileId,omitempty"` + // This is the Id of the uploaded license file. For a CSR1KV SDWAN device, upload your license file by calling Post License File. In the response, you'll get a fileId that you can enter here as licenseFileId. This field may be required for some vendors. + LicenseFileId *string `json:"licenseFileId,omitempty"` + // License token. For a cluster, you will need to provide license tokens for both node0 and node1. To get the exact payload for different vendors, check the Postman script on the API Reference page of online documentation. + Token *string `json:"token,omitempty"` + VendorConfig *RMAVendorConfig `json:"vendorConfig,omitempty"` + UserPublicKey *UserPublicKeyRequest `json:"userPublicKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceRMAPostRequest DeviceRMAPostRequest + +// NewDeviceRMAPostRequest instantiates a new DeviceRMAPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceRMAPostRequest(version string) *DeviceRMAPostRequest { + this := DeviceRMAPostRequest{} + this.Version = version + return &this +} + +// NewDeviceRMAPostRequestWithDefaults instantiates a new DeviceRMAPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceRMAPostRequestWithDefaults() *DeviceRMAPostRequest { + this := DeviceRMAPostRequest{} + return &this +} + +// GetVersion returns the Version field value +func (o *DeviceRMAPostRequest) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *DeviceRMAPostRequest) SetVersion(v string) { + o.Version = v +} + +// GetCloudInitFileId returns the CloudInitFileId field value if set, zero value otherwise. +func (o *DeviceRMAPostRequest) GetCloudInitFileId() string { + if o == nil || IsNil(o.CloudInitFileId) { + var ret string + return ret + } + return *o.CloudInitFileId +} + +// GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetCloudInitFileIdOk() (*string, bool) { + if o == nil || IsNil(o.CloudInitFileId) { + return nil, false + } + return o.CloudInitFileId, true +} + +// HasCloudInitFileId returns a boolean if a field has been set. +func (o *DeviceRMAPostRequest) HasCloudInitFileId() bool { + if o != nil && !IsNil(o.CloudInitFileId) { + return true + } + + return false +} + +// SetCloudInitFileId gets a reference to the given string and assigns it to the CloudInitFileId field. +func (o *DeviceRMAPostRequest) SetCloudInitFileId(v string) { + o.CloudInitFileId = &v +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *DeviceRMAPostRequest) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *DeviceRMAPostRequest) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *DeviceRMAPostRequest) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *DeviceRMAPostRequest) GetToken() string { + if o == nil || IsNil(o.Token) { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetTokenOk() (*string, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *DeviceRMAPostRequest) HasToken() bool { + if o != nil && !IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *DeviceRMAPostRequest) SetToken(v string) { + o.Token = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *DeviceRMAPostRequest) GetVendorConfig() RMAVendorConfig { + if o == nil || IsNil(o.VendorConfig) { + var ret RMAVendorConfig + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetVendorConfigOk() (*RMAVendorConfig, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *DeviceRMAPostRequest) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given RMAVendorConfig and assigns it to the VendorConfig field. +func (o *DeviceRMAPostRequest) SetVendorConfig(v RMAVendorConfig) { + o.VendorConfig = &v +} + +// GetUserPublicKey returns the UserPublicKey field value if set, zero value otherwise. +func (o *DeviceRMAPostRequest) GetUserPublicKey() UserPublicKeyRequest { + if o == nil || IsNil(o.UserPublicKey) { + var ret UserPublicKeyRequest + return ret + } + return *o.UserPublicKey +} + +// GetUserPublicKeyOk returns a tuple with the UserPublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRMAPostRequest) GetUserPublicKeyOk() (*UserPublicKeyRequest, bool) { + if o == nil || IsNil(o.UserPublicKey) { + return nil, false + } + return o.UserPublicKey, true +} + +// HasUserPublicKey returns a boolean if a field has been set. +func (o *DeviceRMAPostRequest) HasUserPublicKey() bool { + if o != nil && !IsNil(o.UserPublicKey) { + return true + } + + return false +} + +// SetUserPublicKey gets a reference to the given UserPublicKeyRequest and assigns it to the UserPublicKey field. +func (o *DeviceRMAPostRequest) SetUserPublicKey(v UserPublicKeyRequest) { + o.UserPublicKey = &v +} + +func (o DeviceRMAPostRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceRMAPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["version"] = o.Version + if !IsNil(o.CloudInitFileId) { + toSerialize["cloudInitFileId"] = o.CloudInitFileId + } + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.Token) { + toSerialize["token"] = o.Token + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + if !IsNil(o.UserPublicKey) { + toSerialize["userPublicKey"] = o.UserPublicKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceRMAPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "version", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeviceRMAPostRequest := _DeviceRMAPostRequest{} + + err = json.Unmarshal(data, &varDeviceRMAPostRequest) + + if err != nil { + return err + } + + *o = DeviceRMAPostRequest(varDeviceRMAPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "version") + delete(additionalProperties, "cloudInitFileId") + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "token") + delete(additionalProperties, "vendorConfig") + delete(additionalProperties, "userPublicKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceRMAPostRequest struct { + value *DeviceRMAPostRequest + isSet bool +} + +func (v NullableDeviceRMAPostRequest) Get() *DeviceRMAPostRequest { + return v.value +} + +func (v *NullableDeviceRMAPostRequest) Set(val *DeviceRMAPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceRMAPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceRMAPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceRMAPostRequest(val *DeviceRMAPostRequest) *NullableDeviceRMAPostRequest { + return &NullableDeviceRMAPostRequest{value: val, isSet: true} +} + +func (v NullableDeviceRMAPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceRMAPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_upgrade_details_response.go b/services/networkedgev1/model_device_upgrade_details_response.go new file mode 100644 index 00000000..5dec6ec4 --- /dev/null +++ b/services/networkedgev1/model_device_upgrade_details_response.go @@ -0,0 +1,345 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceUpgradeDetailsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceUpgradeDetailsResponse{} + +// DeviceUpgradeDetailsResponse struct for DeviceUpgradeDetailsResponse +type DeviceUpgradeDetailsResponse struct { + // Unique Id of the upgrade. + Uuid *string `json:"uuid,omitempty"` + // Unique Id of the device. + VirtualDeviceUuid *string `json:"virtualDeviceUuid,omitempty"` + // The status of the upgrade. REQUEST_ACCEPTED, IN_PROGRESS, SUCCESS, FAILED, CANCELLED + Status *string `json:"status,omitempty"` + // Requested date + RequestedDate *string `json:"requestedDate,omitempty"` + // Requested date + CompletiondDate *string `json:"completiondDate,omitempty"` + // Requested by. + RequestedBy *string `json:"requestedBy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceUpgradeDetailsResponse DeviceUpgradeDetailsResponse + +// NewDeviceUpgradeDetailsResponse instantiates a new DeviceUpgradeDetailsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceUpgradeDetailsResponse() *DeviceUpgradeDetailsResponse { + this := DeviceUpgradeDetailsResponse{} + return &this +} + +// NewDeviceUpgradeDetailsResponseWithDefaults instantiates a new DeviceUpgradeDetailsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceUpgradeDetailsResponseWithDefaults() *DeviceUpgradeDetailsResponse { + this := DeviceUpgradeDetailsResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DeviceUpgradeDetailsResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetVirtualDeviceUuid returns the VirtualDeviceUuid field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetVirtualDeviceUuid() string { + if o == nil || IsNil(o.VirtualDeviceUuid) { + var ret string + return ret + } + return *o.VirtualDeviceUuid +} + +// GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetVirtualDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.VirtualDeviceUuid) { + return nil, false + } + return o.VirtualDeviceUuid, true +} + +// HasVirtualDeviceUuid returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasVirtualDeviceUuid() bool { + if o != nil && !IsNil(o.VirtualDeviceUuid) { + return true + } + + return false +} + +// SetVirtualDeviceUuid gets a reference to the given string and assigns it to the VirtualDeviceUuid field. +func (o *DeviceUpgradeDetailsResponse) SetVirtualDeviceUuid(v string) { + o.VirtualDeviceUuid = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeviceUpgradeDetailsResponse) SetStatus(v string) { + o.Status = &v +} + +// GetRequestedDate returns the RequestedDate field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetRequestedDate() string { + if o == nil || IsNil(o.RequestedDate) { + var ret string + return ret + } + return *o.RequestedDate +} + +// GetRequestedDateOk returns a tuple with the RequestedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetRequestedDateOk() (*string, bool) { + if o == nil || IsNil(o.RequestedDate) { + return nil, false + } + return o.RequestedDate, true +} + +// HasRequestedDate returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasRequestedDate() bool { + if o != nil && !IsNil(o.RequestedDate) { + return true + } + + return false +} + +// SetRequestedDate gets a reference to the given string and assigns it to the RequestedDate field. +func (o *DeviceUpgradeDetailsResponse) SetRequestedDate(v string) { + o.RequestedDate = &v +} + +// GetCompletiondDate returns the CompletiondDate field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetCompletiondDate() string { + if o == nil || IsNil(o.CompletiondDate) { + var ret string + return ret + } + return *o.CompletiondDate +} + +// GetCompletiondDateOk returns a tuple with the CompletiondDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetCompletiondDateOk() (*string, bool) { + if o == nil || IsNil(o.CompletiondDate) { + return nil, false + } + return o.CompletiondDate, true +} + +// HasCompletiondDate returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasCompletiondDate() bool { + if o != nil && !IsNil(o.CompletiondDate) { + return true + } + + return false +} + +// SetCompletiondDate gets a reference to the given string and assigns it to the CompletiondDate field. +func (o *DeviceUpgradeDetailsResponse) SetCompletiondDate(v string) { + o.CompletiondDate = &v +} + +// GetRequestedBy returns the RequestedBy field value if set, zero value otherwise. +func (o *DeviceUpgradeDetailsResponse) GetRequestedBy() string { + if o == nil || IsNil(o.RequestedBy) { + var ret string + return ret + } + return *o.RequestedBy +} + +// GetRequestedByOk returns a tuple with the RequestedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradeDetailsResponse) GetRequestedByOk() (*string, bool) { + if o == nil || IsNil(o.RequestedBy) { + return nil, false + } + return o.RequestedBy, true +} + +// HasRequestedBy returns a boolean if a field has been set. +func (o *DeviceUpgradeDetailsResponse) HasRequestedBy() bool { + if o != nil && !IsNil(o.RequestedBy) { + return true + } + + return false +} + +// SetRequestedBy gets a reference to the given string and assigns it to the RequestedBy field. +func (o *DeviceUpgradeDetailsResponse) SetRequestedBy(v string) { + o.RequestedBy = &v +} + +func (o DeviceUpgradeDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceUpgradeDetailsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.VirtualDeviceUuid) { + toSerialize["virtualDeviceUuid"] = o.VirtualDeviceUuid + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.RequestedDate) { + toSerialize["requestedDate"] = o.RequestedDate + } + if !IsNil(o.CompletiondDate) { + toSerialize["completiondDate"] = o.CompletiondDate + } + if !IsNil(o.RequestedBy) { + toSerialize["requestedBy"] = o.RequestedBy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceUpgradeDetailsResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceUpgradeDetailsResponse := _DeviceUpgradeDetailsResponse{} + + err = json.Unmarshal(data, &varDeviceUpgradeDetailsResponse) + + if err != nil { + return err + } + + *o = DeviceUpgradeDetailsResponse(varDeviceUpgradeDetailsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "virtualDeviceUuid") + delete(additionalProperties, "status") + delete(additionalProperties, "requestedDate") + delete(additionalProperties, "completiondDate") + delete(additionalProperties, "requestedBy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceUpgradeDetailsResponse struct { + value *DeviceUpgradeDetailsResponse + isSet bool +} + +func (v NullableDeviceUpgradeDetailsResponse) Get() *DeviceUpgradeDetailsResponse { + return v.value +} + +func (v *NullableDeviceUpgradeDetailsResponse) Set(val *DeviceUpgradeDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceUpgradeDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceUpgradeDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceUpgradeDetailsResponse(val *DeviceUpgradeDetailsResponse) *NullableDeviceUpgradeDetailsResponse { + return &NullableDeviceUpgradeDetailsResponse{value: val, isSet: true} +} + +func (v NullableDeviceUpgradeDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceUpgradeDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_device_upgrade_page_response.go b/services/networkedgev1/model_device_upgrade_page_response.go new file mode 100644 index 00000000..9795d77b --- /dev/null +++ b/services/networkedgev1/model_device_upgrade_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DeviceUpgradePageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceUpgradePageResponse{} + +// DeviceUpgradePageResponse struct for DeviceUpgradePageResponse +type DeviceUpgradePageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []DeviceUpgradeDetailsResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceUpgradePageResponse DeviceUpgradePageResponse + +// NewDeviceUpgradePageResponse instantiates a new DeviceUpgradePageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceUpgradePageResponse() *DeviceUpgradePageResponse { + this := DeviceUpgradePageResponse{} + return &this +} + +// NewDeviceUpgradePageResponseWithDefaults instantiates a new DeviceUpgradePageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceUpgradePageResponseWithDefaults() *DeviceUpgradePageResponse { + this := DeviceUpgradePageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *DeviceUpgradePageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradePageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *DeviceUpgradePageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *DeviceUpgradePageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeviceUpgradePageResponse) GetData() []DeviceUpgradeDetailsResponse { + if o == nil || IsNil(o.Data) { + var ret []DeviceUpgradeDetailsResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceUpgradePageResponse) GetDataOk() ([]DeviceUpgradeDetailsResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeviceUpgradePageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []DeviceUpgradeDetailsResponse and assigns it to the Data field. +func (o *DeviceUpgradePageResponse) SetData(v []DeviceUpgradeDetailsResponse) { + o.Data = v +} + +func (o DeviceUpgradePageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceUpgradePageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceUpgradePageResponse) UnmarshalJSON(data []byte) (err error) { + varDeviceUpgradePageResponse := _DeviceUpgradePageResponse{} + + err = json.Unmarshal(data, &varDeviceUpgradePageResponse) + + if err != nil { + return err + } + + *o = DeviceUpgradePageResponse(varDeviceUpgradePageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceUpgradePageResponse struct { + value *DeviceUpgradePageResponse + isSet bool +} + +func (v NullableDeviceUpgradePageResponse) Get() *DeviceUpgradePageResponse { + return v.value +} + +func (v *NullableDeviceUpgradePageResponse) Set(val *DeviceUpgradePageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceUpgradePageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceUpgradePageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceUpgradePageResponse(val *DeviceUpgradePageResponse) *NullableDeviceUpgradePageResponse { + return &NullableDeviceUpgradePageResponse{value: val, isSet: true} +} + +func (v NullableDeviceUpgradePageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceUpgradePageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_dns_lookup_request.go b/services/networkedgev1/model_dns_lookup_request.go new file mode 100644 index 00000000..c3176ae3 --- /dev/null +++ b/services/networkedgev1/model_dns_lookup_request.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DNSLookupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DNSLookupRequest{} + +// DNSLookupRequest struct for DNSLookupRequest +type DNSLookupRequest struct { + // Domain names + Fqdns []string `json:"fqdns,omitempty"` + // The unique Id of a virtual device + Uuid *string `json:"uuid,omitempty"` + // Metro code + MetroCode *string `json:"metroCode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DNSLookupRequest DNSLookupRequest + +// NewDNSLookupRequest instantiates a new DNSLookupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDNSLookupRequest() *DNSLookupRequest { + this := DNSLookupRequest{} + return &this +} + +// NewDNSLookupRequestWithDefaults instantiates a new DNSLookupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDNSLookupRequestWithDefaults() *DNSLookupRequest { + this := DNSLookupRequest{} + return &this +} + +// GetFqdns returns the Fqdns field value if set, zero value otherwise. +func (o *DNSLookupRequest) GetFqdns() []string { + if o == nil || IsNil(o.Fqdns) { + var ret []string + return ret + } + return o.Fqdns +} + +// GetFqdnsOk returns a tuple with the Fqdns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupRequest) GetFqdnsOk() ([]string, bool) { + if o == nil || IsNil(o.Fqdns) { + return nil, false + } + return o.Fqdns, true +} + +// HasFqdns returns a boolean if a field has been set. +func (o *DNSLookupRequest) HasFqdns() bool { + if o != nil && !IsNil(o.Fqdns) { + return true + } + + return false +} + +// SetFqdns gets a reference to the given []string and assigns it to the Fqdns field. +func (o *DNSLookupRequest) SetFqdns(v []string) { + o.Fqdns = v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *DNSLookupRequest) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupRequest) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *DNSLookupRequest) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *DNSLookupRequest) SetUuid(v string) { + o.Uuid = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *DNSLookupRequest) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupRequest) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *DNSLookupRequest) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *DNSLookupRequest) SetMetroCode(v string) { + o.MetroCode = &v +} + +func (o DNSLookupRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DNSLookupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Fqdns) { + toSerialize["fqdns"] = o.Fqdns + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DNSLookupRequest) UnmarshalJSON(data []byte) (err error) { + varDNSLookupRequest := _DNSLookupRequest{} + + err = json.Unmarshal(data, &varDNSLookupRequest) + + if err != nil { + return err + } + + *o = DNSLookupRequest(varDNSLookupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fqdns") + delete(additionalProperties, "uuid") + delete(additionalProperties, "metroCode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDNSLookupRequest struct { + value *DNSLookupRequest + isSet bool +} + +func (v NullableDNSLookupRequest) Get() *DNSLookupRequest { + return v.value +} + +func (v *NullableDNSLookupRequest) Set(val *DNSLookupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDNSLookupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDNSLookupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDNSLookupRequest(val *DNSLookupRequest) *NullableDNSLookupRequest { + return &NullableDNSLookupRequest{value: val, isSet: true} +} + +func (v NullableDNSLookupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDNSLookupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_dns_lookup_response.go b/services/networkedgev1/model_dns_lookup_response.go new file mode 100644 index 00000000..dc58de6b --- /dev/null +++ b/services/networkedgev1/model_dns_lookup_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DNSLookupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DNSLookupResponse{} + +// DNSLookupResponse struct for DNSLookupResponse +type DNSLookupResponse struct { + AdditionalProp *DNSLookupResponseDetails `json:"additionalProp,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DNSLookupResponse DNSLookupResponse + +// NewDNSLookupResponse instantiates a new DNSLookupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDNSLookupResponse() *DNSLookupResponse { + this := DNSLookupResponse{} + return &this +} + +// NewDNSLookupResponseWithDefaults instantiates a new DNSLookupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDNSLookupResponseWithDefaults() *DNSLookupResponse { + this := DNSLookupResponse{} + return &this +} + +// GetAdditionalProp returns the AdditionalProp field value if set, zero value otherwise. +func (o *DNSLookupResponse) GetAdditionalProp() DNSLookupResponseDetails { + if o == nil || IsNil(o.AdditionalProp) { + var ret DNSLookupResponseDetails + return ret + } + return *o.AdditionalProp +} + +// GetAdditionalPropOk returns a tuple with the AdditionalProp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupResponse) GetAdditionalPropOk() (*DNSLookupResponseDetails, bool) { + if o == nil || IsNil(o.AdditionalProp) { + return nil, false + } + return o.AdditionalProp, true +} + +// HasAdditionalProp returns a boolean if a field has been set. +func (o *DNSLookupResponse) HasAdditionalProp() bool { + if o != nil && !IsNil(o.AdditionalProp) { + return true + } + + return false +} + +// SetAdditionalProp gets a reference to the given DNSLookupResponseDetails and assigns it to the AdditionalProp field. +func (o *DNSLookupResponse) SetAdditionalProp(v DNSLookupResponseDetails) { + o.AdditionalProp = &v +} + +func (o DNSLookupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DNSLookupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AdditionalProp) { + toSerialize["additionalProp"] = o.AdditionalProp + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DNSLookupResponse) UnmarshalJSON(data []byte) (err error) { + varDNSLookupResponse := _DNSLookupResponse{} + + err = json.Unmarshal(data, &varDNSLookupResponse) + + if err != nil { + return err + } + + *o = DNSLookupResponse(varDNSLookupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "additionalProp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDNSLookupResponse struct { + value *DNSLookupResponse + isSet bool +} + +func (v NullableDNSLookupResponse) Get() *DNSLookupResponse { + return v.value +} + +func (v *NullableDNSLookupResponse) Set(val *DNSLookupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDNSLookupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDNSLookupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDNSLookupResponse(val *DNSLookupResponse) *NullableDNSLookupResponse { + return &NullableDNSLookupResponse{value: val, isSet: true} +} + +func (v NullableDNSLookupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDNSLookupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_dns_lookup_response_details.go b/services/networkedgev1/model_dns_lookup_response_details.go new file mode 100644 index 00000000..b9c62d4f --- /dev/null +++ b/services/networkedgev1/model_dns_lookup_response_details.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DNSLookupResponseDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DNSLookupResponseDetails{} + +// DNSLookupResponseDetails struct for DNSLookupResponseDetails +type DNSLookupResponseDetails struct { + // True or false + Cdn *bool `json:"cdn,omitempty"` + // Domain names + Ips []string `json:"ips,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DNSLookupResponseDetails DNSLookupResponseDetails + +// NewDNSLookupResponseDetails instantiates a new DNSLookupResponseDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDNSLookupResponseDetails() *DNSLookupResponseDetails { + this := DNSLookupResponseDetails{} + return &this +} + +// NewDNSLookupResponseDetailsWithDefaults instantiates a new DNSLookupResponseDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDNSLookupResponseDetailsWithDefaults() *DNSLookupResponseDetails { + this := DNSLookupResponseDetails{} + return &this +} + +// GetCdn returns the Cdn field value if set, zero value otherwise. +func (o *DNSLookupResponseDetails) GetCdn() bool { + if o == nil || IsNil(o.Cdn) { + var ret bool + return ret + } + return *o.Cdn +} + +// GetCdnOk returns a tuple with the Cdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupResponseDetails) GetCdnOk() (*bool, bool) { + if o == nil || IsNil(o.Cdn) { + return nil, false + } + return o.Cdn, true +} + +// HasCdn returns a boolean if a field has been set. +func (o *DNSLookupResponseDetails) HasCdn() bool { + if o != nil && !IsNil(o.Cdn) { + return true + } + + return false +} + +// SetCdn gets a reference to the given bool and assigns it to the Cdn field. +func (o *DNSLookupResponseDetails) SetCdn(v bool) { + o.Cdn = &v +} + +// GetIps returns the Ips field value if set, zero value otherwise. +func (o *DNSLookupResponseDetails) GetIps() []string { + if o == nil || IsNil(o.Ips) { + var ret []string + return ret + } + return o.Ips +} + +// GetIpsOk returns a tuple with the Ips field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DNSLookupResponseDetails) GetIpsOk() ([]string, bool) { + if o == nil || IsNil(o.Ips) { + return nil, false + } + return o.Ips, true +} + +// HasIps returns a boolean if a field has been set. +func (o *DNSLookupResponseDetails) HasIps() bool { + if o != nil && !IsNil(o.Ips) { + return true + } + + return false +} + +// SetIps gets a reference to the given []string and assigns it to the Ips field. +func (o *DNSLookupResponseDetails) SetIps(v []string) { + o.Ips = v +} + +func (o DNSLookupResponseDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DNSLookupResponseDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cdn) { + toSerialize["cdn"] = o.Cdn + } + if !IsNil(o.Ips) { + toSerialize["ips"] = o.Ips + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DNSLookupResponseDetails) UnmarshalJSON(data []byte) (err error) { + varDNSLookupResponseDetails := _DNSLookupResponseDetails{} + + err = json.Unmarshal(data, &varDNSLookupResponseDetails) + + if err != nil { + return err + } + + *o = DNSLookupResponseDetails(varDNSLookupResponseDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cdn") + delete(additionalProperties, "ips") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDNSLookupResponseDetails struct { + value *DNSLookupResponseDetails + isSet bool +} + +func (v NullableDNSLookupResponseDetails) Get() *DNSLookupResponseDetails { + return v.value +} + +func (v *NullableDNSLookupResponseDetails) Set(val *DNSLookupResponseDetails) { + v.value = val + v.isSet = true +} + +func (v NullableDNSLookupResponseDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableDNSLookupResponseDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDNSLookupResponseDetails(val *DNSLookupResponseDetails) *NullableDNSLookupResponseDetails { + return &NullableDNSLookupResponseDetails{value: val, isSet: true} +} + +func (v NullableDNSLookupResponseDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDNSLookupResponseDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_downtime_notification.go b/services/networkedgev1/model_downtime_notification.go new file mode 100644 index 00000000..6cf6e0e9 --- /dev/null +++ b/services/networkedgev1/model_downtime_notification.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the DowntimeNotification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DowntimeNotification{} + +// DowntimeNotification struct for DowntimeNotification +type DowntimeNotification struct { + // Type of notification, whether planned or unplanned. + NotificationType *string `json:"notificationType,omitempty"` + // Start of the downtime. + StartTime *string `json:"startTime,omitempty"` + // End of the downtime. + EndTime *string `json:"endTime,omitempty"` + // An array of services impacted by the downtime. + ImpactedServices []ImpactedServices `json:"impactedServices,omitempty"` + // Any additional messages. + AdditionalMessage *string `json:"additionalMessage,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DowntimeNotification DowntimeNotification + +// NewDowntimeNotification instantiates a new DowntimeNotification object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDowntimeNotification() *DowntimeNotification { + this := DowntimeNotification{} + return &this +} + +// NewDowntimeNotificationWithDefaults instantiates a new DowntimeNotification object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDowntimeNotificationWithDefaults() *DowntimeNotification { + this := DowntimeNotification{} + return &this +} + +// GetNotificationType returns the NotificationType field value if set, zero value otherwise. +func (o *DowntimeNotification) GetNotificationType() string { + if o == nil || IsNil(o.NotificationType) { + var ret string + return ret + } + return *o.NotificationType +} + +// GetNotificationTypeOk returns a tuple with the NotificationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DowntimeNotification) GetNotificationTypeOk() (*string, bool) { + if o == nil || IsNil(o.NotificationType) { + return nil, false + } + return o.NotificationType, true +} + +// HasNotificationType returns a boolean if a field has been set. +func (o *DowntimeNotification) HasNotificationType() bool { + if o != nil && !IsNil(o.NotificationType) { + return true + } + + return false +} + +// SetNotificationType gets a reference to the given string and assigns it to the NotificationType field. +func (o *DowntimeNotification) SetNotificationType(v string) { + o.NotificationType = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *DowntimeNotification) GetStartTime() string { + if o == nil || IsNil(o.StartTime) { + var ret string + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DowntimeNotification) GetStartTimeOk() (*string, bool) { + if o == nil || IsNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *DowntimeNotification) HasStartTime() bool { + if o != nil && !IsNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given string and assigns it to the StartTime field. +func (o *DowntimeNotification) SetStartTime(v string) { + o.StartTime = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *DowntimeNotification) GetEndTime() string { + if o == nil || IsNil(o.EndTime) { + var ret string + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DowntimeNotification) GetEndTimeOk() (*string, bool) { + if o == nil || IsNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *DowntimeNotification) HasEndTime() bool { + if o != nil && !IsNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given string and assigns it to the EndTime field. +func (o *DowntimeNotification) SetEndTime(v string) { + o.EndTime = &v +} + +// GetImpactedServices returns the ImpactedServices field value if set, zero value otherwise. +func (o *DowntimeNotification) GetImpactedServices() []ImpactedServices { + if o == nil || IsNil(o.ImpactedServices) { + var ret []ImpactedServices + return ret + } + return o.ImpactedServices +} + +// GetImpactedServicesOk returns a tuple with the ImpactedServices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DowntimeNotification) GetImpactedServicesOk() ([]ImpactedServices, bool) { + if o == nil || IsNil(o.ImpactedServices) { + return nil, false + } + return o.ImpactedServices, true +} + +// HasImpactedServices returns a boolean if a field has been set. +func (o *DowntimeNotification) HasImpactedServices() bool { + if o != nil && !IsNil(o.ImpactedServices) { + return true + } + + return false +} + +// SetImpactedServices gets a reference to the given []ImpactedServices and assigns it to the ImpactedServices field. +func (o *DowntimeNotification) SetImpactedServices(v []ImpactedServices) { + o.ImpactedServices = v +} + +// GetAdditionalMessage returns the AdditionalMessage field value if set, zero value otherwise. +func (o *DowntimeNotification) GetAdditionalMessage() string { + if o == nil || IsNil(o.AdditionalMessage) { + var ret string + return ret + } + return *o.AdditionalMessage +} + +// GetAdditionalMessageOk returns a tuple with the AdditionalMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DowntimeNotification) GetAdditionalMessageOk() (*string, bool) { + if o == nil || IsNil(o.AdditionalMessage) { + return nil, false + } + return o.AdditionalMessage, true +} + +// HasAdditionalMessage returns a boolean if a field has been set. +func (o *DowntimeNotification) HasAdditionalMessage() bool { + if o != nil && !IsNil(o.AdditionalMessage) { + return true + } + + return false +} + +// SetAdditionalMessage gets a reference to the given string and assigns it to the AdditionalMessage field. +func (o *DowntimeNotification) SetAdditionalMessage(v string) { + o.AdditionalMessage = &v +} + +func (o DowntimeNotification) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DowntimeNotification) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.NotificationType) { + toSerialize["notificationType"] = o.NotificationType + } + if !IsNil(o.StartTime) { + toSerialize["startTime"] = o.StartTime + } + if !IsNil(o.EndTime) { + toSerialize["endTime"] = o.EndTime + } + if !IsNil(o.ImpactedServices) { + toSerialize["impactedServices"] = o.ImpactedServices + } + if !IsNil(o.AdditionalMessage) { + toSerialize["additionalMessage"] = o.AdditionalMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DowntimeNotification) UnmarshalJSON(data []byte) (err error) { + varDowntimeNotification := _DowntimeNotification{} + + err = json.Unmarshal(data, &varDowntimeNotification) + + if err != nil { + return err + } + + *o = DowntimeNotification(varDowntimeNotification) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "notificationType") + delete(additionalProperties, "startTime") + delete(additionalProperties, "endTime") + delete(additionalProperties, "impactedServices") + delete(additionalProperties, "additionalMessage") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDowntimeNotification struct { + value *DowntimeNotification + isSet bool +} + +func (v NullableDowntimeNotification) Get() *DowntimeNotification { + return v.value +} + +func (v *NullableDowntimeNotification) Set(val *DowntimeNotification) { + v.value = val + v.isSet = true +} + +func (v NullableDowntimeNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableDowntimeNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDowntimeNotification(val *DowntimeNotification) *NullableDowntimeNotification { + return &NullableDowntimeNotification{value: val, isSet: true} +} + +func (v NullableDowntimeNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDowntimeNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_equinix_configured_config.go b/services/networkedgev1/model_equinix_configured_config.go new file mode 100644 index 00000000..1ba2326c --- /dev/null +++ b/services/networkedgev1/model_equinix_configured_config.go @@ -0,0 +1,303 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the EquinixConfiguredConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EquinixConfiguredConfig{} + +// EquinixConfiguredConfig struct for EquinixConfiguredConfig +type EquinixConfiguredConfig struct { + // Whether the device is EQUINIX-CONFIGURED or SELF-MANAGED. + Type *string `json:"type,omitempty"` + LicenseOptions *EquinixConfiguredConfigLicenseOptions `json:"licenseOptions,omitempty"` + SupportedServices []SupportedServicesConfig `json:"supportedServices,omitempty"` + AdditionalFields []AdditionalFieldsConfig `json:"additionalFields,omitempty"` + ClusteringDetails *ClusteringDetails `json:"clusteringDetails,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EquinixConfiguredConfig EquinixConfiguredConfig + +// NewEquinixConfiguredConfig instantiates a new EquinixConfiguredConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEquinixConfiguredConfig() *EquinixConfiguredConfig { + this := EquinixConfiguredConfig{} + return &this +} + +// NewEquinixConfiguredConfigWithDefaults instantiates a new EquinixConfiguredConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEquinixConfiguredConfigWithDefaults() *EquinixConfiguredConfig { + this := EquinixConfiguredConfig{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *EquinixConfiguredConfig) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfig) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *EquinixConfiguredConfig) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *EquinixConfiguredConfig) SetType(v string) { + o.Type = &v +} + +// GetLicenseOptions returns the LicenseOptions field value if set, zero value otherwise. +func (o *EquinixConfiguredConfig) GetLicenseOptions() EquinixConfiguredConfigLicenseOptions { + if o == nil || IsNil(o.LicenseOptions) { + var ret EquinixConfiguredConfigLicenseOptions + return ret + } + return *o.LicenseOptions +} + +// GetLicenseOptionsOk returns a tuple with the LicenseOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfig) GetLicenseOptionsOk() (*EquinixConfiguredConfigLicenseOptions, bool) { + if o == nil || IsNil(o.LicenseOptions) { + return nil, false + } + return o.LicenseOptions, true +} + +// HasLicenseOptions returns a boolean if a field has been set. +func (o *EquinixConfiguredConfig) HasLicenseOptions() bool { + if o != nil && !IsNil(o.LicenseOptions) { + return true + } + + return false +} + +// SetLicenseOptions gets a reference to the given EquinixConfiguredConfigLicenseOptions and assigns it to the LicenseOptions field. +func (o *EquinixConfiguredConfig) SetLicenseOptions(v EquinixConfiguredConfigLicenseOptions) { + o.LicenseOptions = &v +} + +// GetSupportedServices returns the SupportedServices field value if set, zero value otherwise. +func (o *EquinixConfiguredConfig) GetSupportedServices() []SupportedServicesConfig { + if o == nil || IsNil(o.SupportedServices) { + var ret []SupportedServicesConfig + return ret + } + return o.SupportedServices +} + +// GetSupportedServicesOk returns a tuple with the SupportedServices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfig) GetSupportedServicesOk() ([]SupportedServicesConfig, bool) { + if o == nil || IsNil(o.SupportedServices) { + return nil, false + } + return o.SupportedServices, true +} + +// HasSupportedServices returns a boolean if a field has been set. +func (o *EquinixConfiguredConfig) HasSupportedServices() bool { + if o != nil && !IsNil(o.SupportedServices) { + return true + } + + return false +} + +// SetSupportedServices gets a reference to the given []SupportedServicesConfig and assigns it to the SupportedServices field. +func (o *EquinixConfiguredConfig) SetSupportedServices(v []SupportedServicesConfig) { + o.SupportedServices = v +} + +// GetAdditionalFields returns the AdditionalFields field value if set, zero value otherwise. +func (o *EquinixConfiguredConfig) GetAdditionalFields() []AdditionalFieldsConfig { + if o == nil || IsNil(o.AdditionalFields) { + var ret []AdditionalFieldsConfig + return ret + } + return o.AdditionalFields +} + +// GetAdditionalFieldsOk returns a tuple with the AdditionalFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfig) GetAdditionalFieldsOk() ([]AdditionalFieldsConfig, bool) { + if o == nil || IsNil(o.AdditionalFields) { + return nil, false + } + return o.AdditionalFields, true +} + +// HasAdditionalFields returns a boolean if a field has been set. +func (o *EquinixConfiguredConfig) HasAdditionalFields() bool { + if o != nil && !IsNil(o.AdditionalFields) { + return true + } + + return false +} + +// SetAdditionalFields gets a reference to the given []AdditionalFieldsConfig and assigns it to the AdditionalFields field. +func (o *EquinixConfiguredConfig) SetAdditionalFields(v []AdditionalFieldsConfig) { + o.AdditionalFields = v +} + +// GetClusteringDetails returns the ClusteringDetails field value if set, zero value otherwise. +func (o *EquinixConfiguredConfig) GetClusteringDetails() ClusteringDetails { + if o == nil || IsNil(o.ClusteringDetails) { + var ret ClusteringDetails + return ret + } + return *o.ClusteringDetails +} + +// GetClusteringDetailsOk returns a tuple with the ClusteringDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfig) GetClusteringDetailsOk() (*ClusteringDetails, bool) { + if o == nil || IsNil(o.ClusteringDetails) { + return nil, false + } + return o.ClusteringDetails, true +} + +// HasClusteringDetails returns a boolean if a field has been set. +func (o *EquinixConfiguredConfig) HasClusteringDetails() bool { + if o != nil && !IsNil(o.ClusteringDetails) { + return true + } + + return false +} + +// SetClusteringDetails gets a reference to the given ClusteringDetails and assigns it to the ClusteringDetails field. +func (o *EquinixConfiguredConfig) SetClusteringDetails(v ClusteringDetails) { + o.ClusteringDetails = &v +} + +func (o EquinixConfiguredConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EquinixConfiguredConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.LicenseOptions) { + toSerialize["licenseOptions"] = o.LicenseOptions + } + if !IsNil(o.SupportedServices) { + toSerialize["supportedServices"] = o.SupportedServices + } + if !IsNil(o.AdditionalFields) { + toSerialize["additionalFields"] = o.AdditionalFields + } + if !IsNil(o.ClusteringDetails) { + toSerialize["clusteringDetails"] = o.ClusteringDetails + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EquinixConfiguredConfig) UnmarshalJSON(data []byte) (err error) { + varEquinixConfiguredConfig := _EquinixConfiguredConfig{} + + err = json.Unmarshal(data, &varEquinixConfiguredConfig) + + if err != nil { + return err + } + + *o = EquinixConfiguredConfig(varEquinixConfiguredConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "licenseOptions") + delete(additionalProperties, "supportedServices") + delete(additionalProperties, "additionalFields") + delete(additionalProperties, "clusteringDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEquinixConfiguredConfig struct { + value *EquinixConfiguredConfig + isSet bool +} + +func (v NullableEquinixConfiguredConfig) Get() *EquinixConfiguredConfig { + return v.value +} + +func (v *NullableEquinixConfiguredConfig) Set(val *EquinixConfiguredConfig) { + v.value = val + v.isSet = true +} + +func (v NullableEquinixConfiguredConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableEquinixConfiguredConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEquinixConfiguredConfig(val *EquinixConfiguredConfig) *NullableEquinixConfiguredConfig { + return &NullableEquinixConfiguredConfig{value: val, isSet: true} +} + +func (v NullableEquinixConfiguredConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEquinixConfiguredConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_equinix_configured_config_license_options.go b/services/networkedgev1/model_equinix_configured_config_license_options.go new file mode 100644 index 00000000..d0fae0c8 --- /dev/null +++ b/services/networkedgev1/model_equinix_configured_config_license_options.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the EquinixConfiguredConfigLicenseOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EquinixConfiguredConfigLicenseOptions{} + +// EquinixConfiguredConfigLicenseOptions struct for EquinixConfiguredConfigLicenseOptions +type EquinixConfiguredConfigLicenseOptions struct { + SUB *LicenseOptionsConfig `json:"SUB,omitempty"` + BYOL *LicenseOptionsConfig `json:"BYOL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EquinixConfiguredConfigLicenseOptions EquinixConfiguredConfigLicenseOptions + +// NewEquinixConfiguredConfigLicenseOptions instantiates a new EquinixConfiguredConfigLicenseOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEquinixConfiguredConfigLicenseOptions() *EquinixConfiguredConfigLicenseOptions { + this := EquinixConfiguredConfigLicenseOptions{} + return &this +} + +// NewEquinixConfiguredConfigLicenseOptionsWithDefaults instantiates a new EquinixConfiguredConfigLicenseOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEquinixConfiguredConfigLicenseOptionsWithDefaults() *EquinixConfiguredConfigLicenseOptions { + this := EquinixConfiguredConfigLicenseOptions{} + return &this +} + +// GetSUB returns the SUB field value if set, zero value otherwise. +func (o *EquinixConfiguredConfigLicenseOptions) GetSUB() LicenseOptionsConfig { + if o == nil || IsNil(o.SUB) { + var ret LicenseOptionsConfig + return ret + } + return *o.SUB +} + +// GetSUBOk returns a tuple with the SUB field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfigLicenseOptions) GetSUBOk() (*LicenseOptionsConfig, bool) { + if o == nil || IsNil(o.SUB) { + return nil, false + } + return o.SUB, true +} + +// HasSUB returns a boolean if a field has been set. +func (o *EquinixConfiguredConfigLicenseOptions) HasSUB() bool { + if o != nil && !IsNil(o.SUB) { + return true + } + + return false +} + +// SetSUB gets a reference to the given LicenseOptionsConfig and assigns it to the SUB field. +func (o *EquinixConfiguredConfigLicenseOptions) SetSUB(v LicenseOptionsConfig) { + o.SUB = &v +} + +// GetBYOL returns the BYOL field value if set, zero value otherwise. +func (o *EquinixConfiguredConfigLicenseOptions) GetBYOL() LicenseOptionsConfig { + if o == nil || IsNil(o.BYOL) { + var ret LicenseOptionsConfig + return ret + } + return *o.BYOL +} + +// GetBYOLOk returns a tuple with the BYOL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EquinixConfiguredConfigLicenseOptions) GetBYOLOk() (*LicenseOptionsConfig, bool) { + if o == nil || IsNil(o.BYOL) { + return nil, false + } + return o.BYOL, true +} + +// HasBYOL returns a boolean if a field has been set. +func (o *EquinixConfiguredConfigLicenseOptions) HasBYOL() bool { + if o != nil && !IsNil(o.BYOL) { + return true + } + + return false +} + +// SetBYOL gets a reference to the given LicenseOptionsConfig and assigns it to the BYOL field. +func (o *EquinixConfiguredConfigLicenseOptions) SetBYOL(v LicenseOptionsConfig) { + o.BYOL = &v +} + +func (o EquinixConfiguredConfigLicenseOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EquinixConfiguredConfigLicenseOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SUB) { + toSerialize["SUB"] = o.SUB + } + if !IsNil(o.BYOL) { + toSerialize["BYOL"] = o.BYOL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EquinixConfiguredConfigLicenseOptions) UnmarshalJSON(data []byte) (err error) { + varEquinixConfiguredConfigLicenseOptions := _EquinixConfiguredConfigLicenseOptions{} + + err = json.Unmarshal(data, &varEquinixConfiguredConfigLicenseOptions) + + if err != nil { + return err + } + + *o = EquinixConfiguredConfigLicenseOptions(varEquinixConfiguredConfigLicenseOptions) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "SUB") + delete(additionalProperties, "BYOL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEquinixConfiguredConfigLicenseOptions struct { + value *EquinixConfiguredConfigLicenseOptions + isSet bool +} + +func (v NullableEquinixConfiguredConfigLicenseOptions) Get() *EquinixConfiguredConfigLicenseOptions { + return v.value +} + +func (v *NullableEquinixConfiguredConfigLicenseOptions) Set(val *EquinixConfiguredConfigLicenseOptions) { + v.value = val + v.isSet = true +} + +func (v NullableEquinixConfiguredConfigLicenseOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableEquinixConfiguredConfigLicenseOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEquinixConfiguredConfigLicenseOptions(val *EquinixConfiguredConfigLicenseOptions) *NullableEquinixConfiguredConfigLicenseOptions { + return &NullableEquinixConfiguredConfigLicenseOptions{value: val, isSet: true} +} + +func (v NullableEquinixConfiguredConfigLicenseOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEquinixConfiguredConfigLicenseOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_error_message_response.go b/services/networkedgev1/model_error_message_response.go new file mode 100644 index 00000000..87d1d75c --- /dev/null +++ b/services/networkedgev1/model_error_message_response.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ErrorMessageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorMessageResponse{} + +// ErrorMessageResponse struct for ErrorMessageResponse +type ErrorMessageResponse struct { + ErrorCode *string `json:"errorCode,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + MoreInfo *string `json:"moreInfo,omitempty"` + Property *string `json:"property,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ErrorMessageResponse ErrorMessageResponse + +// NewErrorMessageResponse instantiates a new ErrorMessageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorMessageResponse() *ErrorMessageResponse { + this := ErrorMessageResponse{} + return &this +} + +// NewErrorMessageResponseWithDefaults instantiates a new ErrorMessageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorMessageResponseWithDefaults() *ErrorMessageResponse { + this := ErrorMessageResponse{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ErrorMessageResponse) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *ErrorMessageResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetMoreInfo returns the MoreInfo field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetMoreInfo() string { + if o == nil || IsNil(o.MoreInfo) { + var ret string + return ret + } + return *o.MoreInfo +} + +// GetMoreInfoOk returns a tuple with the MoreInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetMoreInfoOk() (*string, bool) { + if o == nil || IsNil(o.MoreInfo) { + return nil, false + } + return o.MoreInfo, true +} + +// HasMoreInfo returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasMoreInfo() bool { + if o != nil && !IsNil(o.MoreInfo) { + return true + } + + return false +} + +// SetMoreInfo gets a reference to the given string and assigns it to the MoreInfo field. +func (o *ErrorMessageResponse) SetMoreInfo(v string) { + o.MoreInfo = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + return ret + } + return *o.Property +} + +// GetPropertyOk returns a tuple with the Property field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetPropertyOk() (*string, bool) { + if o == nil || IsNil(o.Property) { + return nil, false + } + return o.Property, true +} + +// HasProperty returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *ErrorMessageResponse) SetProperty(v string) { + o.Property = &v +} + +func (o ErrorMessageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorMessageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.MoreInfo) { + toSerialize["moreInfo"] = o.MoreInfo + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ErrorMessageResponse) UnmarshalJSON(data []byte) (err error) { + varErrorMessageResponse := _ErrorMessageResponse{} + + err = json.Unmarshal(data, &varErrorMessageResponse) + + if err != nil { + return err + } + + *o = ErrorMessageResponse(varErrorMessageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errorCode") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "moreInfo") + delete(additionalProperties, "property") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableErrorMessageResponse struct { + value *ErrorMessageResponse + isSet bool +} + +func (v NullableErrorMessageResponse) Get() *ErrorMessageResponse { + return v.value +} + +func (v *NullableErrorMessageResponse) Set(val *ErrorMessageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorMessageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorMessageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorMessageResponse(val *ErrorMessageResponse) *NullableErrorMessageResponse { + return &NullableErrorMessageResponse{value: val, isSet: true} +} + +func (v NullableErrorMessageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorMessageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_error_response.go b/services/networkedgev1/model_error_response.go new file mode 100644 index 00000000..5b457553 --- /dev/null +++ b/services/networkedgev1/model_error_response.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorResponse{} + +// ErrorResponse struct for ErrorResponse +type ErrorResponse struct { + ErrorCode *string `json:"errorCode,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + MoreInfo *string `json:"moreInfo,omitempty"` + Property *string `json:"property,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ErrorResponse ErrorResponse + +// NewErrorResponse instantiates a new ErrorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorResponse() *ErrorResponse { + this := ErrorResponse{} + return &this +} + +// NewErrorResponseWithDefaults instantiates a new ErrorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorResponseWithDefaults() *ErrorResponse { + this := ErrorResponse{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ErrorResponse) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ErrorResponse) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ErrorResponse) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *ErrorResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *ErrorResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *ErrorResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetMoreInfo returns the MoreInfo field value if set, zero value otherwise. +func (o *ErrorResponse) GetMoreInfo() string { + if o == nil || IsNil(o.MoreInfo) { + var ret string + return ret + } + return *o.MoreInfo +} + +// GetMoreInfoOk returns a tuple with the MoreInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetMoreInfoOk() (*string, bool) { + if o == nil || IsNil(o.MoreInfo) { + return nil, false + } + return o.MoreInfo, true +} + +// HasMoreInfo returns a boolean if a field has been set. +func (o *ErrorResponse) HasMoreInfo() bool { + if o != nil && !IsNil(o.MoreInfo) { + return true + } + + return false +} + +// SetMoreInfo gets a reference to the given string and assigns it to the MoreInfo field. +func (o *ErrorResponse) SetMoreInfo(v string) { + o.MoreInfo = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *ErrorResponse) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + return ret + } + return *o.Property +} + +// GetPropertyOk returns a tuple with the Property field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetPropertyOk() (*string, bool) { + if o == nil || IsNil(o.Property) { + return nil, false + } + return o.Property, true +} + +// HasProperty returns a boolean if a field has been set. +func (o *ErrorResponse) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *ErrorResponse) SetProperty(v string) { + o.Property = &v +} + +func (o ErrorResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.MoreInfo) { + toSerialize["moreInfo"] = o.MoreInfo + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error) { + varErrorResponse := _ErrorResponse{} + + err = json.Unmarshal(data, &varErrorResponse) + + if err != nil { + return err + } + + *o = ErrorResponse(varErrorResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errorCode") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "moreInfo") + delete(additionalProperties, "property") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableErrorResponse struct { + value *ErrorResponse + isSet bool +} + +func (v NullableErrorResponse) Get() *ErrorResponse { + return v.value +} + +func (v *NullableErrorResponse) Set(val *ErrorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse { + return &NullableErrorResponse{value: val, isSet: true} +} + +func (v NullableErrorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_field_error_response.go b/services/networkedgev1/model_field_error_response.go new file mode 100644 index 00000000..b1dfc228 --- /dev/null +++ b/services/networkedgev1/model_field_error_response.go @@ -0,0 +1,302 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the FieldErrorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FieldErrorResponse{} + +// FieldErrorResponse struct for FieldErrorResponse +type FieldErrorResponse struct { + ErrorCode *string `json:"errorCode,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + MoreInfo *string `json:"moreInfo,omitempty"` + Property *string `json:"property,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FieldErrorResponse FieldErrorResponse + +// NewFieldErrorResponse instantiates a new FieldErrorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFieldErrorResponse() *FieldErrorResponse { + this := FieldErrorResponse{} + return &this +} + +// NewFieldErrorResponseWithDefaults instantiates a new FieldErrorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFieldErrorResponseWithDefaults() *FieldErrorResponse { + this := FieldErrorResponse{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *FieldErrorResponse) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FieldErrorResponse) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *FieldErrorResponse) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *FieldErrorResponse) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *FieldErrorResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FieldErrorResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *FieldErrorResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *FieldErrorResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetMoreInfo returns the MoreInfo field value if set, zero value otherwise. +func (o *FieldErrorResponse) GetMoreInfo() string { + if o == nil || IsNil(o.MoreInfo) { + var ret string + return ret + } + return *o.MoreInfo +} + +// GetMoreInfoOk returns a tuple with the MoreInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FieldErrorResponse) GetMoreInfoOk() (*string, bool) { + if o == nil || IsNil(o.MoreInfo) { + return nil, false + } + return o.MoreInfo, true +} + +// HasMoreInfo returns a boolean if a field has been set. +func (o *FieldErrorResponse) HasMoreInfo() bool { + if o != nil && !IsNil(o.MoreInfo) { + return true + } + + return false +} + +// SetMoreInfo gets a reference to the given string and assigns it to the MoreInfo field. +func (o *FieldErrorResponse) SetMoreInfo(v string) { + o.MoreInfo = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *FieldErrorResponse) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + return ret + } + return *o.Property +} + +// GetPropertyOk returns a tuple with the Property field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FieldErrorResponse) GetPropertyOk() (*string, bool) { + if o == nil || IsNil(o.Property) { + return nil, false + } + return o.Property, true +} + +// HasProperty returns a boolean if a field has been set. +func (o *FieldErrorResponse) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *FieldErrorResponse) SetProperty(v string) { + o.Property = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *FieldErrorResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FieldErrorResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *FieldErrorResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *FieldErrorResponse) SetStatus(v string) { + o.Status = &v +} + +func (o FieldErrorResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FieldErrorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.MoreInfo) { + toSerialize["moreInfo"] = o.MoreInfo + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FieldErrorResponse) UnmarshalJSON(data []byte) (err error) { + varFieldErrorResponse := _FieldErrorResponse{} + + err = json.Unmarshal(data, &varFieldErrorResponse) + + if err != nil { + return err + } + + *o = FieldErrorResponse(varFieldErrorResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errorCode") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "moreInfo") + delete(additionalProperties, "property") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFieldErrorResponse struct { + value *FieldErrorResponse + isSet bool +} + +func (v NullableFieldErrorResponse) Get() *FieldErrorResponse { + return v.value +} + +func (v *NullableFieldErrorResponse) Set(val *FieldErrorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFieldErrorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFieldErrorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFieldErrorResponse(val *FieldErrorResponse) *NullableFieldErrorResponse { + return &NullableFieldErrorResponse{value: val, isSet: true} +} + +func (v NullableFieldErrorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFieldErrorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_file_upload_response.go b/services/networkedgev1/model_file_upload_response.go new file mode 100644 index 00000000..534cb62e --- /dev/null +++ b/services/networkedgev1/model_file_upload_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the FileUploadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FileUploadResponse{} + +// FileUploadResponse struct for FileUploadResponse +type FileUploadResponse struct { + FileUuid *string `json:"fileUuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FileUploadResponse FileUploadResponse + +// NewFileUploadResponse instantiates a new FileUploadResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFileUploadResponse() *FileUploadResponse { + this := FileUploadResponse{} + return &this +} + +// NewFileUploadResponseWithDefaults instantiates a new FileUploadResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFileUploadResponseWithDefaults() *FileUploadResponse { + this := FileUploadResponse{} + return &this +} + +// GetFileUuid returns the FileUuid field value if set, zero value otherwise. +func (o *FileUploadResponse) GetFileUuid() string { + if o == nil || IsNil(o.FileUuid) { + var ret string + return ret + } + return *o.FileUuid +} + +// GetFileUuidOk returns a tuple with the FileUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileUploadResponse) GetFileUuidOk() (*string, bool) { + if o == nil || IsNil(o.FileUuid) { + return nil, false + } + return o.FileUuid, true +} + +// HasFileUuid returns a boolean if a field has been set. +func (o *FileUploadResponse) HasFileUuid() bool { + if o != nil && !IsNil(o.FileUuid) { + return true + } + + return false +} + +// SetFileUuid gets a reference to the given string and assigns it to the FileUuid field. +func (o *FileUploadResponse) SetFileUuid(v string) { + o.FileUuid = &v +} + +func (o FileUploadResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FileUploadResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FileUuid) { + toSerialize["fileUuid"] = o.FileUuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FileUploadResponse) UnmarshalJSON(data []byte) (err error) { + varFileUploadResponse := _FileUploadResponse{} + + err = json.Unmarshal(data, &varFileUploadResponse) + + if err != nil { + return err + } + + *o = FileUploadResponse(varFileUploadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fileUuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFileUploadResponse struct { + value *FileUploadResponse + isSet bool +} + +func (v NullableFileUploadResponse) Get() *FileUploadResponse { + return v.value +} + +func (v *NullableFileUploadResponse) Set(val *FileUploadResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFileUploadResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFileUploadResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFileUploadResponse(val *FileUploadResponse) *NullableFileUploadResponse { + return &NullableFileUploadResponse{value: val, isSet: true} +} + +func (v NullableFileUploadResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFileUploadResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_connection_by_uuid_response.go b/services/networkedgev1/model_get_connection_by_uuid_response.go new file mode 100644 index 00000000..b3fc0d0b --- /dev/null +++ b/services/networkedgev1/model_get_connection_by_uuid_response.go @@ -0,0 +1,1634 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GETConnectionByUuidResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETConnectionByUuidResponse{} + +// GETConnectionByUuidResponse struct for GETConnectionByUuidResponse +type GETConnectionByUuidResponse struct { + BuyerOrganizationName *string `json:"buyerOrganizationName,omitempty"` + Uuid *string `json:"uuid,omitempty"` + Name *string `json:"name,omitempty"` + VlanSTag *int32 `json:"vlanSTag,omitempty"` + PortUUID *string `json:"portUUID,omitempty"` + PortName *string `json:"portName,omitempty"` + AsideEncapsulation *string `json:"asideEncapsulation,omitempty"` + MetroCode *string `json:"metroCode,omitempty"` + MetroDescription *string `json:"metroDescription,omitempty"` + ProviderStatus *string `json:"providerStatus,omitempty"` + Status *string `json:"status,omitempty"` + BillingTier *string `json:"billingTier,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + Speed *int32 `json:"speed,omitempty"` + SpeedUnit *string `json:"speedUnit,omitempty"` + RedundancyType *string `json:"redundancyType,omitempty"` + RedundancyGroup *string `json:"redundancyGroup,omitempty"` + SellerMetroCode *string `json:"sellerMetroCode,omitempty"` + SellerMetroDescription *string `json:"sellerMetroDescription,omitempty"` + SellerServiceName *string `json:"sellerServiceName,omitempty"` + SellerServiceUUID *string `json:"sellerServiceUUID,omitempty"` + SellerOrganizationName *string `json:"sellerOrganizationName,omitempty"` + Notifications []string `json:"notifications,omitempty"` + PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` + NamedTag *string `json:"namedTag,omitempty"` + CreatedDate *string `json:"createdDate,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByFullName *string `json:"createdByFullName,omitempty"` + CreatedByEmail *string `json:"createdByEmail,omitempty"` + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + LastUpdatedByFullName *string `json:"lastUpdatedByFullName,omitempty"` + LastUpdatedByEmail *string `json:"lastUpdatedByEmail,omitempty"` + ZSidePortName *string `json:"zSidePortName,omitempty"` + ZSidePortUUID *string `json:"zSidePortUUID,omitempty"` + ZSideVlanCTag *int32 `json:"zSideVlanCTag,omitempty"` + ZSideVlanSTag *int32 `json:"zSideVlanSTag,omitempty"` + Remote *bool `json:"remote,omitempty"` + Private *bool `json:"private,omitempty"` + Self *bool `json:"self,omitempty"` + RedundantUuid *string `json:"redundantUuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GETConnectionByUuidResponse GETConnectionByUuidResponse + +// NewGETConnectionByUuidResponse instantiates a new GETConnectionByUuidResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETConnectionByUuidResponse() *GETConnectionByUuidResponse { + this := GETConnectionByUuidResponse{} + return &this +} + +// NewGETConnectionByUuidResponseWithDefaults instantiates a new GETConnectionByUuidResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETConnectionByUuidResponseWithDefaults() *GETConnectionByUuidResponse { + this := GETConnectionByUuidResponse{} + return &this +} + +// GetBuyerOrganizationName returns the BuyerOrganizationName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetBuyerOrganizationName() string { + if o == nil || IsNil(o.BuyerOrganizationName) { + var ret string + return ret + } + return *o.BuyerOrganizationName +} + +// GetBuyerOrganizationNameOk returns a tuple with the BuyerOrganizationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetBuyerOrganizationNameOk() (*string, bool) { + if o == nil || IsNil(o.BuyerOrganizationName) { + return nil, false + } + return o.BuyerOrganizationName, true +} + +// HasBuyerOrganizationName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasBuyerOrganizationName() bool { + if o != nil && !IsNil(o.BuyerOrganizationName) { + return true + } + + return false +} + +// SetBuyerOrganizationName gets a reference to the given string and assigns it to the BuyerOrganizationName field. +func (o *GETConnectionByUuidResponse) SetBuyerOrganizationName(v string) { + o.BuyerOrganizationName = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *GETConnectionByUuidResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GETConnectionByUuidResponse) SetName(v string) { + o.Name = &v +} + +// GetVlanSTag returns the VlanSTag field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetVlanSTag() int32 { + if o == nil || IsNil(o.VlanSTag) { + var ret int32 + return ret + } + return *o.VlanSTag +} + +// GetVlanSTagOk returns a tuple with the VlanSTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetVlanSTagOk() (*int32, bool) { + if o == nil || IsNil(o.VlanSTag) { + return nil, false + } + return o.VlanSTag, true +} + +// HasVlanSTag returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasVlanSTag() bool { + if o != nil && !IsNil(o.VlanSTag) { + return true + } + + return false +} + +// SetVlanSTag gets a reference to the given int32 and assigns it to the VlanSTag field. +func (o *GETConnectionByUuidResponse) SetVlanSTag(v int32) { + o.VlanSTag = &v +} + +// GetPortUUID returns the PortUUID field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetPortUUID() string { + if o == nil || IsNil(o.PortUUID) { + var ret string + return ret + } + return *o.PortUUID +} + +// GetPortUUIDOk returns a tuple with the PortUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetPortUUIDOk() (*string, bool) { + if o == nil || IsNil(o.PortUUID) { + return nil, false + } + return o.PortUUID, true +} + +// HasPortUUID returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasPortUUID() bool { + if o != nil && !IsNil(o.PortUUID) { + return true + } + + return false +} + +// SetPortUUID gets a reference to the given string and assigns it to the PortUUID field. +func (o *GETConnectionByUuidResponse) SetPortUUID(v string) { + o.PortUUID = &v +} + +// GetPortName returns the PortName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetPortName() string { + if o == nil || IsNil(o.PortName) { + var ret string + return ret + } + return *o.PortName +} + +// GetPortNameOk returns a tuple with the PortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetPortNameOk() (*string, bool) { + if o == nil || IsNil(o.PortName) { + return nil, false + } + return o.PortName, true +} + +// HasPortName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasPortName() bool { + if o != nil && !IsNil(o.PortName) { + return true + } + + return false +} + +// SetPortName gets a reference to the given string and assigns it to the PortName field. +func (o *GETConnectionByUuidResponse) SetPortName(v string) { + o.PortName = &v +} + +// GetAsideEncapsulation returns the AsideEncapsulation field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetAsideEncapsulation() string { + if o == nil || IsNil(o.AsideEncapsulation) { + var ret string + return ret + } + return *o.AsideEncapsulation +} + +// GetAsideEncapsulationOk returns a tuple with the AsideEncapsulation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetAsideEncapsulationOk() (*string, bool) { + if o == nil || IsNil(o.AsideEncapsulation) { + return nil, false + } + return o.AsideEncapsulation, true +} + +// HasAsideEncapsulation returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasAsideEncapsulation() bool { + if o != nil && !IsNil(o.AsideEncapsulation) { + return true + } + + return false +} + +// SetAsideEncapsulation gets a reference to the given string and assigns it to the AsideEncapsulation field. +func (o *GETConnectionByUuidResponse) SetAsideEncapsulation(v string) { + o.AsideEncapsulation = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *GETConnectionByUuidResponse) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroDescription returns the MetroDescription field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetMetroDescription() string { + if o == nil || IsNil(o.MetroDescription) { + var ret string + return ret + } + return *o.MetroDescription +} + +// GetMetroDescriptionOk returns a tuple with the MetroDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetMetroDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.MetroDescription) { + return nil, false + } + return o.MetroDescription, true +} + +// HasMetroDescription returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasMetroDescription() bool { + if o != nil && !IsNil(o.MetroDescription) { + return true + } + + return false +} + +// SetMetroDescription gets a reference to the given string and assigns it to the MetroDescription field. +func (o *GETConnectionByUuidResponse) SetMetroDescription(v string) { + o.MetroDescription = &v +} + +// GetProviderStatus returns the ProviderStatus field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetProviderStatus() string { + if o == nil || IsNil(o.ProviderStatus) { + var ret string + return ret + } + return *o.ProviderStatus +} + +// GetProviderStatusOk returns a tuple with the ProviderStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetProviderStatusOk() (*string, bool) { + if o == nil || IsNil(o.ProviderStatus) { + return nil, false + } + return o.ProviderStatus, true +} + +// HasProviderStatus returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasProviderStatus() bool { + if o != nil && !IsNil(o.ProviderStatus) { + return true + } + + return false +} + +// SetProviderStatus gets a reference to the given string and assigns it to the ProviderStatus field. +func (o *GETConnectionByUuidResponse) SetProviderStatus(v string) { + o.ProviderStatus = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *GETConnectionByUuidResponse) SetStatus(v string) { + o.Status = &v +} + +// GetBillingTier returns the BillingTier field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetBillingTier() string { + if o == nil || IsNil(o.BillingTier) { + var ret string + return ret + } + return *o.BillingTier +} + +// GetBillingTierOk returns a tuple with the BillingTier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetBillingTierOk() (*string, bool) { + if o == nil || IsNil(o.BillingTier) { + return nil, false + } + return o.BillingTier, true +} + +// HasBillingTier returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasBillingTier() bool { + if o != nil && !IsNil(o.BillingTier) { + return true + } + + return false +} + +// SetBillingTier gets a reference to the given string and assigns it to the BillingTier field. +func (o *GETConnectionByUuidResponse) SetBillingTier(v string) { + o.BillingTier = &v +} + +// GetAuthorizationKey returns the AuthorizationKey field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetAuthorizationKey() string { + if o == nil || IsNil(o.AuthorizationKey) { + var ret string + return ret + } + return *o.AuthorizationKey +} + +// GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetAuthorizationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthorizationKey) { + return nil, false + } + return o.AuthorizationKey, true +} + +// HasAuthorizationKey returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasAuthorizationKey() bool { + if o != nil && !IsNil(o.AuthorizationKey) { + return true + } + + return false +} + +// SetAuthorizationKey gets a reference to the given string and assigns it to the AuthorizationKey field. +func (o *GETConnectionByUuidResponse) SetAuthorizationKey(v string) { + o.AuthorizationKey = &v +} + +// GetSpeed returns the Speed field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSpeed() int32 { + if o == nil || IsNil(o.Speed) { + var ret int32 + return ret + } + return *o.Speed +} + +// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSpeedOk() (*int32, bool) { + if o == nil || IsNil(o.Speed) { + return nil, false + } + return o.Speed, true +} + +// HasSpeed returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSpeed() bool { + if o != nil && !IsNil(o.Speed) { + return true + } + + return false +} + +// SetSpeed gets a reference to the given int32 and assigns it to the Speed field. +func (o *GETConnectionByUuidResponse) SetSpeed(v int32) { + o.Speed = &v +} + +// GetSpeedUnit returns the SpeedUnit field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSpeedUnit() string { + if o == nil || IsNil(o.SpeedUnit) { + var ret string + return ret + } + return *o.SpeedUnit +} + +// GetSpeedUnitOk returns a tuple with the SpeedUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSpeedUnitOk() (*string, bool) { + if o == nil || IsNil(o.SpeedUnit) { + return nil, false + } + return o.SpeedUnit, true +} + +// HasSpeedUnit returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSpeedUnit() bool { + if o != nil && !IsNil(o.SpeedUnit) { + return true + } + + return false +} + +// SetSpeedUnit gets a reference to the given string and assigns it to the SpeedUnit field. +func (o *GETConnectionByUuidResponse) SetSpeedUnit(v string) { + o.SpeedUnit = &v +} + +// GetRedundancyType returns the RedundancyType field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetRedundancyType() string { + if o == nil || IsNil(o.RedundancyType) { + var ret string + return ret + } + return *o.RedundancyType +} + +// GetRedundancyTypeOk returns a tuple with the RedundancyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetRedundancyTypeOk() (*string, bool) { + if o == nil || IsNil(o.RedundancyType) { + return nil, false + } + return o.RedundancyType, true +} + +// HasRedundancyType returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasRedundancyType() bool { + if o != nil && !IsNil(o.RedundancyType) { + return true + } + + return false +} + +// SetRedundancyType gets a reference to the given string and assigns it to the RedundancyType field. +func (o *GETConnectionByUuidResponse) SetRedundancyType(v string) { + o.RedundancyType = &v +} + +// GetRedundancyGroup returns the RedundancyGroup field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetRedundancyGroup() string { + if o == nil || IsNil(o.RedundancyGroup) { + var ret string + return ret + } + return *o.RedundancyGroup +} + +// GetRedundancyGroupOk returns a tuple with the RedundancyGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetRedundancyGroupOk() (*string, bool) { + if o == nil || IsNil(o.RedundancyGroup) { + return nil, false + } + return o.RedundancyGroup, true +} + +// HasRedundancyGroup returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasRedundancyGroup() bool { + if o != nil && !IsNil(o.RedundancyGroup) { + return true + } + + return false +} + +// SetRedundancyGroup gets a reference to the given string and assigns it to the RedundancyGroup field. +func (o *GETConnectionByUuidResponse) SetRedundancyGroup(v string) { + o.RedundancyGroup = &v +} + +// GetSellerMetroCode returns the SellerMetroCode field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSellerMetroCode() string { + if o == nil || IsNil(o.SellerMetroCode) { + var ret string + return ret + } + return *o.SellerMetroCode +} + +// GetSellerMetroCodeOk returns a tuple with the SellerMetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSellerMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.SellerMetroCode) { + return nil, false + } + return o.SellerMetroCode, true +} + +// HasSellerMetroCode returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSellerMetroCode() bool { + if o != nil && !IsNil(o.SellerMetroCode) { + return true + } + + return false +} + +// SetSellerMetroCode gets a reference to the given string and assigns it to the SellerMetroCode field. +func (o *GETConnectionByUuidResponse) SetSellerMetroCode(v string) { + o.SellerMetroCode = &v +} + +// GetSellerMetroDescription returns the SellerMetroDescription field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSellerMetroDescription() string { + if o == nil || IsNil(o.SellerMetroDescription) { + var ret string + return ret + } + return *o.SellerMetroDescription +} + +// GetSellerMetroDescriptionOk returns a tuple with the SellerMetroDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSellerMetroDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.SellerMetroDescription) { + return nil, false + } + return o.SellerMetroDescription, true +} + +// HasSellerMetroDescription returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSellerMetroDescription() bool { + if o != nil && !IsNil(o.SellerMetroDescription) { + return true + } + + return false +} + +// SetSellerMetroDescription gets a reference to the given string and assigns it to the SellerMetroDescription field. +func (o *GETConnectionByUuidResponse) SetSellerMetroDescription(v string) { + o.SellerMetroDescription = &v +} + +// GetSellerServiceName returns the SellerServiceName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSellerServiceName() string { + if o == nil || IsNil(o.SellerServiceName) { + var ret string + return ret + } + return *o.SellerServiceName +} + +// GetSellerServiceNameOk returns a tuple with the SellerServiceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSellerServiceNameOk() (*string, bool) { + if o == nil || IsNil(o.SellerServiceName) { + return nil, false + } + return o.SellerServiceName, true +} + +// HasSellerServiceName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSellerServiceName() bool { + if o != nil && !IsNil(o.SellerServiceName) { + return true + } + + return false +} + +// SetSellerServiceName gets a reference to the given string and assigns it to the SellerServiceName field. +func (o *GETConnectionByUuidResponse) SetSellerServiceName(v string) { + o.SellerServiceName = &v +} + +// GetSellerServiceUUID returns the SellerServiceUUID field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSellerServiceUUID() string { + if o == nil || IsNil(o.SellerServiceUUID) { + var ret string + return ret + } + return *o.SellerServiceUUID +} + +// GetSellerServiceUUIDOk returns a tuple with the SellerServiceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSellerServiceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.SellerServiceUUID) { + return nil, false + } + return o.SellerServiceUUID, true +} + +// HasSellerServiceUUID returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSellerServiceUUID() bool { + if o != nil && !IsNil(o.SellerServiceUUID) { + return true + } + + return false +} + +// SetSellerServiceUUID gets a reference to the given string and assigns it to the SellerServiceUUID field. +func (o *GETConnectionByUuidResponse) SetSellerServiceUUID(v string) { + o.SellerServiceUUID = &v +} + +// GetSellerOrganizationName returns the SellerOrganizationName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSellerOrganizationName() string { + if o == nil || IsNil(o.SellerOrganizationName) { + var ret string + return ret + } + return *o.SellerOrganizationName +} + +// GetSellerOrganizationNameOk returns a tuple with the SellerOrganizationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSellerOrganizationNameOk() (*string, bool) { + if o == nil || IsNil(o.SellerOrganizationName) { + return nil, false + } + return o.SellerOrganizationName, true +} + +// HasSellerOrganizationName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSellerOrganizationName() bool { + if o != nil && !IsNil(o.SellerOrganizationName) { + return true + } + + return false +} + +// SetSellerOrganizationName gets a reference to the given string and assigns it to the SellerOrganizationName field. +func (o *GETConnectionByUuidResponse) SetSellerOrganizationName(v string) { + o.SellerOrganizationName = &v +} + +// GetNotifications returns the Notifications field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetNotifications() []string { + if o == nil || IsNil(o.Notifications) { + var ret []string + return ret + } + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetNotificationsOk() ([]string, bool) { + if o == nil || IsNil(o.Notifications) { + return nil, false + } + return o.Notifications, true +} + +// HasNotifications returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasNotifications() bool { + if o != nil && !IsNil(o.Notifications) { + return true + } + + return false +} + +// SetNotifications gets a reference to the given []string and assigns it to the Notifications field. +func (o *GETConnectionByUuidResponse) SetNotifications(v []string) { + o.Notifications = v +} + +// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetPurchaseOrderNumber() string { + if o == nil || IsNil(o.PurchaseOrderNumber) { + var ret string + return ret + } + return *o.PurchaseOrderNumber +} + +// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetPurchaseOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.PurchaseOrderNumber) { + return nil, false + } + return o.PurchaseOrderNumber, true +} + +// HasPurchaseOrderNumber returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasPurchaseOrderNumber() bool { + if o != nil && !IsNil(o.PurchaseOrderNumber) { + return true + } + + return false +} + +// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field. +func (o *GETConnectionByUuidResponse) SetPurchaseOrderNumber(v string) { + o.PurchaseOrderNumber = &v +} + +// GetNamedTag returns the NamedTag field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetNamedTag() string { + if o == nil || IsNil(o.NamedTag) { + var ret string + return ret + } + return *o.NamedTag +} + +// GetNamedTagOk returns a tuple with the NamedTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetNamedTagOk() (*string, bool) { + if o == nil || IsNil(o.NamedTag) { + return nil, false + } + return o.NamedTag, true +} + +// HasNamedTag returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasNamedTag() bool { + if o != nil && !IsNil(o.NamedTag) { + return true + } + + return false +} + +// SetNamedTag gets a reference to the given string and assigns it to the NamedTag field. +func (o *GETConnectionByUuidResponse) SetNamedTag(v string) { + o.NamedTag = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *GETConnectionByUuidResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *GETConnectionByUuidResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByFullName returns the CreatedByFullName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetCreatedByFullName() string { + if o == nil || IsNil(o.CreatedByFullName) { + var ret string + return ret + } + return *o.CreatedByFullName +} + +// GetCreatedByFullNameOk returns a tuple with the CreatedByFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetCreatedByFullNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByFullName) { + return nil, false + } + return o.CreatedByFullName, true +} + +// HasCreatedByFullName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasCreatedByFullName() bool { + if o != nil && !IsNil(o.CreatedByFullName) { + return true + } + + return false +} + +// SetCreatedByFullName gets a reference to the given string and assigns it to the CreatedByFullName field. +func (o *GETConnectionByUuidResponse) SetCreatedByFullName(v string) { + o.CreatedByFullName = &v +} + +// GetCreatedByEmail returns the CreatedByEmail field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetCreatedByEmail() string { + if o == nil || IsNil(o.CreatedByEmail) { + var ret string + return ret + } + return *o.CreatedByEmail +} + +// GetCreatedByEmailOk returns a tuple with the CreatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetCreatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByEmail) { + return nil, false + } + return o.CreatedByEmail, true +} + +// HasCreatedByEmail returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasCreatedByEmail() bool { + if o != nil && !IsNil(o.CreatedByEmail) { + return true + } + + return false +} + +// SetCreatedByEmail gets a reference to the given string and assigns it to the CreatedByEmail field. +func (o *GETConnectionByUuidResponse) SetCreatedByEmail(v string) { + o.CreatedByEmail = &v +} + +// GetLastUpdatedBy returns the LastUpdatedBy field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetLastUpdatedBy() string { + if o == nil || IsNil(o.LastUpdatedBy) { + var ret string + return ret + } + return *o.LastUpdatedBy +} + +// GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetLastUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedBy) { + return nil, false + } + return o.LastUpdatedBy, true +} + +// HasLastUpdatedBy returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasLastUpdatedBy() bool { + if o != nil && !IsNil(o.LastUpdatedBy) { + return true + } + + return false +} + +// SetLastUpdatedBy gets a reference to the given string and assigns it to the LastUpdatedBy field. +func (o *GETConnectionByUuidResponse) SetLastUpdatedBy(v string) { + o.LastUpdatedBy = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *GETConnectionByUuidResponse) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetLastUpdatedByFullName returns the LastUpdatedByFullName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetLastUpdatedByFullName() string { + if o == nil || IsNil(o.LastUpdatedByFullName) { + var ret string + return ret + } + return *o.LastUpdatedByFullName +} + +// GetLastUpdatedByFullNameOk returns a tuple with the LastUpdatedByFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetLastUpdatedByFullNameOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedByFullName) { + return nil, false + } + return o.LastUpdatedByFullName, true +} + +// HasLastUpdatedByFullName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasLastUpdatedByFullName() bool { + if o != nil && !IsNil(o.LastUpdatedByFullName) { + return true + } + + return false +} + +// SetLastUpdatedByFullName gets a reference to the given string and assigns it to the LastUpdatedByFullName field. +func (o *GETConnectionByUuidResponse) SetLastUpdatedByFullName(v string) { + o.LastUpdatedByFullName = &v +} + +// GetLastUpdatedByEmail returns the LastUpdatedByEmail field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetLastUpdatedByEmail() string { + if o == nil || IsNil(o.LastUpdatedByEmail) { + var ret string + return ret + } + return *o.LastUpdatedByEmail +} + +// GetLastUpdatedByEmailOk returns a tuple with the LastUpdatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetLastUpdatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedByEmail) { + return nil, false + } + return o.LastUpdatedByEmail, true +} + +// HasLastUpdatedByEmail returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasLastUpdatedByEmail() bool { + if o != nil && !IsNil(o.LastUpdatedByEmail) { + return true + } + + return false +} + +// SetLastUpdatedByEmail gets a reference to the given string and assigns it to the LastUpdatedByEmail field. +func (o *GETConnectionByUuidResponse) SetLastUpdatedByEmail(v string) { + o.LastUpdatedByEmail = &v +} + +// GetZSidePortName returns the ZSidePortName field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetZSidePortName() string { + if o == nil || IsNil(o.ZSidePortName) { + var ret string + return ret + } + return *o.ZSidePortName +} + +// GetZSidePortNameOk returns a tuple with the ZSidePortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetZSidePortNameOk() (*string, bool) { + if o == nil || IsNil(o.ZSidePortName) { + return nil, false + } + return o.ZSidePortName, true +} + +// HasZSidePortName returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasZSidePortName() bool { + if o != nil && !IsNil(o.ZSidePortName) { + return true + } + + return false +} + +// SetZSidePortName gets a reference to the given string and assigns it to the ZSidePortName field. +func (o *GETConnectionByUuidResponse) SetZSidePortName(v string) { + o.ZSidePortName = &v +} + +// GetZSidePortUUID returns the ZSidePortUUID field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetZSidePortUUID() string { + if o == nil || IsNil(o.ZSidePortUUID) { + var ret string + return ret + } + return *o.ZSidePortUUID +} + +// GetZSidePortUUIDOk returns a tuple with the ZSidePortUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetZSidePortUUIDOk() (*string, bool) { + if o == nil || IsNil(o.ZSidePortUUID) { + return nil, false + } + return o.ZSidePortUUID, true +} + +// HasZSidePortUUID returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasZSidePortUUID() bool { + if o != nil && !IsNil(o.ZSidePortUUID) { + return true + } + + return false +} + +// SetZSidePortUUID gets a reference to the given string and assigns it to the ZSidePortUUID field. +func (o *GETConnectionByUuidResponse) SetZSidePortUUID(v string) { + o.ZSidePortUUID = &v +} + +// GetZSideVlanCTag returns the ZSideVlanCTag field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetZSideVlanCTag() int32 { + if o == nil || IsNil(o.ZSideVlanCTag) { + var ret int32 + return ret + } + return *o.ZSideVlanCTag +} + +// GetZSideVlanCTagOk returns a tuple with the ZSideVlanCTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetZSideVlanCTagOk() (*int32, bool) { + if o == nil || IsNil(o.ZSideVlanCTag) { + return nil, false + } + return o.ZSideVlanCTag, true +} + +// HasZSideVlanCTag returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasZSideVlanCTag() bool { + if o != nil && !IsNil(o.ZSideVlanCTag) { + return true + } + + return false +} + +// SetZSideVlanCTag gets a reference to the given int32 and assigns it to the ZSideVlanCTag field. +func (o *GETConnectionByUuidResponse) SetZSideVlanCTag(v int32) { + o.ZSideVlanCTag = &v +} + +// GetZSideVlanSTag returns the ZSideVlanSTag field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetZSideVlanSTag() int32 { + if o == nil || IsNil(o.ZSideVlanSTag) { + var ret int32 + return ret + } + return *o.ZSideVlanSTag +} + +// GetZSideVlanSTagOk returns a tuple with the ZSideVlanSTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetZSideVlanSTagOk() (*int32, bool) { + if o == nil || IsNil(o.ZSideVlanSTag) { + return nil, false + } + return o.ZSideVlanSTag, true +} + +// HasZSideVlanSTag returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasZSideVlanSTag() bool { + if o != nil && !IsNil(o.ZSideVlanSTag) { + return true + } + + return false +} + +// SetZSideVlanSTag gets a reference to the given int32 and assigns it to the ZSideVlanSTag field. +func (o *GETConnectionByUuidResponse) SetZSideVlanSTag(v int32) { + o.ZSideVlanSTag = &v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetRemote() bool { + if o == nil || IsNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetRemoteOk() (*bool, bool) { + if o == nil || IsNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasRemote() bool { + if o != nil && !IsNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *GETConnectionByUuidResponse) SetRemote(v bool) { + o.Remote = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *GETConnectionByUuidResponse) SetPrivate(v bool) { + o.Private = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetSelf() bool { + if o == nil || IsNil(o.Self) { + var ret bool + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetSelfOk() (*bool, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given bool and assigns it to the Self field. +func (o *GETConnectionByUuidResponse) SetSelf(v bool) { + o.Self = &v +} + +// GetRedundantUuid returns the RedundantUuid field value if set, zero value otherwise. +func (o *GETConnectionByUuidResponse) GetRedundantUuid() string { + if o == nil || IsNil(o.RedundantUuid) { + var ret string + return ret + } + return *o.RedundantUuid +} + +// GetRedundantUuidOk returns a tuple with the RedundantUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionByUuidResponse) GetRedundantUuidOk() (*string, bool) { + if o == nil || IsNil(o.RedundantUuid) { + return nil, false + } + return o.RedundantUuid, true +} + +// HasRedundantUuid returns a boolean if a field has been set. +func (o *GETConnectionByUuidResponse) HasRedundantUuid() bool { + if o != nil && !IsNil(o.RedundantUuid) { + return true + } + + return false +} + +// SetRedundantUuid gets a reference to the given string and assigns it to the RedundantUuid field. +func (o *GETConnectionByUuidResponse) SetRedundantUuid(v string) { + o.RedundantUuid = &v +} + +func (o GETConnectionByUuidResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETConnectionByUuidResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuyerOrganizationName) { + toSerialize["buyerOrganizationName"] = o.BuyerOrganizationName + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.VlanSTag) { + toSerialize["vlanSTag"] = o.VlanSTag + } + if !IsNil(o.PortUUID) { + toSerialize["portUUID"] = o.PortUUID + } + if !IsNil(o.PortName) { + toSerialize["portName"] = o.PortName + } + if !IsNil(o.AsideEncapsulation) { + toSerialize["asideEncapsulation"] = o.AsideEncapsulation + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroDescription) { + toSerialize["metroDescription"] = o.MetroDescription + } + if !IsNil(o.ProviderStatus) { + toSerialize["providerStatus"] = o.ProviderStatus + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.BillingTier) { + toSerialize["billingTier"] = o.BillingTier + } + if !IsNil(o.AuthorizationKey) { + toSerialize["authorizationKey"] = o.AuthorizationKey + } + if !IsNil(o.Speed) { + toSerialize["speed"] = o.Speed + } + if !IsNil(o.SpeedUnit) { + toSerialize["speedUnit"] = o.SpeedUnit + } + if !IsNil(o.RedundancyType) { + toSerialize["redundancyType"] = o.RedundancyType + } + if !IsNil(o.RedundancyGroup) { + toSerialize["redundancyGroup"] = o.RedundancyGroup + } + if !IsNil(o.SellerMetroCode) { + toSerialize["sellerMetroCode"] = o.SellerMetroCode + } + if !IsNil(o.SellerMetroDescription) { + toSerialize["sellerMetroDescription"] = o.SellerMetroDescription + } + if !IsNil(o.SellerServiceName) { + toSerialize["sellerServiceName"] = o.SellerServiceName + } + if !IsNil(o.SellerServiceUUID) { + toSerialize["sellerServiceUUID"] = o.SellerServiceUUID + } + if !IsNil(o.SellerOrganizationName) { + toSerialize["sellerOrganizationName"] = o.SellerOrganizationName + } + if !IsNil(o.Notifications) { + toSerialize["notifications"] = o.Notifications + } + if !IsNil(o.PurchaseOrderNumber) { + toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber + } + if !IsNil(o.NamedTag) { + toSerialize["namedTag"] = o.NamedTag + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByFullName) { + toSerialize["createdByFullName"] = o.CreatedByFullName + } + if !IsNil(o.CreatedByEmail) { + toSerialize["createdByEmail"] = o.CreatedByEmail + } + if !IsNil(o.LastUpdatedBy) { + toSerialize["lastUpdatedBy"] = o.LastUpdatedBy + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.LastUpdatedByFullName) { + toSerialize["lastUpdatedByFullName"] = o.LastUpdatedByFullName + } + if !IsNil(o.LastUpdatedByEmail) { + toSerialize["lastUpdatedByEmail"] = o.LastUpdatedByEmail + } + if !IsNil(o.ZSidePortName) { + toSerialize["zSidePortName"] = o.ZSidePortName + } + if !IsNil(o.ZSidePortUUID) { + toSerialize["zSidePortUUID"] = o.ZSidePortUUID + } + if !IsNil(o.ZSideVlanCTag) { + toSerialize["zSideVlanCTag"] = o.ZSideVlanCTag + } + if !IsNil(o.ZSideVlanSTag) { + toSerialize["zSideVlanSTag"] = o.ZSideVlanSTag + } + if !IsNil(o.Remote) { + toSerialize["remote"] = o.Remote + } + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.RedundantUuid) { + toSerialize["redundantUuid"] = o.RedundantUuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GETConnectionByUuidResponse) UnmarshalJSON(data []byte) (err error) { + varGETConnectionByUuidResponse := _GETConnectionByUuidResponse{} + + err = json.Unmarshal(data, &varGETConnectionByUuidResponse) + + if err != nil { + return err + } + + *o = GETConnectionByUuidResponse(varGETConnectionByUuidResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "buyerOrganizationName") + delete(additionalProperties, "uuid") + delete(additionalProperties, "name") + delete(additionalProperties, "vlanSTag") + delete(additionalProperties, "portUUID") + delete(additionalProperties, "portName") + delete(additionalProperties, "asideEncapsulation") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroDescription") + delete(additionalProperties, "providerStatus") + delete(additionalProperties, "status") + delete(additionalProperties, "billingTier") + delete(additionalProperties, "authorizationKey") + delete(additionalProperties, "speed") + delete(additionalProperties, "speedUnit") + delete(additionalProperties, "redundancyType") + delete(additionalProperties, "redundancyGroup") + delete(additionalProperties, "sellerMetroCode") + delete(additionalProperties, "sellerMetroDescription") + delete(additionalProperties, "sellerServiceName") + delete(additionalProperties, "sellerServiceUUID") + delete(additionalProperties, "sellerOrganizationName") + delete(additionalProperties, "notifications") + delete(additionalProperties, "purchaseOrderNumber") + delete(additionalProperties, "namedTag") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdByFullName") + delete(additionalProperties, "createdByEmail") + delete(additionalProperties, "lastUpdatedBy") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "lastUpdatedByFullName") + delete(additionalProperties, "lastUpdatedByEmail") + delete(additionalProperties, "zSidePortName") + delete(additionalProperties, "zSidePortUUID") + delete(additionalProperties, "zSideVlanCTag") + delete(additionalProperties, "zSideVlanSTag") + delete(additionalProperties, "remote") + delete(additionalProperties, "private") + delete(additionalProperties, "self") + delete(additionalProperties, "redundantUuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGETConnectionByUuidResponse struct { + value *GETConnectionByUuidResponse + isSet bool +} + +func (v NullableGETConnectionByUuidResponse) Get() *GETConnectionByUuidResponse { + return v.value +} + +func (v *NullableGETConnectionByUuidResponse) Set(val *GETConnectionByUuidResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGETConnectionByUuidResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGETConnectionByUuidResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETConnectionByUuidResponse(val *GETConnectionByUuidResponse) *NullableGETConnectionByUuidResponse { + return &NullableGETConnectionByUuidResponse{value: val, isSet: true} +} + +func (v NullableGETConnectionByUuidResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETConnectionByUuidResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_connections_page_response.go b/services/networkedgev1/model_get_connections_page_response.go new file mode 100644 index 00000000..de9f2b44 --- /dev/null +++ b/services/networkedgev1/model_get_connections_page_response.go @@ -0,0 +1,339 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GETConnectionsPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETConnectionsPageResponse{} + +// GETConnectionsPageResponse struct for GETConnectionsPageResponse +type GETConnectionsPageResponse struct { + IsLastPage *bool `json:"isLastPage,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` + IsFirstPage *bool `json:"isFirstPage,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + Content []GETConnectionByUuidResponse `json:"content,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GETConnectionsPageResponse GETConnectionsPageResponse + +// NewGETConnectionsPageResponse instantiates a new GETConnectionsPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETConnectionsPageResponse() *GETConnectionsPageResponse { + this := GETConnectionsPageResponse{} + return &this +} + +// NewGETConnectionsPageResponseWithDefaults instantiates a new GETConnectionsPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETConnectionsPageResponseWithDefaults() *GETConnectionsPageResponse { + this := GETConnectionsPageResponse{} + return &this +} + +// GetIsLastPage returns the IsLastPage field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetIsLastPage() bool { + if o == nil || IsNil(o.IsLastPage) { + var ret bool + return ret + } + return *o.IsLastPage +} + +// GetIsLastPageOk returns a tuple with the IsLastPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetIsLastPageOk() (*bool, bool) { + if o == nil || IsNil(o.IsLastPage) { + return nil, false + } + return o.IsLastPage, true +} + +// HasIsLastPage returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasIsLastPage() bool { + if o != nil && !IsNil(o.IsLastPage) { + return true + } + + return false +} + +// SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field. +func (o *GETConnectionsPageResponse) SetIsLastPage(v bool) { + o.IsLastPage = &v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *GETConnectionsPageResponse) SetTotalCount(v int32) { + o.TotalCount = &v +} + +// GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetIsFirstPage() bool { + if o == nil || IsNil(o.IsFirstPage) { + var ret bool + return ret + } + return *o.IsFirstPage +} + +// GetIsFirstPageOk returns a tuple with the IsFirstPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetIsFirstPageOk() (*bool, bool) { + if o == nil || IsNil(o.IsFirstPage) { + return nil, false + } + return o.IsFirstPage, true +} + +// HasIsFirstPage returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasIsFirstPage() bool { + if o != nil && !IsNil(o.IsFirstPage) { + return true + } + + return false +} + +// SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field. +func (o *GETConnectionsPageResponse) SetIsFirstPage(v bool) { + o.IsFirstPage = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetPageSize() int32 { + if o == nil || IsNil(o.PageSize) { + var ret int32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetPageSizeOk() (*int32, bool) { + if o == nil || IsNil(o.PageSize) { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasPageSize() bool { + if o != nil && !IsNil(o.PageSize) { + return true + } + + return false +} + +// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. +func (o *GETConnectionsPageResponse) SetPageSize(v int32) { + o.PageSize = &v +} + +// GetPageNumber returns the PageNumber field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetPageNumber() int32 { + if o == nil || IsNil(o.PageNumber) { + var ret int32 + return ret + } + return *o.PageNumber +} + +// GetPageNumberOk returns a tuple with the PageNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetPageNumberOk() (*int32, bool) { + if o == nil || IsNil(o.PageNumber) { + return nil, false + } + return o.PageNumber, true +} + +// HasPageNumber returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasPageNumber() bool { + if o != nil && !IsNil(o.PageNumber) { + return true + } + + return false +} + +// SetPageNumber gets a reference to the given int32 and assigns it to the PageNumber field. +func (o *GETConnectionsPageResponse) SetPageNumber(v int32) { + o.PageNumber = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *GETConnectionsPageResponse) GetContent() []GETConnectionByUuidResponse { + if o == nil || IsNil(o.Content) { + var ret []GETConnectionByUuidResponse + return ret + } + return o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETConnectionsPageResponse) GetContentOk() ([]GETConnectionByUuidResponse, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *GETConnectionsPageResponse) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given []GETConnectionByUuidResponse and assigns it to the Content field. +func (o *GETConnectionsPageResponse) SetContent(v []GETConnectionByUuidResponse) { + o.Content = v +} + +func (o GETConnectionsPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETConnectionsPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsLastPage) { + toSerialize["isLastPage"] = o.IsLastPage + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + if !IsNil(o.IsFirstPage) { + toSerialize["isFirstPage"] = o.IsFirstPage + } + if !IsNil(o.PageSize) { + toSerialize["pageSize"] = o.PageSize + } + if !IsNil(o.PageNumber) { + toSerialize["pageNumber"] = o.PageNumber + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GETConnectionsPageResponse) UnmarshalJSON(data []byte) (err error) { + varGETConnectionsPageResponse := _GETConnectionsPageResponse{} + + err = json.Unmarshal(data, &varGETConnectionsPageResponse) + + if err != nil { + return err + } + + *o = GETConnectionsPageResponse(varGETConnectionsPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "isLastPage") + delete(additionalProperties, "totalCount") + delete(additionalProperties, "isFirstPage") + delete(additionalProperties, "pageSize") + delete(additionalProperties, "pageNumber") + delete(additionalProperties, "content") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGETConnectionsPageResponse struct { + value *GETConnectionsPageResponse + isSet bool +} + +func (v NullableGETConnectionsPageResponse) Get() *GETConnectionsPageResponse { + return v.value +} + +func (v *NullableGETConnectionsPageResponse) Set(val *GETConnectionsPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGETConnectionsPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGETConnectionsPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETConnectionsPageResponse(val *GETConnectionsPageResponse) *NullableGETConnectionsPageResponse { + return &NullableGETConnectionsPageResponse{value: val, isSet: true} +} + +func (v NullableGETConnectionsPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETConnectionsPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_serv_prof_services_resp.go b/services/networkedgev1/model_get_serv_prof_services_resp.go new file mode 100644 index 00000000..57ebd6d2 --- /dev/null +++ b/services/networkedgev1/model_get_serv_prof_services_resp.go @@ -0,0 +1,339 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetServProfServicesResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetServProfServicesResp{} + +// GetServProfServicesResp struct for GetServProfServicesResp +type GetServProfServicesResp struct { + IsLastPage *bool `json:"isLastPage,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` + IsFirstPage *bool `json:"isFirstPage,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + Content []GetServProfServicesRespContent `json:"content,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetServProfServicesResp GetServProfServicesResp + +// NewGetServProfServicesResp instantiates a new GetServProfServicesResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetServProfServicesResp() *GetServProfServicesResp { + this := GetServProfServicesResp{} + return &this +} + +// NewGetServProfServicesRespWithDefaults instantiates a new GetServProfServicesResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetServProfServicesRespWithDefaults() *GetServProfServicesResp { + this := GetServProfServicesResp{} + return &this +} + +// GetIsLastPage returns the IsLastPage field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetIsLastPage() bool { + if o == nil || IsNil(o.IsLastPage) { + var ret bool + return ret + } + return *o.IsLastPage +} + +// GetIsLastPageOk returns a tuple with the IsLastPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetIsLastPageOk() (*bool, bool) { + if o == nil || IsNil(o.IsLastPage) { + return nil, false + } + return o.IsLastPage, true +} + +// HasIsLastPage returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasIsLastPage() bool { + if o != nil && !IsNil(o.IsLastPage) { + return true + } + + return false +} + +// SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field. +func (o *GetServProfServicesResp) SetIsLastPage(v bool) { + o.IsLastPage = &v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *GetServProfServicesResp) SetTotalCount(v int32) { + o.TotalCount = &v +} + +// GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetIsFirstPage() bool { + if o == nil || IsNil(o.IsFirstPage) { + var ret bool + return ret + } + return *o.IsFirstPage +} + +// GetIsFirstPageOk returns a tuple with the IsFirstPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetIsFirstPageOk() (*bool, bool) { + if o == nil || IsNil(o.IsFirstPage) { + return nil, false + } + return o.IsFirstPage, true +} + +// HasIsFirstPage returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasIsFirstPage() bool { + if o != nil && !IsNil(o.IsFirstPage) { + return true + } + + return false +} + +// SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field. +func (o *GetServProfServicesResp) SetIsFirstPage(v bool) { + o.IsFirstPage = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetPageSize() int32 { + if o == nil || IsNil(o.PageSize) { + var ret int32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetPageSizeOk() (*int32, bool) { + if o == nil || IsNil(o.PageSize) { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasPageSize() bool { + if o != nil && !IsNil(o.PageSize) { + return true + } + + return false +} + +// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. +func (o *GetServProfServicesResp) SetPageSize(v int32) { + o.PageSize = &v +} + +// GetPageNumber returns the PageNumber field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetPageNumber() int32 { + if o == nil || IsNil(o.PageNumber) { + var ret int32 + return ret + } + return *o.PageNumber +} + +// GetPageNumberOk returns a tuple with the PageNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetPageNumberOk() (*int32, bool) { + if o == nil || IsNil(o.PageNumber) { + return nil, false + } + return o.PageNumber, true +} + +// HasPageNumber returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasPageNumber() bool { + if o != nil && !IsNil(o.PageNumber) { + return true + } + + return false +} + +// SetPageNumber gets a reference to the given int32 and assigns it to the PageNumber field. +func (o *GetServProfServicesResp) SetPageNumber(v int32) { + o.PageNumber = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *GetServProfServicesResp) GetContent() []GetServProfServicesRespContent { + if o == nil || IsNil(o.Content) { + var ret []GetServProfServicesRespContent + return ret + } + return o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesResp) GetContentOk() ([]GetServProfServicesRespContent, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *GetServProfServicesResp) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given []GetServProfServicesRespContent and assigns it to the Content field. +func (o *GetServProfServicesResp) SetContent(v []GetServProfServicesRespContent) { + o.Content = v +} + +func (o GetServProfServicesResp) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetServProfServicesResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsLastPage) { + toSerialize["isLastPage"] = o.IsLastPage + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + if !IsNil(o.IsFirstPage) { + toSerialize["isFirstPage"] = o.IsFirstPage + } + if !IsNil(o.PageSize) { + toSerialize["pageSize"] = o.PageSize + } + if !IsNil(o.PageNumber) { + toSerialize["pageNumber"] = o.PageNumber + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetServProfServicesResp) UnmarshalJSON(data []byte) (err error) { + varGetServProfServicesResp := _GetServProfServicesResp{} + + err = json.Unmarshal(data, &varGetServProfServicesResp) + + if err != nil { + return err + } + + *o = GetServProfServicesResp(varGetServProfServicesResp) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "isLastPage") + delete(additionalProperties, "totalCount") + delete(additionalProperties, "isFirstPage") + delete(additionalProperties, "pageSize") + delete(additionalProperties, "pageNumber") + delete(additionalProperties, "content") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetServProfServicesResp struct { + value *GetServProfServicesResp + isSet bool +} + +func (v NullableGetServProfServicesResp) Get() *GetServProfServicesResp { + return v.value +} + +func (v *NullableGetServProfServicesResp) Set(val *GetServProfServicesResp) { + v.value = val + v.isSet = true +} + +func (v NullableGetServProfServicesResp) IsSet() bool { + return v.isSet +} + +func (v *NullableGetServProfServicesResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetServProfServicesResp(val *GetServProfServicesResp) *NullableGetServProfServicesResp { + return &NullableGetServProfServicesResp{value: val, isSet: true} +} + +func (v NullableGetServProfServicesResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetServProfServicesResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_serv_prof_services_resp_content.go b/services/networkedgev1/model_get_serv_prof_services_resp_content.go new file mode 100644 index 00000000..5a36f520 --- /dev/null +++ b/services/networkedgev1/model_get_serv_prof_services_resp_content.go @@ -0,0 +1,931 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetServProfServicesRespContent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetServProfServicesRespContent{} + +// GetServProfServicesRespContent struct for GetServProfServicesRespContent +type GetServProfServicesRespContent struct { + Uuid *string `json:"uuid,omitempty"` + Name *string `json:"name,omitempty"` + AuthKeyLabel *string `json:"authKeyLabel,omitempty"` + ConnectionNameLabel *string `json:"connectionNameLabel,omitempty"` + RequiredRedundancy *bool `json:"requiredRedundancy,omitempty"` + AllowCustomSpeed *bool `json:"allowCustomSpeed,omitempty"` + SpeedBands []SpeedBand `json:"speedBands,omitempty"` + Metros *GetServProfServicesRespContentMetros `json:"metros,omitempty"` + CreatedDate *string `json:"createdDate,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + VlanSameAsPrimary *bool `json:"vlanSameAsPrimary,omitempty"` + TagType *string `json:"tagType,omitempty"` + CtagLabel *string `json:"ctagLabel,omitempty"` + ApiAvailable *bool `json:"apiAvailable,omitempty"` + SelfProfile *bool `json:"selfProfile,omitempty"` + ProfileEncapsulation *string `json:"profileEncapsulation,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + OrganizationName *string `json:"organizationName,omitempty"` + Private *bool `json:"private,omitempty"` + Features *GetServProfServicesRespContentfeatures `json:"features,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetServProfServicesRespContent GetServProfServicesRespContent + +// NewGetServProfServicesRespContent instantiates a new GetServProfServicesRespContent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetServProfServicesRespContent() *GetServProfServicesRespContent { + this := GetServProfServicesRespContent{} + return &this +} + +// NewGetServProfServicesRespContentWithDefaults instantiates a new GetServProfServicesRespContent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetServProfServicesRespContentWithDefaults() *GetServProfServicesRespContent { + this := GetServProfServicesRespContent{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *GetServProfServicesRespContent) SetUuid(v string) { + o.Uuid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GetServProfServicesRespContent) SetName(v string) { + o.Name = &v +} + +// GetAuthKeyLabel returns the AuthKeyLabel field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetAuthKeyLabel() string { + if o == nil || IsNil(o.AuthKeyLabel) { + var ret string + return ret + } + return *o.AuthKeyLabel +} + +// GetAuthKeyLabelOk returns a tuple with the AuthKeyLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetAuthKeyLabelOk() (*string, bool) { + if o == nil || IsNil(o.AuthKeyLabel) { + return nil, false + } + return o.AuthKeyLabel, true +} + +// HasAuthKeyLabel returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasAuthKeyLabel() bool { + if o != nil && !IsNil(o.AuthKeyLabel) { + return true + } + + return false +} + +// SetAuthKeyLabel gets a reference to the given string and assigns it to the AuthKeyLabel field. +func (o *GetServProfServicesRespContent) SetAuthKeyLabel(v string) { + o.AuthKeyLabel = &v +} + +// GetConnectionNameLabel returns the ConnectionNameLabel field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetConnectionNameLabel() string { + if o == nil || IsNil(o.ConnectionNameLabel) { + var ret string + return ret + } + return *o.ConnectionNameLabel +} + +// GetConnectionNameLabelOk returns a tuple with the ConnectionNameLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetConnectionNameLabelOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionNameLabel) { + return nil, false + } + return o.ConnectionNameLabel, true +} + +// HasConnectionNameLabel returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasConnectionNameLabel() bool { + if o != nil && !IsNil(o.ConnectionNameLabel) { + return true + } + + return false +} + +// SetConnectionNameLabel gets a reference to the given string and assigns it to the ConnectionNameLabel field. +func (o *GetServProfServicesRespContent) SetConnectionNameLabel(v string) { + o.ConnectionNameLabel = &v +} + +// GetRequiredRedundancy returns the RequiredRedundancy field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetRequiredRedundancy() bool { + if o == nil || IsNil(o.RequiredRedundancy) { + var ret bool + return ret + } + return *o.RequiredRedundancy +} + +// GetRequiredRedundancyOk returns a tuple with the RequiredRedundancy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetRequiredRedundancyOk() (*bool, bool) { + if o == nil || IsNil(o.RequiredRedundancy) { + return nil, false + } + return o.RequiredRedundancy, true +} + +// HasRequiredRedundancy returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasRequiredRedundancy() bool { + if o != nil && !IsNil(o.RequiredRedundancy) { + return true + } + + return false +} + +// SetRequiredRedundancy gets a reference to the given bool and assigns it to the RequiredRedundancy field. +func (o *GetServProfServicesRespContent) SetRequiredRedundancy(v bool) { + o.RequiredRedundancy = &v +} + +// GetAllowCustomSpeed returns the AllowCustomSpeed field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetAllowCustomSpeed() bool { + if o == nil || IsNil(o.AllowCustomSpeed) { + var ret bool + return ret + } + return *o.AllowCustomSpeed +} + +// GetAllowCustomSpeedOk returns a tuple with the AllowCustomSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetAllowCustomSpeedOk() (*bool, bool) { + if o == nil || IsNil(o.AllowCustomSpeed) { + return nil, false + } + return o.AllowCustomSpeed, true +} + +// HasAllowCustomSpeed returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasAllowCustomSpeed() bool { + if o != nil && !IsNil(o.AllowCustomSpeed) { + return true + } + + return false +} + +// SetAllowCustomSpeed gets a reference to the given bool and assigns it to the AllowCustomSpeed field. +func (o *GetServProfServicesRespContent) SetAllowCustomSpeed(v bool) { + o.AllowCustomSpeed = &v +} + +// GetSpeedBands returns the SpeedBands field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetSpeedBands() []SpeedBand { + if o == nil || IsNil(o.SpeedBands) { + var ret []SpeedBand + return ret + } + return o.SpeedBands +} + +// GetSpeedBandsOk returns a tuple with the SpeedBands field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetSpeedBandsOk() ([]SpeedBand, bool) { + if o == nil || IsNil(o.SpeedBands) { + return nil, false + } + return o.SpeedBands, true +} + +// HasSpeedBands returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasSpeedBands() bool { + if o != nil && !IsNil(o.SpeedBands) { + return true + } + + return false +} + +// SetSpeedBands gets a reference to the given []SpeedBand and assigns it to the SpeedBands field. +func (o *GetServProfServicesRespContent) SetSpeedBands(v []SpeedBand) { + o.SpeedBands = v +} + +// GetMetros returns the Metros field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetMetros() GetServProfServicesRespContentMetros { + if o == nil || IsNil(o.Metros) { + var ret GetServProfServicesRespContentMetros + return ret + } + return *o.Metros +} + +// GetMetrosOk returns a tuple with the Metros field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetMetrosOk() (*GetServProfServicesRespContentMetros, bool) { + if o == nil || IsNil(o.Metros) { + return nil, false + } + return o.Metros, true +} + +// HasMetros returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasMetros() bool { + if o != nil && !IsNil(o.Metros) { + return true + } + + return false +} + +// SetMetros gets a reference to the given GetServProfServicesRespContentMetros and assigns it to the Metros field. +func (o *GetServProfServicesRespContent) SetMetros(v GetServProfServicesRespContentMetros) { + o.Metros = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *GetServProfServicesRespContent) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *GetServProfServicesRespContent) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *GetServProfServicesRespContent) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetLastUpdatedBy returns the LastUpdatedBy field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetLastUpdatedBy() string { + if o == nil || IsNil(o.LastUpdatedBy) { + var ret string + return ret + } + return *o.LastUpdatedBy +} + +// GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetLastUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedBy) { + return nil, false + } + return o.LastUpdatedBy, true +} + +// HasLastUpdatedBy returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasLastUpdatedBy() bool { + if o != nil && !IsNil(o.LastUpdatedBy) { + return true + } + + return false +} + +// SetLastUpdatedBy gets a reference to the given string and assigns it to the LastUpdatedBy field. +func (o *GetServProfServicesRespContent) SetLastUpdatedBy(v string) { + o.LastUpdatedBy = &v +} + +// GetVlanSameAsPrimary returns the VlanSameAsPrimary field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetVlanSameAsPrimary() bool { + if o == nil || IsNil(o.VlanSameAsPrimary) { + var ret bool + return ret + } + return *o.VlanSameAsPrimary +} + +// GetVlanSameAsPrimaryOk returns a tuple with the VlanSameAsPrimary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetVlanSameAsPrimaryOk() (*bool, bool) { + if o == nil || IsNil(o.VlanSameAsPrimary) { + return nil, false + } + return o.VlanSameAsPrimary, true +} + +// HasVlanSameAsPrimary returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasVlanSameAsPrimary() bool { + if o != nil && !IsNil(o.VlanSameAsPrimary) { + return true + } + + return false +} + +// SetVlanSameAsPrimary gets a reference to the given bool and assigns it to the VlanSameAsPrimary field. +func (o *GetServProfServicesRespContent) SetVlanSameAsPrimary(v bool) { + o.VlanSameAsPrimary = &v +} + +// GetTagType returns the TagType field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetTagType() string { + if o == nil || IsNil(o.TagType) { + var ret string + return ret + } + return *o.TagType +} + +// GetTagTypeOk returns a tuple with the TagType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetTagTypeOk() (*string, bool) { + if o == nil || IsNil(o.TagType) { + return nil, false + } + return o.TagType, true +} + +// HasTagType returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasTagType() bool { + if o != nil && !IsNil(o.TagType) { + return true + } + + return false +} + +// SetTagType gets a reference to the given string and assigns it to the TagType field. +func (o *GetServProfServicesRespContent) SetTagType(v string) { + o.TagType = &v +} + +// GetCtagLabel returns the CtagLabel field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetCtagLabel() string { + if o == nil || IsNil(o.CtagLabel) { + var ret string + return ret + } + return *o.CtagLabel +} + +// GetCtagLabelOk returns a tuple with the CtagLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetCtagLabelOk() (*string, bool) { + if o == nil || IsNil(o.CtagLabel) { + return nil, false + } + return o.CtagLabel, true +} + +// HasCtagLabel returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasCtagLabel() bool { + if o != nil && !IsNil(o.CtagLabel) { + return true + } + + return false +} + +// SetCtagLabel gets a reference to the given string and assigns it to the CtagLabel field. +func (o *GetServProfServicesRespContent) SetCtagLabel(v string) { + o.CtagLabel = &v +} + +// GetApiAvailable returns the ApiAvailable field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetApiAvailable() bool { + if o == nil || IsNil(o.ApiAvailable) { + var ret bool + return ret + } + return *o.ApiAvailable +} + +// GetApiAvailableOk returns a tuple with the ApiAvailable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetApiAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.ApiAvailable) { + return nil, false + } + return o.ApiAvailable, true +} + +// HasApiAvailable returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasApiAvailable() bool { + if o != nil && !IsNil(o.ApiAvailable) { + return true + } + + return false +} + +// SetApiAvailable gets a reference to the given bool and assigns it to the ApiAvailable field. +func (o *GetServProfServicesRespContent) SetApiAvailable(v bool) { + o.ApiAvailable = &v +} + +// GetSelfProfile returns the SelfProfile field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetSelfProfile() bool { + if o == nil || IsNil(o.SelfProfile) { + var ret bool + return ret + } + return *o.SelfProfile +} + +// GetSelfProfileOk returns a tuple with the SelfProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetSelfProfileOk() (*bool, bool) { + if o == nil || IsNil(o.SelfProfile) { + return nil, false + } + return o.SelfProfile, true +} + +// HasSelfProfile returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasSelfProfile() bool { + if o != nil && !IsNil(o.SelfProfile) { + return true + } + + return false +} + +// SetSelfProfile gets a reference to the given bool and assigns it to the SelfProfile field. +func (o *GetServProfServicesRespContent) SetSelfProfile(v bool) { + o.SelfProfile = &v +} + +// GetProfileEncapsulation returns the ProfileEncapsulation field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetProfileEncapsulation() string { + if o == nil || IsNil(o.ProfileEncapsulation) { + var ret string + return ret + } + return *o.ProfileEncapsulation +} + +// GetProfileEncapsulationOk returns a tuple with the ProfileEncapsulation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetProfileEncapsulationOk() (*string, bool) { + if o == nil || IsNil(o.ProfileEncapsulation) { + return nil, false + } + return o.ProfileEncapsulation, true +} + +// HasProfileEncapsulation returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasProfileEncapsulation() bool { + if o != nil && !IsNil(o.ProfileEncapsulation) { + return true + } + + return false +} + +// SetProfileEncapsulation gets a reference to the given string and assigns it to the ProfileEncapsulation field. +func (o *GetServProfServicesRespContent) SetProfileEncapsulation(v string) { + o.ProfileEncapsulation = &v +} + +// GetAuthorizationKey returns the AuthorizationKey field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetAuthorizationKey() string { + if o == nil || IsNil(o.AuthorizationKey) { + var ret string + return ret + } + return *o.AuthorizationKey +} + +// GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetAuthorizationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthorizationKey) { + return nil, false + } + return o.AuthorizationKey, true +} + +// HasAuthorizationKey returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasAuthorizationKey() bool { + if o != nil && !IsNil(o.AuthorizationKey) { + return true + } + + return false +} + +// SetAuthorizationKey gets a reference to the given string and assigns it to the AuthorizationKey field. +func (o *GetServProfServicesRespContent) SetAuthorizationKey(v string) { + o.AuthorizationKey = &v +} + +// GetOrganizationName returns the OrganizationName field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetOrganizationName() string { + if o == nil || IsNil(o.OrganizationName) { + var ret string + return ret + } + return *o.OrganizationName +} + +// GetOrganizationNameOk returns a tuple with the OrganizationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetOrganizationNameOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationName) { + return nil, false + } + return o.OrganizationName, true +} + +// HasOrganizationName returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasOrganizationName() bool { + if o != nil && !IsNil(o.OrganizationName) { + return true + } + + return false +} + +// SetOrganizationName gets a reference to the given string and assigns it to the OrganizationName field. +func (o *GetServProfServicesRespContent) SetOrganizationName(v string) { + o.OrganizationName = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *GetServProfServicesRespContent) SetPrivate(v bool) { + o.Private = &v +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *GetServProfServicesRespContent) GetFeatures() GetServProfServicesRespContentfeatures { + if o == nil || IsNil(o.Features) { + var ret GetServProfServicesRespContentfeatures + return ret + } + return *o.Features +} + +// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContent) GetFeaturesOk() (*GetServProfServicesRespContentfeatures, bool) { + if o == nil || IsNil(o.Features) { + return nil, false + } + return o.Features, true +} + +// HasFeatures returns a boolean if a field has been set. +func (o *GetServProfServicesRespContent) HasFeatures() bool { + if o != nil && !IsNil(o.Features) { + return true + } + + return false +} + +// SetFeatures gets a reference to the given GetServProfServicesRespContentfeatures and assigns it to the Features field. +func (o *GetServProfServicesRespContent) SetFeatures(v GetServProfServicesRespContentfeatures) { + o.Features = &v +} + +func (o GetServProfServicesRespContent) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetServProfServicesRespContent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.AuthKeyLabel) { + toSerialize["authKeyLabel"] = o.AuthKeyLabel + } + if !IsNil(o.ConnectionNameLabel) { + toSerialize["connectionNameLabel"] = o.ConnectionNameLabel + } + if !IsNil(o.RequiredRedundancy) { + toSerialize["requiredRedundancy"] = o.RequiredRedundancy + } + if !IsNil(o.AllowCustomSpeed) { + toSerialize["allowCustomSpeed"] = o.AllowCustomSpeed + } + if !IsNil(o.SpeedBands) { + toSerialize["speedBands"] = o.SpeedBands + } + if !IsNil(o.Metros) { + toSerialize["metros"] = o.Metros + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.LastUpdatedBy) { + toSerialize["lastUpdatedBy"] = o.LastUpdatedBy + } + if !IsNil(o.VlanSameAsPrimary) { + toSerialize["vlanSameAsPrimary"] = o.VlanSameAsPrimary + } + if !IsNil(o.TagType) { + toSerialize["tagType"] = o.TagType + } + if !IsNil(o.CtagLabel) { + toSerialize["ctagLabel"] = o.CtagLabel + } + if !IsNil(o.ApiAvailable) { + toSerialize["apiAvailable"] = o.ApiAvailable + } + if !IsNil(o.SelfProfile) { + toSerialize["selfProfile"] = o.SelfProfile + } + if !IsNil(o.ProfileEncapsulation) { + toSerialize["profileEncapsulation"] = o.ProfileEncapsulation + } + if !IsNil(o.AuthorizationKey) { + toSerialize["authorizationKey"] = o.AuthorizationKey + } + if !IsNil(o.OrganizationName) { + toSerialize["organizationName"] = o.OrganizationName + } + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } + if !IsNil(o.Features) { + toSerialize["features"] = o.Features + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetServProfServicesRespContent) UnmarshalJSON(data []byte) (err error) { + varGetServProfServicesRespContent := _GetServProfServicesRespContent{} + + err = json.Unmarshal(data, &varGetServProfServicesRespContent) + + if err != nil { + return err + } + + *o = GetServProfServicesRespContent(varGetServProfServicesRespContent) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "name") + delete(additionalProperties, "authKeyLabel") + delete(additionalProperties, "connectionNameLabel") + delete(additionalProperties, "requiredRedundancy") + delete(additionalProperties, "allowCustomSpeed") + delete(additionalProperties, "speedBands") + delete(additionalProperties, "metros") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "lastUpdatedBy") + delete(additionalProperties, "vlanSameAsPrimary") + delete(additionalProperties, "tagType") + delete(additionalProperties, "ctagLabel") + delete(additionalProperties, "apiAvailable") + delete(additionalProperties, "selfProfile") + delete(additionalProperties, "profileEncapsulation") + delete(additionalProperties, "authorizationKey") + delete(additionalProperties, "organizationName") + delete(additionalProperties, "private") + delete(additionalProperties, "features") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetServProfServicesRespContent struct { + value *GetServProfServicesRespContent + isSet bool +} + +func (v NullableGetServProfServicesRespContent) Get() *GetServProfServicesRespContent { + return v.value +} + +func (v *NullableGetServProfServicesRespContent) Set(val *GetServProfServicesRespContent) { + v.value = val + v.isSet = true +} + +func (v NullableGetServProfServicesRespContent) IsSet() bool { + return v.isSet +} + +func (v *NullableGetServProfServicesRespContent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetServProfServicesRespContent(val *GetServProfServicesRespContent) *NullableGetServProfServicesRespContent { + return &NullableGetServProfServicesRespContent{value: val, isSet: true} +} + +func (v NullableGetServProfServicesRespContent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetServProfServicesRespContent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_serv_prof_services_resp_content_metros.go b/services/networkedgev1/model_get_serv_prof_services_resp_content_metros.go new file mode 100644 index 00000000..04cbad8a --- /dev/null +++ b/services/networkedgev1/model_get_serv_prof_services_resp_content_metros.go @@ -0,0 +1,302 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetServProfServicesRespContentMetros type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetServProfServicesRespContentMetros{} + +// GetServProfServicesRespContentMetros struct for GetServProfServicesRespContentMetros +type GetServProfServicesRespContentMetros struct { + Code *string `json:"code,omitempty"` + Name *string `json:"name,omitempty"` + Ibxs []string `json:"ibxs,omitempty"` + InTrail *bool `json:"inTrail,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetServProfServicesRespContentMetros GetServProfServicesRespContentMetros + +// NewGetServProfServicesRespContentMetros instantiates a new GetServProfServicesRespContentMetros object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetServProfServicesRespContentMetros() *GetServProfServicesRespContentMetros { + this := GetServProfServicesRespContentMetros{} + return &this +} + +// NewGetServProfServicesRespContentMetrosWithDefaults instantiates a new GetServProfServicesRespContentMetros object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetServProfServicesRespContentMetrosWithDefaults() *GetServProfServicesRespContentMetros { + this := GetServProfServicesRespContentMetros{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentMetros) GetCode() string { + if o == nil || IsNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentMetros) GetCodeOk() (*string, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentMetros) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *GetServProfServicesRespContentMetros) SetCode(v string) { + o.Code = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentMetros) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentMetros) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentMetros) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GetServProfServicesRespContentMetros) SetName(v string) { + o.Name = &v +} + +// GetIbxs returns the Ibxs field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentMetros) GetIbxs() []string { + if o == nil || IsNil(o.Ibxs) { + var ret []string + return ret + } + return o.Ibxs +} + +// GetIbxsOk returns a tuple with the Ibxs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentMetros) GetIbxsOk() ([]string, bool) { + if o == nil || IsNil(o.Ibxs) { + return nil, false + } + return o.Ibxs, true +} + +// HasIbxs returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentMetros) HasIbxs() bool { + if o != nil && !IsNil(o.Ibxs) { + return true + } + + return false +} + +// SetIbxs gets a reference to the given []string and assigns it to the Ibxs field. +func (o *GetServProfServicesRespContentMetros) SetIbxs(v []string) { + o.Ibxs = v +} + +// GetInTrail returns the InTrail field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentMetros) GetInTrail() bool { + if o == nil || IsNil(o.InTrail) { + var ret bool + return ret + } + return *o.InTrail +} + +// GetInTrailOk returns a tuple with the InTrail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentMetros) GetInTrailOk() (*bool, bool) { + if o == nil || IsNil(o.InTrail) { + return nil, false + } + return o.InTrail, true +} + +// HasInTrail returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentMetros) HasInTrail() bool { + if o != nil && !IsNil(o.InTrail) { + return true + } + + return false +} + +// SetInTrail gets a reference to the given bool and assigns it to the InTrail field. +func (o *GetServProfServicesRespContentMetros) SetInTrail(v bool) { + o.InTrail = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentMetros) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentMetros) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentMetros) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *GetServProfServicesRespContentMetros) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o GetServProfServicesRespContentMetros) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetServProfServicesRespContentMetros) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Ibxs) { + toSerialize["ibxs"] = o.Ibxs + } + if !IsNil(o.InTrail) { + toSerialize["inTrail"] = o.InTrail + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetServProfServicesRespContentMetros) UnmarshalJSON(data []byte) (err error) { + varGetServProfServicesRespContentMetros := _GetServProfServicesRespContentMetros{} + + err = json.Unmarshal(data, &varGetServProfServicesRespContentMetros) + + if err != nil { + return err + } + + *o = GetServProfServicesRespContentMetros(varGetServProfServicesRespContentMetros) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "name") + delete(additionalProperties, "ibxs") + delete(additionalProperties, "inTrail") + delete(additionalProperties, "displayName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetServProfServicesRespContentMetros struct { + value *GetServProfServicesRespContentMetros + isSet bool +} + +func (v NullableGetServProfServicesRespContentMetros) Get() *GetServProfServicesRespContentMetros { + return v.value +} + +func (v *NullableGetServProfServicesRespContentMetros) Set(val *GetServProfServicesRespContentMetros) { + v.value = val + v.isSet = true +} + +func (v NullableGetServProfServicesRespContentMetros) IsSet() bool { + return v.isSet +} + +func (v *NullableGetServProfServicesRespContentMetros) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetServProfServicesRespContentMetros(val *GetServProfServicesRespContentMetros) *NullableGetServProfServicesRespContentMetros { + return &NullableGetServProfServicesRespContentMetros{value: val, isSet: true} +} + +func (v NullableGetServProfServicesRespContentMetros) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetServProfServicesRespContentMetros) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_serv_prof_services_resp_contentfeatures.go b/services/networkedgev1/model_get_serv_prof_services_resp_contentfeatures.go new file mode 100644 index 00000000..fab025eb --- /dev/null +++ b/services/networkedgev1/model_get_serv_prof_services_resp_contentfeatures.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetServProfServicesRespContentfeatures type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetServProfServicesRespContentfeatures{} + +// GetServProfServicesRespContentfeatures struct for GetServProfServicesRespContentfeatures +type GetServProfServicesRespContentfeatures struct { + CloudReach *bool `json:"cloudReach,omitempty"` + TestProfile *bool `json:"testProfile,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetServProfServicesRespContentfeatures GetServProfServicesRespContentfeatures + +// NewGetServProfServicesRespContentfeatures instantiates a new GetServProfServicesRespContentfeatures object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetServProfServicesRespContentfeatures() *GetServProfServicesRespContentfeatures { + this := GetServProfServicesRespContentfeatures{} + return &this +} + +// NewGetServProfServicesRespContentfeaturesWithDefaults instantiates a new GetServProfServicesRespContentfeatures object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetServProfServicesRespContentfeaturesWithDefaults() *GetServProfServicesRespContentfeatures { + this := GetServProfServicesRespContentfeatures{} + return &this +} + +// GetCloudReach returns the CloudReach field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentfeatures) GetCloudReach() bool { + if o == nil || IsNil(o.CloudReach) { + var ret bool + return ret + } + return *o.CloudReach +} + +// GetCloudReachOk returns a tuple with the CloudReach field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentfeatures) GetCloudReachOk() (*bool, bool) { + if o == nil || IsNil(o.CloudReach) { + return nil, false + } + return o.CloudReach, true +} + +// HasCloudReach returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentfeatures) HasCloudReach() bool { + if o != nil && !IsNil(o.CloudReach) { + return true + } + + return false +} + +// SetCloudReach gets a reference to the given bool and assigns it to the CloudReach field. +func (o *GetServProfServicesRespContentfeatures) SetCloudReach(v bool) { + o.CloudReach = &v +} + +// GetTestProfile returns the TestProfile field value if set, zero value otherwise. +func (o *GetServProfServicesRespContentfeatures) GetTestProfile() bool { + if o == nil || IsNil(o.TestProfile) { + var ret bool + return ret + } + return *o.TestProfile +} + +// GetTestProfileOk returns a tuple with the TestProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetServProfServicesRespContentfeatures) GetTestProfileOk() (*bool, bool) { + if o == nil || IsNil(o.TestProfile) { + return nil, false + } + return o.TestProfile, true +} + +// HasTestProfile returns a boolean if a field has been set. +func (o *GetServProfServicesRespContentfeatures) HasTestProfile() bool { + if o != nil && !IsNil(o.TestProfile) { + return true + } + + return false +} + +// SetTestProfile gets a reference to the given bool and assigns it to the TestProfile field. +func (o *GetServProfServicesRespContentfeatures) SetTestProfile(v bool) { + o.TestProfile = &v +} + +func (o GetServProfServicesRespContentfeatures) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetServProfServicesRespContentfeatures) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CloudReach) { + toSerialize["cloudReach"] = o.CloudReach + } + if !IsNil(o.TestProfile) { + toSerialize["testProfile"] = o.TestProfile + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetServProfServicesRespContentfeatures) UnmarshalJSON(data []byte) (err error) { + varGetServProfServicesRespContentfeatures := _GetServProfServicesRespContentfeatures{} + + err = json.Unmarshal(data, &varGetServProfServicesRespContentfeatures) + + if err != nil { + return err + } + + *o = GetServProfServicesRespContentfeatures(varGetServProfServicesRespContentfeatures) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cloudReach") + delete(additionalProperties, "testProfile") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetServProfServicesRespContentfeatures struct { + value *GetServProfServicesRespContentfeatures + isSet bool +} + +func (v NullableGetServProfServicesRespContentfeatures) Get() *GetServProfServicesRespContentfeatures { + return v.value +} + +func (v *NullableGetServProfServicesRespContentfeatures) Set(val *GetServProfServicesRespContentfeatures) { + v.value = val + v.isSet = true +} + +func (v NullableGetServProfServicesRespContentfeatures) IsSet() bool { + return v.isSet +} + +func (v *NullableGetServProfServicesRespContentfeatures) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetServProfServicesRespContentfeatures(val *GetServProfServicesRespContentfeatures) *NullableGetServProfServicesRespContentfeatures { + return &NullableGetServProfServicesRespContentfeatures{value: val, isSet: true} +} + +func (v NullableGetServProfServicesRespContentfeatures) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetServProfServicesRespContentfeatures) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_ssh_user_using_get_404_response.go b/services/networkedgev1/model_get_ssh_user_using_get_404_response.go new file mode 100644 index 00000000..c503bc3c --- /dev/null +++ b/services/networkedgev1/model_get_ssh_user_using_get_404_response.go @@ -0,0 +1,363 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// GetSshUserUsingGET404Response the model 'GetSshUserUsingGET404Response' +type GetSshUserUsingGET404Response string + +// List of getSshUserUsingGET_404_response +const ( + GETSSHUSERUSINGGET404RESPONSE_INTERNAL_SERVER_ERROR GetSshUserUsingGET404Response = "INTERNAL_SERVER_ERROR" + GETSSHUSERUSINGGET404RESPONSE_INVALID_JSON_FORMAT GetSshUserUsingGET404Response = "INVALID_JSON_FORMAT" + GETSSHUSERUSINGGET404RESPONSE_RESOURCE_NOT_FOUND GetSshUserUsingGET404Response = "RESOURCE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_UNAUTHORIZED_USER GetSshUserUsingGET404Response = "UNAUTHORIZED_USER" + GETSSHUSERUSINGGET404RESPONSE_INVALID_REQUEST_FORMAT GetSshUserUsingGET404Response = "INVALID_REQUEST_FORMAT" + GETSSHUSERUSINGGET404RESPONSE_ZONE_NOT_FOUND GetSshUserUsingGET404Response = "ZONE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_SOURCE_ZONE_NOT_FOUND GetSshUserUsingGET404Response = "SOURCE_ZONE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_DESTINATION_ZONE_NOT_FOUND GetSshUserUsingGET404Response = "DESTINATION_ZONE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_ZONES_NOT_PART_SAME_DEVICE GetSshUserUsingGET404Response = "ZONES_NOT_PART_SAME_DEVICE" + GETSSHUSERUSINGGET404RESPONSE_CONNECTION_ALREADY_PART_OF_ZONE GetSshUserUsingGET404Response = "CONNECTION_ALREADY_PART_OF_ZONE" + GETSSHUSERUSINGGET404RESPONSE_ZONE_PART_OF_FIREWALL GetSshUserUsingGET404Response = "ZONE_PART_OF_FIREWALL" + GETSSHUSERUSINGGET404RESPONSE_CONNECTION_NOT_AVAILABLE GetSshUserUsingGET404Response = "CONNECTION_NOT_AVAILABLE" + GETSSHUSERUSINGGET404RESPONSE_ZONE_ALREADY_EXISTS GetSshUserUsingGET404Response = "ZONE_ALREADY_EXISTS" + GETSSHUSERUSINGGET404RESPONSE_FIREWALL_NOT_FOUND GetSshUserUsingGET404Response = "FIREWALL_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_FIREWALL_ALREADY_EXISTS GetSshUserUsingGET404Response = "FIREWALL_ALREADY_EXISTS" + GETSSHUSERUSINGGET404RESPONSE_RULE_ALREADY_EXISTS GetSshUserUsingGET404Response = "RULE_ALREADY_EXISTS" + GETSSHUSERUSINGGET404RESPONSE_RULE_NOT_FOUND GetSshUserUsingGET404Response = "RULE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_RULE_NOT_PART_OF_FIREWALL GetSshUserUsingGET404Response = "RULE_NOT_PART_OF_FIREWALL" + GETSSHUSERUSINGGET404RESPONSE_VIRTUAL_DEVICE_NOT_FOUND GetSshUserUsingGET404Response = "VIRTUAL_DEVICE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VIRTUAL_DEVICE_NOT_PROVISIONED GetSshUserUsingGET404Response = "VIRTUAL_DEVICE_NOT_PROVISIONED" + GETSSHUSERUSINGGET404RESPONSE_DEVICE_LICENSE_NOT_REGISTERED GetSshUserUsingGET404Response = "DEVICE_LICENSE_NOT_REGISTERED" + GETSSHUSERUSINGGET404RESPONSE_MGMT_INTERFACE_NOT_AVAILABLE GetSshUserUsingGET404Response = "MGMT_INTERFACE_NOT_AVAILABLE" + GETSSHUSERUSINGGET404RESPONSE_INTERFACE_NOT_AVAILABLE GetSshUserUsingGET404Response = "INTERFACE_NOT_AVAILABLE" + GETSSHUSERUSINGGET404RESPONSE_INTERFACE_NOT_PROVISIONED GetSshUserUsingGET404Response = "INTERFACE_NOT_PROVISIONED" + GETSSHUSERUSINGGET404RESPONSE_NAT_CONFIG_ALREADY_EXISTS GetSshUserUsingGET404Response = "NAT_CONFIG_ALREADY_EXISTS" + GETSSHUSERUSINGGET404RESPONSE_NAT_CONFIG_NOT_FOUND GetSshUserUsingGET404Response = "NAT_CONFIG_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_ADD_NAT_CONFIG_FAILED GetSshUserUsingGET404Response = "ADD_NAT_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_EDIT_NAT_CONFIG_FAILED GetSshUserUsingGET404Response = "EDIT_NAT_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_REMOVE_NAT_CONFIG_FAILED GetSshUserUsingGET404Response = "REMOVE_NAT_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_NAT_POOL_TYPE_CHANGE_DISABLED GetSshUserUsingGET404Response = "NAT_POOL_TYPE_CHANGE_DISABLED" + GETSSHUSERUSINGGET404RESPONSE_INVALID_ACTION_TYPE GetSshUserUsingGET404Response = "INVALID_ACTION_TYPE" + GETSSHUSERUSINGGET404RESPONSE_INVALID_ADD_ACTION GetSshUserUsingGET404Response = "INVALID_ADD_ACTION" + GETSSHUSERUSINGGET404RESPONSE_INVALID_MODIFY_ACTION GetSshUserUsingGET404Response = "INVALID_MODIFY_ACTION" + GETSSHUSERUSINGGET404RESPONSE_INVALID_STATIC_NAT_UUID GetSshUserUsingGET404Response = "INVALID_STATIC_NAT_UUID" + GETSSHUSERUSINGGET404RESPONSE_OVERLAP_IP_CONFLICT GetSshUserUsingGET404Response = "OVERLAP_IP_CONFLICT" + GETSSHUSERUSINGGET404RESPONSE_CONNECTION_NOT_FOUND GetSshUserUsingGET404Response = "CONNECTION_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_BGP_NOT_FOUND GetSshUserUsingGET404Response = "BGP_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_INVALID_IP_ADDRESS GetSshUserUsingGET404Response = "INVALID_IP_ADDRESS" + GETSSHUSERUSINGGET404RESPONSE_INVALID_NETWORK_SERVICE_TYPE GetSshUserUsingGET404Response = "INVALID_NETWORK_SERVICE_TYPE" + GETSSHUSERUSINGGET404RESPONSE_ERROR_DELETING_CONNECTION GetSshUserUsingGET404Response = "ERROR_DELETING_CONNECTION" + GETSSHUSERUSINGGET404RESPONSE_IBX_NOT_FOUND GetSshUserUsingGET404Response = "IBX_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_PRICE_SERVICE_REQUEST_INVALID GetSshUserUsingGET404Response = "PRICE_SERVICE_REQUEST_INVALID" + GETSSHUSERUSINGGET404RESPONSE_PRICE_SERVICE_REQUEST_FAILED GetSshUserUsingGET404Response = "PRICE_SERVICE_REQUEST_FAILED" + GETSSHUSERUSINGGET404RESPONSE_BGP_CONFIG_NOT_FOUND GetSshUserUsingGET404Response = "BGP_CONFIG_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_BGP_NEIGHBOR_INFO_NOT_FOUND GetSshUserUsingGET404Response = "BGP_NEIGHBOR_INFO_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_LOCAL_IP_ADDRESS_NOT_IN_RANGE GetSshUserUsingGET404Response = "LOCAL_IP_ADDRESS_NOT_IN_RANGE" + GETSSHUSERUSINGGET404RESPONSE_REMOTE_IP_ADDRESS_NOT_IN_RANGE GetSshUserUsingGET404Response = "REMOTE_IP_ADDRESS_NOT_IN_RANGE" + GETSSHUSERUSINGGET404RESPONSE_CONNECTION_DEVICE_NOT_FOUND GetSshUserUsingGET404Response = "CONNECTION_DEVICE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_CONNECTION_NOT_PROVISIONED GetSshUserUsingGET404Response = "CONNECTION_NOT_PROVISIONED" + GETSSHUSERUSINGGET404RESPONSE_BROADCAST_ADDRESS_NOT_ALLOWED GetSshUserUsingGET404Response = "BROADCAST_ADDRESS_NOT_ALLOWED" + GETSSHUSERUSINGGET404RESPONSE_NETWORK_ADDRESS_NOT_ALLOWED GetSshUserUsingGET404Response = "NETWORK_ADDRESS_NOT_ALLOWED" + GETSSHUSERUSINGGET404RESPONSE_OVERLAP_LOCAL_IP_ADDRESS GetSshUserUsingGET404Response = "OVERLAP_LOCAL_IP_ADDRESS" + GETSSHUSERUSINGGET404RESPONSE_DATA_INTERFACE_NOT_AVAILABLE GetSshUserUsingGET404Response = "DATA_INTERFACE_NOT_AVAILABLE" + GETSSHUSERUSINGGET404RESPONSE_ADD_BGP_CONFIG_FAILED GetSshUserUsingGET404Response = "ADD_BGP_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_REMOVE_BGP_CONFIG_FAILED GetSshUserUsingGET404Response = "REMOVE_BGP_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_INTERFACE_NOT_FOUND GetSshUserUsingGET404Response = "INTERFACE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_UPDATE_BGP_CONFIG_FAILED GetSshUserUsingGET404Response = "UPDATE_BGP_CONFIG_FAILED" + GETSSHUSERUSINGGET404RESPONSE_EXISTING_CONNECTION_BGP GetSshUserUsingGET404Response = "EXISTING_CONNECTION_BGP" + GETSSHUSERUSINGGET404RESPONSE_BGP_EXISTING_NAT_SERVICES GetSshUserUsingGET404Response = "BGP_EXISTING_NAT_SERVICES" + GETSSHUSERUSINGGET404RESPONSE_BGP_EXISTING_FIREWALL_SERVICES GetSshUserUsingGET404Response = "BGP_EXISTING_FIREWALL_SERVICES" + GETSSHUSERUSINGGET404RESPONSE_BGP_UPDATE_NOT_ALLOWED GetSshUserUsingGET404Response = "BGP_UPDATE_NOT_ALLOWED" + GETSSHUSERUSINGGET404RESPONSE_BGP_EXISTING_VPN_SERVICES GetSshUserUsingGET404Response = "BGP_EXISTING_VPN_SERVICES" + GETSSHUSERUSINGGET404RESPONSE_REMOTE_LOCAL_SAME_IP_ADDRESS GetSshUserUsingGET404Response = "REMOTE_LOCAL_SAME_IP_ADDRESS" + GETSSHUSERUSINGGET404RESPONSE_BGP_FAILED_ASN_UPDATE GetSshUserUsingGET404Response = "BGP_FAILED_ASN_UPDATE" + GETSSHUSERUSINGGET404RESPONSE_BGP_FAILED_INTERFACE_DESC GetSshUserUsingGET404Response = "BGP_FAILED_INTERFACE_DESC" + GETSSHUSERUSINGGET404RESPONSE_BGP_NSO_FAILED_FETCH GetSshUserUsingGET404Response = "BGP_NSO_FAILED_FETCH" + GETSSHUSERUSINGGET404RESPONSE_BGP_NSO_FAILED_UPDATE GetSshUserUsingGET404Response = "BGP_NSO_FAILED_UPDATE" + GETSSHUSERUSINGGET404RESPONSE_BGP_FAILED_VPN_UPDATE GetSshUserUsingGET404Response = "BGP_FAILED_VPN_UPDATE" + GETSSHUSERUSINGGET404RESPONSE_BGP_RETRY_FAILED GetSshUserUsingGET404Response = "BGP_RETRY_FAILED" + GETSSHUSERUSINGGET404RESPONSE_BGP_NOT_SUPPORTED GetSshUserUsingGET404Response = "BGP_NOT_SUPPORTED" + GETSSHUSERUSINGGET404RESPONSE_BGP_MULTI_ASN_NOT_SUPPORTED GetSshUserUsingGET404Response = "BGP_MULTI_ASN_NOT_SUPPORTED" + GETSSHUSERUSINGGET404RESPONSE_VPN_NAME_ALREADY_IN_USE GetSshUserUsingGET404Response = "VPN_NAME_ALREADY_IN_USE" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_NOT_FOUND GetSshUserUsingGET404Response = "VPN_DEVICE_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_CUST_ORG_MISMATCH GetSshUserUsingGET404Response = "VPN_DEVICE_CUST_ORG_MISMATCH" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_NOT_REGISTERED GetSshUserUsingGET404Response = "VPN_DEVICE_NOT_REGISTERED" + GETSSHUSERUSINGGET404RESPONSE_VPN_NO_CONFIGURED_CLOUD_BGP_FOUND GetSshUserUsingGET404Response = "VPN_NO_CONFIGURED_CLOUD_BGP_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_ASN_NOT_CONFIGURED GetSshUserUsingGET404Response = "VPN_DEVICE_ASN_NOT_CONFIGURED" + GETSSHUSERUSINGGET404RESPONSE_VPN_MATCHING_ASN GetSshUserUsingGET404Response = "VPN_MATCHING_ASN" + GETSSHUSERUSINGGET404RESPONSE_VPN_LIMIT_EXCEEDED GetSshUserUsingGET404Response = "VPN_LIMIT_EXCEEDED" + GETSSHUSERUSINGGET404RESPONSE_VPN_NO_INTERFACES_FOUND GetSshUserUsingGET404Response = "VPN_NO_INTERFACES_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VPN_SSH_INTERFACE_ID_NOT_FOUND GetSshUserUsingGET404Response = "VPN_SSH_INTERFACE_ID_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VPN_INVALID_SSH_INTERFACE_ID GetSshUserUsingGET404Response = "VPN_INVALID_SSH_INTERFACE_ID" + GETSSHUSERUSINGGET404RESPONSE_VPN_CONFIG_NOT_FOUND GetSshUserUsingGET404Response = "VPN_CONFIG_NOT_FOUND" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_CREATE_TRANSIENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_CREATE_TRANSIENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_CREATE_PERMANENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_CREATE_PERMANENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_DELETE_TRANSIENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_DELETE_TRANSIENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_DELETE_PERMANENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_DELETE_PERMANENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_PEER_IP_ALREADY_IN_USE GetSshUserUsingGET404Response = "VPN_PEER_IP_ALREADY_IN_USE" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_MISSING_IPSEC_PACKAGE GetSshUserUsingGET404Response = "VPN_DEVICE_MISSING_IPSEC_PACKAGE" + GETSSHUSERUSINGGET404RESPONSE_VPN_INVALID_STATUS_LIST GetSshUserUsingGET404Response = "VPN_INVALID_STATUS_LIST" + GETSSHUSERUSINGGET404RESPONSE_VPN_RESTRICTED_ASN GetSshUserUsingGET404Response = "VPN_RESTRICTED_ASN" + GETSSHUSERUSINGGET404RESPONSE_VPN_UNAUTHORIZED_ACCESS GetSshUserUsingGET404Response = "VPN_UNAUTHORIZED_ACCESS" + GETSSHUSERUSINGGET404RESPONSE_VPN_ALREADY_DELETED GetSshUserUsingGET404Response = "VPN_ALREADY_DELETED" + GETSSHUSERUSINGGET404RESPONSE_VPN_RESTRICTED_IP_ADDRESS GetSshUserUsingGET404Response = "VPN_RESTRICTED_IP_ADDRESS" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_UPDATE_TRANSIENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_UPDATE_TRANSIENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_NSO_UPDATE_PERMANENT_FAILURE GetSshUserUsingGET404Response = "VPN_NSO_UPDATE_PERMANENT_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_VPN_IN_PROVISIONING_STATE GetSshUserUsingGET404Response = "VPN_IN_PROVISIONING_STATE" + GETSSHUSERUSINGGET404RESPONSE_VPN_TUNNEL_IP_OVERLAPS_DATA_BGP GetSshUserUsingGET404Response = "VPN_TUNNEL_IP_OVERLAPS_DATA_BGP" + GETSSHUSERUSINGGET404RESPONSE_VPN_TUNNEL_IP_OVERLAP GetSshUserUsingGET404Response = "VPN_TUNNEL_IP_OVERLAP" + GETSSHUSERUSINGGET404RESPONSE_VPN_REMOTE_IP_SAME_AS_EXISTING_DATA_BGP GetSshUserUsingGET404Response = "VPN_REMOTE_IP_SAME_AS_EXISTING_DATA_BGP" + GETSSHUSERUSINGGET404RESPONSE_VPN_REMOTE_IP_ALREADY_IN_USE GetSshUserUsingGET404Response = "VPN_REMOTE_IP_ALREADY_IN_USE" + GETSSHUSERUSINGGET404RESPONSE_VPN_REMOTE_IP_INVALID_FIRST_OCTET GetSshUserUsingGET404Response = "VPN_REMOTE_IP_INVALID_FIRST_OCTET" + GETSSHUSERUSINGGET404RESPONSE_VPN_TUNNEL_IP_INVALID_FIRST_OCTET GetSshUserUsingGET404Response = "VPN_TUNNEL_IP_INVALID_FIRST_OCTET" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_SSH_NOT_CONFIGURED GetSshUserUsingGET404Response = "VPN_DEVICE_SSH_NOT_CONFIGURED" + GETSSHUSERUSINGGET404RESPONSE_VPN_HA_SECONDARY_REQUEST_REQUIRED GetSshUserUsingGET404Response = "VPN_HA_SECONDARY_REQUEST_REQUIRED" + GETSSHUSERUSINGGET404RESPONSE_VPN_HA_SECONDARY_DEVICE_REQUIRED GetSshUserUsingGET404Response = "VPN_HA_SECONDARY_DEVICE_REQUIRED" + GETSSHUSERUSINGGET404RESPONSE_VPN_HA_ROLLED_BACK GetSshUserUsingGET404Response = "VPN_HA_ROLLED_BACK" + GETSSHUSERUSINGGET404RESPONSE_VPN_HA_REDUNDANT_VPN_DELETED GetSshUserUsingGET404Response = "VPN_HA_REDUNDANT_VPN_DELETED" + GETSSHUSERUSINGGET404RESPONSE_VPN_STATUS_UPDATE_FAILED GetSshUserUsingGET404Response = "VPN_STATUS_UPDATE_FAILED" + GETSSHUSERUSINGGET404RESPONSE_VPN_STATUS_UPDATE_PROCESS_FAILED GetSshUserUsingGET404Response = "VPN_STATUS_UPDATE_PROCESS_FAILED" + GETSSHUSERUSINGGET404RESPONSE_VPN_DEVICE_CLOUD_SEQ_ID_NOT_CONFIGURED GetSshUserUsingGET404Response = "VPN_DEVICE_CLOUD_SEQ_ID_NOT_CONFIGURED" + GETSSHUSERUSINGGET404RESPONSE_SSH_CREATE_USER_FAILED GetSshUserUsingGET404Response = "SSH_CREATE_USER_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_DELETE_USER_FAILED GetSshUserUsingGET404Response = "SSH_DELETE_USER_FAILED" + GETSSHUSERUSINGGET404RESPONSE_TACACS_GET_USERS_FAILED GetSshUserUsingGET404Response = "TACACS_GET_USERS_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_GET_USER_FAILED GetSshUserUsingGET404Response = "SSH_GET_USER_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_UPDATE_USER_FAILED GetSshUserUsingGET404Response = "SSH_UPDATE_USER_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_REPLACE_DEVICE_ASSOCIATION_FAILED GetSshUserUsingGET404Response = "SSH_REPLACE_DEVICE_ASSOCIATION_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_APPEND_DEVICE_ASSOCIATION_FAILED GetSshUserUsingGET404Response = "SSH_APPEND_DEVICE_ASSOCIATION_FAILED" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_ALREADY_EXISTS GetSshUserUsingGET404Response = "SSH_USER_ALREADY_EXISTS" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_PARTIAL_FAILURE GetSshUserUsingGET404Response = "SSH_USER_PARTIAL_FAILURE" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_SERVICE_NOT_SUPPORTED GetSshUserUsingGET404Response = "SSH_USER_SERVICE_NOT_SUPPORTED" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_UNAUTHORIZED_ACCESS GetSshUserUsingGET404Response = "SSH_USER_UNAUTHORIZED_ACCESS" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_DELETE_FAILED_ASSOCIATIONS_EXIST GetSshUserUsingGET404Response = "SSH_USER_DELETE_FAILED_ASSOCIATIONS_EXIST" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_DEVICE_NOT_REGISTERED GetSshUserUsingGET404Response = "SSH_USER_DEVICE_NOT_REGISTERED" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_DEVICE_STATE_NOT_VALID GetSshUserUsingGET404Response = "SSH_USER_DEVICE_STATE_NOT_VALID" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_PER_DEVICE_LIMIT_EXCEEDED GetSshUserUsingGET404Response = "SSH_USER_PER_DEVICE_LIMIT_EXCEEDED" + GETSSHUSERUSINGGET404RESPONSE_SSH_USER_DEVICE_IP_ADDRESS_NOT_SET GetSshUserUsingGET404Response = "SSH_USER_DEVICE_IP_ADDRESS_NOT_SET" + GETSSHUSERUSINGGET404RESPONSE_UNABLE_TO_GET_DEVICE_COUNT GetSshUserUsingGET404Response = "UNABLE_TO_GET_DEVICE_COUNT" +) + +// All allowed values of GetSshUserUsingGET404Response enum +var AllowedGetSshUserUsingGET404ResponseEnumValues = []GetSshUserUsingGET404Response{ + "INTERNAL_SERVER_ERROR", + "INVALID_JSON_FORMAT", + "RESOURCE_NOT_FOUND", + "UNAUTHORIZED_USER", + "INVALID_REQUEST_FORMAT", + "ZONE_NOT_FOUND", + "SOURCE_ZONE_NOT_FOUND", + "DESTINATION_ZONE_NOT_FOUND", + "ZONES_NOT_PART_SAME_DEVICE", + "CONNECTION_ALREADY_PART_OF_ZONE", + "ZONE_PART_OF_FIREWALL", + "CONNECTION_NOT_AVAILABLE", + "ZONE_ALREADY_EXISTS", + "FIREWALL_NOT_FOUND", + "FIREWALL_ALREADY_EXISTS", + "RULE_ALREADY_EXISTS", + "RULE_NOT_FOUND", + "RULE_NOT_PART_OF_FIREWALL", + "VIRTUAL_DEVICE_NOT_FOUND", + "VIRTUAL_DEVICE_NOT_PROVISIONED", + "DEVICE_LICENSE_NOT_REGISTERED", + "MGMT_INTERFACE_NOT_AVAILABLE", + "INTERFACE_NOT_AVAILABLE", + "INTERFACE_NOT_PROVISIONED", + "NAT_CONFIG_ALREADY_EXISTS", + "NAT_CONFIG_NOT_FOUND", + "ADD_NAT_CONFIG_FAILED", + "EDIT_NAT_CONFIG_FAILED", + "REMOVE_NAT_CONFIG_FAILED", + "NAT_POOL_TYPE_CHANGE_DISABLED", + "INVALID_ACTION_TYPE", + "INVALID_ADD_ACTION", + "INVALID_MODIFY_ACTION", + "INVALID_STATIC_NAT_UUID", + "OVERLAP_IP_CONFLICT", + "CONNECTION_NOT_FOUND", + "BGP_NOT_FOUND", + "INVALID_IP_ADDRESS", + "INVALID_NETWORK_SERVICE_TYPE", + "ERROR_DELETING_CONNECTION", + "IBX_NOT_FOUND", + "PRICE_SERVICE_REQUEST_INVALID", + "PRICE_SERVICE_REQUEST_FAILED", + "BGP_CONFIG_NOT_FOUND", + "BGP_NEIGHBOR_INFO_NOT_FOUND", + "LOCAL_IP_ADDRESS_NOT_IN_RANGE", + "REMOTE_IP_ADDRESS_NOT_IN_RANGE", + "CONNECTION_DEVICE_NOT_FOUND", + "CONNECTION_NOT_PROVISIONED", + "BROADCAST_ADDRESS_NOT_ALLOWED", + "NETWORK_ADDRESS_NOT_ALLOWED", + "OVERLAP_LOCAL_IP_ADDRESS", + "DATA_INTERFACE_NOT_AVAILABLE", + "ADD_BGP_CONFIG_FAILED", + "REMOVE_BGP_CONFIG_FAILED", + "INTERFACE_NOT_FOUND", + "UPDATE_BGP_CONFIG_FAILED", + "EXISTING_CONNECTION_BGP", + "BGP_EXISTING_NAT_SERVICES", + "BGP_EXISTING_FIREWALL_SERVICES", + "BGP_UPDATE_NOT_ALLOWED", + "BGP_EXISTING_VPN_SERVICES", + "REMOTE_LOCAL_SAME_IP_ADDRESS", + "BGP_FAILED_ASN_UPDATE", + "BGP_FAILED_INTERFACE_DESC", + "BGP_NSO_FAILED_FETCH", + "BGP_NSO_FAILED_UPDATE", + "BGP_FAILED_VPN_UPDATE", + "BGP_RETRY_FAILED", + "BGP_NOT_SUPPORTED", + "BGP_MULTI_ASN_NOT_SUPPORTED", + "VPN_NAME_ALREADY_IN_USE", + "VPN_DEVICE_NOT_FOUND", + "VPN_DEVICE_CUST_ORG_MISMATCH", + "VPN_DEVICE_NOT_REGISTERED", + "VPN_NO_CONFIGURED_CLOUD_BGP_FOUND", + "VPN_DEVICE_ASN_NOT_CONFIGURED", + "VPN_MATCHING_ASN", + "VPN_LIMIT_EXCEEDED", + "VPN_NO_INTERFACES_FOUND", + "VPN_SSH_INTERFACE_ID_NOT_FOUND", + "VPN_INVALID_SSH_INTERFACE_ID", + "VPN_CONFIG_NOT_FOUND", + "VPN_NSO_CREATE_TRANSIENT_FAILURE", + "VPN_NSO_CREATE_PERMANENT_FAILURE", + "VPN_NSO_DELETE_TRANSIENT_FAILURE", + "VPN_NSO_DELETE_PERMANENT_FAILURE", + "VPN_PEER_IP_ALREADY_IN_USE", + "VPN_DEVICE_MISSING_IPSEC_PACKAGE", + "VPN_INVALID_STATUS_LIST", + "VPN_RESTRICTED_ASN", + "VPN_UNAUTHORIZED_ACCESS", + "VPN_ALREADY_DELETED", + "VPN_RESTRICTED_IP_ADDRESS", + "VPN_NSO_UPDATE_TRANSIENT_FAILURE", + "VPN_NSO_UPDATE_PERMANENT_FAILURE", + "VPN_IN_PROVISIONING_STATE", + "VPN_TUNNEL_IP_OVERLAPS_DATA_BGP", + "VPN_TUNNEL_IP_OVERLAP", + "VPN_REMOTE_IP_SAME_AS_EXISTING_DATA_BGP", + "VPN_REMOTE_IP_ALREADY_IN_USE", + "VPN_REMOTE_IP_INVALID_FIRST_OCTET", + "VPN_TUNNEL_IP_INVALID_FIRST_OCTET", + "VPN_DEVICE_SSH_NOT_CONFIGURED", + "VPN_HA_SECONDARY_REQUEST_REQUIRED", + "VPN_HA_SECONDARY_DEVICE_REQUIRED", + "VPN_HA_ROLLED_BACK", + "VPN_HA_REDUNDANT_VPN_DELETED", + "VPN_STATUS_UPDATE_FAILED", + "VPN_STATUS_UPDATE_PROCESS_FAILED", + "VPN_DEVICE_CLOUD_SEQ_ID_NOT_CONFIGURED", + "SSH_CREATE_USER_FAILED", + "SSH_DELETE_USER_FAILED", + "TACACS_GET_USERS_FAILED", + "SSH_GET_USER_FAILED", + "SSH_UPDATE_USER_FAILED", + "SSH_REPLACE_DEVICE_ASSOCIATION_FAILED", + "SSH_APPEND_DEVICE_ASSOCIATION_FAILED", + "SSH_USER_ALREADY_EXISTS", + "SSH_USER_PARTIAL_FAILURE", + "SSH_USER_SERVICE_NOT_SUPPORTED", + "SSH_USER_UNAUTHORIZED_ACCESS", + "SSH_USER_DELETE_FAILED_ASSOCIATIONS_EXIST", + "SSH_USER_DEVICE_NOT_REGISTERED", + "SSH_USER_DEVICE_STATE_NOT_VALID", + "SSH_USER_PER_DEVICE_LIMIT_EXCEEDED", + "SSH_USER_DEVICE_IP_ADDRESS_NOT_SET", + "UNABLE_TO_GET_DEVICE_COUNT", +} + +func (v *GetSshUserUsingGET404Response) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := GetSshUserUsingGET404Response(value) + for _, existing := range AllowedGetSshUserUsingGET404ResponseEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid GetSshUserUsingGET404Response", value) +} + +// NewGetSshUserUsingGET404ResponseFromValue returns a pointer to a valid GetSshUserUsingGET404Response +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewGetSshUserUsingGET404ResponseFromValue(v string) (*GetSshUserUsingGET404Response, error) { + ev := GetSshUserUsingGET404Response(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for GetSshUserUsingGET404Response: valid values are %v", v, AllowedGetSshUserUsingGET404ResponseEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v GetSshUserUsingGET404Response) IsValid() bool { + for _, existing := range AllowedGetSshUserUsingGET404ResponseEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to getSshUserUsingGET_404_response value +func (v GetSshUserUsingGET404Response) Ptr() *GetSshUserUsingGET404Response { + return &v +} + +type NullableGetSshUserUsingGET404Response struct { + value *GetSshUserUsingGET404Response + isSet bool +} + +func (v NullableGetSshUserUsingGET404Response) Get() *GetSshUserUsingGET404Response { + return v.value +} + +func (v *NullableGetSshUserUsingGET404Response) Set(val *GetSshUserUsingGET404Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetSshUserUsingGET404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSshUserUsingGET404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSshUserUsingGET404Response(val *GetSshUserUsingGET404Response) *NullableGetSshUserUsingGET404Response { + return &NullableGetSshUserUsingGET404Response{value: val, isSet: true} +} + +func (v NullableGetSshUserUsingGET404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSshUserUsingGET404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_validate_auth_key_res.go b/services/networkedgev1/model_get_validate_auth_key_res.go new file mode 100644 index 00000000..34d1e442 --- /dev/null +++ b/services/networkedgev1/model_get_validate_auth_key_res.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetValidateAuthKeyRes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetValidateAuthKeyRes{} + +// GetValidateAuthKeyRes struct for GetValidateAuthKeyRes +type GetValidateAuthKeyRes struct { + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + Primary *GetValidateAuthkeyresPrimary `json:"primary,omitempty"` + Secondary *GetValidateAuthkeyresSecondary `json:"secondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetValidateAuthKeyRes GetValidateAuthKeyRes + +// NewGetValidateAuthKeyRes instantiates a new GetValidateAuthKeyRes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetValidateAuthKeyRes() *GetValidateAuthKeyRes { + this := GetValidateAuthKeyRes{} + return &this +} + +// NewGetValidateAuthKeyResWithDefaults instantiates a new GetValidateAuthKeyRes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetValidateAuthKeyResWithDefaults() *GetValidateAuthKeyRes { + this := GetValidateAuthKeyRes{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetValidateAuthKeyRes) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthKeyRes) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetValidateAuthKeyRes) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetValidateAuthKeyRes) SetMessage(v string) { + o.Message = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetValidateAuthKeyRes) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthKeyRes) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GetValidateAuthKeyRes) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *GetValidateAuthKeyRes) SetStatus(v string) { + o.Status = &v +} + +// GetPrimary returns the Primary field value if set, zero value otherwise. +func (o *GetValidateAuthKeyRes) GetPrimary() GetValidateAuthkeyresPrimary { + if o == nil || IsNil(o.Primary) { + var ret GetValidateAuthkeyresPrimary + return ret + } + return *o.Primary +} + +// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthKeyRes) GetPrimaryOk() (*GetValidateAuthkeyresPrimary, bool) { + if o == nil || IsNil(o.Primary) { + return nil, false + } + return o.Primary, true +} + +// HasPrimary returns a boolean if a field has been set. +func (o *GetValidateAuthKeyRes) HasPrimary() bool { + if o != nil && !IsNil(o.Primary) { + return true + } + + return false +} + +// SetPrimary gets a reference to the given GetValidateAuthkeyresPrimary and assigns it to the Primary field. +func (o *GetValidateAuthKeyRes) SetPrimary(v GetValidateAuthkeyresPrimary) { + o.Primary = &v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *GetValidateAuthKeyRes) GetSecondary() GetValidateAuthkeyresSecondary { + if o == nil || IsNil(o.Secondary) { + var ret GetValidateAuthkeyresSecondary + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthKeyRes) GetSecondaryOk() (*GetValidateAuthkeyresSecondary, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *GetValidateAuthKeyRes) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given GetValidateAuthkeyresSecondary and assigns it to the Secondary field. +func (o *GetValidateAuthKeyRes) SetSecondary(v GetValidateAuthkeyresSecondary) { + o.Secondary = &v +} + +func (o GetValidateAuthKeyRes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetValidateAuthKeyRes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Primary) { + toSerialize["primary"] = o.Primary + } + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetValidateAuthKeyRes) UnmarshalJSON(data []byte) (err error) { + varGetValidateAuthKeyRes := _GetValidateAuthKeyRes{} + + err = json.Unmarshal(data, &varGetValidateAuthKeyRes) + + if err != nil { + return err + } + + *o = GetValidateAuthKeyRes(varGetValidateAuthKeyRes) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "status") + delete(additionalProperties, "primary") + delete(additionalProperties, "secondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetValidateAuthKeyRes struct { + value *GetValidateAuthKeyRes + isSet bool +} + +func (v NullableGetValidateAuthKeyRes) Get() *GetValidateAuthKeyRes { + return v.value +} + +func (v *NullableGetValidateAuthKeyRes) Set(val *GetValidateAuthKeyRes) { + v.value = val + v.isSet = true +} + +func (v NullableGetValidateAuthKeyRes) IsSet() bool { + return v.isSet +} + +func (v *NullableGetValidateAuthKeyRes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetValidateAuthKeyRes(val *GetValidateAuthKeyRes) *NullableGetValidateAuthKeyRes { + return &NullableGetValidateAuthKeyRes{value: val, isSet: true} +} + +func (v NullableGetValidateAuthKeyRes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetValidateAuthKeyRes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_validate_authkeyres_primary.go b/services/networkedgev1/model_get_validate_authkeyres_primary.go new file mode 100644 index 00000000..17a20d61 --- /dev/null +++ b/services/networkedgev1/model_get_validate_authkeyres_primary.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetValidateAuthkeyresPrimary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetValidateAuthkeyresPrimary{} + +// GetValidateAuthkeyresPrimary struct for GetValidateAuthkeyresPrimary +type GetValidateAuthkeyresPrimary struct { + Bandwidth *string `json:"bandwidth,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetValidateAuthkeyresPrimary GetValidateAuthkeyresPrimary + +// NewGetValidateAuthkeyresPrimary instantiates a new GetValidateAuthkeyresPrimary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetValidateAuthkeyresPrimary() *GetValidateAuthkeyresPrimary { + this := GetValidateAuthkeyresPrimary{} + return &this +} + +// NewGetValidateAuthkeyresPrimaryWithDefaults instantiates a new GetValidateAuthkeyresPrimary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetValidateAuthkeyresPrimaryWithDefaults() *GetValidateAuthkeyresPrimary { + this := GetValidateAuthkeyresPrimary{} + return &this +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *GetValidateAuthkeyresPrimary) GetBandwidth() string { + if o == nil || IsNil(o.Bandwidth) { + var ret string + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthkeyresPrimary) GetBandwidthOk() (*string, bool) { + if o == nil || IsNil(o.Bandwidth) { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *GetValidateAuthkeyresPrimary) HasBandwidth() bool { + if o != nil && !IsNil(o.Bandwidth) { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given string and assigns it to the Bandwidth field. +func (o *GetValidateAuthkeyresPrimary) SetBandwidth(v string) { + o.Bandwidth = &v +} + +func (o GetValidateAuthkeyresPrimary) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetValidateAuthkeyresPrimary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bandwidth) { + toSerialize["bandwidth"] = o.Bandwidth + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetValidateAuthkeyresPrimary) UnmarshalJSON(data []byte) (err error) { + varGetValidateAuthkeyresPrimary := _GetValidateAuthkeyresPrimary{} + + err = json.Unmarshal(data, &varGetValidateAuthkeyresPrimary) + + if err != nil { + return err + } + + *o = GetValidateAuthkeyresPrimary(varGetValidateAuthkeyresPrimary) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bandwidth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetValidateAuthkeyresPrimary struct { + value *GetValidateAuthkeyresPrimary + isSet bool +} + +func (v NullableGetValidateAuthkeyresPrimary) Get() *GetValidateAuthkeyresPrimary { + return v.value +} + +func (v *NullableGetValidateAuthkeyresPrimary) Set(val *GetValidateAuthkeyresPrimary) { + v.value = val + v.isSet = true +} + +func (v NullableGetValidateAuthkeyresPrimary) IsSet() bool { + return v.isSet +} + +func (v *NullableGetValidateAuthkeyresPrimary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetValidateAuthkeyresPrimary(val *GetValidateAuthkeyresPrimary) *NullableGetValidateAuthkeyresPrimary { + return &NullableGetValidateAuthkeyresPrimary{value: val, isSet: true} +} + +func (v NullableGetValidateAuthkeyresPrimary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetValidateAuthkeyresPrimary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_validate_authkeyres_secondary.go b/services/networkedgev1/model_get_validate_authkeyres_secondary.go new file mode 100644 index 00000000..344730bb --- /dev/null +++ b/services/networkedgev1/model_get_validate_authkeyres_secondary.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the GetValidateAuthkeyresSecondary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetValidateAuthkeyresSecondary{} + +// GetValidateAuthkeyresSecondary struct for GetValidateAuthkeyresSecondary +type GetValidateAuthkeyresSecondary struct { + Bandwidth *string `json:"bandwidth,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetValidateAuthkeyresSecondary GetValidateAuthkeyresSecondary + +// NewGetValidateAuthkeyresSecondary instantiates a new GetValidateAuthkeyresSecondary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetValidateAuthkeyresSecondary() *GetValidateAuthkeyresSecondary { + this := GetValidateAuthkeyresSecondary{} + return &this +} + +// NewGetValidateAuthkeyresSecondaryWithDefaults instantiates a new GetValidateAuthkeyresSecondary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetValidateAuthkeyresSecondaryWithDefaults() *GetValidateAuthkeyresSecondary { + this := GetValidateAuthkeyresSecondary{} + return &this +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *GetValidateAuthkeyresSecondary) GetBandwidth() string { + if o == nil || IsNil(o.Bandwidth) { + var ret string + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetValidateAuthkeyresSecondary) GetBandwidthOk() (*string, bool) { + if o == nil || IsNil(o.Bandwidth) { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *GetValidateAuthkeyresSecondary) HasBandwidth() bool { + if o != nil && !IsNil(o.Bandwidth) { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given string and assigns it to the Bandwidth field. +func (o *GetValidateAuthkeyresSecondary) SetBandwidth(v string) { + o.Bandwidth = &v +} + +func (o GetValidateAuthkeyresSecondary) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetValidateAuthkeyresSecondary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bandwidth) { + toSerialize["bandwidth"] = o.Bandwidth + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetValidateAuthkeyresSecondary) UnmarshalJSON(data []byte) (err error) { + varGetValidateAuthkeyresSecondary := _GetValidateAuthkeyresSecondary{} + + err = json.Unmarshal(data, &varGetValidateAuthkeyresSecondary) + + if err != nil { + return err + } + + *o = GetValidateAuthkeyresSecondary(varGetValidateAuthkeyresSecondary) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bandwidth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetValidateAuthkeyresSecondary struct { + value *GetValidateAuthkeyresSecondary + isSet bool +} + +func (v NullableGetValidateAuthkeyresSecondary) Get() *GetValidateAuthkeyresSecondary { + return v.value +} + +func (v *NullableGetValidateAuthkeyresSecondary) Set(val *GetValidateAuthkeyresSecondary) { + v.value = val + v.isSet = true +} + +func (v NullableGetValidateAuthkeyresSecondary) IsSet() bool { + return v.isSet +} + +func (v *NullableGetValidateAuthkeyresSecondary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetValidateAuthkeyresSecondary(val *GetValidateAuthkeyresSecondary) *NullableGetValidateAuthkeyresSecondary { + return &NullableGetValidateAuthkeyresSecondary{value: val, isSet: true} +} + +func (v NullableGetValidateAuthkeyresSecondary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetValidateAuthkeyresSecondary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_vpn_by_uuid_using_get_404_response.go b/services/networkedgev1/model_get_vpn_by_uuid_using_get_404_response.go new file mode 100644 index 00000000..3faaa773 --- /dev/null +++ b/services/networkedgev1/model_get_vpn_by_uuid_using_get_404_response.go @@ -0,0 +1,291 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// GetVpnByUuidUsingGET404Response the model 'GetVpnByUuidUsingGET404Response' +type GetVpnByUuidUsingGET404Response string + +// List of getVpnByUuidUsingGET_404_response +const ( + GETVPNBYUUIDUSINGGET404RESPONSE_INTERNAL_SERVER_ERROR GetVpnByUuidUsingGET404Response = "INTERNAL_SERVER_ERROR" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_JSON_FORMAT GetVpnByUuidUsingGET404Response = "INVALID_JSON_FORMAT" + GETVPNBYUUIDUSINGGET404RESPONSE_RESOURCE_NOT_FOUND GetVpnByUuidUsingGET404Response = "RESOURCE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_UNAUTHORIZED_USER GetVpnByUuidUsingGET404Response = "UNAUTHORIZED_USER" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_REQUEST_FORMAT GetVpnByUuidUsingGET404Response = "INVALID_REQUEST_FORMAT" + GETVPNBYUUIDUSINGGET404RESPONSE_ZONE_NOT_FOUND GetVpnByUuidUsingGET404Response = "ZONE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_SOURCE_ZONE_NOT_FOUND GetVpnByUuidUsingGET404Response = "SOURCE_ZONE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_DESTINATION_ZONE_NOT_FOUND GetVpnByUuidUsingGET404Response = "DESTINATION_ZONE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_ZONES_NOT_PART_SAME_DEVICE GetVpnByUuidUsingGET404Response = "ZONES_NOT_PART_SAME_DEVICE" + GETVPNBYUUIDUSINGGET404RESPONSE_CONNECTION_ALREADY_PART_OF_ZONE GetVpnByUuidUsingGET404Response = "CONNECTION_ALREADY_PART_OF_ZONE" + GETVPNBYUUIDUSINGGET404RESPONSE_ZONE_PART_OF_FIREWALL GetVpnByUuidUsingGET404Response = "ZONE_PART_OF_FIREWALL" + GETVPNBYUUIDUSINGGET404RESPONSE_CONNECTION_NOT_AVAILABLE GetVpnByUuidUsingGET404Response = "CONNECTION_NOT_AVAILABLE" + GETVPNBYUUIDUSINGGET404RESPONSE_ZONE_ALREADY_EXISTS GetVpnByUuidUsingGET404Response = "ZONE_ALREADY_EXISTS" + GETVPNBYUUIDUSINGGET404RESPONSE_FIREWALL_NOT_FOUND GetVpnByUuidUsingGET404Response = "FIREWALL_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_FIREWALL_ALREADY_EXISTS GetVpnByUuidUsingGET404Response = "FIREWALL_ALREADY_EXISTS" + GETVPNBYUUIDUSINGGET404RESPONSE_RULE_ALREADY_EXISTS GetVpnByUuidUsingGET404Response = "RULE_ALREADY_EXISTS" + GETVPNBYUUIDUSINGGET404RESPONSE_RULE_NOT_FOUND GetVpnByUuidUsingGET404Response = "RULE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_RULE_NOT_PART_OF_FIREWALL GetVpnByUuidUsingGET404Response = "RULE_NOT_PART_OF_FIREWALL" + GETVPNBYUUIDUSINGGET404RESPONSE_VIRTUAL_DEVICE_NOT_FOUND GetVpnByUuidUsingGET404Response = "VIRTUAL_DEVICE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VIRTUAL_DEVICE_NOT_PROVISIONED GetVpnByUuidUsingGET404Response = "VIRTUAL_DEVICE_NOT_PROVISIONED" + GETVPNBYUUIDUSINGGET404RESPONSE_DEVICE_LICENSE_NOT_REGISTERED GetVpnByUuidUsingGET404Response = "DEVICE_LICENSE_NOT_REGISTERED" + GETVPNBYUUIDUSINGGET404RESPONSE_MGMT_INTERFACE_NOT_AVAILABLE GetVpnByUuidUsingGET404Response = "MGMT_INTERFACE_NOT_AVAILABLE" + GETVPNBYUUIDUSINGGET404RESPONSE_INTERFACE_NOT_AVAILABLE GetVpnByUuidUsingGET404Response = "INTERFACE_NOT_AVAILABLE" + GETVPNBYUUIDUSINGGET404RESPONSE_INTERFACE_NOT_PROVISIONED GetVpnByUuidUsingGET404Response = "INTERFACE_NOT_PROVISIONED" + GETVPNBYUUIDUSINGGET404RESPONSE_NAT_CONFIG_ALREADY_EXISTS GetVpnByUuidUsingGET404Response = "NAT_CONFIG_ALREADY_EXISTS" + GETVPNBYUUIDUSINGGET404RESPONSE_NAT_CONFIG_NOT_FOUND GetVpnByUuidUsingGET404Response = "NAT_CONFIG_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_ADD_NAT_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "ADD_NAT_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_EDIT_NAT_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "EDIT_NAT_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_REMOVE_NAT_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "REMOVE_NAT_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_NAT_POOL_TYPE_CHANGE_DISABLED GetVpnByUuidUsingGET404Response = "NAT_POOL_TYPE_CHANGE_DISABLED" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_ACTION_TYPE GetVpnByUuidUsingGET404Response = "INVALID_ACTION_TYPE" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_ADD_ACTION GetVpnByUuidUsingGET404Response = "INVALID_ADD_ACTION" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_MODIFY_ACTION GetVpnByUuidUsingGET404Response = "INVALID_MODIFY_ACTION" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_STATIC_NAT_UUID GetVpnByUuidUsingGET404Response = "INVALID_STATIC_NAT_UUID" + GETVPNBYUUIDUSINGGET404RESPONSE_OVERLAP_IP_CONFLICT GetVpnByUuidUsingGET404Response = "OVERLAP_IP_CONFLICT" + GETVPNBYUUIDUSINGGET404RESPONSE_CONNECTION_NOT_FOUND GetVpnByUuidUsingGET404Response = "CONNECTION_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_NOT_FOUND GetVpnByUuidUsingGET404Response = "BGP_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_IP_ADDRESS GetVpnByUuidUsingGET404Response = "INVALID_IP_ADDRESS" + GETVPNBYUUIDUSINGGET404RESPONSE_INVALID_NETWORK_SERVICE_TYPE GetVpnByUuidUsingGET404Response = "INVALID_NETWORK_SERVICE_TYPE" + GETVPNBYUUIDUSINGGET404RESPONSE_IBX_NOT_FOUND GetVpnByUuidUsingGET404Response = "IBX_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_PRICE_SERVICE_REQUEST_INVALID GetVpnByUuidUsingGET404Response = "PRICE_SERVICE_REQUEST_INVALID" + GETVPNBYUUIDUSINGGET404RESPONSE_PRICE_SERVICE_REQUEST_FAILED GetVpnByUuidUsingGET404Response = "PRICE_SERVICE_REQUEST_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_CONFIG_NOT_FOUND GetVpnByUuidUsingGET404Response = "BGP_CONFIG_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_NEIGHBOR_INFO_NOT_FOUND GetVpnByUuidUsingGET404Response = "BGP_NEIGHBOR_INFO_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_LOCAL_IP_ADDRESS_NOT_IN_RANGE GetVpnByUuidUsingGET404Response = "LOCAL_IP_ADDRESS_NOT_IN_RANGE" + GETVPNBYUUIDUSINGGET404RESPONSE_REMOTE_IP_ADDRESS_NOT_IN_RANGE GetVpnByUuidUsingGET404Response = "REMOTE_IP_ADDRESS_NOT_IN_RANGE" + GETVPNBYUUIDUSINGGET404RESPONSE_CONNECTION_DEVICE_NOT_FOUND GetVpnByUuidUsingGET404Response = "CONNECTION_DEVICE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_CONNECTION_NOT_PROVISIONED GetVpnByUuidUsingGET404Response = "CONNECTION_NOT_PROVISIONED" + GETVPNBYUUIDUSINGGET404RESPONSE_BROADCAST_ADDRESS_NOT_ALLOWED GetVpnByUuidUsingGET404Response = "BROADCAST_ADDRESS_NOT_ALLOWED" + GETVPNBYUUIDUSINGGET404RESPONSE_NETWORK_ADDRESS_NOT_ALLOWED GetVpnByUuidUsingGET404Response = "NETWORK_ADDRESS_NOT_ALLOWED" + GETVPNBYUUIDUSINGGET404RESPONSE_OVERLAP_LOCAL_IP_ADDRESS GetVpnByUuidUsingGET404Response = "OVERLAP_LOCAL_IP_ADDRESS" + GETVPNBYUUIDUSINGGET404RESPONSE_DATA_INTERFACE_NOT_AVAILABLE GetVpnByUuidUsingGET404Response = "DATA_INTERFACE_NOT_AVAILABLE" + GETVPNBYUUIDUSINGGET404RESPONSE_ADD_BGP_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "ADD_BGP_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_REMOVE_BGP_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "REMOVE_BGP_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_INTERFACE_NOT_FOUND GetVpnByUuidUsingGET404Response = "INTERFACE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_UPDATE_BGP_CONFIG_FAILED GetVpnByUuidUsingGET404Response = "UPDATE_BGP_CONFIG_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_EXISTING_CONNECTION_BGP GetVpnByUuidUsingGET404Response = "EXISTING_CONNECTION_BGP" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_EXISTING_NAT_SERVICES GetVpnByUuidUsingGET404Response = "BGP_EXISTING_NAT_SERVICES" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_EXISTING_FIREWALL_SERVICES GetVpnByUuidUsingGET404Response = "BGP_EXISTING_FIREWALL_SERVICES" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_UPDATE_NOT_ALLOWED GetVpnByUuidUsingGET404Response = "BGP_UPDATE_NOT_ALLOWED" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_EXISTING_VPN_SERVICES GetVpnByUuidUsingGET404Response = "BGP_EXISTING_VPN_SERVICES" + GETVPNBYUUIDUSINGGET404RESPONSE_REMOTE_LOCAL_SAME_IP_ADDRESS GetVpnByUuidUsingGET404Response = "REMOTE_LOCAL_SAME_IP_ADDRESS" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_FAILED_ASN_UPDATE GetVpnByUuidUsingGET404Response = "BGP_FAILED_ASN_UPDATE" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_FAILED_INTERFACE_DESC GetVpnByUuidUsingGET404Response = "BGP_FAILED_INTERFACE_DESC" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_NSO_FAILED_FETCH GetVpnByUuidUsingGET404Response = "BGP_NSO_FAILED_FETCH" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_NSO_FAILED_UPDATE GetVpnByUuidUsingGET404Response = "BGP_NSO_FAILED_UPDATE" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_FAILED_VPN_UPDATE GetVpnByUuidUsingGET404Response = "BGP_FAILED_VPN_UPDATE" + GETVPNBYUUIDUSINGGET404RESPONSE_BGP_RETRY_FAILED GetVpnByUuidUsingGET404Response = "BGP_RETRY_FAILED" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NAME_ALREADY_IN_USE GetVpnByUuidUsingGET404Response = "VPN_NAME_ALREADY_IN_USE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_NOT_FOUND GetVpnByUuidUsingGET404Response = "VPN_DEVICE_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_USER_KEY_MISMATCH GetVpnByUuidUsingGET404Response = "VPN_DEVICE_USER_KEY_MISMATCH" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_NOT_REGISTERED GetVpnByUuidUsingGET404Response = "VPN_DEVICE_NOT_REGISTERED" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NO_CONFIGURED_CLOUD_BGP_FOUND GetVpnByUuidUsingGET404Response = "VPN_NO_CONFIGURED_CLOUD_BGP_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_ASN_NOT_CONFIGURED GetVpnByUuidUsingGET404Response = "VPN_DEVICE_ASN_NOT_CONFIGURED" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_MATCHING_ASN GetVpnByUuidUsingGET404Response = "VPN_MATCHING_ASN" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_LIMIT_EXCEEDED GetVpnByUuidUsingGET404Response = "VPN_LIMIT_EXCEEDED" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NO_INTERFACES_FOUND GetVpnByUuidUsingGET404Response = "VPN_NO_INTERFACES_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_SSH_INTERFACE_ID_NOT_FOUND GetVpnByUuidUsingGET404Response = "VPN_SSH_INTERFACE_ID_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_INVALID_SSH_INTERFACE_ID GetVpnByUuidUsingGET404Response = "VPN_INVALID_SSH_INTERFACE_ID" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_CONFIG_NOT_FOUND GetVpnByUuidUsingGET404Response = "VPN_CONFIG_NOT_FOUND" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NSO_CREATE_TRANSIENT_FAILURE GetVpnByUuidUsingGET404Response = "VPN_NSO_CREATE_TRANSIENT_FAILURE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NSO_CREATE_PERMANENT_FAILURE GetVpnByUuidUsingGET404Response = "VPN_NSO_CREATE_PERMANENT_FAILURE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NSO_DELETE_TRANSIENT_FAILURE GetVpnByUuidUsingGET404Response = "VPN_NSO_DELETE_TRANSIENT_FAILURE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_NSO_DELETE_PERMANENT_FAILURE GetVpnByUuidUsingGET404Response = "VPN_NSO_DELETE_PERMANENT_FAILURE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_PEER_IP_ALREADY_IN_USE GetVpnByUuidUsingGET404Response = "VPN_PEER_IP_ALREADY_IN_USE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_MISSING_IPSEC_PACKAGE GetVpnByUuidUsingGET404Response = "VPN_DEVICE_MISSING_IPSEC_PACKAGE" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_INVALID_STATUS_LIST GetVpnByUuidUsingGET404Response = "VPN_INVALID_STATUS_LIST" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_RESTRICTED_ASN GetVpnByUuidUsingGET404Response = "VPN_RESTRICTED_ASN" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_UNAUTHORIZED_ACCESS GetVpnByUuidUsingGET404Response = "VPN_UNAUTHORIZED_ACCESS" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_ALREADY_DELETED GetVpnByUuidUsingGET404Response = "VPN_ALREADY_DELETED" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_RESTRICTED_IP_ADDRESS GetVpnByUuidUsingGET404Response = "VPN_RESTRICTED_IP_ADDRESS" + GETVPNBYUUIDUSINGGET404RESPONSE_VPN_DEVICE_NOT_IN_READY_STATE GetVpnByUuidUsingGET404Response = "VPN_DEVICE_NOT_IN_READY_STATE" +) + +// All allowed values of GetVpnByUuidUsingGET404Response enum +var AllowedGetVpnByUuidUsingGET404ResponseEnumValues = []GetVpnByUuidUsingGET404Response{ + "INTERNAL_SERVER_ERROR", + "INVALID_JSON_FORMAT", + "RESOURCE_NOT_FOUND", + "UNAUTHORIZED_USER", + "INVALID_REQUEST_FORMAT", + "ZONE_NOT_FOUND", + "SOURCE_ZONE_NOT_FOUND", + "DESTINATION_ZONE_NOT_FOUND", + "ZONES_NOT_PART_SAME_DEVICE", + "CONNECTION_ALREADY_PART_OF_ZONE", + "ZONE_PART_OF_FIREWALL", + "CONNECTION_NOT_AVAILABLE", + "ZONE_ALREADY_EXISTS", + "FIREWALL_NOT_FOUND", + "FIREWALL_ALREADY_EXISTS", + "RULE_ALREADY_EXISTS", + "RULE_NOT_FOUND", + "RULE_NOT_PART_OF_FIREWALL", + "VIRTUAL_DEVICE_NOT_FOUND", + "VIRTUAL_DEVICE_NOT_PROVISIONED", + "DEVICE_LICENSE_NOT_REGISTERED", + "MGMT_INTERFACE_NOT_AVAILABLE", + "INTERFACE_NOT_AVAILABLE", + "INTERFACE_NOT_PROVISIONED", + "NAT_CONFIG_ALREADY_EXISTS", + "NAT_CONFIG_NOT_FOUND", + "ADD_NAT_CONFIG_FAILED", + "EDIT_NAT_CONFIG_FAILED", + "REMOVE_NAT_CONFIG_FAILED", + "NAT_POOL_TYPE_CHANGE_DISABLED", + "INVALID_ACTION_TYPE", + "INVALID_ADD_ACTION", + "INVALID_MODIFY_ACTION", + "INVALID_STATIC_NAT_UUID", + "OVERLAP_IP_CONFLICT", + "CONNECTION_NOT_FOUND", + "BGP_NOT_FOUND", + "INVALID_IP_ADDRESS", + "INVALID_NETWORK_SERVICE_TYPE", + "IBX_NOT_FOUND", + "PRICE_SERVICE_REQUEST_INVALID", + "PRICE_SERVICE_REQUEST_FAILED", + "BGP_CONFIG_NOT_FOUND", + "BGP_NEIGHBOR_INFO_NOT_FOUND", + "LOCAL_IP_ADDRESS_NOT_IN_RANGE", + "REMOTE_IP_ADDRESS_NOT_IN_RANGE", + "CONNECTION_DEVICE_NOT_FOUND", + "CONNECTION_NOT_PROVISIONED", + "BROADCAST_ADDRESS_NOT_ALLOWED", + "NETWORK_ADDRESS_NOT_ALLOWED", + "OVERLAP_LOCAL_IP_ADDRESS", + "DATA_INTERFACE_NOT_AVAILABLE", + "ADD_BGP_CONFIG_FAILED", + "REMOVE_BGP_CONFIG_FAILED", + "INTERFACE_NOT_FOUND", + "UPDATE_BGP_CONFIG_FAILED", + "EXISTING_CONNECTION_BGP", + "BGP_EXISTING_NAT_SERVICES", + "BGP_EXISTING_FIREWALL_SERVICES", + "BGP_UPDATE_NOT_ALLOWED", + "BGP_EXISTING_VPN_SERVICES", + "REMOTE_LOCAL_SAME_IP_ADDRESS", + "BGP_FAILED_ASN_UPDATE", + "BGP_FAILED_INTERFACE_DESC", + "BGP_NSO_FAILED_FETCH", + "BGP_NSO_FAILED_UPDATE", + "BGP_FAILED_VPN_UPDATE", + "BGP_RETRY_FAILED", + "VPN_NAME_ALREADY_IN_USE", + "VPN_DEVICE_NOT_FOUND", + "VPN_DEVICE_USER_KEY_MISMATCH", + "VPN_DEVICE_NOT_REGISTERED", + "VPN_NO_CONFIGURED_CLOUD_BGP_FOUND", + "VPN_DEVICE_ASN_NOT_CONFIGURED", + "VPN_MATCHING_ASN", + "VPN_LIMIT_EXCEEDED", + "VPN_NO_INTERFACES_FOUND", + "VPN_SSH_INTERFACE_ID_NOT_FOUND", + "VPN_INVALID_SSH_INTERFACE_ID", + "VPN_CONFIG_NOT_FOUND", + "VPN_NSO_CREATE_TRANSIENT_FAILURE", + "VPN_NSO_CREATE_PERMANENT_FAILURE", + "VPN_NSO_DELETE_TRANSIENT_FAILURE", + "VPN_NSO_DELETE_PERMANENT_FAILURE", + "VPN_PEER_IP_ALREADY_IN_USE", + "VPN_DEVICE_MISSING_IPSEC_PACKAGE", + "VPN_INVALID_STATUS_LIST", + "VPN_RESTRICTED_ASN", + "VPN_UNAUTHORIZED_ACCESS", + "VPN_ALREADY_DELETED", + "VPN_RESTRICTED_IP_ADDRESS", + "VPN_DEVICE_NOT_IN_READY_STATE", +} + +func (v *GetVpnByUuidUsingGET404Response) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := GetVpnByUuidUsingGET404Response(value) + for _, existing := range AllowedGetVpnByUuidUsingGET404ResponseEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid GetVpnByUuidUsingGET404Response", value) +} + +// NewGetVpnByUuidUsingGET404ResponseFromValue returns a pointer to a valid GetVpnByUuidUsingGET404Response +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewGetVpnByUuidUsingGET404ResponseFromValue(v string) (*GetVpnByUuidUsingGET404Response, error) { + ev := GetVpnByUuidUsingGET404Response(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for GetVpnByUuidUsingGET404Response: valid values are %v", v, AllowedGetVpnByUuidUsingGET404ResponseEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v GetVpnByUuidUsingGET404Response) IsValid() bool { + for _, existing := range AllowedGetVpnByUuidUsingGET404ResponseEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to getVpnByUuidUsingGET_404_response value +func (v GetVpnByUuidUsingGET404Response) Ptr() *GetVpnByUuidUsingGET404Response { + return &v +} + +type NullableGetVpnByUuidUsingGET404Response struct { + value *GetVpnByUuidUsingGET404Response + isSet bool +} + +func (v NullableGetVpnByUuidUsingGET404Response) Get() *GetVpnByUuidUsingGET404Response { + return v.value +} + +func (v *NullableGetVpnByUuidUsingGET404Response) Set(val *GetVpnByUuidUsingGET404Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetVpnByUuidUsingGET404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetVpnByUuidUsingGET404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetVpnByUuidUsingGET404Response(val *GetVpnByUuidUsingGET404Response) *NullableGetVpnByUuidUsingGET404Response { + return &NullableGetVpnByUuidUsingGET404Response{value: val, isSet: true} +} + +func (v NullableGetVpnByUuidUsingGET404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetVpnByUuidUsingGET404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_get_vpns_using_get_status_list_parameter_inner.go b/services/networkedgev1/model_get_vpns_using_get_status_list_parameter_inner.go new file mode 100644 index 00000000..910c730e --- /dev/null +++ b/services/networkedgev1/model_get_vpns_using_get_status_list_parameter_inner.go @@ -0,0 +1,129 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// GetVpnsUsingGETStatusListParameterInner the model 'GetVpnsUsingGETStatusListParameterInner' +type GetVpnsUsingGETStatusListParameterInner string + +// List of getVpnsUsingGET_statusList_parameter_inner +const ( + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONED GetVpnsUsingGETStatusListParameterInner = "PROVISIONED" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONING GetVpnsUsingGETStatusListParameterInner = "PROVISIONING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONING_RETRYING GetVpnsUsingGETStatusListParameterInner = "PROVISIONING_RETRYING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_UPDATING GetVpnsUsingGETStatusListParameterInner = "UPDATING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONING_UPDATE_RETRYING GetVpnsUsingGETStatusListParameterInner = "PROVISIONING_UPDATE_RETRYING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_DEPROVISIONED GetVpnsUsingGETStatusListParameterInner = "DEPROVISIONED" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_DEPROVISIONING GetVpnsUsingGETStatusListParameterInner = "DEPROVISIONING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_DEPROVISIONING_RETRYING GetVpnsUsingGETStatusListParameterInner = "DEPROVISIONING_RETRYING" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONING_FAILED GetVpnsUsingGETStatusListParameterInner = "PROVISIONING_FAILED" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_PROVISIONING_UPDATE_FAILED GetVpnsUsingGETStatusListParameterInner = "PROVISIONING_UPDATE_FAILED" + GETVPNSUSINGGETSTATUSLISTPARAMETERINNER_DEPROVISIONING_FAILED GetVpnsUsingGETStatusListParameterInner = "DEPROVISIONING_FAILED" +) + +// All allowed values of GetVpnsUsingGETStatusListParameterInner enum +var AllowedGetVpnsUsingGETStatusListParameterInnerEnumValues = []GetVpnsUsingGETStatusListParameterInner{ + "PROVISIONED", + "PROVISIONING", + "PROVISIONING_RETRYING", + "UPDATING", + "PROVISIONING_UPDATE_RETRYING", + "DEPROVISIONED", + "DEPROVISIONING", + "DEPROVISIONING_RETRYING", + "PROVISIONING_FAILED", + "PROVISIONING_UPDATE_FAILED", + "DEPROVISIONING_FAILED", +} + +func (v *GetVpnsUsingGETStatusListParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := GetVpnsUsingGETStatusListParameterInner(value) + for _, existing := range AllowedGetVpnsUsingGETStatusListParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid GetVpnsUsingGETStatusListParameterInner", value) +} + +// NewGetVpnsUsingGETStatusListParameterInnerFromValue returns a pointer to a valid GetVpnsUsingGETStatusListParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewGetVpnsUsingGETStatusListParameterInnerFromValue(v string) (*GetVpnsUsingGETStatusListParameterInner, error) { + ev := GetVpnsUsingGETStatusListParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for GetVpnsUsingGETStatusListParameterInner: valid values are %v", v, AllowedGetVpnsUsingGETStatusListParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v GetVpnsUsingGETStatusListParameterInner) IsValid() bool { + for _, existing := range AllowedGetVpnsUsingGETStatusListParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to getVpnsUsingGET_statusList_parameter_inner value +func (v GetVpnsUsingGETStatusListParameterInner) Ptr() *GetVpnsUsingGETStatusListParameterInner { + return &v +} + +type NullableGetVpnsUsingGETStatusListParameterInner struct { + value *GetVpnsUsingGETStatusListParameterInner + isSet bool +} + +func (v NullableGetVpnsUsingGETStatusListParameterInner) Get() *GetVpnsUsingGETStatusListParameterInner { + return v.value +} + +func (v *NullableGetVpnsUsingGETStatusListParameterInner) Set(val *GetVpnsUsingGETStatusListParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetVpnsUsingGETStatusListParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetVpnsUsingGETStatusListParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetVpnsUsingGETStatusListParameterInner(val *GetVpnsUsingGETStatusListParameterInner) *NullableGetVpnsUsingGETStatusListParameterInner { + return &NullableGetVpnsUsingGETStatusListParameterInner{value: val, isSet: true} +} + +func (v NullableGetVpnsUsingGETStatusListParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetVpnsUsingGETStatusListParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_impacted_services.go b/services/networkedgev1/model_impacted_services.go new file mode 100644 index 00000000..2cc9bf16 --- /dev/null +++ b/services/networkedgev1/model_impacted_services.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ImpactedServices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImpactedServices{} + +// ImpactedServices struct for ImpactedServices +type ImpactedServices struct { + // The name of the impacted service. + ServiceName *string `json:"serviceName,omitempty"` + // The type of impact, whether the impacted service is down or delayed. + Impact *string `json:"impact,omitempty"` + // Start of the downtime of the service. + ServiceStartTime *string `json:"serviceStartTime,omitempty"` + // End of the downtime of the service. + ServiceEndTime *string `json:"serviceEndTime,omitempty"` + // Downtime message of the service. + ErrorMessage *string `json:"errorMessage,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImpactedServices ImpactedServices + +// NewImpactedServices instantiates a new ImpactedServices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImpactedServices() *ImpactedServices { + this := ImpactedServices{} + return &this +} + +// NewImpactedServicesWithDefaults instantiates a new ImpactedServices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImpactedServicesWithDefaults() *ImpactedServices { + this := ImpactedServices{} + return &this +} + +// GetServiceName returns the ServiceName field value if set, zero value otherwise. +func (o *ImpactedServices) GetServiceName() string { + if o == nil || IsNil(o.ServiceName) { + var ret string + return ret + } + return *o.ServiceName +} + +// GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactedServices) GetServiceNameOk() (*string, bool) { + if o == nil || IsNil(o.ServiceName) { + return nil, false + } + return o.ServiceName, true +} + +// HasServiceName returns a boolean if a field has been set. +func (o *ImpactedServices) HasServiceName() bool { + if o != nil && !IsNil(o.ServiceName) { + return true + } + + return false +} + +// SetServiceName gets a reference to the given string and assigns it to the ServiceName field. +func (o *ImpactedServices) SetServiceName(v string) { + o.ServiceName = &v +} + +// GetImpact returns the Impact field value if set, zero value otherwise. +func (o *ImpactedServices) GetImpact() string { + if o == nil || IsNil(o.Impact) { + var ret string + return ret + } + return *o.Impact +} + +// GetImpactOk returns a tuple with the Impact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactedServices) GetImpactOk() (*string, bool) { + if o == nil || IsNil(o.Impact) { + return nil, false + } + return o.Impact, true +} + +// HasImpact returns a boolean if a field has been set. +func (o *ImpactedServices) HasImpact() bool { + if o != nil && !IsNil(o.Impact) { + return true + } + + return false +} + +// SetImpact gets a reference to the given string and assigns it to the Impact field. +func (o *ImpactedServices) SetImpact(v string) { + o.Impact = &v +} + +// GetServiceStartTime returns the ServiceStartTime field value if set, zero value otherwise. +func (o *ImpactedServices) GetServiceStartTime() string { + if o == nil || IsNil(o.ServiceStartTime) { + var ret string + return ret + } + return *o.ServiceStartTime +} + +// GetServiceStartTimeOk returns a tuple with the ServiceStartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactedServices) GetServiceStartTimeOk() (*string, bool) { + if o == nil || IsNil(o.ServiceStartTime) { + return nil, false + } + return o.ServiceStartTime, true +} + +// HasServiceStartTime returns a boolean if a field has been set. +func (o *ImpactedServices) HasServiceStartTime() bool { + if o != nil && !IsNil(o.ServiceStartTime) { + return true + } + + return false +} + +// SetServiceStartTime gets a reference to the given string and assigns it to the ServiceStartTime field. +func (o *ImpactedServices) SetServiceStartTime(v string) { + o.ServiceStartTime = &v +} + +// GetServiceEndTime returns the ServiceEndTime field value if set, zero value otherwise. +func (o *ImpactedServices) GetServiceEndTime() string { + if o == nil || IsNil(o.ServiceEndTime) { + var ret string + return ret + } + return *o.ServiceEndTime +} + +// GetServiceEndTimeOk returns a tuple with the ServiceEndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactedServices) GetServiceEndTimeOk() (*string, bool) { + if o == nil || IsNil(o.ServiceEndTime) { + return nil, false + } + return o.ServiceEndTime, true +} + +// HasServiceEndTime returns a boolean if a field has been set. +func (o *ImpactedServices) HasServiceEndTime() bool { + if o != nil && !IsNil(o.ServiceEndTime) { + return true + } + + return false +} + +// SetServiceEndTime gets a reference to the given string and assigns it to the ServiceEndTime field. +func (o *ImpactedServices) SetServiceEndTime(v string) { + o.ServiceEndTime = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *ImpactedServices) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImpactedServices) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *ImpactedServices) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *ImpactedServices) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +func (o ImpactedServices) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImpactedServices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceName) { + toSerialize["serviceName"] = o.ServiceName + } + if !IsNil(o.Impact) { + toSerialize["impact"] = o.Impact + } + if !IsNil(o.ServiceStartTime) { + toSerialize["serviceStartTime"] = o.ServiceStartTime + } + if !IsNil(o.ServiceEndTime) { + toSerialize["serviceEndTime"] = o.ServiceEndTime + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImpactedServices) UnmarshalJSON(data []byte) (err error) { + varImpactedServices := _ImpactedServices{} + + err = json.Unmarshal(data, &varImpactedServices) + + if err != nil { + return err + } + + *o = ImpactedServices(varImpactedServices) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "serviceName") + delete(additionalProperties, "impact") + delete(additionalProperties, "serviceStartTime") + delete(additionalProperties, "serviceEndTime") + delete(additionalProperties, "errorMessage") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImpactedServices struct { + value *ImpactedServices + isSet bool +} + +func (v NullableImpactedServices) Get() *ImpactedServices { + return v.value +} + +func (v *NullableImpactedServices) Set(val *ImpactedServices) { + v.value = val + v.isSet = true +} + +func (v NullableImpactedServices) IsSet() bool { + return v.isSet +} + +func (v *NullableImpactedServices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImpactedServices(val *ImpactedServices) *NullableImpactedServices { + return &NullableImpactedServices{value: val, isSet: true} +} + +func (v NullableImpactedServices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImpactedServices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_inbound_rules.go b/services/networkedgev1/model_inbound_rules.go new file mode 100644 index 00000000..1550a3fe --- /dev/null +++ b/services/networkedgev1/model_inbound_rules.go @@ -0,0 +1,345 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InboundRules type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InboundRules{} + +// InboundRules struct for InboundRules +type InboundRules struct { + // Protocol. + Protocol *string `json:"protocol,omitempty"` + // Source port. + SrcPort *string `json:"srcPort,omitempty"` + // Destination port. + DstPort *string `json:"dstPort,omitempty"` + // An array of subnets. + Subnet *string `json:"subnet,omitempty"` + // The sequence number of the inbound rule. + SeqNo *int32 `json:"seqNo,omitempty"` + // Description of the inboundRule. + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InboundRules InboundRules + +// NewInboundRules instantiates a new InboundRules object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInboundRules() *InboundRules { + this := InboundRules{} + return &this +} + +// NewInboundRulesWithDefaults instantiates a new InboundRules object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInboundRulesWithDefaults() *InboundRules { + this := InboundRules{} + return &this +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *InboundRules) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *InboundRules) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *InboundRules) SetProtocol(v string) { + o.Protocol = &v +} + +// GetSrcPort returns the SrcPort field value if set, zero value otherwise. +func (o *InboundRules) GetSrcPort() string { + if o == nil || IsNil(o.SrcPort) { + var ret string + return ret + } + return *o.SrcPort +} + +// GetSrcPortOk returns a tuple with the SrcPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetSrcPortOk() (*string, bool) { + if o == nil || IsNil(o.SrcPort) { + return nil, false + } + return o.SrcPort, true +} + +// HasSrcPort returns a boolean if a field has been set. +func (o *InboundRules) HasSrcPort() bool { + if o != nil && !IsNil(o.SrcPort) { + return true + } + + return false +} + +// SetSrcPort gets a reference to the given string and assigns it to the SrcPort field. +func (o *InboundRules) SetSrcPort(v string) { + o.SrcPort = &v +} + +// GetDstPort returns the DstPort field value if set, zero value otherwise. +func (o *InboundRules) GetDstPort() string { + if o == nil || IsNil(o.DstPort) { + var ret string + return ret + } + return *o.DstPort +} + +// GetDstPortOk returns a tuple with the DstPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetDstPortOk() (*string, bool) { + if o == nil || IsNil(o.DstPort) { + return nil, false + } + return o.DstPort, true +} + +// HasDstPort returns a boolean if a field has been set. +func (o *InboundRules) HasDstPort() bool { + if o != nil && !IsNil(o.DstPort) { + return true + } + + return false +} + +// SetDstPort gets a reference to the given string and assigns it to the DstPort field. +func (o *InboundRules) SetDstPort(v string) { + o.DstPort = &v +} + +// GetSubnet returns the Subnet field value if set, zero value otherwise. +func (o *InboundRules) GetSubnet() string { + if o == nil || IsNil(o.Subnet) { + var ret string + return ret + } + return *o.Subnet +} + +// GetSubnetOk returns a tuple with the Subnet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetSubnetOk() (*string, bool) { + if o == nil || IsNil(o.Subnet) { + return nil, false + } + return o.Subnet, true +} + +// HasSubnet returns a boolean if a field has been set. +func (o *InboundRules) HasSubnet() bool { + if o != nil && !IsNil(o.Subnet) { + return true + } + + return false +} + +// SetSubnet gets a reference to the given string and assigns it to the Subnet field. +func (o *InboundRules) SetSubnet(v string) { + o.Subnet = &v +} + +// GetSeqNo returns the SeqNo field value if set, zero value otherwise. +func (o *InboundRules) GetSeqNo() int32 { + if o == nil || IsNil(o.SeqNo) { + var ret int32 + return ret + } + return *o.SeqNo +} + +// GetSeqNoOk returns a tuple with the SeqNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetSeqNoOk() (*int32, bool) { + if o == nil || IsNil(o.SeqNo) { + return nil, false + } + return o.SeqNo, true +} + +// HasSeqNo returns a boolean if a field has been set. +func (o *InboundRules) HasSeqNo() bool { + if o != nil && !IsNil(o.SeqNo) { + return true + } + + return false +} + +// SetSeqNo gets a reference to the given int32 and assigns it to the SeqNo field. +func (o *InboundRules) SetSeqNo(v int32) { + o.SeqNo = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *InboundRules) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InboundRules) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *InboundRules) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *InboundRules) SetDescription(v string) { + o.Description = &v +} + +func (o InboundRules) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InboundRules) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.SrcPort) { + toSerialize["srcPort"] = o.SrcPort + } + if !IsNil(o.DstPort) { + toSerialize["dstPort"] = o.DstPort + } + if !IsNil(o.Subnet) { + toSerialize["subnet"] = o.Subnet + } + if !IsNil(o.SeqNo) { + toSerialize["seqNo"] = o.SeqNo + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InboundRules) UnmarshalJSON(data []byte) (err error) { + varInboundRules := _InboundRules{} + + err = json.Unmarshal(data, &varInboundRules) + + if err != nil { + return err + } + + *o = InboundRules(varInboundRules) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "protocol") + delete(additionalProperties, "srcPort") + delete(additionalProperties, "dstPort") + delete(additionalProperties, "subnet") + delete(additionalProperties, "seqNo") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInboundRules struct { + value *InboundRules + isSet bool +} + +func (v NullableInboundRules) Get() *InboundRules { + return v.value +} + +func (v *NullableInboundRules) Set(val *InboundRules) { + v.value = val + v.isSet = true +} + +func (v NullableInboundRules) IsSet() bool { + return v.isSet +} + +func (v *NullableInboundRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInboundRules(val *InboundRules) *NullableInboundRules { + return &NullableInboundRules{value: val, isSet: true} +} + +func (v NullableInboundRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInboundRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_initial_device_acl_response.go b/services/networkedgev1/model_initial_device_acl_response.go new file mode 100644 index 00000000..1e08de67 --- /dev/null +++ b/services/networkedgev1/model_initial_device_acl_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InitialDeviceACLResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InitialDeviceACLResponse{} + +// InitialDeviceACLResponse struct for InitialDeviceACLResponse +type InitialDeviceACLResponse struct { + AclTemplate *DeviceACLDetailsResponse `json:"aclTemplate,omitempty"` + MgmtAclTemplate *DeviceACLDetailsResponse `json:"mgmtAclTemplate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InitialDeviceACLResponse InitialDeviceACLResponse + +// NewInitialDeviceACLResponse instantiates a new InitialDeviceACLResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInitialDeviceACLResponse() *InitialDeviceACLResponse { + this := InitialDeviceACLResponse{} + return &this +} + +// NewInitialDeviceACLResponseWithDefaults instantiates a new InitialDeviceACLResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInitialDeviceACLResponseWithDefaults() *InitialDeviceACLResponse { + this := InitialDeviceACLResponse{} + return &this +} + +// GetAclTemplate returns the AclTemplate field value if set, zero value otherwise. +func (o *InitialDeviceACLResponse) GetAclTemplate() DeviceACLDetailsResponse { + if o == nil || IsNil(o.AclTemplate) { + var ret DeviceACLDetailsResponse + return ret + } + return *o.AclTemplate +} + +// GetAclTemplateOk returns a tuple with the AclTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InitialDeviceACLResponse) GetAclTemplateOk() (*DeviceACLDetailsResponse, bool) { + if o == nil || IsNil(o.AclTemplate) { + return nil, false + } + return o.AclTemplate, true +} + +// HasAclTemplate returns a boolean if a field has been set. +func (o *InitialDeviceACLResponse) HasAclTemplate() bool { + if o != nil && !IsNil(o.AclTemplate) { + return true + } + + return false +} + +// SetAclTemplate gets a reference to the given DeviceACLDetailsResponse and assigns it to the AclTemplate field. +func (o *InitialDeviceACLResponse) SetAclTemplate(v DeviceACLDetailsResponse) { + o.AclTemplate = &v +} + +// GetMgmtAclTemplate returns the MgmtAclTemplate field value if set, zero value otherwise. +func (o *InitialDeviceACLResponse) GetMgmtAclTemplate() DeviceACLDetailsResponse { + if o == nil || IsNil(o.MgmtAclTemplate) { + var ret DeviceACLDetailsResponse + return ret + } + return *o.MgmtAclTemplate +} + +// GetMgmtAclTemplateOk returns a tuple with the MgmtAclTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InitialDeviceACLResponse) GetMgmtAclTemplateOk() (*DeviceACLDetailsResponse, bool) { + if o == nil || IsNil(o.MgmtAclTemplate) { + return nil, false + } + return o.MgmtAclTemplate, true +} + +// HasMgmtAclTemplate returns a boolean if a field has been set. +func (o *InitialDeviceACLResponse) HasMgmtAclTemplate() bool { + if o != nil && !IsNil(o.MgmtAclTemplate) { + return true + } + + return false +} + +// SetMgmtAclTemplate gets a reference to the given DeviceACLDetailsResponse and assigns it to the MgmtAclTemplate field. +func (o *InitialDeviceACLResponse) SetMgmtAclTemplate(v DeviceACLDetailsResponse) { + o.MgmtAclTemplate = &v +} + +func (o InitialDeviceACLResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InitialDeviceACLResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AclTemplate) { + toSerialize["aclTemplate"] = o.AclTemplate + } + if !IsNil(o.MgmtAclTemplate) { + toSerialize["mgmtAclTemplate"] = o.MgmtAclTemplate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InitialDeviceACLResponse) UnmarshalJSON(data []byte) (err error) { + varInitialDeviceACLResponse := _InitialDeviceACLResponse{} + + err = json.Unmarshal(data, &varInitialDeviceACLResponse) + + if err != nil { + return err + } + + *o = InitialDeviceACLResponse(varInitialDeviceACLResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "aclTemplate") + delete(additionalProperties, "mgmtAclTemplate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInitialDeviceACLResponse struct { + value *InitialDeviceACLResponse + isSet bool +} + +func (v NullableInitialDeviceACLResponse) Get() *InitialDeviceACLResponse { + return v.value +} + +func (v *NullableInitialDeviceACLResponse) Set(val *InitialDeviceACLResponse) { + v.value = val + v.isSet = true +} + +func (v NullableInitialDeviceACLResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableInitialDeviceACLResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInitialDeviceACLResponse(val *InitialDeviceACLResponse) *NullableInitialDeviceACLResponse { + return &NullableInitialDeviceACLResponse{value: val, isSet: true} +} + +func (v NullableInitialDeviceACLResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInitialDeviceACLResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_interface_basic_info_response.go b/services/networkedgev1/model_interface_basic_info_response.go new file mode 100644 index 00000000..cec8c3ca --- /dev/null +++ b/services/networkedgev1/model_interface_basic_info_response.go @@ -0,0 +1,414 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InterfaceBasicInfoResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceBasicInfoResponse{} + +// InterfaceBasicInfoResponse struct for InterfaceBasicInfoResponse +type InterfaceBasicInfoResponse struct { + Id *float32 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Status *string `json:"status,omitempty"` + OperationStatus *string `json:"operationStatus,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + IpAddress *string `json:"ipAddress,omitempty"` + AssignedType *string `json:"assignedType,omitempty"` + // The type of interface. + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceBasicInfoResponse InterfaceBasicInfoResponse + +// NewInterfaceBasicInfoResponse instantiates a new InterfaceBasicInfoResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceBasicInfoResponse() *InterfaceBasicInfoResponse { + this := InterfaceBasicInfoResponse{} + return &this +} + +// NewInterfaceBasicInfoResponseWithDefaults instantiates a new InterfaceBasicInfoResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceBasicInfoResponseWithDefaults() *InterfaceBasicInfoResponse { + this := InterfaceBasicInfoResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetId() float32 { + if o == nil || IsNil(o.Id) { + var ret float32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetIdOk() (*float32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given float32 and assigns it to the Id field. +func (o *InterfaceBasicInfoResponse) SetId(v float32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *InterfaceBasicInfoResponse) SetName(v string) { + o.Name = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *InterfaceBasicInfoResponse) SetStatus(v string) { + o.Status = &v +} + +// GetOperationStatus returns the OperationStatus field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetOperationStatus() string { + if o == nil || IsNil(o.OperationStatus) { + var ret string + return ret + } + return *o.OperationStatus +} + +// GetOperationStatusOk returns a tuple with the OperationStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetOperationStatusOk() (*string, bool) { + if o == nil || IsNil(o.OperationStatus) { + return nil, false + } + return o.OperationStatus, true +} + +// HasOperationStatus returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasOperationStatus() bool { + if o != nil && !IsNil(o.OperationStatus) { + return true + } + + return false +} + +// SetOperationStatus gets a reference to the given string and assigns it to the OperationStatus field. +func (o *InterfaceBasicInfoResponse) SetOperationStatus(v string) { + o.OperationStatus = &v +} + +// GetMacAddress returns the MacAddress field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetMacAddress() string { + if o == nil || IsNil(o.MacAddress) { + var ret string + return ret + } + return *o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetMacAddressOk() (*string, bool) { + if o == nil || IsNil(o.MacAddress) { + return nil, false + } + return o.MacAddress, true +} + +// HasMacAddress returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasMacAddress() bool { + if o != nil && !IsNil(o.MacAddress) { + return true + } + + return false +} + +// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field. +func (o *InterfaceBasicInfoResponse) SetMacAddress(v string) { + o.MacAddress = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetIpAddress() string { + if o == nil || IsNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.IpAddress) { + return nil, false + } + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasIpAddress() bool { + if o != nil && !IsNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *InterfaceBasicInfoResponse) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetAssignedType returns the AssignedType field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetAssignedType() string { + if o == nil || IsNil(o.AssignedType) { + var ret string + return ret + } + return *o.AssignedType +} + +// GetAssignedTypeOk returns a tuple with the AssignedType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetAssignedTypeOk() (*string, bool) { + if o == nil || IsNil(o.AssignedType) { + return nil, false + } + return o.AssignedType, true +} + +// HasAssignedType returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasAssignedType() bool { + if o != nil && !IsNil(o.AssignedType) { + return true + } + + return false +} + +// SetAssignedType gets a reference to the given string and assigns it to the AssignedType field. +func (o *InterfaceBasicInfoResponse) SetAssignedType(v string) { + o.AssignedType = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *InterfaceBasicInfoResponse) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceBasicInfoResponse) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *InterfaceBasicInfoResponse) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *InterfaceBasicInfoResponse) SetType(v string) { + o.Type = &v +} + +func (o InterfaceBasicInfoResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceBasicInfoResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.OperationStatus) { + toSerialize["operationStatus"] = o.OperationStatus + } + if !IsNil(o.MacAddress) { + toSerialize["macAddress"] = o.MacAddress + } + if !IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + if !IsNil(o.AssignedType) { + toSerialize["assignedType"] = o.AssignedType + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceBasicInfoResponse) UnmarshalJSON(data []byte) (err error) { + varInterfaceBasicInfoResponse := _InterfaceBasicInfoResponse{} + + err = json.Unmarshal(data, &varInterfaceBasicInfoResponse) + + if err != nil { + return err + } + + *o = InterfaceBasicInfoResponse(varInterfaceBasicInfoResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "operationStatus") + delete(additionalProperties, "macAddress") + delete(additionalProperties, "ipAddress") + delete(additionalProperties, "assignedType") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceBasicInfoResponse struct { + value *InterfaceBasicInfoResponse + isSet bool +} + +func (v NullableInterfaceBasicInfoResponse) Get() *InterfaceBasicInfoResponse { + return v.value +} + +func (v *NullableInterfaceBasicInfoResponse) Set(val *InterfaceBasicInfoResponse) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceBasicInfoResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceBasicInfoResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceBasicInfoResponse(val *InterfaceBasicInfoResponse) *NullableInterfaceBasicInfoResponse { + return &NullableInterfaceBasicInfoResponse{value: val, isSet: true} +} + +func (v NullableInterfaceBasicInfoResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceBasicInfoResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_interface_details.go b/services/networkedgev1/model_interface_details.go new file mode 100644 index 00000000..4087e212 --- /dev/null +++ b/services/networkedgev1/model_interface_details.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InterfaceDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceDetails{} + +// InterfaceDetails struct for InterfaceDetails +type InterfaceDetails struct { + // Name of the interface + Name *string `json:"name,omitempty"` + // Description of the interface + Description *string `json:"description,omitempty"` + // Interface Id. + InterfaceId *string `json:"interfaceId,omitempty"` + // Status of the interface. + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceDetails InterfaceDetails + +// NewInterfaceDetails instantiates a new InterfaceDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceDetails() *InterfaceDetails { + this := InterfaceDetails{} + return &this +} + +// NewInterfaceDetailsWithDefaults instantiates a new InterfaceDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceDetailsWithDefaults() *InterfaceDetails { + this := InterfaceDetails{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *InterfaceDetails) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDetails) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *InterfaceDetails) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *InterfaceDetails) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *InterfaceDetails) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDetails) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *InterfaceDetails) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *InterfaceDetails) SetDescription(v string) { + o.Description = &v +} + +// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise. +func (o *InterfaceDetails) GetInterfaceId() string { + if o == nil || IsNil(o.InterfaceId) { + var ret string + return ret + } + return *o.InterfaceId +} + +// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDetails) GetInterfaceIdOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceId) { + return nil, false + } + return o.InterfaceId, true +} + +// HasInterfaceId returns a boolean if a field has been set. +func (o *InterfaceDetails) HasInterfaceId() bool { + if o != nil && !IsNil(o.InterfaceId) { + return true + } + + return false +} + +// SetInterfaceId gets a reference to the given string and assigns it to the InterfaceId field. +func (o *InterfaceDetails) SetInterfaceId(v string) { + o.InterfaceId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InterfaceDetails) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceDetails) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *InterfaceDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *InterfaceDetails) SetStatus(v string) { + o.Status = &v +} + +func (o InterfaceDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.InterfaceId) { + toSerialize["interfaceId"] = o.InterfaceId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceDetails) UnmarshalJSON(data []byte) (err error) { + varInterfaceDetails := _InterfaceDetails{} + + err = json.Unmarshal(data, &varInterfaceDetails) + + if err != nil { + return err + } + + *o = InterfaceDetails(varInterfaceDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "interfaceId") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceDetails struct { + value *InterfaceDetails + isSet bool +} + +func (v NullableInterfaceDetails) Get() *InterfaceDetails { + return v.value +} + +func (v *NullableInterfaceDetails) Set(val *InterfaceDetails) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceDetails(val *InterfaceDetails) *NullableInterfaceDetails { + return &NullableInterfaceDetails{value: val, isSet: true} +} + +func (v NullableInterfaceDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_interface_stats_detail_object.go b/services/networkedgev1/model_interface_stats_detail_object.go new file mode 100644 index 00000000..641d1578 --- /dev/null +++ b/services/networkedgev1/model_interface_stats_detail_object.go @@ -0,0 +1,305 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InterfaceStatsDetailObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceStatsDetailObject{} + +// InterfaceStatsDetailObject struct for InterfaceStatsDetailObject +type InterfaceStatsDetailObject struct { + // Start time of the duration for which you want stats. + StartDateTime *string `json:"startDateTime,omitempty"` + // End time of the duration for which you want stats. + EndDateTime *string `json:"endDateTime,omitempty"` + // Unit. + Unit *string `json:"unit,omitempty"` + Inbound *InterfaceStatsofTraffic `json:"inbound,omitempty"` + Outbound *InterfaceStatsofTraffic `json:"outbound,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceStatsDetailObject InterfaceStatsDetailObject + +// NewInterfaceStatsDetailObject instantiates a new InterfaceStatsDetailObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceStatsDetailObject() *InterfaceStatsDetailObject { + this := InterfaceStatsDetailObject{} + return &this +} + +// NewInterfaceStatsDetailObjectWithDefaults instantiates a new InterfaceStatsDetailObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceStatsDetailObjectWithDefaults() *InterfaceStatsDetailObject { + this := InterfaceStatsDetailObject{} + return &this +} + +// GetStartDateTime returns the StartDateTime field value if set, zero value otherwise. +func (o *InterfaceStatsDetailObject) GetStartDateTime() string { + if o == nil || IsNil(o.StartDateTime) { + var ret string + return ret + } + return *o.StartDateTime +} + +// GetStartDateTimeOk returns a tuple with the StartDateTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsDetailObject) GetStartDateTimeOk() (*string, bool) { + if o == nil || IsNil(o.StartDateTime) { + return nil, false + } + return o.StartDateTime, true +} + +// HasStartDateTime returns a boolean if a field has been set. +func (o *InterfaceStatsDetailObject) HasStartDateTime() bool { + if o != nil && !IsNil(o.StartDateTime) { + return true + } + + return false +} + +// SetStartDateTime gets a reference to the given string and assigns it to the StartDateTime field. +func (o *InterfaceStatsDetailObject) SetStartDateTime(v string) { + o.StartDateTime = &v +} + +// GetEndDateTime returns the EndDateTime field value if set, zero value otherwise. +func (o *InterfaceStatsDetailObject) GetEndDateTime() string { + if o == nil || IsNil(o.EndDateTime) { + var ret string + return ret + } + return *o.EndDateTime +} + +// GetEndDateTimeOk returns a tuple with the EndDateTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsDetailObject) GetEndDateTimeOk() (*string, bool) { + if o == nil || IsNil(o.EndDateTime) { + return nil, false + } + return o.EndDateTime, true +} + +// HasEndDateTime returns a boolean if a field has been set. +func (o *InterfaceStatsDetailObject) HasEndDateTime() bool { + if o != nil && !IsNil(o.EndDateTime) { + return true + } + + return false +} + +// SetEndDateTime gets a reference to the given string and assigns it to the EndDateTime field. +func (o *InterfaceStatsDetailObject) SetEndDateTime(v string) { + o.EndDateTime = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *InterfaceStatsDetailObject) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsDetailObject) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *InterfaceStatsDetailObject) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *InterfaceStatsDetailObject) SetUnit(v string) { + o.Unit = &v +} + +// GetInbound returns the Inbound field value if set, zero value otherwise. +func (o *InterfaceStatsDetailObject) GetInbound() InterfaceStatsofTraffic { + if o == nil || IsNil(o.Inbound) { + var ret InterfaceStatsofTraffic + return ret + } + return *o.Inbound +} + +// GetInboundOk returns a tuple with the Inbound field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsDetailObject) GetInboundOk() (*InterfaceStatsofTraffic, bool) { + if o == nil || IsNil(o.Inbound) { + return nil, false + } + return o.Inbound, true +} + +// HasInbound returns a boolean if a field has been set. +func (o *InterfaceStatsDetailObject) HasInbound() bool { + if o != nil && !IsNil(o.Inbound) { + return true + } + + return false +} + +// SetInbound gets a reference to the given InterfaceStatsofTraffic and assigns it to the Inbound field. +func (o *InterfaceStatsDetailObject) SetInbound(v InterfaceStatsofTraffic) { + o.Inbound = &v +} + +// GetOutbound returns the Outbound field value if set, zero value otherwise. +func (o *InterfaceStatsDetailObject) GetOutbound() InterfaceStatsofTraffic { + if o == nil || IsNil(o.Outbound) { + var ret InterfaceStatsofTraffic + return ret + } + return *o.Outbound +} + +// GetOutboundOk returns a tuple with the Outbound field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsDetailObject) GetOutboundOk() (*InterfaceStatsofTraffic, bool) { + if o == nil || IsNil(o.Outbound) { + return nil, false + } + return o.Outbound, true +} + +// HasOutbound returns a boolean if a field has been set. +func (o *InterfaceStatsDetailObject) HasOutbound() bool { + if o != nil && !IsNil(o.Outbound) { + return true + } + + return false +} + +// SetOutbound gets a reference to the given InterfaceStatsofTraffic and assigns it to the Outbound field. +func (o *InterfaceStatsDetailObject) SetOutbound(v InterfaceStatsofTraffic) { + o.Outbound = &v +} + +func (o InterfaceStatsDetailObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceStatsDetailObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.StartDateTime) { + toSerialize["startDateTime"] = o.StartDateTime + } + if !IsNil(o.EndDateTime) { + toSerialize["endDateTime"] = o.EndDateTime + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Inbound) { + toSerialize["inbound"] = o.Inbound + } + if !IsNil(o.Outbound) { + toSerialize["outbound"] = o.Outbound + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceStatsDetailObject) UnmarshalJSON(data []byte) (err error) { + varInterfaceStatsDetailObject := _InterfaceStatsDetailObject{} + + err = json.Unmarshal(data, &varInterfaceStatsDetailObject) + + if err != nil { + return err + } + + *o = InterfaceStatsDetailObject(varInterfaceStatsDetailObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "startDateTime") + delete(additionalProperties, "endDateTime") + delete(additionalProperties, "unit") + delete(additionalProperties, "inbound") + delete(additionalProperties, "outbound") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceStatsDetailObject struct { + value *InterfaceStatsDetailObject + isSet bool +} + +func (v NullableInterfaceStatsDetailObject) Get() *InterfaceStatsDetailObject { + return v.value +} + +func (v *NullableInterfaceStatsDetailObject) Set(val *InterfaceStatsDetailObject) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceStatsDetailObject) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceStatsDetailObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceStatsDetailObject(val *InterfaceStatsDetailObject) *NullableInterfaceStatsDetailObject { + return &NullableInterfaceStatsDetailObject{value: val, isSet: true} +} + +func (v NullableInterfaceStatsDetailObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceStatsDetailObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_interface_stats_object.go b/services/networkedgev1/model_interface_stats_object.go new file mode 100644 index 00000000..bb726482 --- /dev/null +++ b/services/networkedgev1/model_interface_stats_object.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InterfaceStatsObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceStatsObject{} + +// InterfaceStatsObject struct for InterfaceStatsObject +type InterfaceStatsObject struct { + Stats *InterfaceStatsDetailObject `json:"stats,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceStatsObject InterfaceStatsObject + +// NewInterfaceStatsObject instantiates a new InterfaceStatsObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceStatsObject() *InterfaceStatsObject { + this := InterfaceStatsObject{} + return &this +} + +// NewInterfaceStatsObjectWithDefaults instantiates a new InterfaceStatsObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceStatsObjectWithDefaults() *InterfaceStatsObject { + this := InterfaceStatsObject{} + return &this +} + +// GetStats returns the Stats field value if set, zero value otherwise. +func (o *InterfaceStatsObject) GetStats() InterfaceStatsDetailObject { + if o == nil || IsNil(o.Stats) { + var ret InterfaceStatsDetailObject + return ret + } + return *o.Stats +} + +// GetStatsOk returns a tuple with the Stats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsObject) GetStatsOk() (*InterfaceStatsDetailObject, bool) { + if o == nil || IsNil(o.Stats) { + return nil, false + } + return o.Stats, true +} + +// HasStats returns a boolean if a field has been set. +func (o *InterfaceStatsObject) HasStats() bool { + if o != nil && !IsNil(o.Stats) { + return true + } + + return false +} + +// SetStats gets a reference to the given InterfaceStatsDetailObject and assigns it to the Stats field. +func (o *InterfaceStatsObject) SetStats(v InterfaceStatsDetailObject) { + o.Stats = &v +} + +func (o InterfaceStatsObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceStatsObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Stats) { + toSerialize["stats"] = o.Stats + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceStatsObject) UnmarshalJSON(data []byte) (err error) { + varInterfaceStatsObject := _InterfaceStatsObject{} + + err = json.Unmarshal(data, &varInterfaceStatsObject) + + if err != nil { + return err + } + + *o = InterfaceStatsObject(varInterfaceStatsObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "stats") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceStatsObject struct { + value *InterfaceStatsObject + isSet bool +} + +func (v NullableInterfaceStatsObject) Get() *InterfaceStatsObject { + return v.value +} + +func (v *NullableInterfaceStatsObject) Set(val *InterfaceStatsObject) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceStatsObject) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceStatsObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceStatsObject(val *InterfaceStatsObject) *NullableInterfaceStatsObject { + return &NullableInterfaceStatsObject{value: val, isSet: true} +} + +func (v NullableInterfaceStatsObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceStatsObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_interface_statsof_traffic.go b/services/networkedgev1/model_interface_statsof_traffic.go new file mode 100644 index 00000000..64697289 --- /dev/null +++ b/services/networkedgev1/model_interface_statsof_traffic.go @@ -0,0 +1,268 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the InterfaceStatsofTraffic type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceStatsofTraffic{} + +// InterfaceStatsofTraffic struct for InterfaceStatsofTraffic +type InterfaceStatsofTraffic struct { + // Max throughput during the time interval. + Max *float32 `json:"max,omitempty"` + // Mean throughput during the time interval. + Mean *float32 `json:"mean,omitempty"` + // The throughput of the last polled data. + LastPolled *float32 `json:"lastPolled,omitempty"` + Metrics []PolledThroughputMetrics `json:"metrics,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceStatsofTraffic InterfaceStatsofTraffic + +// NewInterfaceStatsofTraffic instantiates a new InterfaceStatsofTraffic object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceStatsofTraffic() *InterfaceStatsofTraffic { + this := InterfaceStatsofTraffic{} + return &this +} + +// NewInterfaceStatsofTrafficWithDefaults instantiates a new InterfaceStatsofTraffic object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceStatsofTrafficWithDefaults() *InterfaceStatsofTraffic { + this := InterfaceStatsofTraffic{} + return &this +} + +// GetMax returns the Max field value if set, zero value otherwise. +func (o *InterfaceStatsofTraffic) GetMax() float32 { + if o == nil || IsNil(o.Max) { + var ret float32 + return ret + } + return *o.Max +} + +// GetMaxOk returns a tuple with the Max field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsofTraffic) GetMaxOk() (*float32, bool) { + if o == nil || IsNil(o.Max) { + return nil, false + } + return o.Max, true +} + +// HasMax returns a boolean if a field has been set. +func (o *InterfaceStatsofTraffic) HasMax() bool { + if o != nil && !IsNil(o.Max) { + return true + } + + return false +} + +// SetMax gets a reference to the given float32 and assigns it to the Max field. +func (o *InterfaceStatsofTraffic) SetMax(v float32) { + o.Max = &v +} + +// GetMean returns the Mean field value if set, zero value otherwise. +func (o *InterfaceStatsofTraffic) GetMean() float32 { + if o == nil || IsNil(o.Mean) { + var ret float32 + return ret + } + return *o.Mean +} + +// GetMeanOk returns a tuple with the Mean field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsofTraffic) GetMeanOk() (*float32, bool) { + if o == nil || IsNil(o.Mean) { + return nil, false + } + return o.Mean, true +} + +// HasMean returns a boolean if a field has been set. +func (o *InterfaceStatsofTraffic) HasMean() bool { + if o != nil && !IsNil(o.Mean) { + return true + } + + return false +} + +// SetMean gets a reference to the given float32 and assigns it to the Mean field. +func (o *InterfaceStatsofTraffic) SetMean(v float32) { + o.Mean = &v +} + +// GetLastPolled returns the LastPolled field value if set, zero value otherwise. +func (o *InterfaceStatsofTraffic) GetLastPolled() float32 { + if o == nil || IsNil(o.LastPolled) { + var ret float32 + return ret + } + return *o.LastPolled +} + +// GetLastPolledOk returns a tuple with the LastPolled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsofTraffic) GetLastPolledOk() (*float32, bool) { + if o == nil || IsNil(o.LastPolled) { + return nil, false + } + return o.LastPolled, true +} + +// HasLastPolled returns a boolean if a field has been set. +func (o *InterfaceStatsofTraffic) HasLastPolled() bool { + if o != nil && !IsNil(o.LastPolled) { + return true + } + + return false +} + +// SetLastPolled gets a reference to the given float32 and assigns it to the LastPolled field. +func (o *InterfaceStatsofTraffic) SetLastPolled(v float32) { + o.LastPolled = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *InterfaceStatsofTraffic) GetMetrics() []PolledThroughputMetrics { + if o == nil || IsNil(o.Metrics) { + var ret []PolledThroughputMetrics + return ret + } + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceStatsofTraffic) GetMetricsOk() ([]PolledThroughputMetrics, bool) { + if o == nil || IsNil(o.Metrics) { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *InterfaceStatsofTraffic) HasMetrics() bool { + if o != nil && !IsNil(o.Metrics) { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []PolledThroughputMetrics and assigns it to the Metrics field. +func (o *InterfaceStatsofTraffic) SetMetrics(v []PolledThroughputMetrics) { + o.Metrics = v +} + +func (o InterfaceStatsofTraffic) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceStatsofTraffic) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Max) { + toSerialize["max"] = o.Max + } + if !IsNil(o.Mean) { + toSerialize["mean"] = o.Mean + } + if !IsNil(o.LastPolled) { + toSerialize["lastPolled"] = o.LastPolled + } + if !IsNil(o.Metrics) { + toSerialize["metrics"] = o.Metrics + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceStatsofTraffic) UnmarshalJSON(data []byte) (err error) { + varInterfaceStatsofTraffic := _InterfaceStatsofTraffic{} + + err = json.Unmarshal(data, &varInterfaceStatsofTraffic) + + if err != nil { + return err + } + + *o = InterfaceStatsofTraffic(varInterfaceStatsofTraffic) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "max") + delete(additionalProperties, "mean") + delete(additionalProperties, "lastPolled") + delete(additionalProperties, "metrics") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceStatsofTraffic struct { + value *InterfaceStatsofTraffic + isSet bool +} + +func (v NullableInterfaceStatsofTraffic) Get() *InterfaceStatsofTraffic { + return v.value +} + +func (v *NullableInterfaceStatsofTraffic) Set(val *InterfaceStatsofTraffic) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceStatsofTraffic) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceStatsofTraffic) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceStatsofTraffic(val *InterfaceStatsofTraffic) *NullableInterfaceStatsofTraffic { + return &NullableInterfaceStatsofTraffic{value: val, isSet: true} +} + +func (v NullableInterfaceStatsofTraffic) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceStatsofTraffic) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_json_node.go b/services/networkedgev1/model_json_node.go new file mode 100644 index 00000000..fa0576ae --- /dev/null +++ b/services/networkedgev1/model_json_node.go @@ -0,0 +1,894 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the JsonNode type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &JsonNode{} + +// JsonNode struct for JsonNode +type JsonNode struct { + Array *bool `json:"array,omitempty"` + BigDecimal *bool `json:"bigDecimal,omitempty"` + BigInteger *bool `json:"bigInteger,omitempty"` + Binary *bool `json:"binary,omitempty"` + Boolean *bool `json:"boolean,omitempty"` + ContainerNode *bool `json:"containerNode,omitempty"` + Double *bool `json:"double,omitempty"` + Float *bool `json:"float,omitempty"` + FloatingPointNumber *bool `json:"floatingPointNumber,omitempty"` + Int *bool `json:"int,omitempty"` + IntegralNumber *bool `json:"integralNumber,omitempty"` + Long *bool `json:"long,omitempty"` + MissingNode *bool `json:"missingNode,omitempty"` + NodeType *JsonNodeNodeType `json:"nodeType,omitempty"` + Null *bool `json:"null,omitempty"` + Number *bool `json:"number,omitempty"` + Object *bool `json:"object,omitempty"` + Pojo *bool `json:"pojo,omitempty"` + Short *bool `json:"short,omitempty"` + Textual *bool `json:"textual,omitempty"` + ValueNode *bool `json:"valueNode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _JsonNode JsonNode + +// NewJsonNode instantiates a new JsonNode object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewJsonNode() *JsonNode { + this := JsonNode{} + return &this +} + +// NewJsonNodeWithDefaults instantiates a new JsonNode object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewJsonNodeWithDefaults() *JsonNode { + this := JsonNode{} + return &this +} + +// GetArray returns the Array field value if set, zero value otherwise. +func (o *JsonNode) GetArray() bool { + if o == nil || IsNil(o.Array) { + var ret bool + return ret + } + return *o.Array +} + +// GetArrayOk returns a tuple with the Array field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetArrayOk() (*bool, bool) { + if o == nil || IsNil(o.Array) { + return nil, false + } + return o.Array, true +} + +// HasArray returns a boolean if a field has been set. +func (o *JsonNode) HasArray() bool { + if o != nil && !IsNil(o.Array) { + return true + } + + return false +} + +// SetArray gets a reference to the given bool and assigns it to the Array field. +func (o *JsonNode) SetArray(v bool) { + o.Array = &v +} + +// GetBigDecimal returns the BigDecimal field value if set, zero value otherwise. +func (o *JsonNode) GetBigDecimal() bool { + if o == nil || IsNil(o.BigDecimal) { + var ret bool + return ret + } + return *o.BigDecimal +} + +// GetBigDecimalOk returns a tuple with the BigDecimal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetBigDecimalOk() (*bool, bool) { + if o == nil || IsNil(o.BigDecimal) { + return nil, false + } + return o.BigDecimal, true +} + +// HasBigDecimal returns a boolean if a field has been set. +func (o *JsonNode) HasBigDecimal() bool { + if o != nil && !IsNil(o.BigDecimal) { + return true + } + + return false +} + +// SetBigDecimal gets a reference to the given bool and assigns it to the BigDecimal field. +func (o *JsonNode) SetBigDecimal(v bool) { + o.BigDecimal = &v +} + +// GetBigInteger returns the BigInteger field value if set, zero value otherwise. +func (o *JsonNode) GetBigInteger() bool { + if o == nil || IsNil(o.BigInteger) { + var ret bool + return ret + } + return *o.BigInteger +} + +// GetBigIntegerOk returns a tuple with the BigInteger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetBigIntegerOk() (*bool, bool) { + if o == nil || IsNil(o.BigInteger) { + return nil, false + } + return o.BigInteger, true +} + +// HasBigInteger returns a boolean if a field has been set. +func (o *JsonNode) HasBigInteger() bool { + if o != nil && !IsNil(o.BigInteger) { + return true + } + + return false +} + +// SetBigInteger gets a reference to the given bool and assigns it to the BigInteger field. +func (o *JsonNode) SetBigInteger(v bool) { + o.BigInteger = &v +} + +// GetBinary returns the Binary field value if set, zero value otherwise. +func (o *JsonNode) GetBinary() bool { + if o == nil || IsNil(o.Binary) { + var ret bool + return ret + } + return *o.Binary +} + +// GetBinaryOk returns a tuple with the Binary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetBinaryOk() (*bool, bool) { + if o == nil || IsNil(o.Binary) { + return nil, false + } + return o.Binary, true +} + +// HasBinary returns a boolean if a field has been set. +func (o *JsonNode) HasBinary() bool { + if o != nil && !IsNil(o.Binary) { + return true + } + + return false +} + +// SetBinary gets a reference to the given bool and assigns it to the Binary field. +func (o *JsonNode) SetBinary(v bool) { + o.Binary = &v +} + +// GetBoolean returns the Boolean field value if set, zero value otherwise. +func (o *JsonNode) GetBoolean() bool { + if o == nil || IsNil(o.Boolean) { + var ret bool + return ret + } + return *o.Boolean +} + +// GetBooleanOk returns a tuple with the Boolean field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetBooleanOk() (*bool, bool) { + if o == nil || IsNil(o.Boolean) { + return nil, false + } + return o.Boolean, true +} + +// HasBoolean returns a boolean if a field has been set. +func (o *JsonNode) HasBoolean() bool { + if o != nil && !IsNil(o.Boolean) { + return true + } + + return false +} + +// SetBoolean gets a reference to the given bool and assigns it to the Boolean field. +func (o *JsonNode) SetBoolean(v bool) { + o.Boolean = &v +} + +// GetContainerNode returns the ContainerNode field value if set, zero value otherwise. +func (o *JsonNode) GetContainerNode() bool { + if o == nil || IsNil(o.ContainerNode) { + var ret bool + return ret + } + return *o.ContainerNode +} + +// GetContainerNodeOk returns a tuple with the ContainerNode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetContainerNodeOk() (*bool, bool) { + if o == nil || IsNil(o.ContainerNode) { + return nil, false + } + return o.ContainerNode, true +} + +// HasContainerNode returns a boolean if a field has been set. +func (o *JsonNode) HasContainerNode() bool { + if o != nil && !IsNil(o.ContainerNode) { + return true + } + + return false +} + +// SetContainerNode gets a reference to the given bool and assigns it to the ContainerNode field. +func (o *JsonNode) SetContainerNode(v bool) { + o.ContainerNode = &v +} + +// GetDouble returns the Double field value if set, zero value otherwise. +func (o *JsonNode) GetDouble() bool { + if o == nil || IsNil(o.Double) { + var ret bool + return ret + } + return *o.Double +} + +// GetDoubleOk returns a tuple with the Double field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetDoubleOk() (*bool, bool) { + if o == nil || IsNil(o.Double) { + return nil, false + } + return o.Double, true +} + +// HasDouble returns a boolean if a field has been set. +func (o *JsonNode) HasDouble() bool { + if o != nil && !IsNil(o.Double) { + return true + } + + return false +} + +// SetDouble gets a reference to the given bool and assigns it to the Double field. +func (o *JsonNode) SetDouble(v bool) { + o.Double = &v +} + +// GetFloat returns the Float field value if set, zero value otherwise. +func (o *JsonNode) GetFloat() bool { + if o == nil || IsNil(o.Float) { + var ret bool + return ret + } + return *o.Float +} + +// GetFloatOk returns a tuple with the Float field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetFloatOk() (*bool, bool) { + if o == nil || IsNil(o.Float) { + return nil, false + } + return o.Float, true +} + +// HasFloat returns a boolean if a field has been set. +func (o *JsonNode) HasFloat() bool { + if o != nil && !IsNil(o.Float) { + return true + } + + return false +} + +// SetFloat gets a reference to the given bool and assigns it to the Float field. +func (o *JsonNode) SetFloat(v bool) { + o.Float = &v +} + +// GetFloatingPointNumber returns the FloatingPointNumber field value if set, zero value otherwise. +func (o *JsonNode) GetFloatingPointNumber() bool { + if o == nil || IsNil(o.FloatingPointNumber) { + var ret bool + return ret + } + return *o.FloatingPointNumber +} + +// GetFloatingPointNumberOk returns a tuple with the FloatingPointNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetFloatingPointNumberOk() (*bool, bool) { + if o == nil || IsNil(o.FloatingPointNumber) { + return nil, false + } + return o.FloatingPointNumber, true +} + +// HasFloatingPointNumber returns a boolean if a field has been set. +func (o *JsonNode) HasFloatingPointNumber() bool { + if o != nil && !IsNil(o.FloatingPointNumber) { + return true + } + + return false +} + +// SetFloatingPointNumber gets a reference to the given bool and assigns it to the FloatingPointNumber field. +func (o *JsonNode) SetFloatingPointNumber(v bool) { + o.FloatingPointNumber = &v +} + +// GetInt returns the Int field value if set, zero value otherwise. +func (o *JsonNode) GetInt() bool { + if o == nil || IsNil(o.Int) { + var ret bool + return ret + } + return *o.Int +} + +// GetIntOk returns a tuple with the Int field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetIntOk() (*bool, bool) { + if o == nil || IsNil(o.Int) { + return nil, false + } + return o.Int, true +} + +// HasInt returns a boolean if a field has been set. +func (o *JsonNode) HasInt() bool { + if o != nil && !IsNil(o.Int) { + return true + } + + return false +} + +// SetInt gets a reference to the given bool and assigns it to the Int field. +func (o *JsonNode) SetInt(v bool) { + o.Int = &v +} + +// GetIntegralNumber returns the IntegralNumber field value if set, zero value otherwise. +func (o *JsonNode) GetIntegralNumber() bool { + if o == nil || IsNil(o.IntegralNumber) { + var ret bool + return ret + } + return *o.IntegralNumber +} + +// GetIntegralNumberOk returns a tuple with the IntegralNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetIntegralNumberOk() (*bool, bool) { + if o == nil || IsNil(o.IntegralNumber) { + return nil, false + } + return o.IntegralNumber, true +} + +// HasIntegralNumber returns a boolean if a field has been set. +func (o *JsonNode) HasIntegralNumber() bool { + if o != nil && !IsNil(o.IntegralNumber) { + return true + } + + return false +} + +// SetIntegralNumber gets a reference to the given bool and assigns it to the IntegralNumber field. +func (o *JsonNode) SetIntegralNumber(v bool) { + o.IntegralNumber = &v +} + +// GetLong returns the Long field value if set, zero value otherwise. +func (o *JsonNode) GetLong() bool { + if o == nil || IsNil(o.Long) { + var ret bool + return ret + } + return *o.Long +} + +// GetLongOk returns a tuple with the Long field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetLongOk() (*bool, bool) { + if o == nil || IsNil(o.Long) { + return nil, false + } + return o.Long, true +} + +// HasLong returns a boolean if a field has been set. +func (o *JsonNode) HasLong() bool { + if o != nil && !IsNil(o.Long) { + return true + } + + return false +} + +// SetLong gets a reference to the given bool and assigns it to the Long field. +func (o *JsonNode) SetLong(v bool) { + o.Long = &v +} + +// GetMissingNode returns the MissingNode field value if set, zero value otherwise. +func (o *JsonNode) GetMissingNode() bool { + if o == nil || IsNil(o.MissingNode) { + var ret bool + return ret + } + return *o.MissingNode +} + +// GetMissingNodeOk returns a tuple with the MissingNode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetMissingNodeOk() (*bool, bool) { + if o == nil || IsNil(o.MissingNode) { + return nil, false + } + return o.MissingNode, true +} + +// HasMissingNode returns a boolean if a field has been set. +func (o *JsonNode) HasMissingNode() bool { + if o != nil && !IsNil(o.MissingNode) { + return true + } + + return false +} + +// SetMissingNode gets a reference to the given bool and assigns it to the MissingNode field. +func (o *JsonNode) SetMissingNode(v bool) { + o.MissingNode = &v +} + +// GetNodeType returns the NodeType field value if set, zero value otherwise. +func (o *JsonNode) GetNodeType() JsonNodeNodeType { + if o == nil || IsNil(o.NodeType) { + var ret JsonNodeNodeType + return ret + } + return *o.NodeType +} + +// GetNodeTypeOk returns a tuple with the NodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetNodeTypeOk() (*JsonNodeNodeType, bool) { + if o == nil || IsNil(o.NodeType) { + return nil, false + } + return o.NodeType, true +} + +// HasNodeType returns a boolean if a field has been set. +func (o *JsonNode) HasNodeType() bool { + if o != nil && !IsNil(o.NodeType) { + return true + } + + return false +} + +// SetNodeType gets a reference to the given JsonNodeNodeType and assigns it to the NodeType field. +func (o *JsonNode) SetNodeType(v JsonNodeNodeType) { + o.NodeType = &v +} + +// GetNull returns the Null field value if set, zero value otherwise. +func (o *JsonNode) GetNull() bool { + if o == nil || IsNil(o.Null) { + var ret bool + return ret + } + return *o.Null +} + +// GetNullOk returns a tuple with the Null field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetNullOk() (*bool, bool) { + if o == nil || IsNil(o.Null) { + return nil, false + } + return o.Null, true +} + +// HasNull returns a boolean if a field has been set. +func (o *JsonNode) HasNull() bool { + if o != nil && !IsNil(o.Null) { + return true + } + + return false +} + +// SetNull gets a reference to the given bool and assigns it to the Null field. +func (o *JsonNode) SetNull(v bool) { + o.Null = &v +} + +// GetNumber returns the Number field value if set, zero value otherwise. +func (o *JsonNode) GetNumber() bool { + if o == nil || IsNil(o.Number) { + var ret bool + return ret + } + return *o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetNumberOk() (*bool, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *JsonNode) HasNumber() bool { + if o != nil && !IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given bool and assigns it to the Number field. +func (o *JsonNode) SetNumber(v bool) { + o.Number = &v +} + +// GetObject returns the Object field value if set, zero value otherwise. +func (o *JsonNode) GetObject() bool { + if o == nil || IsNil(o.Object) { + var ret bool + return ret + } + return *o.Object +} + +// GetObjectOk returns a tuple with the Object field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetObjectOk() (*bool, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *JsonNode) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given bool and assigns it to the Object field. +func (o *JsonNode) SetObject(v bool) { + o.Object = &v +} + +// GetPojo returns the Pojo field value if set, zero value otherwise. +func (o *JsonNode) GetPojo() bool { + if o == nil || IsNil(o.Pojo) { + var ret bool + return ret + } + return *o.Pojo +} + +// GetPojoOk returns a tuple with the Pojo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetPojoOk() (*bool, bool) { + if o == nil || IsNil(o.Pojo) { + return nil, false + } + return o.Pojo, true +} + +// HasPojo returns a boolean if a field has been set. +func (o *JsonNode) HasPojo() bool { + if o != nil && !IsNil(o.Pojo) { + return true + } + + return false +} + +// SetPojo gets a reference to the given bool and assigns it to the Pojo field. +func (o *JsonNode) SetPojo(v bool) { + o.Pojo = &v +} + +// GetShort returns the Short field value if set, zero value otherwise. +func (o *JsonNode) GetShort() bool { + if o == nil || IsNil(o.Short) { + var ret bool + return ret + } + return *o.Short +} + +// GetShortOk returns a tuple with the Short field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetShortOk() (*bool, bool) { + if o == nil || IsNil(o.Short) { + return nil, false + } + return o.Short, true +} + +// HasShort returns a boolean if a field has been set. +func (o *JsonNode) HasShort() bool { + if o != nil && !IsNil(o.Short) { + return true + } + + return false +} + +// SetShort gets a reference to the given bool and assigns it to the Short field. +func (o *JsonNode) SetShort(v bool) { + o.Short = &v +} + +// GetTextual returns the Textual field value if set, zero value otherwise. +func (o *JsonNode) GetTextual() bool { + if o == nil || IsNil(o.Textual) { + var ret bool + return ret + } + return *o.Textual +} + +// GetTextualOk returns a tuple with the Textual field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetTextualOk() (*bool, bool) { + if o == nil || IsNil(o.Textual) { + return nil, false + } + return o.Textual, true +} + +// HasTextual returns a boolean if a field has been set. +func (o *JsonNode) HasTextual() bool { + if o != nil && !IsNil(o.Textual) { + return true + } + + return false +} + +// SetTextual gets a reference to the given bool and assigns it to the Textual field. +func (o *JsonNode) SetTextual(v bool) { + o.Textual = &v +} + +// GetValueNode returns the ValueNode field value if set, zero value otherwise. +func (o *JsonNode) GetValueNode() bool { + if o == nil || IsNil(o.ValueNode) { + var ret bool + return ret + } + return *o.ValueNode +} + +// GetValueNodeOk returns a tuple with the ValueNode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JsonNode) GetValueNodeOk() (*bool, bool) { + if o == nil || IsNil(o.ValueNode) { + return nil, false + } + return o.ValueNode, true +} + +// HasValueNode returns a boolean if a field has been set. +func (o *JsonNode) HasValueNode() bool { + if o != nil && !IsNil(o.ValueNode) { + return true + } + + return false +} + +// SetValueNode gets a reference to the given bool and assigns it to the ValueNode field. +func (o *JsonNode) SetValueNode(v bool) { + o.ValueNode = &v +} + +func (o JsonNode) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o JsonNode) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Array) { + toSerialize["array"] = o.Array + } + if !IsNil(o.BigDecimal) { + toSerialize["bigDecimal"] = o.BigDecimal + } + if !IsNil(o.BigInteger) { + toSerialize["bigInteger"] = o.BigInteger + } + if !IsNil(o.Binary) { + toSerialize["binary"] = o.Binary + } + if !IsNil(o.Boolean) { + toSerialize["boolean"] = o.Boolean + } + if !IsNil(o.ContainerNode) { + toSerialize["containerNode"] = o.ContainerNode + } + if !IsNil(o.Double) { + toSerialize["double"] = o.Double + } + if !IsNil(o.Float) { + toSerialize["float"] = o.Float + } + if !IsNil(o.FloatingPointNumber) { + toSerialize["floatingPointNumber"] = o.FloatingPointNumber + } + if !IsNil(o.Int) { + toSerialize["int"] = o.Int + } + if !IsNil(o.IntegralNumber) { + toSerialize["integralNumber"] = o.IntegralNumber + } + if !IsNil(o.Long) { + toSerialize["long"] = o.Long + } + if !IsNil(o.MissingNode) { + toSerialize["missingNode"] = o.MissingNode + } + if !IsNil(o.NodeType) { + toSerialize["nodeType"] = o.NodeType + } + if !IsNil(o.Null) { + toSerialize["null"] = o.Null + } + if !IsNil(o.Number) { + toSerialize["number"] = o.Number + } + if !IsNil(o.Object) { + toSerialize["object"] = o.Object + } + if !IsNil(o.Pojo) { + toSerialize["pojo"] = o.Pojo + } + if !IsNil(o.Short) { + toSerialize["short"] = o.Short + } + if !IsNil(o.Textual) { + toSerialize["textual"] = o.Textual + } + if !IsNil(o.ValueNode) { + toSerialize["valueNode"] = o.ValueNode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *JsonNode) UnmarshalJSON(data []byte) (err error) { + varJsonNode := _JsonNode{} + + err = json.Unmarshal(data, &varJsonNode) + + if err != nil { + return err + } + + *o = JsonNode(varJsonNode) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "array") + delete(additionalProperties, "bigDecimal") + delete(additionalProperties, "bigInteger") + delete(additionalProperties, "binary") + delete(additionalProperties, "boolean") + delete(additionalProperties, "containerNode") + delete(additionalProperties, "double") + delete(additionalProperties, "float") + delete(additionalProperties, "floatingPointNumber") + delete(additionalProperties, "int") + delete(additionalProperties, "integralNumber") + delete(additionalProperties, "long") + delete(additionalProperties, "missingNode") + delete(additionalProperties, "nodeType") + delete(additionalProperties, "null") + delete(additionalProperties, "number") + delete(additionalProperties, "object") + delete(additionalProperties, "pojo") + delete(additionalProperties, "short") + delete(additionalProperties, "textual") + delete(additionalProperties, "valueNode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableJsonNode struct { + value *JsonNode + isSet bool +} + +func (v NullableJsonNode) Get() *JsonNode { + return v.value +} + +func (v *NullableJsonNode) Set(val *JsonNode) { + v.value = val + v.isSet = true +} + +func (v NullableJsonNode) IsSet() bool { + return v.isSet +} + +func (v *NullableJsonNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJsonNode(val *JsonNode) *NullableJsonNode { + return &NullableJsonNode{value: val, isSet: true} +} + +func (v NullableJsonNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJsonNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_json_node_node_type.go b/services/networkedgev1/model_json_node_node_type.go new file mode 100644 index 00000000..bb10cc60 --- /dev/null +++ b/services/networkedgev1/model_json_node_node_type.go @@ -0,0 +1,125 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// JsonNodeNodeType the model 'JsonNodeNodeType' +type JsonNodeNodeType string + +// List of JsonNode_nodeType +const ( + JSONNODENODETYPE_ARRAY JsonNodeNodeType = "ARRAY" + JSONNODENODETYPE_BINARY JsonNodeNodeType = "BINARY" + JSONNODENODETYPE_BOOLEAN JsonNodeNodeType = "BOOLEAN" + JSONNODENODETYPE_MISSING JsonNodeNodeType = "MISSING" + JSONNODENODETYPE_NULL JsonNodeNodeType = "NULL" + JSONNODENODETYPE_NUMBER JsonNodeNodeType = "NUMBER" + JSONNODENODETYPE_OBJECT JsonNodeNodeType = "OBJECT" + JSONNODENODETYPE_POJO JsonNodeNodeType = "POJO" + JSONNODENODETYPE_STRING JsonNodeNodeType = "STRING" +) + +// All allowed values of JsonNodeNodeType enum +var AllowedJsonNodeNodeTypeEnumValues = []JsonNodeNodeType{ + "ARRAY", + "BINARY", + "BOOLEAN", + "MISSING", + "NULL", + "NUMBER", + "OBJECT", + "POJO", + "STRING", +} + +func (v *JsonNodeNodeType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := JsonNodeNodeType(value) + for _, existing := range AllowedJsonNodeNodeTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid JsonNodeNodeType", value) +} + +// NewJsonNodeNodeTypeFromValue returns a pointer to a valid JsonNodeNodeType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewJsonNodeNodeTypeFromValue(v string) (*JsonNodeNodeType, error) { + ev := JsonNodeNodeType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for JsonNodeNodeType: valid values are %v", v, AllowedJsonNodeNodeTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v JsonNodeNodeType) IsValid() bool { + for _, existing := range AllowedJsonNodeNodeTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to JsonNode_nodeType value +func (v JsonNodeNodeType) Ptr() *JsonNodeNodeType { + return &v +} + +type NullableJsonNodeNodeType struct { + value *JsonNodeNodeType + isSet bool +} + +func (v NullableJsonNodeNodeType) Get() *JsonNodeNodeType { + return v.value +} + +func (v *NullableJsonNodeNodeType) Set(val *JsonNodeNodeType) { + v.value = val + v.isSet = true +} + +func (v NullableJsonNodeNodeType) IsSet() bool { + return v.isSet +} + +func (v *NullableJsonNodeNodeType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableJsonNodeNodeType(val *JsonNodeNodeType) *NullableJsonNodeNodeType { + return &NullableJsonNodeNodeType{value: val, isSet: true} +} + +func (v NullableJsonNodeNodeType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableJsonNodeNodeType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_license_options.go b/services/networkedgev1/model_license_options.go new file mode 100644 index 00000000..39f9f031 --- /dev/null +++ b/services/networkedgev1/model_license_options.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LicenseOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseOptions{} + +// LicenseOptions struct for LicenseOptions +type LicenseOptions struct { + // The license name + Name *string `json:"name,omitempty"` + // The license type + Type *string `json:"type,omitempty"` + // The metros where the license is available + MetroCodes []string `json:"metroCodes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LicenseOptions LicenseOptions + +// NewLicenseOptions instantiates a new LicenseOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseOptions() *LicenseOptions { + this := LicenseOptions{} + return &this +} + +// NewLicenseOptionsWithDefaults instantiates a new LicenseOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseOptionsWithDefaults() *LicenseOptions { + this := LicenseOptions{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LicenseOptions) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptions) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LicenseOptions) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LicenseOptions) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *LicenseOptions) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptions) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LicenseOptions) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *LicenseOptions) SetType(v string) { + o.Type = &v +} + +// GetMetroCodes returns the MetroCodes field value if set, zero value otherwise. +func (o *LicenseOptions) GetMetroCodes() []string { + if o == nil || IsNil(o.MetroCodes) { + var ret []string + return ret + } + return o.MetroCodes +} + +// GetMetroCodesOk returns a tuple with the MetroCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptions) GetMetroCodesOk() ([]string, bool) { + if o == nil || IsNil(o.MetroCodes) { + return nil, false + } + return o.MetroCodes, true +} + +// HasMetroCodes returns a boolean if a field has been set. +func (o *LicenseOptions) HasMetroCodes() bool { + if o != nil && !IsNil(o.MetroCodes) { + return true + } + + return false +} + +// SetMetroCodes gets a reference to the given []string and assigns it to the MetroCodes field. +func (o *LicenseOptions) SetMetroCodes(v []string) { + o.MetroCodes = v +} + +func (o LicenseOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.MetroCodes) { + toSerialize["metroCodes"] = o.MetroCodes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LicenseOptions) UnmarshalJSON(data []byte) (err error) { + varLicenseOptions := _LicenseOptions{} + + err = json.Unmarshal(data, &varLicenseOptions) + + if err != nil { + return err + } + + *o = LicenseOptions(varLicenseOptions) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "metroCodes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLicenseOptions struct { + value *LicenseOptions + isSet bool +} + +func (v NullableLicenseOptions) Get() *LicenseOptions { + return v.value +} + +func (v *NullableLicenseOptions) Set(val *LicenseOptions) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseOptions(val *LicenseOptions) *NullableLicenseOptions { + return &NullableLicenseOptions{value: val, isSet: true} +} + +func (v NullableLicenseOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_license_options_config.go b/services/networkedgev1/model_license_options_config.go new file mode 100644 index 00000000..6a404a72 --- /dev/null +++ b/services/networkedgev1/model_license_options_config.go @@ -0,0 +1,268 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LicenseOptionsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseOptionsConfig{} + +// LicenseOptionsConfig struct for LicenseOptionsConfig +type LicenseOptionsConfig struct { + // The type of the license. + Type *string `json:"type,omitempty"` + // The name of the license. + Name *string `json:"name,omitempty"` + // Whether you can upload a license file for cluster devices. + FileUploadSupportedCluster *bool `json:"fileUploadSupportedCluster,omitempty"` + Cores []CoresConfig `json:"cores,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LicenseOptionsConfig LicenseOptionsConfig + +// NewLicenseOptionsConfig instantiates a new LicenseOptionsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseOptionsConfig() *LicenseOptionsConfig { + this := LicenseOptionsConfig{} + return &this +} + +// NewLicenseOptionsConfigWithDefaults instantiates a new LicenseOptionsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseOptionsConfigWithDefaults() *LicenseOptionsConfig { + this := LicenseOptionsConfig{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *LicenseOptionsConfig) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptionsConfig) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LicenseOptionsConfig) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *LicenseOptionsConfig) SetType(v string) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LicenseOptionsConfig) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptionsConfig) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LicenseOptionsConfig) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LicenseOptionsConfig) SetName(v string) { + o.Name = &v +} + +// GetFileUploadSupportedCluster returns the FileUploadSupportedCluster field value if set, zero value otherwise. +func (o *LicenseOptionsConfig) GetFileUploadSupportedCluster() bool { + if o == nil || IsNil(o.FileUploadSupportedCluster) { + var ret bool + return ret + } + return *o.FileUploadSupportedCluster +} + +// GetFileUploadSupportedClusterOk returns a tuple with the FileUploadSupportedCluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptionsConfig) GetFileUploadSupportedClusterOk() (*bool, bool) { + if o == nil || IsNil(o.FileUploadSupportedCluster) { + return nil, false + } + return o.FileUploadSupportedCluster, true +} + +// HasFileUploadSupportedCluster returns a boolean if a field has been set. +func (o *LicenseOptionsConfig) HasFileUploadSupportedCluster() bool { + if o != nil && !IsNil(o.FileUploadSupportedCluster) { + return true + } + + return false +} + +// SetFileUploadSupportedCluster gets a reference to the given bool and assigns it to the FileUploadSupportedCluster field. +func (o *LicenseOptionsConfig) SetFileUploadSupportedCluster(v bool) { + o.FileUploadSupportedCluster = &v +} + +// GetCores returns the Cores field value if set, zero value otherwise. +func (o *LicenseOptionsConfig) GetCores() []CoresConfig { + if o == nil || IsNil(o.Cores) { + var ret []CoresConfig + return ret + } + return o.Cores +} + +// GetCoresOk returns a tuple with the Cores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseOptionsConfig) GetCoresOk() ([]CoresConfig, bool) { + if o == nil || IsNil(o.Cores) { + return nil, false + } + return o.Cores, true +} + +// HasCores returns a boolean if a field has been set. +func (o *LicenseOptionsConfig) HasCores() bool { + if o != nil && !IsNil(o.Cores) { + return true + } + + return false +} + +// SetCores gets a reference to the given []CoresConfig and assigns it to the Cores field. +func (o *LicenseOptionsConfig) SetCores(v []CoresConfig) { + o.Cores = v +} + +func (o LicenseOptionsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseOptionsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.FileUploadSupportedCluster) { + toSerialize["fileUploadSupportedCluster"] = o.FileUploadSupportedCluster + } + if !IsNil(o.Cores) { + toSerialize["cores"] = o.Cores + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LicenseOptionsConfig) UnmarshalJSON(data []byte) (err error) { + varLicenseOptionsConfig := _LicenseOptionsConfig{} + + err = json.Unmarshal(data, &varLicenseOptionsConfig) + + if err != nil { + return err + } + + *o = LicenseOptionsConfig(varLicenseOptionsConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "fileUploadSupportedCluster") + delete(additionalProperties, "cores") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLicenseOptionsConfig struct { + value *LicenseOptionsConfig + isSet bool +} + +func (v NullableLicenseOptionsConfig) Get() *LicenseOptionsConfig { + return v.value +} + +func (v *NullableLicenseOptionsConfig) Set(val *LicenseOptionsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseOptionsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseOptionsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseOptionsConfig(val *LicenseOptionsConfig) *NullableLicenseOptionsConfig { + return &NullableLicenseOptionsConfig{value: val, isSet: true} +} + +func (v NullableLicenseOptionsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseOptionsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_license_update_request.go b/services/networkedgev1/model_license_update_request.go new file mode 100644 index 00000000..f23b61f1 --- /dev/null +++ b/services/networkedgev1/model_license_update_request.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LicenseUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseUpdateRequest{} + +// LicenseUpdateRequest struct for LicenseUpdateRequest +type LicenseUpdateRequest struct { + Token *string `json:"token,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LicenseUpdateRequest LicenseUpdateRequest + +// NewLicenseUpdateRequest instantiates a new LicenseUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseUpdateRequest() *LicenseUpdateRequest { + this := LicenseUpdateRequest{} + return &this +} + +// NewLicenseUpdateRequestWithDefaults instantiates a new LicenseUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseUpdateRequestWithDefaults() *LicenseUpdateRequest { + this := LicenseUpdateRequest{} + return &this +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *LicenseUpdateRequest) GetToken() string { + if o == nil || IsNil(o.Token) { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseUpdateRequest) GetTokenOk() (*string, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *LicenseUpdateRequest) HasToken() bool { + if o != nil && !IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *LicenseUpdateRequest) SetToken(v string) { + o.Token = &v +} + +func (o LicenseUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Token) { + toSerialize["token"] = o.Token + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LicenseUpdateRequest) UnmarshalJSON(data []byte) (err error) { + varLicenseUpdateRequest := _LicenseUpdateRequest{} + + err = json.Unmarshal(data, &varLicenseUpdateRequest) + + if err != nil { + return err + } + + *o = LicenseUpdateRequest(varLicenseUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "token") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLicenseUpdateRequest struct { + value *LicenseUpdateRequest + isSet bool +} + +func (v NullableLicenseUpdateRequest) Get() *LicenseUpdateRequest { + return v.value +} + +func (v *NullableLicenseUpdateRequest) Set(val *LicenseUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseUpdateRequest(val *LicenseUpdateRequest) *NullableLicenseUpdateRequest { + return &NullableLicenseUpdateRequest{value: val, isSet: true} +} + +func (v NullableLicenseUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_license_upload_response.go b/services/networkedgev1/model_license_upload_response.go new file mode 100644 index 00000000..a79fa4e4 --- /dev/null +++ b/services/networkedgev1/model_license_upload_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LicenseUploadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseUploadResponse{} + +// LicenseUploadResponse struct for LicenseUploadResponse +type LicenseUploadResponse struct { + FileId *string `json:"fileId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LicenseUploadResponse LicenseUploadResponse + +// NewLicenseUploadResponse instantiates a new LicenseUploadResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseUploadResponse() *LicenseUploadResponse { + this := LicenseUploadResponse{} + return &this +} + +// NewLicenseUploadResponseWithDefaults instantiates a new LicenseUploadResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseUploadResponseWithDefaults() *LicenseUploadResponse { + this := LicenseUploadResponse{} + return &this +} + +// GetFileId returns the FileId field value if set, zero value otherwise. +func (o *LicenseUploadResponse) GetFileId() string { + if o == nil || IsNil(o.FileId) { + var ret string + return ret + } + return *o.FileId +} + +// GetFileIdOk returns a tuple with the FileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseUploadResponse) GetFileIdOk() (*string, bool) { + if o == nil || IsNil(o.FileId) { + return nil, false + } + return o.FileId, true +} + +// HasFileId returns a boolean if a field has been set. +func (o *LicenseUploadResponse) HasFileId() bool { + if o != nil && !IsNil(o.FileId) { + return true + } + + return false +} + +// SetFileId gets a reference to the given string and assigns it to the FileId field. +func (o *LicenseUploadResponse) SetFileId(v string) { + o.FileId = &v +} + +func (o LicenseUploadResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseUploadResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FileId) { + toSerialize["fileId"] = o.FileId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LicenseUploadResponse) UnmarshalJSON(data []byte) (err error) { + varLicenseUploadResponse := _LicenseUploadResponse{} + + err = json.Unmarshal(data, &varLicenseUploadResponse) + + if err != nil { + return err + } + + *o = LicenseUploadResponse(varLicenseUploadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fileId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLicenseUploadResponse struct { + value *LicenseUploadResponse + isSet bool +} + +func (v NullableLicenseUploadResponse) Get() *LicenseUploadResponse { + return v.value +} + +func (v *NullableLicenseUploadResponse) Set(val *LicenseUploadResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseUploadResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseUploadResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseUploadResponse(val *LicenseUploadResponse) *NullableLicenseUploadResponse { + return &NullableLicenseUploadResponse{value: val, isSet: true} +} + +func (v NullableLicenseUploadResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseUploadResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_link_device_info.go b/services/networkedgev1/model_link_device_info.go new file mode 100644 index 00000000..c7fc2778 --- /dev/null +++ b/services/networkedgev1/model_link_device_info.go @@ -0,0 +1,244 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the LinkDeviceInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkDeviceInfo{} + +// LinkDeviceInfo Unique Id of a device. +type LinkDeviceInfo struct { + // The ASN number of the device. The request will fail if you provide a new ASN for a device that already has an ASN. + Asn *int64 `json:"asn,omitempty"` + // device + DeviceUuid string `json:"deviceUuid"` + // Any available interface of the device. + InterfaceId *int32 `json:"interfaceId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LinkDeviceInfo LinkDeviceInfo + +// NewLinkDeviceInfo instantiates a new LinkDeviceInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkDeviceInfo(deviceUuid string) *LinkDeviceInfo { + this := LinkDeviceInfo{} + this.DeviceUuid = deviceUuid + return &this +} + +// NewLinkDeviceInfoWithDefaults instantiates a new LinkDeviceInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDeviceInfoWithDefaults() *LinkDeviceInfo { + this := LinkDeviceInfo{} + return &this +} + +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *LinkDeviceInfo) GetAsn() int64 { + if o == nil || IsNil(o.Asn) { + var ret int64 + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceInfo) GetAsnOk() (*int64, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *LinkDeviceInfo) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given int64 and assigns it to the Asn field. +func (o *LinkDeviceInfo) SetAsn(v int64) { + o.Asn = &v +} + +// GetDeviceUuid returns the DeviceUuid field value +func (o *LinkDeviceInfo) GetDeviceUuid() string { + if o == nil { + var ret string + return ret + } + + return o.DeviceUuid +} + +// GetDeviceUuidOk returns a tuple with the DeviceUuid field value +// and a boolean to check if the value has been set. +func (o *LinkDeviceInfo) GetDeviceUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeviceUuid, true +} + +// SetDeviceUuid sets field value +func (o *LinkDeviceInfo) SetDeviceUuid(v string) { + o.DeviceUuid = v +} + +// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise. +func (o *LinkDeviceInfo) GetInterfaceId() int32 { + if o == nil || IsNil(o.InterfaceId) { + var ret int32 + return ret + } + return *o.InterfaceId +} + +// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceInfo) GetInterfaceIdOk() (*int32, bool) { + if o == nil || IsNil(o.InterfaceId) { + return nil, false + } + return o.InterfaceId, true +} + +// HasInterfaceId returns a boolean if a field has been set. +func (o *LinkDeviceInfo) HasInterfaceId() bool { + if o != nil && !IsNil(o.InterfaceId) { + return true + } + + return false +} + +// SetInterfaceId gets a reference to the given int32 and assigns it to the InterfaceId field. +func (o *LinkDeviceInfo) SetInterfaceId(v int32) { + o.InterfaceId = &v +} + +func (o LinkDeviceInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkDeviceInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + toSerialize["deviceUuid"] = o.DeviceUuid + if !IsNil(o.InterfaceId) { + toSerialize["interfaceId"] = o.InterfaceId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LinkDeviceInfo) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "deviceUuid", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLinkDeviceInfo := _LinkDeviceInfo{} + + err = json.Unmarshal(data, &varLinkDeviceInfo) + + if err != nil { + return err + } + + *o = LinkDeviceInfo(varLinkDeviceInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asn") + delete(additionalProperties, "deviceUuid") + delete(additionalProperties, "interfaceId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLinkDeviceInfo struct { + value *LinkDeviceInfo + isSet bool +} + +func (v NullableLinkDeviceInfo) Get() *LinkDeviceInfo { + return v.value +} + +func (v *NullableLinkDeviceInfo) Set(val *LinkDeviceInfo) { + v.value = val + v.isSet = true +} + +func (v NullableLinkDeviceInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkDeviceInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkDeviceInfo(val *LinkDeviceInfo) *NullableLinkDeviceInfo { + return &NullableLinkDeviceInfo{value: val, isSet: true} +} + +func (v NullableLinkDeviceInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkDeviceInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_link_device_response.go b/services/networkedgev1/model_link_device_response.go new file mode 100644 index 00000000..ca604f20 --- /dev/null +++ b/services/networkedgev1/model_link_device_response.go @@ -0,0 +1,568 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LinkDeviceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkDeviceResponse{} + +// LinkDeviceResponse struct for LinkDeviceResponse +type LinkDeviceResponse struct { + // A device that is part of the device linked group + DeviceUuid *string `json:"deviceUuid,omitempty"` + // Device name + DeviceName *string `json:"deviceName,omitempty"` + // Metro Code + MetroCode *string `json:"metroCode,omitempty"` + // Name of the metro. + MetroName *string `json:"metroName,omitempty"` + DeviceTypeCode *string `json:"deviceTypeCode,omitempty"` + Category *string `json:"category,omitempty"` + IpAssigned *string `json:"ipAssigned,omitempty"` + InterfaceId *int32 `json:"interfaceId,omitempty"` + // The status of the device + Status *string `json:"status,omitempty"` + // Device management type + DeviceManagementType *string `json:"deviceManagementType,omitempty"` + NetworkScope *string `json:"networkScope,omitempty"` + // Whether the device is accessible + IsDeviceAccessible *bool `json:"isDeviceAccessible,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LinkDeviceResponse LinkDeviceResponse + +// NewLinkDeviceResponse instantiates a new LinkDeviceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkDeviceResponse() *LinkDeviceResponse { + this := LinkDeviceResponse{} + return &this +} + +// NewLinkDeviceResponseWithDefaults instantiates a new LinkDeviceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDeviceResponseWithDefaults() *LinkDeviceResponse { + this := LinkDeviceResponse{} + return &this +} + +// GetDeviceUuid returns the DeviceUuid field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetDeviceUuid() string { + if o == nil || IsNil(o.DeviceUuid) { + var ret string + return ret + } + return *o.DeviceUuid +} + +// GetDeviceUuidOk returns a tuple with the DeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.DeviceUuid) { + return nil, false + } + return o.DeviceUuid, true +} + +// HasDeviceUuid returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasDeviceUuid() bool { + if o != nil && !IsNil(o.DeviceUuid) { + return true + } + + return false +} + +// SetDeviceUuid gets a reference to the given string and assigns it to the DeviceUuid field. +func (o *LinkDeviceResponse) SetDeviceUuid(v string) { + o.DeviceUuid = &v +} + +// GetDeviceName returns the DeviceName field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetDeviceName() string { + if o == nil || IsNil(o.DeviceName) { + var ret string + return ret + } + return *o.DeviceName +} + +// GetDeviceNameOk returns a tuple with the DeviceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetDeviceNameOk() (*string, bool) { + if o == nil || IsNil(o.DeviceName) { + return nil, false + } + return o.DeviceName, true +} + +// HasDeviceName returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasDeviceName() bool { + if o != nil && !IsNil(o.DeviceName) { + return true + } + + return false +} + +// SetDeviceName gets a reference to the given string and assigns it to the DeviceName field. +func (o *LinkDeviceResponse) SetDeviceName(v string) { + o.DeviceName = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *LinkDeviceResponse) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroName returns the MetroName field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetMetroName() string { + if o == nil || IsNil(o.MetroName) { + var ret string + return ret + } + return *o.MetroName +} + +// GetMetroNameOk returns a tuple with the MetroName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetMetroNameOk() (*string, bool) { + if o == nil || IsNil(o.MetroName) { + return nil, false + } + return o.MetroName, true +} + +// HasMetroName returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasMetroName() bool { + if o != nil && !IsNil(o.MetroName) { + return true + } + + return false +} + +// SetMetroName gets a reference to the given string and assigns it to the MetroName field. +func (o *LinkDeviceResponse) SetMetroName(v string) { + o.MetroName = &v +} + +// GetDeviceTypeCode returns the DeviceTypeCode field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetDeviceTypeCode() string { + if o == nil || IsNil(o.DeviceTypeCode) { + var ret string + return ret + } + return *o.DeviceTypeCode +} + +// GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetDeviceTypeCodeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeCode) { + return nil, false + } + return o.DeviceTypeCode, true +} + +// HasDeviceTypeCode returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasDeviceTypeCode() bool { + if o != nil && !IsNil(o.DeviceTypeCode) { + return true + } + + return false +} + +// SetDeviceTypeCode gets a reference to the given string and assigns it to the DeviceTypeCode field. +func (o *LinkDeviceResponse) SetDeviceTypeCode(v string) { + o.DeviceTypeCode = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *LinkDeviceResponse) SetCategory(v string) { + o.Category = &v +} + +// GetIpAssigned returns the IpAssigned field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetIpAssigned() string { + if o == nil || IsNil(o.IpAssigned) { + var ret string + return ret + } + return *o.IpAssigned +} + +// GetIpAssignedOk returns a tuple with the IpAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetIpAssignedOk() (*string, bool) { + if o == nil || IsNil(o.IpAssigned) { + return nil, false + } + return o.IpAssigned, true +} + +// HasIpAssigned returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasIpAssigned() bool { + if o != nil && !IsNil(o.IpAssigned) { + return true + } + + return false +} + +// SetIpAssigned gets a reference to the given string and assigns it to the IpAssigned field. +func (o *LinkDeviceResponse) SetIpAssigned(v string) { + o.IpAssigned = &v +} + +// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetInterfaceId() int32 { + if o == nil || IsNil(o.InterfaceId) { + var ret int32 + return ret + } + return *o.InterfaceId +} + +// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetInterfaceIdOk() (*int32, bool) { + if o == nil || IsNil(o.InterfaceId) { + return nil, false + } + return o.InterfaceId, true +} + +// HasInterfaceId returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasInterfaceId() bool { + if o != nil && !IsNil(o.InterfaceId) { + return true + } + + return false +} + +// SetInterfaceId gets a reference to the given int32 and assigns it to the InterfaceId field. +func (o *LinkDeviceResponse) SetInterfaceId(v int32) { + o.InterfaceId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *LinkDeviceResponse) SetStatus(v string) { + o.Status = &v +} + +// GetDeviceManagementType returns the DeviceManagementType field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetDeviceManagementType() string { + if o == nil || IsNil(o.DeviceManagementType) { + var ret string + return ret + } + return *o.DeviceManagementType +} + +// GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetDeviceManagementTypeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceManagementType) { + return nil, false + } + return o.DeviceManagementType, true +} + +// HasDeviceManagementType returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasDeviceManagementType() bool { + if o != nil && !IsNil(o.DeviceManagementType) { + return true + } + + return false +} + +// SetDeviceManagementType gets a reference to the given string and assigns it to the DeviceManagementType field. +func (o *LinkDeviceResponse) SetDeviceManagementType(v string) { + o.DeviceManagementType = &v +} + +// GetNetworkScope returns the NetworkScope field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetNetworkScope() string { + if o == nil || IsNil(o.NetworkScope) { + var ret string + return ret + } + return *o.NetworkScope +} + +// GetNetworkScopeOk returns a tuple with the NetworkScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetNetworkScopeOk() (*string, bool) { + if o == nil || IsNil(o.NetworkScope) { + return nil, false + } + return o.NetworkScope, true +} + +// HasNetworkScope returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasNetworkScope() bool { + if o != nil && !IsNil(o.NetworkScope) { + return true + } + + return false +} + +// SetNetworkScope gets a reference to the given string and assigns it to the NetworkScope field. +func (o *LinkDeviceResponse) SetNetworkScope(v string) { + o.NetworkScope = &v +} + +// GetIsDeviceAccessible returns the IsDeviceAccessible field value if set, zero value otherwise. +func (o *LinkDeviceResponse) GetIsDeviceAccessible() bool { + if o == nil || IsNil(o.IsDeviceAccessible) { + var ret bool + return ret + } + return *o.IsDeviceAccessible +} + +// GetIsDeviceAccessibleOk returns a tuple with the IsDeviceAccessible field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDeviceResponse) GetIsDeviceAccessibleOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeviceAccessible) { + return nil, false + } + return o.IsDeviceAccessible, true +} + +// HasIsDeviceAccessible returns a boolean if a field has been set. +func (o *LinkDeviceResponse) HasIsDeviceAccessible() bool { + if o != nil && !IsNil(o.IsDeviceAccessible) { + return true + } + + return false +} + +// SetIsDeviceAccessible gets a reference to the given bool and assigns it to the IsDeviceAccessible field. +func (o *LinkDeviceResponse) SetIsDeviceAccessible(v bool) { + o.IsDeviceAccessible = &v +} + +func (o LinkDeviceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkDeviceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceUuid) { + toSerialize["deviceUuid"] = o.DeviceUuid + } + if !IsNil(o.DeviceName) { + toSerialize["deviceName"] = o.DeviceName + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroName) { + toSerialize["metroName"] = o.MetroName + } + if !IsNil(o.DeviceTypeCode) { + toSerialize["deviceTypeCode"] = o.DeviceTypeCode + } + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.IpAssigned) { + toSerialize["ipAssigned"] = o.IpAssigned + } + if !IsNil(o.InterfaceId) { + toSerialize["interfaceId"] = o.InterfaceId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.DeviceManagementType) { + toSerialize["deviceManagementType"] = o.DeviceManagementType + } + if !IsNil(o.NetworkScope) { + toSerialize["networkScope"] = o.NetworkScope + } + if !IsNil(o.IsDeviceAccessible) { + toSerialize["isDeviceAccessible"] = o.IsDeviceAccessible + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LinkDeviceResponse) UnmarshalJSON(data []byte) (err error) { + varLinkDeviceResponse := _LinkDeviceResponse{} + + err = json.Unmarshal(data, &varLinkDeviceResponse) + + if err != nil { + return err + } + + *o = LinkDeviceResponse(varLinkDeviceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceUuid") + delete(additionalProperties, "deviceName") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroName") + delete(additionalProperties, "deviceTypeCode") + delete(additionalProperties, "category") + delete(additionalProperties, "ipAssigned") + delete(additionalProperties, "interfaceId") + delete(additionalProperties, "status") + delete(additionalProperties, "deviceManagementType") + delete(additionalProperties, "networkScope") + delete(additionalProperties, "isDeviceAccessible") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLinkDeviceResponse struct { + value *LinkDeviceResponse + isSet bool +} + +func (v NullableLinkDeviceResponse) Get() *LinkDeviceResponse { + return v.value +} + +func (v *NullableLinkDeviceResponse) Set(val *LinkDeviceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLinkDeviceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkDeviceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkDeviceResponse(val *LinkDeviceResponse) *NullableLinkDeviceResponse { + return &NullableLinkDeviceResponse{value: val, isSet: true} +} + +func (v NullableLinkDeviceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkDeviceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_link_info.go b/services/networkedgev1/model_link_info.go new file mode 100644 index 00000000..e0dffdc5 --- /dev/null +++ b/services/networkedgev1/model_link_info.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LinkInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkInfo{} + +// LinkInfo struct for LinkInfo +type LinkInfo struct { + // Account number. Either an account number or an accountreferenceId is required to create a link group. + AccountNumber *string `json:"accountNumber,omitempty"` + // Metro Throughput. + Throughput *string `json:"throughput,omitempty"` + // Throughput unit. + ThroughputUnit *string `json:"throughputUnit,omitempty"` + // Metro you want to link. + MetroCode *string `json:"metroCode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LinkInfo LinkInfo + +// NewLinkInfo instantiates a new LinkInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkInfo() *LinkInfo { + this := LinkInfo{} + return &this +} + +// NewLinkInfoWithDefaults instantiates a new LinkInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkInfoWithDefaults() *LinkInfo { + this := LinkInfo{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *LinkInfo) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfo) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *LinkInfo) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *LinkInfo) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *LinkInfo) GetThroughput() string { + if o == nil || IsNil(o.Throughput) { + var ret string + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfo) GetThroughputOk() (*string, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *LinkInfo) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given string and assigns it to the Throughput field. +func (o *LinkInfo) SetThroughput(v string) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *LinkInfo) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfo) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *LinkInfo) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *LinkInfo) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *LinkInfo) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfo) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *LinkInfo) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *LinkInfo) SetMetroCode(v string) { + o.MetroCode = &v +} + +func (o LinkInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LinkInfo) UnmarshalJSON(data []byte) (err error) { + varLinkInfo := _LinkInfo{} + + err = json.Unmarshal(data, &varLinkInfo) + + if err != nil { + return err + } + + *o = LinkInfo(varLinkInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + delete(additionalProperties, "metroCode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLinkInfo struct { + value *LinkInfo + isSet bool +} + +func (v NullableLinkInfo) Get() *LinkInfo { + return v.value +} + +func (v *NullableLinkInfo) Set(val *LinkInfo) { + v.value = val + v.isSet = true +} + +func (v NullableLinkInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkInfo(val *LinkInfo) *NullableLinkInfo { + return &NullableLinkInfo{value: val, isSet: true} +} + +func (v NullableLinkInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_link_info_response.go b/services/networkedgev1/model_link_info_response.go new file mode 100644 index 00000000..65658b85 --- /dev/null +++ b/services/networkedgev1/model_link_info_response.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LinkInfoResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkInfoResponse{} + +// LinkInfoResponse struct for LinkInfoResponse +type LinkInfoResponse struct { + // Account name + AccountName *string `json:"accountName,omitempty"` + // Linked metro code + MetroCode *string `json:"metroCode,omitempty"` + // Linked metro name + MetroName *string `json:"metroName,omitempty"` + // Metro Throughput. + Throughput *string `json:"throughput,omitempty"` + // Throughput unit. + ThroughputUnit *string `json:"throughputUnit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LinkInfoResponse LinkInfoResponse + +// NewLinkInfoResponse instantiates a new LinkInfoResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkInfoResponse() *LinkInfoResponse { + this := LinkInfoResponse{} + return &this +} + +// NewLinkInfoResponseWithDefaults instantiates a new LinkInfoResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkInfoResponseWithDefaults() *LinkInfoResponse { + this := LinkInfoResponse{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *LinkInfoResponse) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfoResponse) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *LinkInfoResponse) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *LinkInfoResponse) SetAccountName(v string) { + o.AccountName = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *LinkInfoResponse) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfoResponse) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *LinkInfoResponse) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *LinkInfoResponse) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroName returns the MetroName field value if set, zero value otherwise. +func (o *LinkInfoResponse) GetMetroName() string { + if o == nil || IsNil(o.MetroName) { + var ret string + return ret + } + return *o.MetroName +} + +// GetMetroNameOk returns a tuple with the MetroName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfoResponse) GetMetroNameOk() (*string, bool) { + if o == nil || IsNil(o.MetroName) { + return nil, false + } + return o.MetroName, true +} + +// HasMetroName returns a boolean if a field has been set. +func (o *LinkInfoResponse) HasMetroName() bool { + if o != nil && !IsNil(o.MetroName) { + return true + } + + return false +} + +// SetMetroName gets a reference to the given string and assigns it to the MetroName field. +func (o *LinkInfoResponse) SetMetroName(v string) { + o.MetroName = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *LinkInfoResponse) GetThroughput() string { + if o == nil || IsNil(o.Throughput) { + var ret string + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfoResponse) GetThroughputOk() (*string, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *LinkInfoResponse) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given string and assigns it to the Throughput field. +func (o *LinkInfoResponse) SetThroughput(v string) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *LinkInfoResponse) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkInfoResponse) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *LinkInfoResponse) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *LinkInfoResponse) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +func (o LinkInfoResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkInfoResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountName) { + toSerialize["accountName"] = o.AccountName + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroName) { + toSerialize["metroName"] = o.MetroName + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LinkInfoResponse) UnmarshalJSON(data []byte) (err error) { + varLinkInfoResponse := _LinkInfoResponse{} + + err = json.Unmarshal(data, &varLinkInfoResponse) + + if err != nil { + return err + } + + *o = LinkInfoResponse(varLinkInfoResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountName") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroName") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLinkInfoResponse struct { + value *LinkInfoResponse + isSet bool +} + +func (v NullableLinkInfoResponse) Get() *LinkInfoResponse { + return v.value +} + +func (v *NullableLinkInfoResponse) Set(val *LinkInfoResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLinkInfoResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkInfoResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkInfoResponse(val *LinkInfoResponse) *NullableLinkInfoResponse { + return &NullableLinkInfoResponse{value: val, isSet: true} +} + +func (v NullableLinkInfoResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkInfoResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_links_page_response.go b/services/networkedgev1/model_links_page_response.go new file mode 100644 index 00000000..19a5db68 --- /dev/null +++ b/services/networkedgev1/model_links_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the LinksPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinksPageResponse{} + +// LinksPageResponse struct for LinksPageResponse +type LinksPageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []DeviceLinkGroupDto `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LinksPageResponse LinksPageResponse + +// NewLinksPageResponse instantiates a new LinksPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinksPageResponse() *LinksPageResponse { + this := LinksPageResponse{} + return &this +} + +// NewLinksPageResponseWithDefaults instantiates a new LinksPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinksPageResponseWithDefaults() *LinksPageResponse { + this := LinksPageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *LinksPageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinksPageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *LinksPageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *LinksPageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LinksPageResponse) GetData() []DeviceLinkGroupDto { + if o == nil || IsNil(o.Data) { + var ret []DeviceLinkGroupDto + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinksPageResponse) GetDataOk() ([]DeviceLinkGroupDto, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LinksPageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []DeviceLinkGroupDto and assigns it to the Data field. +func (o *LinksPageResponse) SetData(v []DeviceLinkGroupDto) { + o.Data = v +} + +func (o LinksPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinksPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LinksPageResponse) UnmarshalJSON(data []byte) (err error) { + varLinksPageResponse := _LinksPageResponse{} + + err = json.Unmarshal(data, &varLinksPageResponse) + + if err != nil { + return err + } + + *o = LinksPageResponse(varLinksPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLinksPageResponse struct { + value *LinksPageResponse + isSet bool +} + +func (v NullableLinksPageResponse) Get() *LinksPageResponse { + return v.value +} + +func (v *NullableLinksPageResponse) Set(val *LinksPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLinksPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLinksPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinksPageResponse(val *LinksPageResponse) *NullableLinksPageResponse { + return &NullableLinksPageResponse{value: val, isSet: true} +} + +func (v NullableLinksPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinksPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_metro.go b/services/networkedgev1/model_metro.go new file mode 100644 index 00000000..6a8fa129 --- /dev/null +++ b/services/networkedgev1/model_metro.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Metro type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Metro{} + +// Metro struct for Metro +type Metro struct { + // Metro code + MetroCode *string `json:"metroCode,omitempty"` + // Metro description + MetroDescription *string `json:"metroDescription,omitempty"` + // A region have several metros. + Region *string `json:"region,omitempty"` + // Whether this metro supports cluster devices + ClusterSupported *bool `json:"clusterSupported,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Metro Metro + +// NewMetro instantiates a new Metro object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetro() *Metro { + this := Metro{} + return &this +} + +// NewMetroWithDefaults instantiates a new Metro object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetroWithDefaults() *Metro { + this := Metro{} + return &this +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *Metro) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metro) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *Metro) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *Metro) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroDescription returns the MetroDescription field value if set, zero value otherwise. +func (o *Metro) GetMetroDescription() string { + if o == nil || IsNil(o.MetroDescription) { + var ret string + return ret + } + return *o.MetroDescription +} + +// GetMetroDescriptionOk returns a tuple with the MetroDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metro) GetMetroDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.MetroDescription) { + return nil, false + } + return o.MetroDescription, true +} + +// HasMetroDescription returns a boolean if a field has been set. +func (o *Metro) HasMetroDescription() bool { + if o != nil && !IsNil(o.MetroDescription) { + return true + } + + return false +} + +// SetMetroDescription gets a reference to the given string and assigns it to the MetroDescription field. +func (o *Metro) SetMetroDescription(v string) { + o.MetroDescription = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *Metro) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metro) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *Metro) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *Metro) SetRegion(v string) { + o.Region = &v +} + +// GetClusterSupported returns the ClusterSupported field value if set, zero value otherwise. +func (o *Metro) GetClusterSupported() bool { + if o == nil || IsNil(o.ClusterSupported) { + var ret bool + return ret + } + return *o.ClusterSupported +} + +// GetClusterSupportedOk returns a tuple with the ClusterSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metro) GetClusterSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.ClusterSupported) { + return nil, false + } + return o.ClusterSupported, true +} + +// HasClusterSupported returns a boolean if a field has been set. +func (o *Metro) HasClusterSupported() bool { + if o != nil && !IsNil(o.ClusterSupported) { + return true + } + + return false +} + +// SetClusterSupported gets a reference to the given bool and assigns it to the ClusterSupported field. +func (o *Metro) SetClusterSupported(v bool) { + o.ClusterSupported = &v +} + +func (o Metro) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Metro) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroDescription) { + toSerialize["metroDescription"] = o.MetroDescription + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.ClusterSupported) { + toSerialize["clusterSupported"] = o.ClusterSupported + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Metro) UnmarshalJSON(data []byte) (err error) { + varMetro := _Metro{} + + err = json.Unmarshal(data, &varMetro) + + if err != nil { + return err + } + + *o = Metro(varMetro) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroDescription") + delete(additionalProperties, "region") + delete(additionalProperties, "clusterSupported") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMetro struct { + value *Metro + isSet bool +} + +func (v NullableMetro) Get() *Metro { + return v.value +} + +func (v *NullableMetro) Set(val *Metro) { + v.value = val + v.isSet = true +} + +func (v NullableMetro) IsSet() bool { + return v.isSet +} + +func (v *NullableMetro) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetro(val *Metro) *NullableMetro { + return &NullableMetro{value: val, isSet: true} +} + +func (v NullableMetro) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetro) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_metro_account_response.go b/services/networkedgev1/model_metro_account_response.go new file mode 100644 index 00000000..b688e5f3 --- /dev/null +++ b/services/networkedgev1/model_metro_account_response.go @@ -0,0 +1,383 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the MetroAccountResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetroAccountResponse{} + +// MetroAccountResponse struct for MetroAccountResponse +type MetroAccountResponse struct { + // account Name + AccountName *string `json:"accountName,omitempty"` + // account number + AccountNumber *int32 `json:"accountNumber,omitempty"` + // account UcmId + AccountUcmId *string `json:"accountUcmId,omitempty"` + // account status + AccountStatus *string `json:"accountStatus,omitempty"` + // An array of metros where the account is valid + Metros []string `json:"metros,omitempty"` + // Whether the account has a credit hold. You cannot use an account on credit hold to create a device. + CreditHold *bool `json:"creditHold,omitempty"` + // referenceId + ReferenceId *string `json:"referenceId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MetroAccountResponse MetroAccountResponse + +// NewMetroAccountResponse instantiates a new MetroAccountResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetroAccountResponse() *MetroAccountResponse { + this := MetroAccountResponse{} + return &this +} + +// NewMetroAccountResponseWithDefaults instantiates a new MetroAccountResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetroAccountResponseWithDefaults() *MetroAccountResponse { + this := MetroAccountResponse{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *MetroAccountResponse) SetAccountName(v string) { + o.AccountName = &v +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetAccountNumber() int32 { + if o == nil || IsNil(o.AccountNumber) { + var ret int32 + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetAccountNumberOk() (*int32, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given int32 and assigns it to the AccountNumber field. +func (o *MetroAccountResponse) SetAccountNumber(v int32) { + o.AccountNumber = &v +} + +// GetAccountUcmId returns the AccountUcmId field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetAccountUcmId() string { + if o == nil || IsNil(o.AccountUcmId) { + var ret string + return ret + } + return *o.AccountUcmId +} + +// GetAccountUcmIdOk returns a tuple with the AccountUcmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetAccountUcmIdOk() (*string, bool) { + if o == nil || IsNil(o.AccountUcmId) { + return nil, false + } + return o.AccountUcmId, true +} + +// HasAccountUcmId returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasAccountUcmId() bool { + if o != nil && !IsNil(o.AccountUcmId) { + return true + } + + return false +} + +// SetAccountUcmId gets a reference to the given string and assigns it to the AccountUcmId field. +func (o *MetroAccountResponse) SetAccountUcmId(v string) { + o.AccountUcmId = &v +} + +// GetAccountStatus returns the AccountStatus field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetAccountStatus() string { + if o == nil || IsNil(o.AccountStatus) { + var ret string + return ret + } + return *o.AccountStatus +} + +// GetAccountStatusOk returns a tuple with the AccountStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetAccountStatusOk() (*string, bool) { + if o == nil || IsNil(o.AccountStatus) { + return nil, false + } + return o.AccountStatus, true +} + +// HasAccountStatus returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasAccountStatus() bool { + if o != nil && !IsNil(o.AccountStatus) { + return true + } + + return false +} + +// SetAccountStatus gets a reference to the given string and assigns it to the AccountStatus field. +func (o *MetroAccountResponse) SetAccountStatus(v string) { + o.AccountStatus = &v +} + +// GetMetros returns the Metros field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetMetros() []string { + if o == nil || IsNil(o.Metros) { + var ret []string + return ret + } + return o.Metros +} + +// GetMetrosOk returns a tuple with the Metros field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetMetrosOk() ([]string, bool) { + if o == nil || IsNil(o.Metros) { + return nil, false + } + return o.Metros, true +} + +// HasMetros returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasMetros() bool { + if o != nil && !IsNil(o.Metros) { + return true + } + + return false +} + +// SetMetros gets a reference to the given []string and assigns it to the Metros field. +func (o *MetroAccountResponse) SetMetros(v []string) { + o.Metros = v +} + +// GetCreditHold returns the CreditHold field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetCreditHold() bool { + if o == nil || IsNil(o.CreditHold) { + var ret bool + return ret + } + return *o.CreditHold +} + +// GetCreditHoldOk returns a tuple with the CreditHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetCreditHoldOk() (*bool, bool) { + if o == nil || IsNil(o.CreditHold) { + return nil, false + } + return o.CreditHold, true +} + +// HasCreditHold returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasCreditHold() bool { + if o != nil && !IsNil(o.CreditHold) { + return true + } + + return false +} + +// SetCreditHold gets a reference to the given bool and assigns it to the CreditHold field. +func (o *MetroAccountResponse) SetCreditHold(v bool) { + o.CreditHold = &v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *MetroAccountResponse) GetReferenceId() string { + if o == nil || IsNil(o.ReferenceId) { + var ret string + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroAccountResponse) GetReferenceIdOk() (*string, bool) { + if o == nil || IsNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *MetroAccountResponse) HasReferenceId() bool { + if o != nil && !IsNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given string and assigns it to the ReferenceId field. +func (o *MetroAccountResponse) SetReferenceId(v string) { + o.ReferenceId = &v +} + +func (o MetroAccountResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetroAccountResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountName) { + toSerialize["accountName"] = o.AccountName + } + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.AccountUcmId) { + toSerialize["accountUcmId"] = o.AccountUcmId + } + if !IsNil(o.AccountStatus) { + toSerialize["accountStatus"] = o.AccountStatus + } + if !IsNil(o.Metros) { + toSerialize["metros"] = o.Metros + } + if !IsNil(o.CreditHold) { + toSerialize["creditHold"] = o.CreditHold + } + if !IsNil(o.ReferenceId) { + toSerialize["referenceId"] = o.ReferenceId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MetroAccountResponse) UnmarshalJSON(data []byte) (err error) { + varMetroAccountResponse := _MetroAccountResponse{} + + err = json.Unmarshal(data, &varMetroAccountResponse) + + if err != nil { + return err + } + + *o = MetroAccountResponse(varMetroAccountResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountName") + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "accountUcmId") + delete(additionalProperties, "accountStatus") + delete(additionalProperties, "metros") + delete(additionalProperties, "creditHold") + delete(additionalProperties, "referenceId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMetroAccountResponse struct { + value *MetroAccountResponse + isSet bool +} + +func (v NullableMetroAccountResponse) Get() *MetroAccountResponse { + return v.value +} + +func (v *NullableMetroAccountResponse) Set(val *MetroAccountResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMetroAccountResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMetroAccountResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetroAccountResponse(val *MetroAccountResponse) *NullableMetroAccountResponse { + return &NullableMetroAccountResponse{value: val, isSet: true} +} + +func (v NullableMetroAccountResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetroAccountResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_metro_response.go b/services/networkedgev1/model_metro_response.go new file mode 100644 index 00000000..f35bbabb --- /dev/null +++ b/services/networkedgev1/model_metro_response.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the MetroResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetroResponse{} + +// MetroResponse struct for MetroResponse +type MetroResponse struct { + // Metro code + MetroCode *string `json:"metroCode,omitempty"` + // Metro description + MetroDescription *string `json:"metroDescription,omitempty"` + // Region within which the metro is located + Region *string `json:"region,omitempty"` + // Whether this metro supports cluster devices + ClusterSupported *bool `json:"clusterSupported,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MetroResponse MetroResponse + +// NewMetroResponse instantiates a new MetroResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetroResponse() *MetroResponse { + this := MetroResponse{} + return &this +} + +// NewMetroResponseWithDefaults instantiates a new MetroResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetroResponseWithDefaults() *MetroResponse { + this := MetroResponse{} + return &this +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *MetroResponse) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroResponse) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *MetroResponse) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *MetroResponse) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroDescription returns the MetroDescription field value if set, zero value otherwise. +func (o *MetroResponse) GetMetroDescription() string { + if o == nil || IsNil(o.MetroDescription) { + var ret string + return ret + } + return *o.MetroDescription +} + +// GetMetroDescriptionOk returns a tuple with the MetroDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroResponse) GetMetroDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.MetroDescription) { + return nil, false + } + return o.MetroDescription, true +} + +// HasMetroDescription returns a boolean if a field has been set. +func (o *MetroResponse) HasMetroDescription() bool { + if o != nil && !IsNil(o.MetroDescription) { + return true + } + + return false +} + +// SetMetroDescription gets a reference to the given string and assigns it to the MetroDescription field. +func (o *MetroResponse) SetMetroDescription(v string) { + o.MetroDescription = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *MetroResponse) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroResponse) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *MetroResponse) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *MetroResponse) SetRegion(v string) { + o.Region = &v +} + +// GetClusterSupported returns the ClusterSupported field value if set, zero value otherwise. +func (o *MetroResponse) GetClusterSupported() bool { + if o == nil || IsNil(o.ClusterSupported) { + var ret bool + return ret + } + return *o.ClusterSupported +} + +// GetClusterSupportedOk returns a tuple with the ClusterSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroResponse) GetClusterSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.ClusterSupported) { + return nil, false + } + return o.ClusterSupported, true +} + +// HasClusterSupported returns a boolean if a field has been set. +func (o *MetroResponse) HasClusterSupported() bool { + if o != nil && !IsNil(o.ClusterSupported) { + return true + } + + return false +} + +// SetClusterSupported gets a reference to the given bool and assigns it to the ClusterSupported field. +func (o *MetroResponse) SetClusterSupported(v bool) { + o.ClusterSupported = &v +} + +func (o MetroResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetroResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroDescription) { + toSerialize["metroDescription"] = o.MetroDescription + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.ClusterSupported) { + toSerialize["clusterSupported"] = o.ClusterSupported + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MetroResponse) UnmarshalJSON(data []byte) (err error) { + varMetroResponse := _MetroResponse{} + + err = json.Unmarshal(data, &varMetroResponse) + + if err != nil { + return err + } + + *o = MetroResponse(varMetroResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroDescription") + delete(additionalProperties, "region") + delete(additionalProperties, "clusterSupported") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMetroResponse struct { + value *MetroResponse + isSet bool +} + +func (v NullableMetroResponse) Get() *MetroResponse { + return v.value +} + +func (v *NullableMetroResponse) Set(val *MetroResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMetroResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMetroResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetroResponse(val *MetroResponse) *NullableMetroResponse { + return &NullableMetroResponse{value: val, isSet: true} +} + +func (v NullableMetroResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetroResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_metro_status.go b/services/networkedgev1/model_metro_status.go new file mode 100644 index 00000000..0e304bf9 --- /dev/null +++ b/services/networkedgev1/model_metro_status.go @@ -0,0 +1,155 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the MetroStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetroStatus{} + +// MetroStatus struct for MetroStatus +type MetroStatus struct { + // Whether the ssh user is active, pending, or failed in the metro. + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MetroStatus MetroStatus + +// NewMetroStatus instantiates a new MetroStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetroStatus() *MetroStatus { + this := MetroStatus{} + return &this +} + +// NewMetroStatusWithDefaults instantiates a new MetroStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetroStatusWithDefaults() *MetroStatus { + this := MetroStatus{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *MetroStatus) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetroStatus) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *MetroStatus) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *MetroStatus) SetStatus(v string) { + o.Status = &v +} + +func (o MetroStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetroStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MetroStatus) UnmarshalJSON(data []byte) (err error) { + varMetroStatus := _MetroStatus{} + + err = json.Unmarshal(data, &varMetroStatus) + + if err != nil { + return err + } + + *o = MetroStatus(varMetroStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMetroStatus struct { + value *MetroStatus + isSet bool +} + +func (v NullableMetroStatus) Get() *MetroStatus { + return v.value +} + +func (v *NullableMetroStatus) Set(val *MetroStatus) { + v.value = val + v.isSet = true +} + +func (v NullableMetroStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableMetroStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetroStatus(val *MetroStatus) *NullableMetroStatus { + return &NullableMetroStatus{value: val, isSet: true} +} + +func (v NullableMetroStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetroStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_node0_details.go b/services/networkedgev1/model_node0_details.go new file mode 100644 index 00000000..c778ff5f --- /dev/null +++ b/services/networkedgev1/model_node0_details.go @@ -0,0 +1,230 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Node0Details type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Node0Details{} + +// Node0Details struct for Node0Details +type Node0Details struct { + // License file id is required for Fortinet and Juniper clusters. + LicenseFileId *string `json:"licenseFileId,omitempty"` + // License token is required for Palo Alto clusters. + LicenseToken *string `json:"licenseToken,omitempty"` + VendorConfig *VendorConfigDetailsNode0 `json:"vendorConfig,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Node0Details Node0Details + +// NewNode0Details instantiates a new Node0Details object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNode0Details() *Node0Details { + this := Node0Details{} + return &this +} + +// NewNode0DetailsWithDefaults instantiates a new Node0Details object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNode0DetailsWithDefaults() *Node0Details { + this := Node0Details{} + return &this +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *Node0Details) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node0Details) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *Node0Details) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *Node0Details) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetLicenseToken returns the LicenseToken field value if set, zero value otherwise. +func (o *Node0Details) GetLicenseToken() string { + if o == nil || IsNil(o.LicenseToken) { + var ret string + return ret + } + return *o.LicenseToken +} + +// GetLicenseTokenOk returns a tuple with the LicenseToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node0Details) GetLicenseTokenOk() (*string, bool) { + if o == nil || IsNil(o.LicenseToken) { + return nil, false + } + return o.LicenseToken, true +} + +// HasLicenseToken returns a boolean if a field has been set. +func (o *Node0Details) HasLicenseToken() bool { + if o != nil && !IsNil(o.LicenseToken) { + return true + } + + return false +} + +// SetLicenseToken gets a reference to the given string and assigns it to the LicenseToken field. +func (o *Node0Details) SetLicenseToken(v string) { + o.LicenseToken = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *Node0Details) GetVendorConfig() VendorConfigDetailsNode0 { + if o == nil || IsNil(o.VendorConfig) { + var ret VendorConfigDetailsNode0 + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node0Details) GetVendorConfigOk() (*VendorConfigDetailsNode0, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *Node0Details) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VendorConfigDetailsNode0 and assigns it to the VendorConfig field. +func (o *Node0Details) SetVendorConfig(v VendorConfigDetailsNode0) { + o.VendorConfig = &v +} + +func (o Node0Details) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Node0Details) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.LicenseToken) { + toSerialize["licenseToken"] = o.LicenseToken + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Node0Details) UnmarshalJSON(data []byte) (err error) { + varNode0Details := _Node0Details{} + + err = json.Unmarshal(data, &varNode0Details) + + if err != nil { + return err + } + + *o = Node0Details(varNode0Details) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "licenseToken") + delete(additionalProperties, "vendorConfig") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNode0Details struct { + value *Node0Details + isSet bool +} + +func (v NullableNode0Details) Get() *Node0Details { + return v.value +} + +func (v *NullableNode0Details) Set(val *Node0Details) { + v.value = val + v.isSet = true +} + +func (v NullableNode0Details) IsSet() bool { + return v.isSet +} + +func (v *NullableNode0Details) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNode0Details(val *Node0Details) *NullableNode0Details { + return &NullableNode0Details{value: val, isSet: true} +} + +func (v NullableNode0Details) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNode0Details) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_node1_details.go b/services/networkedgev1/model_node1_details.go new file mode 100644 index 00000000..a63f2506 --- /dev/null +++ b/services/networkedgev1/model_node1_details.go @@ -0,0 +1,230 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Node1Details type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Node1Details{} + +// Node1Details struct for Node1Details +type Node1Details struct { + // License file id is required for Fortinet and Juniper clusters. + LicenseFileId *string `json:"licenseFileId,omitempty"` + // License token is required for Palo Alto clusters. + LicenseToken *string `json:"licenseToken,omitempty"` + VendorConfig *VendorConfigDetailsNode1 `json:"vendorConfig,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Node1Details Node1Details + +// NewNode1Details instantiates a new Node1Details object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNode1Details() *Node1Details { + this := Node1Details{} + return &this +} + +// NewNode1DetailsWithDefaults instantiates a new Node1Details object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNode1DetailsWithDefaults() *Node1Details { + this := Node1Details{} + return &this +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *Node1Details) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node1Details) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *Node1Details) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *Node1Details) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetLicenseToken returns the LicenseToken field value if set, zero value otherwise. +func (o *Node1Details) GetLicenseToken() string { + if o == nil || IsNil(o.LicenseToken) { + var ret string + return ret + } + return *o.LicenseToken +} + +// GetLicenseTokenOk returns a tuple with the LicenseToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node1Details) GetLicenseTokenOk() (*string, bool) { + if o == nil || IsNil(o.LicenseToken) { + return nil, false + } + return o.LicenseToken, true +} + +// HasLicenseToken returns a boolean if a field has been set. +func (o *Node1Details) HasLicenseToken() bool { + if o != nil && !IsNil(o.LicenseToken) { + return true + } + + return false +} + +// SetLicenseToken gets a reference to the given string and assigns it to the LicenseToken field. +func (o *Node1Details) SetLicenseToken(v string) { + o.LicenseToken = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *Node1Details) GetVendorConfig() VendorConfigDetailsNode1 { + if o == nil || IsNil(o.VendorConfig) { + var ret VendorConfigDetailsNode1 + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Node1Details) GetVendorConfigOk() (*VendorConfigDetailsNode1, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *Node1Details) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VendorConfigDetailsNode1 and assigns it to the VendorConfig field. +func (o *Node1Details) SetVendorConfig(v VendorConfigDetailsNode1) { + o.VendorConfig = &v +} + +func (o Node1Details) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Node1Details) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.LicenseToken) { + toSerialize["licenseToken"] = o.LicenseToken + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Node1Details) UnmarshalJSON(data []byte) (err error) { + varNode1Details := _Node1Details{} + + err = json.Unmarshal(data, &varNode1Details) + + if err != nil { + return err + } + + *o = Node1Details(varNode1Details) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "licenseToken") + delete(additionalProperties, "vendorConfig") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNode1Details struct { + value *Node1Details + isSet bool +} + +func (v NullableNode1Details) Get() *Node1Details { + return v.value +} + +func (v *NullableNode1Details) Set(val *Node1Details) { + v.value = val + v.isSet = true +} + +func (v NullableNode1Details) IsSet() bool { + return v.isSet +} + +func (v *NullableNode1Details) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNode1Details(val *Node1Details) *NullableNode1Details { + return &NullableNode1Details{value: val, isSet: true} +} + +func (v NullableNode1Details) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNode1Details) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_order_summary_response.go b/services/networkedgev1/model_order_summary_response.go new file mode 100644 index 00000000..102bbf0c --- /dev/null +++ b/services/networkedgev1/model_order_summary_response.go @@ -0,0 +1,1153 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the OrderSummaryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderSummaryResponse{} + +// OrderSummaryResponse struct for OrderSummaryResponse +type OrderSummaryResponse struct { + AccountNumber *int32 `json:"accountNumber,omitempty"` + AgreementId *string `json:"agreementId,omitempty"` + Charges []DeviceElement `json:"charges,omitempty"` + Currency *string `json:"currency,omitempty"` + ErrorCode *string `json:"errorCode,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + EsignAgreementId *string `json:"esignAgreementId,omitempty"` + IbxCountry *string `json:"ibxCountry,omitempty"` + IbxRegion *string `json:"ibxRegion,omitempty"` + InitialTerm *int32 `json:"initialTerm,omitempty"` + Metro *string `json:"metro,omitempty"` + MonthlyRecurringCharges *float64 `json:"monthlyRecurringCharges,omitempty"` + NonRecurringCharges *float64 `json:"nonRecurringCharges,omitempty"` + NonRenewalNotice *string `json:"nonRenewalNotice,omitempty"` + OrderTerms *string `json:"orderTerms,omitempty"` + PiPercentage *string `json:"piPercentage,omitempty"` + ProductDescription *string `json:"productDescription,omitempty"` + Quantity *int32 `json:"quantity,omitempty"` + QuoteContentType *string `json:"quoteContentType,omitempty"` + QuoteFileName *string `json:"quoteFileName,omitempty"` + ReferenceId *string `json:"referenceId,omitempty"` + RenewalPeriod *int32 `json:"renewalPeriod,omitempty"` + RequestSignType *string `json:"requestSignType,omitempty"` + SignStatus *string `json:"signStatus,omitempty"` + SignType *string `json:"signType,omitempty"` + Speed *string `json:"speed,omitempty"` + Status *string `json:"status,omitempty"` + TotalCharges *float64 `json:"totalCharges,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _OrderSummaryResponse OrderSummaryResponse + +// NewOrderSummaryResponse instantiates a new OrderSummaryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderSummaryResponse() *OrderSummaryResponse { + this := OrderSummaryResponse{} + return &this +} + +// NewOrderSummaryResponseWithDefaults instantiates a new OrderSummaryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderSummaryResponseWithDefaults() *OrderSummaryResponse { + this := OrderSummaryResponse{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetAccountNumber() int32 { + if o == nil || IsNil(o.AccountNumber) { + var ret int32 + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetAccountNumberOk() (*int32, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given int32 and assigns it to the AccountNumber field. +func (o *OrderSummaryResponse) SetAccountNumber(v int32) { + o.AccountNumber = &v +} + +// GetAgreementId returns the AgreementId field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetAgreementId() string { + if o == nil || IsNil(o.AgreementId) { + var ret string + return ret + } + return *o.AgreementId +} + +// GetAgreementIdOk returns a tuple with the AgreementId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetAgreementIdOk() (*string, bool) { + if o == nil || IsNil(o.AgreementId) { + return nil, false + } + return o.AgreementId, true +} + +// HasAgreementId returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasAgreementId() bool { + if o != nil && !IsNil(o.AgreementId) { + return true + } + + return false +} + +// SetAgreementId gets a reference to the given string and assigns it to the AgreementId field. +func (o *OrderSummaryResponse) SetAgreementId(v string) { + o.AgreementId = &v +} + +// GetCharges returns the Charges field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetCharges() []DeviceElement { + if o == nil || IsNil(o.Charges) { + var ret []DeviceElement + return ret + } + return o.Charges +} + +// GetChargesOk returns a tuple with the Charges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetChargesOk() ([]DeviceElement, bool) { + if o == nil || IsNil(o.Charges) { + return nil, false + } + return o.Charges, true +} + +// HasCharges returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasCharges() bool { + if o != nil && !IsNil(o.Charges) { + return true + } + + return false +} + +// SetCharges gets a reference to the given []DeviceElement and assigns it to the Charges field. +func (o *OrderSummaryResponse) SetCharges(v []DeviceElement) { + o.Charges = v +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *OrderSummaryResponse) SetCurrency(v string) { + o.Currency = &v +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *OrderSummaryResponse) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *OrderSummaryResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetEsignAgreementId returns the EsignAgreementId field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetEsignAgreementId() string { + if o == nil || IsNil(o.EsignAgreementId) { + var ret string + return ret + } + return *o.EsignAgreementId +} + +// GetEsignAgreementIdOk returns a tuple with the EsignAgreementId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetEsignAgreementIdOk() (*string, bool) { + if o == nil || IsNil(o.EsignAgreementId) { + return nil, false + } + return o.EsignAgreementId, true +} + +// HasEsignAgreementId returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasEsignAgreementId() bool { + if o != nil && !IsNil(o.EsignAgreementId) { + return true + } + + return false +} + +// SetEsignAgreementId gets a reference to the given string and assigns it to the EsignAgreementId field. +func (o *OrderSummaryResponse) SetEsignAgreementId(v string) { + o.EsignAgreementId = &v +} + +// GetIbxCountry returns the IbxCountry field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetIbxCountry() string { + if o == nil || IsNil(o.IbxCountry) { + var ret string + return ret + } + return *o.IbxCountry +} + +// GetIbxCountryOk returns a tuple with the IbxCountry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetIbxCountryOk() (*string, bool) { + if o == nil || IsNil(o.IbxCountry) { + return nil, false + } + return o.IbxCountry, true +} + +// HasIbxCountry returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasIbxCountry() bool { + if o != nil && !IsNil(o.IbxCountry) { + return true + } + + return false +} + +// SetIbxCountry gets a reference to the given string and assigns it to the IbxCountry field. +func (o *OrderSummaryResponse) SetIbxCountry(v string) { + o.IbxCountry = &v +} + +// GetIbxRegion returns the IbxRegion field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetIbxRegion() string { + if o == nil || IsNil(o.IbxRegion) { + var ret string + return ret + } + return *o.IbxRegion +} + +// GetIbxRegionOk returns a tuple with the IbxRegion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetIbxRegionOk() (*string, bool) { + if o == nil || IsNil(o.IbxRegion) { + return nil, false + } + return o.IbxRegion, true +} + +// HasIbxRegion returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasIbxRegion() bool { + if o != nil && !IsNil(o.IbxRegion) { + return true + } + + return false +} + +// SetIbxRegion gets a reference to the given string and assigns it to the IbxRegion field. +func (o *OrderSummaryResponse) SetIbxRegion(v string) { + o.IbxRegion = &v +} + +// GetInitialTerm returns the InitialTerm field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetInitialTerm() int32 { + if o == nil || IsNil(o.InitialTerm) { + var ret int32 + return ret + } + return *o.InitialTerm +} + +// GetInitialTermOk returns a tuple with the InitialTerm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetInitialTermOk() (*int32, bool) { + if o == nil || IsNil(o.InitialTerm) { + return nil, false + } + return o.InitialTerm, true +} + +// HasInitialTerm returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasInitialTerm() bool { + if o != nil && !IsNil(o.InitialTerm) { + return true + } + + return false +} + +// SetInitialTerm gets a reference to the given int32 and assigns it to the InitialTerm field. +func (o *OrderSummaryResponse) SetInitialTerm(v int32) { + o.InitialTerm = &v +} + +// GetMetro returns the Metro field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetMetro() string { + if o == nil || IsNil(o.Metro) { + var ret string + return ret + } + return *o.Metro +} + +// GetMetroOk returns a tuple with the Metro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetMetroOk() (*string, bool) { + if o == nil || IsNil(o.Metro) { + return nil, false + } + return o.Metro, true +} + +// HasMetro returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasMetro() bool { + if o != nil && !IsNil(o.Metro) { + return true + } + + return false +} + +// SetMetro gets a reference to the given string and assigns it to the Metro field. +func (o *OrderSummaryResponse) SetMetro(v string) { + o.Metro = &v +} + +// GetMonthlyRecurringCharges returns the MonthlyRecurringCharges field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetMonthlyRecurringCharges() float64 { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + var ret float64 + return ret + } + return *o.MonthlyRecurringCharges +} + +// GetMonthlyRecurringChargesOk returns a tuple with the MonthlyRecurringCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetMonthlyRecurringChargesOk() (*float64, bool) { + if o == nil || IsNil(o.MonthlyRecurringCharges) { + return nil, false + } + return o.MonthlyRecurringCharges, true +} + +// HasMonthlyRecurringCharges returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasMonthlyRecurringCharges() bool { + if o != nil && !IsNil(o.MonthlyRecurringCharges) { + return true + } + + return false +} + +// SetMonthlyRecurringCharges gets a reference to the given float64 and assigns it to the MonthlyRecurringCharges field. +func (o *OrderSummaryResponse) SetMonthlyRecurringCharges(v float64) { + o.MonthlyRecurringCharges = &v +} + +// GetNonRecurringCharges returns the NonRecurringCharges field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetNonRecurringCharges() float64 { + if o == nil || IsNil(o.NonRecurringCharges) { + var ret float64 + return ret + } + return *o.NonRecurringCharges +} + +// GetNonRecurringChargesOk returns a tuple with the NonRecurringCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetNonRecurringChargesOk() (*float64, bool) { + if o == nil || IsNil(o.NonRecurringCharges) { + return nil, false + } + return o.NonRecurringCharges, true +} + +// HasNonRecurringCharges returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasNonRecurringCharges() bool { + if o != nil && !IsNil(o.NonRecurringCharges) { + return true + } + + return false +} + +// SetNonRecurringCharges gets a reference to the given float64 and assigns it to the NonRecurringCharges field. +func (o *OrderSummaryResponse) SetNonRecurringCharges(v float64) { + o.NonRecurringCharges = &v +} + +// GetNonRenewalNotice returns the NonRenewalNotice field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetNonRenewalNotice() string { + if o == nil || IsNil(o.NonRenewalNotice) { + var ret string + return ret + } + return *o.NonRenewalNotice +} + +// GetNonRenewalNoticeOk returns a tuple with the NonRenewalNotice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetNonRenewalNoticeOk() (*string, bool) { + if o == nil || IsNil(o.NonRenewalNotice) { + return nil, false + } + return o.NonRenewalNotice, true +} + +// HasNonRenewalNotice returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasNonRenewalNotice() bool { + if o != nil && !IsNil(o.NonRenewalNotice) { + return true + } + + return false +} + +// SetNonRenewalNotice gets a reference to the given string and assigns it to the NonRenewalNotice field. +func (o *OrderSummaryResponse) SetNonRenewalNotice(v string) { + o.NonRenewalNotice = &v +} + +// GetOrderTerms returns the OrderTerms field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetOrderTerms() string { + if o == nil || IsNil(o.OrderTerms) { + var ret string + return ret + } + return *o.OrderTerms +} + +// GetOrderTermsOk returns a tuple with the OrderTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetOrderTermsOk() (*string, bool) { + if o == nil || IsNil(o.OrderTerms) { + return nil, false + } + return o.OrderTerms, true +} + +// HasOrderTerms returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasOrderTerms() bool { + if o != nil && !IsNil(o.OrderTerms) { + return true + } + + return false +} + +// SetOrderTerms gets a reference to the given string and assigns it to the OrderTerms field. +func (o *OrderSummaryResponse) SetOrderTerms(v string) { + o.OrderTerms = &v +} + +// GetPiPercentage returns the PiPercentage field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetPiPercentage() string { + if o == nil || IsNil(o.PiPercentage) { + var ret string + return ret + } + return *o.PiPercentage +} + +// GetPiPercentageOk returns a tuple with the PiPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetPiPercentageOk() (*string, bool) { + if o == nil || IsNil(o.PiPercentage) { + return nil, false + } + return o.PiPercentage, true +} + +// HasPiPercentage returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasPiPercentage() bool { + if o != nil && !IsNil(o.PiPercentage) { + return true + } + + return false +} + +// SetPiPercentage gets a reference to the given string and assigns it to the PiPercentage field. +func (o *OrderSummaryResponse) SetPiPercentage(v string) { + o.PiPercentage = &v +} + +// GetProductDescription returns the ProductDescription field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetProductDescription() string { + if o == nil || IsNil(o.ProductDescription) { + var ret string + return ret + } + return *o.ProductDescription +} + +// GetProductDescriptionOk returns a tuple with the ProductDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetProductDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ProductDescription) { + return nil, false + } + return o.ProductDescription, true +} + +// HasProductDescription returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasProductDescription() bool { + if o != nil && !IsNil(o.ProductDescription) { + return true + } + + return false +} + +// SetProductDescription gets a reference to the given string and assigns it to the ProductDescription field. +func (o *OrderSummaryResponse) SetProductDescription(v string) { + o.ProductDescription = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetQuantity() int32 { + if o == nil || IsNil(o.Quantity) { + var ret int32 + return ret + } + return *o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetQuantityOk() (*int32, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasQuantity() bool { + if o != nil && !IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given int32 and assigns it to the Quantity field. +func (o *OrderSummaryResponse) SetQuantity(v int32) { + o.Quantity = &v +} + +// GetQuoteContentType returns the QuoteContentType field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetQuoteContentType() string { + if o == nil || IsNil(o.QuoteContentType) { + var ret string + return ret + } + return *o.QuoteContentType +} + +// GetQuoteContentTypeOk returns a tuple with the QuoteContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetQuoteContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.QuoteContentType) { + return nil, false + } + return o.QuoteContentType, true +} + +// HasQuoteContentType returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasQuoteContentType() bool { + if o != nil && !IsNil(o.QuoteContentType) { + return true + } + + return false +} + +// SetQuoteContentType gets a reference to the given string and assigns it to the QuoteContentType field. +func (o *OrderSummaryResponse) SetQuoteContentType(v string) { + o.QuoteContentType = &v +} + +// GetQuoteFileName returns the QuoteFileName field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetQuoteFileName() string { + if o == nil || IsNil(o.QuoteFileName) { + var ret string + return ret + } + return *o.QuoteFileName +} + +// GetQuoteFileNameOk returns a tuple with the QuoteFileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetQuoteFileNameOk() (*string, bool) { + if o == nil || IsNil(o.QuoteFileName) { + return nil, false + } + return o.QuoteFileName, true +} + +// HasQuoteFileName returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasQuoteFileName() bool { + if o != nil && !IsNil(o.QuoteFileName) { + return true + } + + return false +} + +// SetQuoteFileName gets a reference to the given string and assigns it to the QuoteFileName field. +func (o *OrderSummaryResponse) SetQuoteFileName(v string) { + o.QuoteFileName = &v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetReferenceId() string { + if o == nil || IsNil(o.ReferenceId) { + var ret string + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetReferenceIdOk() (*string, bool) { + if o == nil || IsNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasReferenceId() bool { + if o != nil && !IsNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given string and assigns it to the ReferenceId field. +func (o *OrderSummaryResponse) SetReferenceId(v string) { + o.ReferenceId = &v +} + +// GetRenewalPeriod returns the RenewalPeriod field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetRenewalPeriod() int32 { + if o == nil || IsNil(o.RenewalPeriod) { + var ret int32 + return ret + } + return *o.RenewalPeriod +} + +// GetRenewalPeriodOk returns a tuple with the RenewalPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetRenewalPeriodOk() (*int32, bool) { + if o == nil || IsNil(o.RenewalPeriod) { + return nil, false + } + return o.RenewalPeriod, true +} + +// HasRenewalPeriod returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasRenewalPeriod() bool { + if o != nil && !IsNil(o.RenewalPeriod) { + return true + } + + return false +} + +// SetRenewalPeriod gets a reference to the given int32 and assigns it to the RenewalPeriod field. +func (o *OrderSummaryResponse) SetRenewalPeriod(v int32) { + o.RenewalPeriod = &v +} + +// GetRequestSignType returns the RequestSignType field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetRequestSignType() string { + if o == nil || IsNil(o.RequestSignType) { + var ret string + return ret + } + return *o.RequestSignType +} + +// GetRequestSignTypeOk returns a tuple with the RequestSignType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetRequestSignTypeOk() (*string, bool) { + if o == nil || IsNil(o.RequestSignType) { + return nil, false + } + return o.RequestSignType, true +} + +// HasRequestSignType returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasRequestSignType() bool { + if o != nil && !IsNil(o.RequestSignType) { + return true + } + + return false +} + +// SetRequestSignType gets a reference to the given string and assigns it to the RequestSignType field. +func (o *OrderSummaryResponse) SetRequestSignType(v string) { + o.RequestSignType = &v +} + +// GetSignStatus returns the SignStatus field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetSignStatus() string { + if o == nil || IsNil(o.SignStatus) { + var ret string + return ret + } + return *o.SignStatus +} + +// GetSignStatusOk returns a tuple with the SignStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetSignStatusOk() (*string, bool) { + if o == nil || IsNil(o.SignStatus) { + return nil, false + } + return o.SignStatus, true +} + +// HasSignStatus returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasSignStatus() bool { + if o != nil && !IsNil(o.SignStatus) { + return true + } + + return false +} + +// SetSignStatus gets a reference to the given string and assigns it to the SignStatus field. +func (o *OrderSummaryResponse) SetSignStatus(v string) { + o.SignStatus = &v +} + +// GetSignType returns the SignType field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetSignType() string { + if o == nil || IsNil(o.SignType) { + var ret string + return ret + } + return *o.SignType +} + +// GetSignTypeOk returns a tuple with the SignType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetSignTypeOk() (*string, bool) { + if o == nil || IsNil(o.SignType) { + return nil, false + } + return o.SignType, true +} + +// HasSignType returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasSignType() bool { + if o != nil && !IsNil(o.SignType) { + return true + } + + return false +} + +// SetSignType gets a reference to the given string and assigns it to the SignType field. +func (o *OrderSummaryResponse) SetSignType(v string) { + o.SignType = &v +} + +// GetSpeed returns the Speed field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetSpeed() string { + if o == nil || IsNil(o.Speed) { + var ret string + return ret + } + return *o.Speed +} + +// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetSpeedOk() (*string, bool) { + if o == nil || IsNil(o.Speed) { + return nil, false + } + return o.Speed, true +} + +// HasSpeed returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasSpeed() bool { + if o != nil && !IsNil(o.Speed) { + return true + } + + return false +} + +// SetSpeed gets a reference to the given string and assigns it to the Speed field. +func (o *OrderSummaryResponse) SetSpeed(v string) { + o.Speed = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *OrderSummaryResponse) SetStatus(v string) { + o.Status = &v +} + +// GetTotalCharges returns the TotalCharges field value if set, zero value otherwise. +func (o *OrderSummaryResponse) GetTotalCharges() float64 { + if o == nil || IsNil(o.TotalCharges) { + var ret float64 + return ret + } + return *o.TotalCharges +} + +// GetTotalChargesOk returns a tuple with the TotalCharges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSummaryResponse) GetTotalChargesOk() (*float64, bool) { + if o == nil || IsNil(o.TotalCharges) { + return nil, false + } + return o.TotalCharges, true +} + +// HasTotalCharges returns a boolean if a field has been set. +func (o *OrderSummaryResponse) HasTotalCharges() bool { + if o != nil && !IsNil(o.TotalCharges) { + return true + } + + return false +} + +// SetTotalCharges gets a reference to the given float64 and assigns it to the TotalCharges field. +func (o *OrderSummaryResponse) SetTotalCharges(v float64) { + o.TotalCharges = &v +} + +func (o OrderSummaryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderSummaryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.AgreementId) { + toSerialize["agreementId"] = o.AgreementId + } + if !IsNil(o.Charges) { + toSerialize["charges"] = o.Charges + } + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.EsignAgreementId) { + toSerialize["esignAgreementId"] = o.EsignAgreementId + } + if !IsNil(o.IbxCountry) { + toSerialize["ibxCountry"] = o.IbxCountry + } + if !IsNil(o.IbxRegion) { + toSerialize["ibxRegion"] = o.IbxRegion + } + if !IsNil(o.InitialTerm) { + toSerialize["initialTerm"] = o.InitialTerm + } + if !IsNil(o.Metro) { + toSerialize["metro"] = o.Metro + } + if !IsNil(o.MonthlyRecurringCharges) { + toSerialize["monthlyRecurringCharges"] = o.MonthlyRecurringCharges + } + if !IsNil(o.NonRecurringCharges) { + toSerialize["nonRecurringCharges"] = o.NonRecurringCharges + } + if !IsNil(o.NonRenewalNotice) { + toSerialize["nonRenewalNotice"] = o.NonRenewalNotice + } + if !IsNil(o.OrderTerms) { + toSerialize["orderTerms"] = o.OrderTerms + } + if !IsNil(o.PiPercentage) { + toSerialize["piPercentage"] = o.PiPercentage + } + if !IsNil(o.ProductDescription) { + toSerialize["productDescription"] = o.ProductDescription + } + if !IsNil(o.Quantity) { + toSerialize["quantity"] = o.Quantity + } + if !IsNil(o.QuoteContentType) { + toSerialize["quoteContentType"] = o.QuoteContentType + } + if !IsNil(o.QuoteFileName) { + toSerialize["quoteFileName"] = o.QuoteFileName + } + if !IsNil(o.ReferenceId) { + toSerialize["referenceId"] = o.ReferenceId + } + if !IsNil(o.RenewalPeriod) { + toSerialize["renewalPeriod"] = o.RenewalPeriod + } + if !IsNil(o.RequestSignType) { + toSerialize["requestSignType"] = o.RequestSignType + } + if !IsNil(o.SignStatus) { + toSerialize["signStatus"] = o.SignStatus + } + if !IsNil(o.SignType) { + toSerialize["signType"] = o.SignType + } + if !IsNil(o.Speed) { + toSerialize["speed"] = o.Speed + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.TotalCharges) { + toSerialize["totalCharges"] = o.TotalCharges + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrderSummaryResponse) UnmarshalJSON(data []byte) (err error) { + varOrderSummaryResponse := _OrderSummaryResponse{} + + err = json.Unmarshal(data, &varOrderSummaryResponse) + + if err != nil { + return err + } + + *o = OrderSummaryResponse(varOrderSummaryResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "agreementId") + delete(additionalProperties, "charges") + delete(additionalProperties, "currency") + delete(additionalProperties, "errorCode") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "esignAgreementId") + delete(additionalProperties, "ibxCountry") + delete(additionalProperties, "ibxRegion") + delete(additionalProperties, "initialTerm") + delete(additionalProperties, "metro") + delete(additionalProperties, "monthlyRecurringCharges") + delete(additionalProperties, "nonRecurringCharges") + delete(additionalProperties, "nonRenewalNotice") + delete(additionalProperties, "orderTerms") + delete(additionalProperties, "piPercentage") + delete(additionalProperties, "productDescription") + delete(additionalProperties, "quantity") + delete(additionalProperties, "quoteContentType") + delete(additionalProperties, "quoteFileName") + delete(additionalProperties, "referenceId") + delete(additionalProperties, "renewalPeriod") + delete(additionalProperties, "requestSignType") + delete(additionalProperties, "signStatus") + delete(additionalProperties, "signType") + delete(additionalProperties, "speed") + delete(additionalProperties, "status") + delete(additionalProperties, "totalCharges") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrderSummaryResponse struct { + value *OrderSummaryResponse + isSet bool +} + +func (v NullableOrderSummaryResponse) Get() *OrderSummaryResponse { + return v.value +} + +func (v *NullableOrderSummaryResponse) Set(val *OrderSummaryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrderSummaryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderSummaryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderSummaryResponse(val *OrderSummaryResponse) *NullableOrderSummaryResponse { + return &NullableOrderSummaryResponse{value: val, isSet: true} +} + +func (v NullableOrderSummaryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderSummaryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_order_terms_response.go b/services/networkedgev1/model_order_terms_response.go new file mode 100644 index 00000000..425a020b --- /dev/null +++ b/services/networkedgev1/model_order_terms_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the OrderTermsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderTermsResponse{} + +// OrderTermsResponse struct for OrderTermsResponse +type OrderTermsResponse struct { + Terms *string `json:"terms,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _OrderTermsResponse OrderTermsResponse + +// NewOrderTermsResponse instantiates a new OrderTermsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderTermsResponse() *OrderTermsResponse { + this := OrderTermsResponse{} + return &this +} + +// NewOrderTermsResponseWithDefaults instantiates a new OrderTermsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderTermsResponseWithDefaults() *OrderTermsResponse { + this := OrderTermsResponse{} + return &this +} + +// GetTerms returns the Terms field value if set, zero value otherwise. +func (o *OrderTermsResponse) GetTerms() string { + if o == nil || IsNil(o.Terms) { + var ret string + return ret + } + return *o.Terms +} + +// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderTermsResponse) GetTermsOk() (*string, bool) { + if o == nil || IsNil(o.Terms) { + return nil, false + } + return o.Terms, true +} + +// HasTerms returns a boolean if a field has been set. +func (o *OrderTermsResponse) HasTerms() bool { + if o != nil && !IsNil(o.Terms) { + return true + } + + return false +} + +// SetTerms gets a reference to the given string and assigns it to the Terms field. +func (o *OrderTermsResponse) SetTerms(v string) { + o.Terms = &v +} + +func (o OrderTermsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderTermsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Terms) { + toSerialize["terms"] = o.Terms + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrderTermsResponse) UnmarshalJSON(data []byte) (err error) { + varOrderTermsResponse := _OrderTermsResponse{} + + err = json.Unmarshal(data, &varOrderTermsResponse) + + if err != nil { + return err + } + + *o = OrderTermsResponse(varOrderTermsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "terms") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrderTermsResponse struct { + value *OrderTermsResponse + isSet bool +} + +func (v NullableOrderTermsResponse) Get() *OrderTermsResponse { + return v.value +} + +func (v *NullableOrderTermsResponse) Set(val *OrderTermsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrderTermsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderTermsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderTermsResponse(val *OrderTermsResponse) *NullableOrderTermsResponse { + return &NullableOrderTermsResponse{value: val, isSet: true} +} + +func (v NullableOrderTermsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderTermsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_package_codes.go b/services/networkedgev1/model_package_codes.go new file mode 100644 index 00000000..fa47180c --- /dev/null +++ b/services/networkedgev1/model_package_codes.go @@ -0,0 +1,304 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PackageCodes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageCodes{} + +// PackageCodes struct for PackageCodes +type PackageCodes struct { + // The type of package. + PackageCode *string `json:"packageCode,omitempty"` + ExcludedVersions []string `json:"excludedVersions,omitempty"` + ExcludedClusterVersions []string `json:"excludedClusterVersions,omitempty"` + Throughputs []ThroughputConfig `json:"throughputs,omitempty"` + // Whether this software package is supported. + Supported *bool `json:"supported,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PackageCodes PackageCodes + +// NewPackageCodes instantiates a new PackageCodes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageCodes() *PackageCodes { + this := PackageCodes{} + return &this +} + +// NewPackageCodesWithDefaults instantiates a new PackageCodes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageCodesWithDefaults() *PackageCodes { + this := PackageCodes{} + return &this +} + +// GetPackageCode returns the PackageCode field value if set, zero value otherwise. +func (o *PackageCodes) GetPackageCode() string { + if o == nil || IsNil(o.PackageCode) { + var ret string + return ret + } + return *o.PackageCode +} + +// GetPackageCodeOk returns a tuple with the PackageCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCodes) GetPackageCodeOk() (*string, bool) { + if o == nil || IsNil(o.PackageCode) { + return nil, false + } + return o.PackageCode, true +} + +// HasPackageCode returns a boolean if a field has been set. +func (o *PackageCodes) HasPackageCode() bool { + if o != nil && !IsNil(o.PackageCode) { + return true + } + + return false +} + +// SetPackageCode gets a reference to the given string and assigns it to the PackageCode field. +func (o *PackageCodes) SetPackageCode(v string) { + o.PackageCode = &v +} + +// GetExcludedVersions returns the ExcludedVersions field value if set, zero value otherwise. +func (o *PackageCodes) GetExcludedVersions() []string { + if o == nil || IsNil(o.ExcludedVersions) { + var ret []string + return ret + } + return o.ExcludedVersions +} + +// GetExcludedVersionsOk returns a tuple with the ExcludedVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCodes) GetExcludedVersionsOk() ([]string, bool) { + if o == nil || IsNil(o.ExcludedVersions) { + return nil, false + } + return o.ExcludedVersions, true +} + +// HasExcludedVersions returns a boolean if a field has been set. +func (o *PackageCodes) HasExcludedVersions() bool { + if o != nil && !IsNil(o.ExcludedVersions) { + return true + } + + return false +} + +// SetExcludedVersions gets a reference to the given []string and assigns it to the ExcludedVersions field. +func (o *PackageCodes) SetExcludedVersions(v []string) { + o.ExcludedVersions = v +} + +// GetExcludedClusterVersions returns the ExcludedClusterVersions field value if set, zero value otherwise. +func (o *PackageCodes) GetExcludedClusterVersions() []string { + if o == nil || IsNil(o.ExcludedClusterVersions) { + var ret []string + return ret + } + return o.ExcludedClusterVersions +} + +// GetExcludedClusterVersionsOk returns a tuple with the ExcludedClusterVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCodes) GetExcludedClusterVersionsOk() ([]string, bool) { + if o == nil || IsNil(o.ExcludedClusterVersions) { + return nil, false + } + return o.ExcludedClusterVersions, true +} + +// HasExcludedClusterVersions returns a boolean if a field has been set. +func (o *PackageCodes) HasExcludedClusterVersions() bool { + if o != nil && !IsNil(o.ExcludedClusterVersions) { + return true + } + + return false +} + +// SetExcludedClusterVersions gets a reference to the given []string and assigns it to the ExcludedClusterVersions field. +func (o *PackageCodes) SetExcludedClusterVersions(v []string) { + o.ExcludedClusterVersions = v +} + +// GetThroughputs returns the Throughputs field value if set, zero value otherwise. +func (o *PackageCodes) GetThroughputs() []ThroughputConfig { + if o == nil || IsNil(o.Throughputs) { + var ret []ThroughputConfig + return ret + } + return o.Throughputs +} + +// GetThroughputsOk returns a tuple with the Throughputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCodes) GetThroughputsOk() ([]ThroughputConfig, bool) { + if o == nil || IsNil(o.Throughputs) { + return nil, false + } + return o.Throughputs, true +} + +// HasThroughputs returns a boolean if a field has been set. +func (o *PackageCodes) HasThroughputs() bool { + if o != nil && !IsNil(o.Throughputs) { + return true + } + + return false +} + +// SetThroughputs gets a reference to the given []ThroughputConfig and assigns it to the Throughputs field. +func (o *PackageCodes) SetThroughputs(v []ThroughputConfig) { + o.Throughputs = v +} + +// GetSupported returns the Supported field value if set, zero value otherwise. +func (o *PackageCodes) GetSupported() bool { + if o == nil || IsNil(o.Supported) { + var ret bool + return ret + } + return *o.Supported +} + +// GetSupportedOk returns a tuple with the Supported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCodes) GetSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.Supported) { + return nil, false + } + return o.Supported, true +} + +// HasSupported returns a boolean if a field has been set. +func (o *PackageCodes) HasSupported() bool { + if o != nil && !IsNil(o.Supported) { + return true + } + + return false +} + +// SetSupported gets a reference to the given bool and assigns it to the Supported field. +func (o *PackageCodes) SetSupported(v bool) { + o.Supported = &v +} + +func (o PackageCodes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageCodes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PackageCode) { + toSerialize["packageCode"] = o.PackageCode + } + if !IsNil(o.ExcludedVersions) { + toSerialize["excludedVersions"] = o.ExcludedVersions + } + if !IsNil(o.ExcludedClusterVersions) { + toSerialize["excludedClusterVersions"] = o.ExcludedClusterVersions + } + if !IsNil(o.Throughputs) { + toSerialize["throughputs"] = o.Throughputs + } + if !IsNil(o.Supported) { + toSerialize["supported"] = o.Supported + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PackageCodes) UnmarshalJSON(data []byte) (err error) { + varPackageCodes := _PackageCodes{} + + err = json.Unmarshal(data, &varPackageCodes) + + if err != nil { + return err + } + + *o = PackageCodes(varPackageCodes) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "packageCode") + delete(additionalProperties, "excludedVersions") + delete(additionalProperties, "excludedClusterVersions") + delete(additionalProperties, "throughputs") + delete(additionalProperties, "supported") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackageCodes struct { + value *PackageCodes + isSet bool +} + +func (v NullablePackageCodes) Get() *PackageCodes { + return v.value +} + +func (v *NullablePackageCodes) Set(val *PackageCodes) { + v.value = val + v.isSet = true +} + +func (v NullablePackageCodes) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageCodes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageCodes(val *PackageCodes) *NullablePackageCodes { + return &NullablePackageCodes{value: val, isSet: true} +} + +func (v NullablePackageCodes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageCodes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response.go b/services/networkedgev1/model_page_response.go new file mode 100644 index 00000000..0f28ea2f --- /dev/null +++ b/services/networkedgev1/model_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponse{} + +// PageResponse struct for PageResponse +type PageResponse struct { + Data []map[string]interface{} `json:"data,omitempty"` + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponse PageResponse + +// NewPageResponse instantiates a new PageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponse() *PageResponse { + this := PageResponse{} + return &this +} + +// NewPageResponseWithDefaults instantiates a new PageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponseWithDefaults() *PageResponse { + this := PageResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PageResponse) GetData() []map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret []map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponse) GetDataOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []map[string]interface{} and assigns it to the Data field. +func (o *PageResponse) SetData(v []map[string]interface{}) { + o.Data = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *PageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *PageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *PageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +func (o PageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponse) UnmarshalJSON(data []byte) (err error) { + varPageResponse := _PageResponse{} + + err = json.Unmarshal(data, &varPageResponse) + + if err != nil { + return err + } + + *o = PageResponse(varPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponse struct { + value *PageResponse + isSet bool +} + +func (v NullablePageResponse) Get() *PageResponse { + return v.value +} + +func (v *NullablePageResponse) Set(val *PageResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponse(val *PageResponse) *NullablePageResponse { + return &NullablePageResponse{value: val, isSet: true} +} + +func (v NullablePageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response_dto.go b/services/networkedgev1/model_page_response_dto.go new file mode 100644 index 00000000..76e324ea --- /dev/null +++ b/services/networkedgev1/model_page_response_dto.go @@ -0,0 +1,228 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponseDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponseDto{} + +// PageResponseDto struct for PageResponseDto +type PageResponseDto struct { + Content []map[string]interface{} `json:"content,omitempty"` + Data []map[string]interface{} `json:"data,omitempty"` + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponseDto PageResponseDto + +// NewPageResponseDto instantiates a new PageResponseDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponseDto() *PageResponseDto { + this := PageResponseDto{} + return &this +} + +// NewPageResponseDtoWithDefaults instantiates a new PageResponseDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponseDtoWithDefaults() *PageResponseDto { + this := PageResponseDto{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *PageResponseDto) GetContent() []map[string]interface{} { + if o == nil || IsNil(o.Content) { + var ret []map[string]interface{} + return ret + } + return o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDto) GetContentOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *PageResponseDto) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given []map[string]interface{} and assigns it to the Content field. +func (o *PageResponseDto) SetContent(v []map[string]interface{}) { + o.Content = v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PageResponseDto) GetData() []map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret []map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDto) GetDataOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PageResponseDto) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []map[string]interface{} and assigns it to the Data field. +func (o *PageResponseDto) SetData(v []map[string]interface{}) { + o.Data = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *PageResponseDto) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDto) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *PageResponseDto) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *PageResponseDto) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +func (o PageResponseDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponseDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponseDto) UnmarshalJSON(data []byte) (err error) { + varPageResponseDto := _PageResponseDto{} + + err = json.Unmarshal(data, &varPageResponseDto) + + if err != nil { + return err + } + + *o = PageResponseDto(varPageResponseDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "content") + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponseDto struct { + value *PageResponseDto + isSet bool +} + +func (v NullablePageResponseDto) Get() *PageResponseDto { + return v.value +} + +func (v *NullablePageResponseDto) Set(val *PageResponseDto) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponseDto) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponseDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponseDto(val *PageResponseDto) *NullablePageResponseDto { + return &NullablePageResponseDto{value: val, isSet: true} +} + +func (v NullablePageResponseDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponseDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response_dto_metro_account_response.go b/services/networkedgev1/model_page_response_dto_metro_account_response.go new file mode 100644 index 00000000..1ce17915 --- /dev/null +++ b/services/networkedgev1/model_page_response_dto_metro_account_response.go @@ -0,0 +1,268 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponseDtoMetroAccountResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponseDtoMetroAccountResponse{} + +// PageResponseDtoMetroAccountResponse struct for PageResponseDtoMetroAccountResponse +type PageResponseDtoMetroAccountResponse struct { + // accountCreateUrl + AccountCreateUrl *string `json:"accountCreateUrl,omitempty"` + Accounts []MetroAccountResponse `json:"accounts,omitempty"` + // error Message + ErrorMessage *string `json:"errorMessage,omitempty"` + // error Code + ErrorCode *string `json:"errorCode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponseDtoMetroAccountResponse PageResponseDtoMetroAccountResponse + +// NewPageResponseDtoMetroAccountResponse instantiates a new PageResponseDtoMetroAccountResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponseDtoMetroAccountResponse() *PageResponseDtoMetroAccountResponse { + this := PageResponseDtoMetroAccountResponse{} + return &this +} + +// NewPageResponseDtoMetroAccountResponseWithDefaults instantiates a new PageResponseDtoMetroAccountResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponseDtoMetroAccountResponseWithDefaults() *PageResponseDtoMetroAccountResponse { + this := PageResponseDtoMetroAccountResponse{} + return &this +} + +// GetAccountCreateUrl returns the AccountCreateUrl field value if set, zero value otherwise. +func (o *PageResponseDtoMetroAccountResponse) GetAccountCreateUrl() string { + if o == nil || IsNil(o.AccountCreateUrl) { + var ret string + return ret + } + return *o.AccountCreateUrl +} + +// GetAccountCreateUrlOk returns a tuple with the AccountCreateUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroAccountResponse) GetAccountCreateUrlOk() (*string, bool) { + if o == nil || IsNil(o.AccountCreateUrl) { + return nil, false + } + return o.AccountCreateUrl, true +} + +// HasAccountCreateUrl returns a boolean if a field has been set. +func (o *PageResponseDtoMetroAccountResponse) HasAccountCreateUrl() bool { + if o != nil && !IsNil(o.AccountCreateUrl) { + return true + } + + return false +} + +// SetAccountCreateUrl gets a reference to the given string and assigns it to the AccountCreateUrl field. +func (o *PageResponseDtoMetroAccountResponse) SetAccountCreateUrl(v string) { + o.AccountCreateUrl = &v +} + +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *PageResponseDtoMetroAccountResponse) GetAccounts() []MetroAccountResponse { + if o == nil || IsNil(o.Accounts) { + var ret []MetroAccountResponse + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroAccountResponse) GetAccountsOk() ([]MetroAccountResponse, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *PageResponseDtoMetroAccountResponse) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []MetroAccountResponse and assigns it to the Accounts field. +func (o *PageResponseDtoMetroAccountResponse) SetAccounts(v []MetroAccountResponse) { + o.Accounts = v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *PageResponseDtoMetroAccountResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroAccountResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *PageResponseDtoMetroAccountResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *PageResponseDtoMetroAccountResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *PageResponseDtoMetroAccountResponse) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroAccountResponse) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *PageResponseDtoMetroAccountResponse) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *PageResponseDtoMetroAccountResponse) SetErrorCode(v string) { + o.ErrorCode = &v +} + +func (o PageResponseDtoMetroAccountResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponseDtoMetroAccountResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountCreateUrl) { + toSerialize["accountCreateUrl"] = o.AccountCreateUrl + } + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponseDtoMetroAccountResponse) UnmarshalJSON(data []byte) (err error) { + varPageResponseDtoMetroAccountResponse := _PageResponseDtoMetroAccountResponse{} + + err = json.Unmarshal(data, &varPageResponseDtoMetroAccountResponse) + + if err != nil { + return err + } + + *o = PageResponseDtoMetroAccountResponse(varPageResponseDtoMetroAccountResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountCreateUrl") + delete(additionalProperties, "accounts") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "errorCode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponseDtoMetroAccountResponse struct { + value *PageResponseDtoMetroAccountResponse + isSet bool +} + +func (v NullablePageResponseDtoMetroAccountResponse) Get() *PageResponseDtoMetroAccountResponse { + return v.value +} + +func (v *NullablePageResponseDtoMetroAccountResponse) Set(val *PageResponseDtoMetroAccountResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponseDtoMetroAccountResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponseDtoMetroAccountResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponseDtoMetroAccountResponse(val *PageResponseDtoMetroAccountResponse) *NullablePageResponseDtoMetroAccountResponse { + return &NullablePageResponseDtoMetroAccountResponse{value: val, isSet: true} +} + +func (v NullablePageResponseDtoMetroAccountResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponseDtoMetroAccountResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response_dto_metro_response.go b/services/networkedgev1/model_page_response_dto_metro_response.go new file mode 100644 index 00000000..d16e37fe --- /dev/null +++ b/services/networkedgev1/model_page_response_dto_metro_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponseDtoMetroResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponseDtoMetroResponse{} + +// PageResponseDtoMetroResponse struct for PageResponseDtoMetroResponse +type PageResponseDtoMetroResponse struct { + Data []MetroResponse `json:"data,omitempty"` + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponseDtoMetroResponse PageResponseDtoMetroResponse + +// NewPageResponseDtoMetroResponse instantiates a new PageResponseDtoMetroResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponseDtoMetroResponse() *PageResponseDtoMetroResponse { + this := PageResponseDtoMetroResponse{} + return &this +} + +// NewPageResponseDtoMetroResponseWithDefaults instantiates a new PageResponseDtoMetroResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponseDtoMetroResponseWithDefaults() *PageResponseDtoMetroResponse { + this := PageResponseDtoMetroResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PageResponseDtoMetroResponse) GetData() []MetroResponse { + if o == nil || IsNil(o.Data) { + var ret []MetroResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroResponse) GetDataOk() ([]MetroResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PageResponseDtoMetroResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []MetroResponse and assigns it to the Data field. +func (o *PageResponseDtoMetroResponse) SetData(v []MetroResponse) { + o.Data = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *PageResponseDtoMetroResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoMetroResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *PageResponseDtoMetroResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *PageResponseDtoMetroResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +func (o PageResponseDtoMetroResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponseDtoMetroResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponseDtoMetroResponse) UnmarshalJSON(data []byte) (err error) { + varPageResponseDtoMetroResponse := _PageResponseDtoMetroResponse{} + + err = json.Unmarshal(data, &varPageResponseDtoMetroResponse) + + if err != nil { + return err + } + + *o = PageResponseDtoMetroResponse(varPageResponseDtoMetroResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponseDtoMetroResponse struct { + value *PageResponseDtoMetroResponse + isSet bool +} + +func (v NullablePageResponseDtoMetroResponse) Get() *PageResponseDtoMetroResponse { + return v.value +} + +func (v *NullablePageResponseDtoMetroResponse) Set(val *PageResponseDtoMetroResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponseDtoMetroResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponseDtoMetroResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponseDtoMetroResponse(val *PageResponseDtoMetroResponse) *NullablePageResponseDtoMetroResponse { + return &NullablePageResponseDtoMetroResponse{value: val, isSet: true} +} + +func (v NullablePageResponseDtoMetroResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponseDtoMetroResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response_dto_virtual_device_type.go b/services/networkedgev1/model_page_response_dto_virtual_device_type.go new file mode 100644 index 00000000..92991850 --- /dev/null +++ b/services/networkedgev1/model_page_response_dto_virtual_device_type.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponseDtoVirtualDeviceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponseDtoVirtualDeviceType{} + +// PageResponseDtoVirtualDeviceType struct for PageResponseDtoVirtualDeviceType +type PageResponseDtoVirtualDeviceType struct { + // Array of available virtual device types + Data []VirtualDeviceType `json:"data,omitempty"` + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponseDtoVirtualDeviceType PageResponseDtoVirtualDeviceType + +// NewPageResponseDtoVirtualDeviceType instantiates a new PageResponseDtoVirtualDeviceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponseDtoVirtualDeviceType() *PageResponseDtoVirtualDeviceType { + this := PageResponseDtoVirtualDeviceType{} + return &this +} + +// NewPageResponseDtoVirtualDeviceTypeWithDefaults instantiates a new PageResponseDtoVirtualDeviceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponseDtoVirtualDeviceTypeWithDefaults() *PageResponseDtoVirtualDeviceType { + this := PageResponseDtoVirtualDeviceType{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PageResponseDtoVirtualDeviceType) GetData() []VirtualDeviceType { + if o == nil || IsNil(o.Data) { + var ret []VirtualDeviceType + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoVirtualDeviceType) GetDataOk() ([]VirtualDeviceType, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PageResponseDtoVirtualDeviceType) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []VirtualDeviceType and assigns it to the Data field. +func (o *PageResponseDtoVirtualDeviceType) SetData(v []VirtualDeviceType) { + o.Data = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *PageResponseDtoVirtualDeviceType) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponseDtoVirtualDeviceType) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *PageResponseDtoVirtualDeviceType) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *PageResponseDtoVirtualDeviceType) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +func (o PageResponseDtoVirtualDeviceType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponseDtoVirtualDeviceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponseDtoVirtualDeviceType) UnmarshalJSON(data []byte) (err error) { + varPageResponseDtoVirtualDeviceType := _PageResponseDtoVirtualDeviceType{} + + err = json.Unmarshal(data, &varPageResponseDtoVirtualDeviceType) + + if err != nil { + return err + } + + *o = PageResponseDtoVirtualDeviceType(varPageResponseDtoVirtualDeviceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponseDtoVirtualDeviceType struct { + value *PageResponseDtoVirtualDeviceType + isSet bool +} + +func (v NullablePageResponseDtoVirtualDeviceType) Get() *PageResponseDtoVirtualDeviceType { + return v.value +} + +func (v *NullablePageResponseDtoVirtualDeviceType) Set(val *PageResponseDtoVirtualDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponseDtoVirtualDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponseDtoVirtualDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponseDtoVirtualDeviceType(val *PageResponseDtoVirtualDeviceType) *NullablePageResponseDtoVirtualDeviceType { + return &NullablePageResponseDtoVirtualDeviceType{value: val, isSet: true} +} + +func (v NullablePageResponseDtoVirtualDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponseDtoVirtualDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_page_response_public_keys.go b/services/networkedgev1/model_page_response_public_keys.go new file mode 100644 index 00000000..0e8f7aa8 --- /dev/null +++ b/services/networkedgev1/model_page_response_public_keys.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PageResponsePublicKeys type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageResponsePublicKeys{} + +// PageResponsePublicKeys struct for PageResponsePublicKeys +type PageResponsePublicKeys struct { + // The unique Id of the keyName and keyValue combination + Uuid *string `json:"uuid,omitempty"` + // Key name + KeyName *string `json:"keyName,omitempty"` + // Key value + KeyValue *string `json:"keyValue,omitempty"` + // Type of key, whether RSA or DSA + KeyType *string `json:"keyType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PageResponsePublicKeys PageResponsePublicKeys + +// NewPageResponsePublicKeys instantiates a new PageResponsePublicKeys object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageResponsePublicKeys() *PageResponsePublicKeys { + this := PageResponsePublicKeys{} + return &this +} + +// NewPageResponsePublicKeysWithDefaults instantiates a new PageResponsePublicKeys object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageResponsePublicKeysWithDefaults() *PageResponsePublicKeys { + this := PageResponsePublicKeys{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *PageResponsePublicKeys) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponsePublicKeys) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *PageResponsePublicKeys) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *PageResponsePublicKeys) SetUuid(v string) { + o.Uuid = &v +} + +// GetKeyName returns the KeyName field value if set, zero value otherwise. +func (o *PageResponsePublicKeys) GetKeyName() string { + if o == nil || IsNil(o.KeyName) { + var ret string + return ret + } + return *o.KeyName +} + +// GetKeyNameOk returns a tuple with the KeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponsePublicKeys) GetKeyNameOk() (*string, bool) { + if o == nil || IsNil(o.KeyName) { + return nil, false + } + return o.KeyName, true +} + +// HasKeyName returns a boolean if a field has been set. +func (o *PageResponsePublicKeys) HasKeyName() bool { + if o != nil && !IsNil(o.KeyName) { + return true + } + + return false +} + +// SetKeyName gets a reference to the given string and assigns it to the KeyName field. +func (o *PageResponsePublicKeys) SetKeyName(v string) { + o.KeyName = &v +} + +// GetKeyValue returns the KeyValue field value if set, zero value otherwise. +func (o *PageResponsePublicKeys) GetKeyValue() string { + if o == nil || IsNil(o.KeyValue) { + var ret string + return ret + } + return *o.KeyValue +} + +// GetKeyValueOk returns a tuple with the KeyValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponsePublicKeys) GetKeyValueOk() (*string, bool) { + if o == nil || IsNil(o.KeyValue) { + return nil, false + } + return o.KeyValue, true +} + +// HasKeyValue returns a boolean if a field has been set. +func (o *PageResponsePublicKeys) HasKeyValue() bool { + if o != nil && !IsNil(o.KeyValue) { + return true + } + + return false +} + +// SetKeyValue gets a reference to the given string and assigns it to the KeyValue field. +func (o *PageResponsePublicKeys) SetKeyValue(v string) { + o.KeyValue = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *PageResponsePublicKeys) GetKeyType() string { + if o == nil || IsNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageResponsePublicKeys) GetKeyTypeOk() (*string, bool) { + if o == nil || IsNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *PageResponsePublicKeys) HasKeyType() bool { + if o != nil && !IsNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *PageResponsePublicKeys) SetKeyType(v string) { + o.KeyType = &v +} + +func (o PageResponsePublicKeys) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageResponsePublicKeys) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.KeyName) { + toSerialize["keyName"] = o.KeyName + } + if !IsNil(o.KeyValue) { + toSerialize["keyValue"] = o.KeyValue + } + if !IsNil(o.KeyType) { + toSerialize["keyType"] = o.KeyType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PageResponsePublicKeys) UnmarshalJSON(data []byte) (err error) { + varPageResponsePublicKeys := _PageResponsePublicKeys{} + + err = json.Unmarshal(data, &varPageResponsePublicKeys) + + if err != nil { + return err + } + + *o = PageResponsePublicKeys(varPageResponsePublicKeys) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "keyName") + delete(additionalProperties, "keyValue") + delete(additionalProperties, "keyType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePageResponsePublicKeys struct { + value *PageResponsePublicKeys + isSet bool +} + +func (v NullablePageResponsePublicKeys) Get() *PageResponsePublicKeys { + return v.value +} + +func (v *NullablePageResponsePublicKeys) Set(val *PageResponsePublicKeys) { + v.value = val + v.isSet = true +} + +func (v NullablePageResponsePublicKeys) IsSet() bool { + return v.isSet +} + +func (v *NullablePageResponsePublicKeys) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageResponsePublicKeys(val *PageResponsePublicKeys) *NullablePageResponsePublicKeys { + return &NullablePageResponsePublicKeys{value: val, isSet: true} +} + +func (v NullablePageResponsePublicKeys) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageResponsePublicKeys) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_pagination_response_dto.go b/services/networkedgev1/model_pagination_response_dto.go new file mode 100644 index 00000000..9ae20d24 --- /dev/null +++ b/services/networkedgev1/model_pagination_response_dto.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PaginationResponseDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginationResponseDto{} + +// PaginationResponseDto struct for PaginationResponseDto +type PaginationResponseDto struct { + // It is the starting point of the collection returned fromt the server + Offset *int32 `json:"offset,omitempty"` + // The page size + Limit *int32 `json:"limit,omitempty"` + // The total number of results + Total *int32 `json:"total,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PaginationResponseDto PaginationResponseDto + +// NewPaginationResponseDto instantiates a new PaginationResponseDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginationResponseDto() *PaginationResponseDto { + this := PaginationResponseDto{} + return &this +} + +// NewPaginationResponseDtoWithDefaults instantiates a new PaginationResponseDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginationResponseDtoWithDefaults() *PaginationResponseDto { + this := PaginationResponseDto{} + return &this +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *PaginationResponseDto) GetOffset() int32 { + if o == nil || IsNil(o.Offset) { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginationResponseDto) GetOffsetOk() (*int32, bool) { + if o == nil || IsNil(o.Offset) { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *PaginationResponseDto) HasOffset() bool { + if o != nil && !IsNil(o.Offset) { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *PaginationResponseDto) SetOffset(v int32) { + o.Offset = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *PaginationResponseDto) GetLimit() int32 { + if o == nil || IsNil(o.Limit) { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginationResponseDto) GetLimitOk() (*int32, bool) { + if o == nil || IsNil(o.Limit) { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *PaginationResponseDto) HasLimit() bool { + if o != nil && !IsNil(o.Limit) { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *PaginationResponseDto) SetLimit(v int32) { + o.Limit = &v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *PaginationResponseDto) GetTotal() int32 { + if o == nil || IsNil(o.Total) { + var ret int32 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginationResponseDto) GetTotalOk() (*int32, bool) { + if o == nil || IsNil(o.Total) { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *PaginationResponseDto) HasTotal() bool { + if o != nil && !IsNil(o.Total) { + return true + } + + return false +} + +// SetTotal gets a reference to the given int32 and assigns it to the Total field. +func (o *PaginationResponseDto) SetTotal(v int32) { + o.Total = &v +} + +func (o PaginationResponseDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginationResponseDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offset) { + toSerialize["offset"] = o.Offset + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + if !IsNil(o.Total) { + toSerialize["total"] = o.Total + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginationResponseDto) UnmarshalJSON(data []byte) (err error) { + varPaginationResponseDto := _PaginationResponseDto{} + + err = json.Unmarshal(data, &varPaginationResponseDto) + + if err != nil { + return err + } + + *o = PaginationResponseDto(varPaginationResponseDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "offset") + delete(additionalProperties, "limit") + delete(additionalProperties, "total") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginationResponseDto struct { + value *PaginationResponseDto + isSet bool +} + +func (v NullablePaginationResponseDto) Get() *PaginationResponseDto { + return v.value +} + +func (v *NullablePaginationResponseDto) Set(val *PaginationResponseDto) { + v.value = val + v.isSet = true +} + +func (v NullablePaginationResponseDto) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginationResponseDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginationResponseDto(val *PaginationResponseDto) *NullablePaginationResponseDto { + return &NullablePaginationResponseDto{value: val, isSet: true} +} + +func (v NullablePaginationResponseDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginationResponseDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_patch_request.go b/services/networkedgev1/model_patch_request.go new file mode 100644 index 00000000..6bc72482 --- /dev/null +++ b/services/networkedgev1/model_patch_request.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchRequest{} + +// PatchRequest struct for PatchRequest +type PatchRequest struct { + AccessKey *string `json:"accessKey,omitempty"` + SecretKey *string `json:"secretKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchRequest PatchRequest + +// NewPatchRequest instantiates a new PatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchRequest() *PatchRequest { + this := PatchRequest{} + return &this +} + +// NewPatchRequestWithDefaults instantiates a new PatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchRequestWithDefaults() *PatchRequest { + this := PatchRequest{} + return &this +} + +// GetAccessKey returns the AccessKey field value if set, zero value otherwise. +func (o *PatchRequest) GetAccessKey() string { + if o == nil || IsNil(o.AccessKey) { + var ret string + return ret + } + return *o.AccessKey +} + +// GetAccessKeyOk returns a tuple with the AccessKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchRequest) GetAccessKeyOk() (*string, bool) { + if o == nil || IsNil(o.AccessKey) { + return nil, false + } + return o.AccessKey, true +} + +// HasAccessKey returns a boolean if a field has been set. +func (o *PatchRequest) HasAccessKey() bool { + if o != nil && !IsNil(o.AccessKey) { + return true + } + + return false +} + +// SetAccessKey gets a reference to the given string and assigns it to the AccessKey field. +func (o *PatchRequest) SetAccessKey(v string) { + o.AccessKey = &v +} + +// GetSecretKey returns the SecretKey field value if set, zero value otherwise. +func (o *PatchRequest) GetSecretKey() string { + if o == nil || IsNil(o.SecretKey) { + var ret string + return ret + } + return *o.SecretKey +} + +// GetSecretKeyOk returns a tuple with the SecretKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchRequest) GetSecretKeyOk() (*string, bool) { + if o == nil || IsNil(o.SecretKey) { + return nil, false + } + return o.SecretKey, true +} + +// HasSecretKey returns a boolean if a field has been set. +func (o *PatchRequest) HasSecretKey() bool { + if o != nil && !IsNil(o.SecretKey) { + return true + } + + return false +} + +// SetSecretKey gets a reference to the given string and assigns it to the SecretKey field. +func (o *PatchRequest) SetSecretKey(v string) { + o.SecretKey = &v +} + +func (o PatchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessKey) { + toSerialize["accessKey"] = o.AccessKey + } + if !IsNil(o.SecretKey) { + toSerialize["secretKey"] = o.SecretKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchRequest) UnmarshalJSON(data []byte) (err error) { + varPatchRequest := _PatchRequest{} + + err = json.Unmarshal(data, &varPatchRequest) + + if err != nil { + return err + } + + *o = PatchRequest(varPatchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accessKey") + delete(additionalProperties, "secretKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchRequest struct { + value *PatchRequest + isSet bool +} + +func (v NullablePatchRequest) Get() *PatchRequest { + return v.value +} + +func (v *NullablePatchRequest) Set(val *PatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchRequest(val *PatchRequest) *NullablePatchRequest { + return &NullablePatchRequest{value: val, isSet: true} +} + +func (v NullablePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_polled_throughput_metrics.go b/services/networkedgev1/model_polled_throughput_metrics.go new file mode 100644 index 00000000..1fd4bfd9 --- /dev/null +++ b/services/networkedgev1/model_polled_throughput_metrics.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PolledThroughputMetrics type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolledThroughputMetrics{} + +// PolledThroughputMetrics struct for PolledThroughputMetrics +type PolledThroughputMetrics struct { + // The end of a polled time period. + IntervalDateTime *string `json:"intervalDateTime,omitempty"` + // Mean traffic throughput. + Mean *float32 `json:"mean,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PolledThroughputMetrics PolledThroughputMetrics + +// NewPolledThroughputMetrics instantiates a new PolledThroughputMetrics object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolledThroughputMetrics() *PolledThroughputMetrics { + this := PolledThroughputMetrics{} + return &this +} + +// NewPolledThroughputMetricsWithDefaults instantiates a new PolledThroughputMetrics object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolledThroughputMetricsWithDefaults() *PolledThroughputMetrics { + this := PolledThroughputMetrics{} + return &this +} + +// GetIntervalDateTime returns the IntervalDateTime field value if set, zero value otherwise. +func (o *PolledThroughputMetrics) GetIntervalDateTime() string { + if o == nil || IsNil(o.IntervalDateTime) { + var ret string + return ret + } + return *o.IntervalDateTime +} + +// GetIntervalDateTimeOk returns a tuple with the IntervalDateTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolledThroughputMetrics) GetIntervalDateTimeOk() (*string, bool) { + if o == nil || IsNil(o.IntervalDateTime) { + return nil, false + } + return o.IntervalDateTime, true +} + +// HasIntervalDateTime returns a boolean if a field has been set. +func (o *PolledThroughputMetrics) HasIntervalDateTime() bool { + if o != nil && !IsNil(o.IntervalDateTime) { + return true + } + + return false +} + +// SetIntervalDateTime gets a reference to the given string and assigns it to the IntervalDateTime field. +func (o *PolledThroughputMetrics) SetIntervalDateTime(v string) { + o.IntervalDateTime = &v +} + +// GetMean returns the Mean field value if set, zero value otherwise. +func (o *PolledThroughputMetrics) GetMean() float32 { + if o == nil || IsNil(o.Mean) { + var ret float32 + return ret + } + return *o.Mean +} + +// GetMeanOk returns a tuple with the Mean field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolledThroughputMetrics) GetMeanOk() (*float32, bool) { + if o == nil || IsNil(o.Mean) { + return nil, false + } + return o.Mean, true +} + +// HasMean returns a boolean if a field has been set. +func (o *PolledThroughputMetrics) HasMean() bool { + if o != nil && !IsNil(o.Mean) { + return true + } + + return false +} + +// SetMean gets a reference to the given float32 and assigns it to the Mean field. +func (o *PolledThroughputMetrics) SetMean(v float32) { + o.Mean = &v +} + +func (o PolledThroughputMetrics) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolledThroughputMetrics) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IntervalDateTime) { + toSerialize["intervalDateTime"] = o.IntervalDateTime + } + if !IsNil(o.Mean) { + toSerialize["mean"] = o.Mean + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PolledThroughputMetrics) UnmarshalJSON(data []byte) (err error) { + varPolledThroughputMetrics := _PolledThroughputMetrics{} + + err = json.Unmarshal(data, &varPolledThroughputMetrics) + + if err != nil { + return err + } + + *o = PolledThroughputMetrics(varPolledThroughputMetrics) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "intervalDateTime") + delete(additionalProperties, "mean") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePolledThroughputMetrics struct { + value *PolledThroughputMetrics + isSet bool +} + +func (v NullablePolledThroughputMetrics) Get() *PolledThroughputMetrics { + return v.value +} + +func (v *NullablePolledThroughputMetrics) Set(val *PolledThroughputMetrics) { + v.value = val + v.isSet = true +} + +func (v NullablePolledThroughputMetrics) IsSet() bool { + return v.isSet +} + +func (v *NullablePolledThroughputMetrics) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolledThroughputMetrics(val *PolledThroughputMetrics) *NullablePolledThroughputMetrics { + return &NullablePolledThroughputMetrics{value: val, isSet: true} +} + +func (v NullablePolledThroughputMetrics) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolledThroughputMetrics) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_post_connection_request.go b/services/networkedgev1/model_post_connection_request.go new file mode 100644 index 00000000..46452b8d --- /dev/null +++ b/services/networkedgev1/model_post_connection_request.go @@ -0,0 +1,1079 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PostConnectionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostConnectionRequest{} + +// PostConnectionRequest struct for PostConnectionRequest +type PostConnectionRequest struct { + PrimaryName *string `json:"primaryName,omitempty"` + VirtualDeviceUUID *string `json:"virtualDeviceUUID,omitempty"` + ProfileUUID *string `json:"profileUUID,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + Speed *int32 `json:"speed,omitempty"` + SpeedUnit *string `json:"speedUnit,omitempty"` + Notifications []string `json:"notifications,omitempty"` + PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` + SellerMetroCode *string `json:"sellerMetroCode,omitempty"` + InterfaceId *int32 `json:"interfaceId,omitempty"` + SecondaryName *string `json:"secondaryName,omitempty"` + NamedTag *string `json:"namedTag,omitempty"` + SecondaryVirtualDeviceUUID *string `json:"secondaryVirtualDeviceUUID,omitempty"` + SecondaryProfileUUID *string `json:"secondaryProfileUUID,omitempty"` + SecondaryAuthorizationKey *string `json:"secondaryAuthorizationKey,omitempty"` + SecondarySellerMetroCode *string `json:"secondarySellerMetroCode,omitempty"` + SecondarySpeed *int32 `json:"secondarySpeed,omitempty"` + SecondarySpeedUnit *string `json:"secondarySpeedUnit,omitempty"` + SecondaryNotifications []string `json:"secondaryNotifications,omitempty"` + SecondaryInterfaceId *int32 `json:"secondaryInterfaceId,omitempty"` + PrimaryZSideVlanCTag *int32 `json:"primaryZSideVlanCTag,omitempty"` + SecondaryZSideVlanCTag *int32 `json:"secondaryZSideVlanCTag,omitempty"` + PrimaryZSidePortUUID *string `json:"primaryZSidePortUUID,omitempty"` + PrimaryZSideVlanSTag *int32 `json:"primaryZSideVlanSTag,omitempty"` + SecondaryZSidePortUUID *string `json:"secondaryZSidePortUUID,omitempty"` + SecondaryZSideVlanSTag *int32 `json:"secondaryZSideVlanSTag,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PostConnectionRequest PostConnectionRequest + +// NewPostConnectionRequest instantiates a new PostConnectionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostConnectionRequest() *PostConnectionRequest { + this := PostConnectionRequest{} + return &this +} + +// NewPostConnectionRequestWithDefaults instantiates a new PostConnectionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostConnectionRequestWithDefaults() *PostConnectionRequest { + this := PostConnectionRequest{} + return &this +} + +// GetPrimaryName returns the PrimaryName field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetPrimaryName() string { + if o == nil || IsNil(o.PrimaryName) { + var ret string + return ret + } + return *o.PrimaryName +} + +// GetPrimaryNameOk returns a tuple with the PrimaryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetPrimaryNameOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryName) { + return nil, false + } + return o.PrimaryName, true +} + +// HasPrimaryName returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasPrimaryName() bool { + if o != nil && !IsNil(o.PrimaryName) { + return true + } + + return false +} + +// SetPrimaryName gets a reference to the given string and assigns it to the PrimaryName field. +func (o *PostConnectionRequest) SetPrimaryName(v string) { + o.PrimaryName = &v +} + +// GetVirtualDeviceUUID returns the VirtualDeviceUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetVirtualDeviceUUID() string { + if o == nil || IsNil(o.VirtualDeviceUUID) { + var ret string + return ret + } + return *o.VirtualDeviceUUID +} + +// GetVirtualDeviceUUIDOk returns a tuple with the VirtualDeviceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetVirtualDeviceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.VirtualDeviceUUID) { + return nil, false + } + return o.VirtualDeviceUUID, true +} + +// HasVirtualDeviceUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasVirtualDeviceUUID() bool { + if o != nil && !IsNil(o.VirtualDeviceUUID) { + return true + } + + return false +} + +// SetVirtualDeviceUUID gets a reference to the given string and assigns it to the VirtualDeviceUUID field. +func (o *PostConnectionRequest) SetVirtualDeviceUUID(v string) { + o.VirtualDeviceUUID = &v +} + +// GetProfileUUID returns the ProfileUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetProfileUUID() string { + if o == nil || IsNil(o.ProfileUUID) { + var ret string + return ret + } + return *o.ProfileUUID +} + +// GetProfileUUIDOk returns a tuple with the ProfileUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetProfileUUIDOk() (*string, bool) { + if o == nil || IsNil(o.ProfileUUID) { + return nil, false + } + return o.ProfileUUID, true +} + +// HasProfileUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasProfileUUID() bool { + if o != nil && !IsNil(o.ProfileUUID) { + return true + } + + return false +} + +// SetProfileUUID gets a reference to the given string and assigns it to the ProfileUUID field. +func (o *PostConnectionRequest) SetProfileUUID(v string) { + o.ProfileUUID = &v +} + +// GetAuthorizationKey returns the AuthorizationKey field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetAuthorizationKey() string { + if o == nil || IsNil(o.AuthorizationKey) { + var ret string + return ret + } + return *o.AuthorizationKey +} + +// GetAuthorizationKeyOk returns a tuple with the AuthorizationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetAuthorizationKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthorizationKey) { + return nil, false + } + return o.AuthorizationKey, true +} + +// HasAuthorizationKey returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasAuthorizationKey() bool { + if o != nil && !IsNil(o.AuthorizationKey) { + return true + } + + return false +} + +// SetAuthorizationKey gets a reference to the given string and assigns it to the AuthorizationKey field. +func (o *PostConnectionRequest) SetAuthorizationKey(v string) { + o.AuthorizationKey = &v +} + +// GetSpeed returns the Speed field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSpeed() int32 { + if o == nil || IsNil(o.Speed) { + var ret int32 + return ret + } + return *o.Speed +} + +// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSpeedOk() (*int32, bool) { + if o == nil || IsNil(o.Speed) { + return nil, false + } + return o.Speed, true +} + +// HasSpeed returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSpeed() bool { + if o != nil && !IsNil(o.Speed) { + return true + } + + return false +} + +// SetSpeed gets a reference to the given int32 and assigns it to the Speed field. +func (o *PostConnectionRequest) SetSpeed(v int32) { + o.Speed = &v +} + +// GetSpeedUnit returns the SpeedUnit field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSpeedUnit() string { + if o == nil || IsNil(o.SpeedUnit) { + var ret string + return ret + } + return *o.SpeedUnit +} + +// GetSpeedUnitOk returns a tuple with the SpeedUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSpeedUnitOk() (*string, bool) { + if o == nil || IsNil(o.SpeedUnit) { + return nil, false + } + return o.SpeedUnit, true +} + +// HasSpeedUnit returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSpeedUnit() bool { + if o != nil && !IsNil(o.SpeedUnit) { + return true + } + + return false +} + +// SetSpeedUnit gets a reference to the given string and assigns it to the SpeedUnit field. +func (o *PostConnectionRequest) SetSpeedUnit(v string) { + o.SpeedUnit = &v +} + +// GetNotifications returns the Notifications field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetNotifications() []string { + if o == nil || IsNil(o.Notifications) { + var ret []string + return ret + } + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetNotificationsOk() ([]string, bool) { + if o == nil || IsNil(o.Notifications) { + return nil, false + } + return o.Notifications, true +} + +// HasNotifications returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasNotifications() bool { + if o != nil && !IsNil(o.Notifications) { + return true + } + + return false +} + +// SetNotifications gets a reference to the given []string and assigns it to the Notifications field. +func (o *PostConnectionRequest) SetNotifications(v []string) { + o.Notifications = v +} + +// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetPurchaseOrderNumber() string { + if o == nil || IsNil(o.PurchaseOrderNumber) { + var ret string + return ret + } + return *o.PurchaseOrderNumber +} + +// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetPurchaseOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.PurchaseOrderNumber) { + return nil, false + } + return o.PurchaseOrderNumber, true +} + +// HasPurchaseOrderNumber returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasPurchaseOrderNumber() bool { + if o != nil && !IsNil(o.PurchaseOrderNumber) { + return true + } + + return false +} + +// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field. +func (o *PostConnectionRequest) SetPurchaseOrderNumber(v string) { + o.PurchaseOrderNumber = &v +} + +// GetSellerMetroCode returns the SellerMetroCode field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSellerMetroCode() string { + if o == nil || IsNil(o.SellerMetroCode) { + var ret string + return ret + } + return *o.SellerMetroCode +} + +// GetSellerMetroCodeOk returns a tuple with the SellerMetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSellerMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.SellerMetroCode) { + return nil, false + } + return o.SellerMetroCode, true +} + +// HasSellerMetroCode returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSellerMetroCode() bool { + if o != nil && !IsNil(o.SellerMetroCode) { + return true + } + + return false +} + +// SetSellerMetroCode gets a reference to the given string and assigns it to the SellerMetroCode field. +func (o *PostConnectionRequest) SetSellerMetroCode(v string) { + o.SellerMetroCode = &v +} + +// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetInterfaceId() int32 { + if o == nil || IsNil(o.InterfaceId) { + var ret int32 + return ret + } + return *o.InterfaceId +} + +// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetInterfaceIdOk() (*int32, bool) { + if o == nil || IsNil(o.InterfaceId) { + return nil, false + } + return o.InterfaceId, true +} + +// HasInterfaceId returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasInterfaceId() bool { + if o != nil && !IsNil(o.InterfaceId) { + return true + } + + return false +} + +// SetInterfaceId gets a reference to the given int32 and assigns it to the InterfaceId field. +func (o *PostConnectionRequest) SetInterfaceId(v int32) { + o.InterfaceId = &v +} + +// GetSecondaryName returns the SecondaryName field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryName() string { + if o == nil || IsNil(o.SecondaryName) { + var ret string + return ret + } + return *o.SecondaryName +} + +// GetSecondaryNameOk returns a tuple with the SecondaryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryNameOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryName) { + return nil, false + } + return o.SecondaryName, true +} + +// HasSecondaryName returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryName() bool { + if o != nil && !IsNil(o.SecondaryName) { + return true + } + + return false +} + +// SetSecondaryName gets a reference to the given string and assigns it to the SecondaryName field. +func (o *PostConnectionRequest) SetSecondaryName(v string) { + o.SecondaryName = &v +} + +// GetNamedTag returns the NamedTag field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetNamedTag() string { + if o == nil || IsNil(o.NamedTag) { + var ret string + return ret + } + return *o.NamedTag +} + +// GetNamedTagOk returns a tuple with the NamedTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetNamedTagOk() (*string, bool) { + if o == nil || IsNil(o.NamedTag) { + return nil, false + } + return o.NamedTag, true +} + +// HasNamedTag returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasNamedTag() bool { + if o != nil && !IsNil(o.NamedTag) { + return true + } + + return false +} + +// SetNamedTag gets a reference to the given string and assigns it to the NamedTag field. +func (o *PostConnectionRequest) SetNamedTag(v string) { + o.NamedTag = &v +} + +// GetSecondaryVirtualDeviceUUID returns the SecondaryVirtualDeviceUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryVirtualDeviceUUID() string { + if o == nil || IsNil(o.SecondaryVirtualDeviceUUID) { + var ret string + return ret + } + return *o.SecondaryVirtualDeviceUUID +} + +// GetSecondaryVirtualDeviceUUIDOk returns a tuple with the SecondaryVirtualDeviceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryVirtualDeviceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryVirtualDeviceUUID) { + return nil, false + } + return o.SecondaryVirtualDeviceUUID, true +} + +// HasSecondaryVirtualDeviceUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryVirtualDeviceUUID() bool { + if o != nil && !IsNil(o.SecondaryVirtualDeviceUUID) { + return true + } + + return false +} + +// SetSecondaryVirtualDeviceUUID gets a reference to the given string and assigns it to the SecondaryVirtualDeviceUUID field. +func (o *PostConnectionRequest) SetSecondaryVirtualDeviceUUID(v string) { + o.SecondaryVirtualDeviceUUID = &v +} + +// GetSecondaryProfileUUID returns the SecondaryProfileUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryProfileUUID() string { + if o == nil || IsNil(o.SecondaryProfileUUID) { + var ret string + return ret + } + return *o.SecondaryProfileUUID +} + +// GetSecondaryProfileUUIDOk returns a tuple with the SecondaryProfileUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryProfileUUIDOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryProfileUUID) { + return nil, false + } + return o.SecondaryProfileUUID, true +} + +// HasSecondaryProfileUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryProfileUUID() bool { + if o != nil && !IsNil(o.SecondaryProfileUUID) { + return true + } + + return false +} + +// SetSecondaryProfileUUID gets a reference to the given string and assigns it to the SecondaryProfileUUID field. +func (o *PostConnectionRequest) SetSecondaryProfileUUID(v string) { + o.SecondaryProfileUUID = &v +} + +// GetSecondaryAuthorizationKey returns the SecondaryAuthorizationKey field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryAuthorizationKey() string { + if o == nil || IsNil(o.SecondaryAuthorizationKey) { + var ret string + return ret + } + return *o.SecondaryAuthorizationKey +} + +// GetSecondaryAuthorizationKeyOk returns a tuple with the SecondaryAuthorizationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryAuthorizationKeyOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryAuthorizationKey) { + return nil, false + } + return o.SecondaryAuthorizationKey, true +} + +// HasSecondaryAuthorizationKey returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryAuthorizationKey() bool { + if o != nil && !IsNil(o.SecondaryAuthorizationKey) { + return true + } + + return false +} + +// SetSecondaryAuthorizationKey gets a reference to the given string and assigns it to the SecondaryAuthorizationKey field. +func (o *PostConnectionRequest) SetSecondaryAuthorizationKey(v string) { + o.SecondaryAuthorizationKey = &v +} + +// GetSecondarySellerMetroCode returns the SecondarySellerMetroCode field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondarySellerMetroCode() string { + if o == nil || IsNil(o.SecondarySellerMetroCode) { + var ret string + return ret + } + return *o.SecondarySellerMetroCode +} + +// GetSecondarySellerMetroCodeOk returns a tuple with the SecondarySellerMetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondarySellerMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.SecondarySellerMetroCode) { + return nil, false + } + return o.SecondarySellerMetroCode, true +} + +// HasSecondarySellerMetroCode returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondarySellerMetroCode() bool { + if o != nil && !IsNil(o.SecondarySellerMetroCode) { + return true + } + + return false +} + +// SetSecondarySellerMetroCode gets a reference to the given string and assigns it to the SecondarySellerMetroCode field. +func (o *PostConnectionRequest) SetSecondarySellerMetroCode(v string) { + o.SecondarySellerMetroCode = &v +} + +// GetSecondarySpeed returns the SecondarySpeed field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondarySpeed() int32 { + if o == nil || IsNil(o.SecondarySpeed) { + var ret int32 + return ret + } + return *o.SecondarySpeed +} + +// GetSecondarySpeedOk returns a tuple with the SecondarySpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondarySpeedOk() (*int32, bool) { + if o == nil || IsNil(o.SecondarySpeed) { + return nil, false + } + return o.SecondarySpeed, true +} + +// HasSecondarySpeed returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondarySpeed() bool { + if o != nil && !IsNil(o.SecondarySpeed) { + return true + } + + return false +} + +// SetSecondarySpeed gets a reference to the given int32 and assigns it to the SecondarySpeed field. +func (o *PostConnectionRequest) SetSecondarySpeed(v int32) { + o.SecondarySpeed = &v +} + +// GetSecondarySpeedUnit returns the SecondarySpeedUnit field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondarySpeedUnit() string { + if o == nil || IsNil(o.SecondarySpeedUnit) { + var ret string + return ret + } + return *o.SecondarySpeedUnit +} + +// GetSecondarySpeedUnitOk returns a tuple with the SecondarySpeedUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondarySpeedUnitOk() (*string, bool) { + if o == nil || IsNil(o.SecondarySpeedUnit) { + return nil, false + } + return o.SecondarySpeedUnit, true +} + +// HasSecondarySpeedUnit returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondarySpeedUnit() bool { + if o != nil && !IsNil(o.SecondarySpeedUnit) { + return true + } + + return false +} + +// SetSecondarySpeedUnit gets a reference to the given string and assigns it to the SecondarySpeedUnit field. +func (o *PostConnectionRequest) SetSecondarySpeedUnit(v string) { + o.SecondarySpeedUnit = &v +} + +// GetSecondaryNotifications returns the SecondaryNotifications field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryNotifications() []string { + if o == nil || IsNil(o.SecondaryNotifications) { + var ret []string + return ret + } + return o.SecondaryNotifications +} + +// GetSecondaryNotificationsOk returns a tuple with the SecondaryNotifications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryNotificationsOk() ([]string, bool) { + if o == nil || IsNil(o.SecondaryNotifications) { + return nil, false + } + return o.SecondaryNotifications, true +} + +// HasSecondaryNotifications returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryNotifications() bool { + if o != nil && !IsNil(o.SecondaryNotifications) { + return true + } + + return false +} + +// SetSecondaryNotifications gets a reference to the given []string and assigns it to the SecondaryNotifications field. +func (o *PostConnectionRequest) SetSecondaryNotifications(v []string) { + o.SecondaryNotifications = v +} + +// GetSecondaryInterfaceId returns the SecondaryInterfaceId field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryInterfaceId() int32 { + if o == nil || IsNil(o.SecondaryInterfaceId) { + var ret int32 + return ret + } + return *o.SecondaryInterfaceId +} + +// GetSecondaryInterfaceIdOk returns a tuple with the SecondaryInterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryInterfaceIdOk() (*int32, bool) { + if o == nil || IsNil(o.SecondaryInterfaceId) { + return nil, false + } + return o.SecondaryInterfaceId, true +} + +// HasSecondaryInterfaceId returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryInterfaceId() bool { + if o != nil && !IsNil(o.SecondaryInterfaceId) { + return true + } + + return false +} + +// SetSecondaryInterfaceId gets a reference to the given int32 and assigns it to the SecondaryInterfaceId field. +func (o *PostConnectionRequest) SetSecondaryInterfaceId(v int32) { + o.SecondaryInterfaceId = &v +} + +// GetPrimaryZSideVlanCTag returns the PrimaryZSideVlanCTag field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetPrimaryZSideVlanCTag() int32 { + if o == nil || IsNil(o.PrimaryZSideVlanCTag) { + var ret int32 + return ret + } + return *o.PrimaryZSideVlanCTag +} + +// GetPrimaryZSideVlanCTagOk returns a tuple with the PrimaryZSideVlanCTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetPrimaryZSideVlanCTagOk() (*int32, bool) { + if o == nil || IsNil(o.PrimaryZSideVlanCTag) { + return nil, false + } + return o.PrimaryZSideVlanCTag, true +} + +// HasPrimaryZSideVlanCTag returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasPrimaryZSideVlanCTag() bool { + if o != nil && !IsNil(o.PrimaryZSideVlanCTag) { + return true + } + + return false +} + +// SetPrimaryZSideVlanCTag gets a reference to the given int32 and assigns it to the PrimaryZSideVlanCTag field. +func (o *PostConnectionRequest) SetPrimaryZSideVlanCTag(v int32) { + o.PrimaryZSideVlanCTag = &v +} + +// GetSecondaryZSideVlanCTag returns the SecondaryZSideVlanCTag field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryZSideVlanCTag() int32 { + if o == nil || IsNil(o.SecondaryZSideVlanCTag) { + var ret int32 + return ret + } + return *o.SecondaryZSideVlanCTag +} + +// GetSecondaryZSideVlanCTagOk returns a tuple with the SecondaryZSideVlanCTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryZSideVlanCTagOk() (*int32, bool) { + if o == nil || IsNil(o.SecondaryZSideVlanCTag) { + return nil, false + } + return o.SecondaryZSideVlanCTag, true +} + +// HasSecondaryZSideVlanCTag returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryZSideVlanCTag() bool { + if o != nil && !IsNil(o.SecondaryZSideVlanCTag) { + return true + } + + return false +} + +// SetSecondaryZSideVlanCTag gets a reference to the given int32 and assigns it to the SecondaryZSideVlanCTag field. +func (o *PostConnectionRequest) SetSecondaryZSideVlanCTag(v int32) { + o.SecondaryZSideVlanCTag = &v +} + +// GetPrimaryZSidePortUUID returns the PrimaryZSidePortUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetPrimaryZSidePortUUID() string { + if o == nil || IsNil(o.PrimaryZSidePortUUID) { + var ret string + return ret + } + return *o.PrimaryZSidePortUUID +} + +// GetPrimaryZSidePortUUIDOk returns a tuple with the PrimaryZSidePortUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetPrimaryZSidePortUUIDOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryZSidePortUUID) { + return nil, false + } + return o.PrimaryZSidePortUUID, true +} + +// HasPrimaryZSidePortUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasPrimaryZSidePortUUID() bool { + if o != nil && !IsNil(o.PrimaryZSidePortUUID) { + return true + } + + return false +} + +// SetPrimaryZSidePortUUID gets a reference to the given string and assigns it to the PrimaryZSidePortUUID field. +func (o *PostConnectionRequest) SetPrimaryZSidePortUUID(v string) { + o.PrimaryZSidePortUUID = &v +} + +// GetPrimaryZSideVlanSTag returns the PrimaryZSideVlanSTag field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetPrimaryZSideVlanSTag() int32 { + if o == nil || IsNil(o.PrimaryZSideVlanSTag) { + var ret int32 + return ret + } + return *o.PrimaryZSideVlanSTag +} + +// GetPrimaryZSideVlanSTagOk returns a tuple with the PrimaryZSideVlanSTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetPrimaryZSideVlanSTagOk() (*int32, bool) { + if o == nil || IsNil(o.PrimaryZSideVlanSTag) { + return nil, false + } + return o.PrimaryZSideVlanSTag, true +} + +// HasPrimaryZSideVlanSTag returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasPrimaryZSideVlanSTag() bool { + if o != nil && !IsNil(o.PrimaryZSideVlanSTag) { + return true + } + + return false +} + +// SetPrimaryZSideVlanSTag gets a reference to the given int32 and assigns it to the PrimaryZSideVlanSTag field. +func (o *PostConnectionRequest) SetPrimaryZSideVlanSTag(v int32) { + o.PrimaryZSideVlanSTag = &v +} + +// GetSecondaryZSidePortUUID returns the SecondaryZSidePortUUID field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryZSidePortUUID() string { + if o == nil || IsNil(o.SecondaryZSidePortUUID) { + var ret string + return ret + } + return *o.SecondaryZSidePortUUID +} + +// GetSecondaryZSidePortUUIDOk returns a tuple with the SecondaryZSidePortUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryZSidePortUUIDOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryZSidePortUUID) { + return nil, false + } + return o.SecondaryZSidePortUUID, true +} + +// HasSecondaryZSidePortUUID returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryZSidePortUUID() bool { + if o != nil && !IsNil(o.SecondaryZSidePortUUID) { + return true + } + + return false +} + +// SetSecondaryZSidePortUUID gets a reference to the given string and assigns it to the SecondaryZSidePortUUID field. +func (o *PostConnectionRequest) SetSecondaryZSidePortUUID(v string) { + o.SecondaryZSidePortUUID = &v +} + +// GetSecondaryZSideVlanSTag returns the SecondaryZSideVlanSTag field value if set, zero value otherwise. +func (o *PostConnectionRequest) GetSecondaryZSideVlanSTag() int32 { + if o == nil || IsNil(o.SecondaryZSideVlanSTag) { + var ret int32 + return ret + } + return *o.SecondaryZSideVlanSTag +} + +// GetSecondaryZSideVlanSTagOk returns a tuple with the SecondaryZSideVlanSTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionRequest) GetSecondaryZSideVlanSTagOk() (*int32, bool) { + if o == nil || IsNil(o.SecondaryZSideVlanSTag) { + return nil, false + } + return o.SecondaryZSideVlanSTag, true +} + +// HasSecondaryZSideVlanSTag returns a boolean if a field has been set. +func (o *PostConnectionRequest) HasSecondaryZSideVlanSTag() bool { + if o != nil && !IsNil(o.SecondaryZSideVlanSTag) { + return true + } + + return false +} + +// SetSecondaryZSideVlanSTag gets a reference to the given int32 and assigns it to the SecondaryZSideVlanSTag field. +func (o *PostConnectionRequest) SetSecondaryZSideVlanSTag(v int32) { + o.SecondaryZSideVlanSTag = &v +} + +func (o PostConnectionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostConnectionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrimaryName) { + toSerialize["primaryName"] = o.PrimaryName + } + if !IsNil(o.VirtualDeviceUUID) { + toSerialize["virtualDeviceUUID"] = o.VirtualDeviceUUID + } + if !IsNil(o.ProfileUUID) { + toSerialize["profileUUID"] = o.ProfileUUID + } + if !IsNil(o.AuthorizationKey) { + toSerialize["authorizationKey"] = o.AuthorizationKey + } + if !IsNil(o.Speed) { + toSerialize["speed"] = o.Speed + } + if !IsNil(o.SpeedUnit) { + toSerialize["speedUnit"] = o.SpeedUnit + } + if !IsNil(o.Notifications) { + toSerialize["notifications"] = o.Notifications + } + if !IsNil(o.PurchaseOrderNumber) { + toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber + } + if !IsNil(o.SellerMetroCode) { + toSerialize["sellerMetroCode"] = o.SellerMetroCode + } + if !IsNil(o.InterfaceId) { + toSerialize["interfaceId"] = o.InterfaceId + } + if !IsNil(o.SecondaryName) { + toSerialize["secondaryName"] = o.SecondaryName + } + if !IsNil(o.NamedTag) { + toSerialize["namedTag"] = o.NamedTag + } + if !IsNil(o.SecondaryVirtualDeviceUUID) { + toSerialize["secondaryVirtualDeviceUUID"] = o.SecondaryVirtualDeviceUUID + } + if !IsNil(o.SecondaryProfileUUID) { + toSerialize["secondaryProfileUUID"] = o.SecondaryProfileUUID + } + if !IsNil(o.SecondaryAuthorizationKey) { + toSerialize["secondaryAuthorizationKey"] = o.SecondaryAuthorizationKey + } + if !IsNil(o.SecondarySellerMetroCode) { + toSerialize["secondarySellerMetroCode"] = o.SecondarySellerMetroCode + } + if !IsNil(o.SecondarySpeed) { + toSerialize["secondarySpeed"] = o.SecondarySpeed + } + if !IsNil(o.SecondarySpeedUnit) { + toSerialize["secondarySpeedUnit"] = o.SecondarySpeedUnit + } + if !IsNil(o.SecondaryNotifications) { + toSerialize["secondaryNotifications"] = o.SecondaryNotifications + } + if !IsNil(o.SecondaryInterfaceId) { + toSerialize["secondaryInterfaceId"] = o.SecondaryInterfaceId + } + if !IsNil(o.PrimaryZSideVlanCTag) { + toSerialize["primaryZSideVlanCTag"] = o.PrimaryZSideVlanCTag + } + if !IsNil(o.SecondaryZSideVlanCTag) { + toSerialize["secondaryZSideVlanCTag"] = o.SecondaryZSideVlanCTag + } + if !IsNil(o.PrimaryZSidePortUUID) { + toSerialize["primaryZSidePortUUID"] = o.PrimaryZSidePortUUID + } + if !IsNil(o.PrimaryZSideVlanSTag) { + toSerialize["primaryZSideVlanSTag"] = o.PrimaryZSideVlanSTag + } + if !IsNil(o.SecondaryZSidePortUUID) { + toSerialize["secondaryZSidePortUUID"] = o.SecondaryZSidePortUUID + } + if !IsNil(o.SecondaryZSideVlanSTag) { + toSerialize["secondaryZSideVlanSTag"] = o.SecondaryZSideVlanSTag + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PostConnectionRequest) UnmarshalJSON(data []byte) (err error) { + varPostConnectionRequest := _PostConnectionRequest{} + + err = json.Unmarshal(data, &varPostConnectionRequest) + + if err != nil { + return err + } + + *o = PostConnectionRequest(varPostConnectionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "primaryName") + delete(additionalProperties, "virtualDeviceUUID") + delete(additionalProperties, "profileUUID") + delete(additionalProperties, "authorizationKey") + delete(additionalProperties, "speed") + delete(additionalProperties, "speedUnit") + delete(additionalProperties, "notifications") + delete(additionalProperties, "purchaseOrderNumber") + delete(additionalProperties, "sellerMetroCode") + delete(additionalProperties, "interfaceId") + delete(additionalProperties, "secondaryName") + delete(additionalProperties, "namedTag") + delete(additionalProperties, "secondaryVirtualDeviceUUID") + delete(additionalProperties, "secondaryProfileUUID") + delete(additionalProperties, "secondaryAuthorizationKey") + delete(additionalProperties, "secondarySellerMetroCode") + delete(additionalProperties, "secondarySpeed") + delete(additionalProperties, "secondarySpeedUnit") + delete(additionalProperties, "secondaryNotifications") + delete(additionalProperties, "secondaryInterfaceId") + delete(additionalProperties, "primaryZSideVlanCTag") + delete(additionalProperties, "secondaryZSideVlanCTag") + delete(additionalProperties, "primaryZSidePortUUID") + delete(additionalProperties, "primaryZSideVlanSTag") + delete(additionalProperties, "secondaryZSidePortUUID") + delete(additionalProperties, "secondaryZSideVlanSTag") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePostConnectionRequest struct { + value *PostConnectionRequest + isSet bool +} + +func (v NullablePostConnectionRequest) Get() *PostConnectionRequest { + return v.value +} + +func (v *NullablePostConnectionRequest) Set(val *PostConnectionRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostConnectionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostConnectionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostConnectionRequest(val *PostConnectionRequest) *NullablePostConnectionRequest { + return &NullablePostConnectionRequest{value: val, isSet: true} +} + +func (v NullablePostConnectionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostConnectionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_post_connection_response.go b/services/networkedgev1/model_post_connection_response.go new file mode 100644 index 00000000..f35c5ea6 --- /dev/null +++ b/services/networkedgev1/model_post_connection_response.go @@ -0,0 +1,265 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PostConnectionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostConnectionResponse{} + +// PostConnectionResponse struct for PostConnectionResponse +type PostConnectionResponse struct { + Message *string `json:"message,omitempty"` + PrimaryConnectionId *string `json:"primaryConnectionId,omitempty"` + SecondaryConnectionId *string `json:"secondaryConnectionId,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PostConnectionResponse PostConnectionResponse + +// NewPostConnectionResponse instantiates a new PostConnectionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostConnectionResponse() *PostConnectionResponse { + this := PostConnectionResponse{} + return &this +} + +// NewPostConnectionResponseWithDefaults instantiates a new PostConnectionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostConnectionResponseWithDefaults() *PostConnectionResponse { + this := PostConnectionResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostConnectionResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostConnectionResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostConnectionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetPrimaryConnectionId returns the PrimaryConnectionId field value if set, zero value otherwise. +func (o *PostConnectionResponse) GetPrimaryConnectionId() string { + if o == nil || IsNil(o.PrimaryConnectionId) { + var ret string + return ret + } + return *o.PrimaryConnectionId +} + +// GetPrimaryConnectionIdOk returns a tuple with the PrimaryConnectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionResponse) GetPrimaryConnectionIdOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryConnectionId) { + return nil, false + } + return o.PrimaryConnectionId, true +} + +// HasPrimaryConnectionId returns a boolean if a field has been set. +func (o *PostConnectionResponse) HasPrimaryConnectionId() bool { + if o != nil && !IsNil(o.PrimaryConnectionId) { + return true + } + + return false +} + +// SetPrimaryConnectionId gets a reference to the given string and assigns it to the PrimaryConnectionId field. +func (o *PostConnectionResponse) SetPrimaryConnectionId(v string) { + o.PrimaryConnectionId = &v +} + +// GetSecondaryConnectionId returns the SecondaryConnectionId field value if set, zero value otherwise. +func (o *PostConnectionResponse) GetSecondaryConnectionId() string { + if o == nil || IsNil(o.SecondaryConnectionId) { + var ret string + return ret + } + return *o.SecondaryConnectionId +} + +// GetSecondaryConnectionIdOk returns a tuple with the SecondaryConnectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionResponse) GetSecondaryConnectionIdOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryConnectionId) { + return nil, false + } + return o.SecondaryConnectionId, true +} + +// HasSecondaryConnectionId returns a boolean if a field has been set. +func (o *PostConnectionResponse) HasSecondaryConnectionId() bool { + if o != nil && !IsNil(o.SecondaryConnectionId) { + return true + } + + return false +} + +// SetSecondaryConnectionId gets a reference to the given string and assigns it to the SecondaryConnectionId field. +func (o *PostConnectionResponse) SetSecondaryConnectionId(v string) { + o.SecondaryConnectionId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PostConnectionResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostConnectionResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PostConnectionResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *PostConnectionResponse) SetStatus(v string) { + o.Status = &v +} + +func (o PostConnectionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostConnectionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.PrimaryConnectionId) { + toSerialize["primaryConnectionId"] = o.PrimaryConnectionId + } + if !IsNil(o.SecondaryConnectionId) { + toSerialize["secondaryConnectionId"] = o.SecondaryConnectionId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PostConnectionResponse) UnmarshalJSON(data []byte) (err error) { + varPostConnectionResponse := _PostConnectionResponse{} + + err = json.Unmarshal(data, &varPostConnectionResponse) + + if err != nil { + return err + } + + *o = PostConnectionResponse(varPostConnectionResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "primaryConnectionId") + delete(additionalProperties, "secondaryConnectionId") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePostConnectionResponse struct { + value *PostConnectionResponse + isSet bool +} + +func (v NullablePostConnectionResponse) Get() *PostConnectionResponse { + return v.value +} + +func (v *NullablePostConnectionResponse) Set(val *PostConnectionResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostConnectionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostConnectionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostConnectionResponse(val *PostConnectionResponse) *NullablePostConnectionResponse { + return &NullablePostConnectionResponse{value: val, isSet: true} +} + +func (v NullablePostConnectionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostConnectionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_previous_backups.go b/services/networkedgev1/model_previous_backups.go new file mode 100644 index 00000000..f3721422 --- /dev/null +++ b/services/networkedgev1/model_previous_backups.go @@ -0,0 +1,307 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PreviousBackups type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PreviousBackups{} + +// PreviousBackups struct for PreviousBackups +type PreviousBackups struct { + // The unique Id of a backup. + Uuid *string `json:"uuid,omitempty"` + // The status of the backup. + Status *string `json:"status,omitempty"` + // Created by. + CreatedBy *string `json:"createdBy,omitempty"` + // Created date. + CreatedDate *string `json:"createdDate,omitempty"` + // Last updated date. + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PreviousBackups PreviousBackups + +// NewPreviousBackups instantiates a new PreviousBackups object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPreviousBackups() *PreviousBackups { + this := PreviousBackups{} + return &this +} + +// NewPreviousBackupsWithDefaults instantiates a new PreviousBackups object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPreviousBackupsWithDefaults() *PreviousBackups { + this := PreviousBackups{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *PreviousBackups) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PreviousBackups) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *PreviousBackups) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *PreviousBackups) SetUuid(v string) { + o.Uuid = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PreviousBackups) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PreviousBackups) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PreviousBackups) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *PreviousBackups) SetStatus(v string) { + o.Status = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *PreviousBackups) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PreviousBackups) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *PreviousBackups) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *PreviousBackups) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *PreviousBackups) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PreviousBackups) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *PreviousBackups) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *PreviousBackups) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *PreviousBackups) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PreviousBackups) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *PreviousBackups) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *PreviousBackups) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +func (o PreviousBackups) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PreviousBackups) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PreviousBackups) UnmarshalJSON(data []byte) (err error) { + varPreviousBackups := _PreviousBackups{} + + err = json.Unmarshal(data, &varPreviousBackups) + + if err != nil { + return err + } + + *o = PreviousBackups(varPreviousBackups) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "status") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "lastUpdatedDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePreviousBackups struct { + value *PreviousBackups + isSet bool +} + +func (v NullablePreviousBackups) Get() *PreviousBackups { + return v.value +} + +func (v *NullablePreviousBackups) Set(val *PreviousBackups) { + v.value = val + v.isSet = true +} + +func (v NullablePreviousBackups) IsSet() bool { + return v.isSet +} + +func (v *NullablePreviousBackups) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePreviousBackups(val *PreviousBackups) *NullablePreviousBackups { + return &NullablePreviousBackups{value: val, isSet: true} +} + +func (v NullablePreviousBackups) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePreviousBackups) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_price_response.go b/services/networkedgev1/model_price_response.go new file mode 100644 index 00000000..af442130 --- /dev/null +++ b/services/networkedgev1/model_price_response.go @@ -0,0 +1,266 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PriceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceResponse{} + +// PriceResponse struct for PriceResponse +type PriceResponse struct { + BillingCommencementDate *string `json:"billingCommencementDate,omitempty"` + BillingEnabled *bool `json:"billingEnabled,omitempty"` + // An array of the monthly recurring charges. + Charges []Charges `json:"charges,omitempty"` + Currency *string `json:"currency,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PriceResponse PriceResponse + +// NewPriceResponse instantiates a new PriceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceResponse() *PriceResponse { + this := PriceResponse{} + return &this +} + +// NewPriceResponseWithDefaults instantiates a new PriceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceResponseWithDefaults() *PriceResponse { + this := PriceResponse{} + return &this +} + +// GetBillingCommencementDate returns the BillingCommencementDate field value if set, zero value otherwise. +func (o *PriceResponse) GetBillingCommencementDate() string { + if o == nil || IsNil(o.BillingCommencementDate) { + var ret string + return ret + } + return *o.BillingCommencementDate +} + +// GetBillingCommencementDateOk returns a tuple with the BillingCommencementDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceResponse) GetBillingCommencementDateOk() (*string, bool) { + if o == nil || IsNil(o.BillingCommencementDate) { + return nil, false + } + return o.BillingCommencementDate, true +} + +// HasBillingCommencementDate returns a boolean if a field has been set. +func (o *PriceResponse) HasBillingCommencementDate() bool { + if o != nil && !IsNil(o.BillingCommencementDate) { + return true + } + + return false +} + +// SetBillingCommencementDate gets a reference to the given string and assigns it to the BillingCommencementDate field. +func (o *PriceResponse) SetBillingCommencementDate(v string) { + o.BillingCommencementDate = &v +} + +// GetBillingEnabled returns the BillingEnabled field value if set, zero value otherwise. +func (o *PriceResponse) GetBillingEnabled() bool { + if o == nil || IsNil(o.BillingEnabled) { + var ret bool + return ret + } + return *o.BillingEnabled +} + +// GetBillingEnabledOk returns a tuple with the BillingEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceResponse) GetBillingEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.BillingEnabled) { + return nil, false + } + return o.BillingEnabled, true +} + +// HasBillingEnabled returns a boolean if a field has been set. +func (o *PriceResponse) HasBillingEnabled() bool { + if o != nil && !IsNil(o.BillingEnabled) { + return true + } + + return false +} + +// SetBillingEnabled gets a reference to the given bool and assigns it to the BillingEnabled field. +func (o *PriceResponse) SetBillingEnabled(v bool) { + o.BillingEnabled = &v +} + +// GetCharges returns the Charges field value if set, zero value otherwise. +func (o *PriceResponse) GetCharges() []Charges { + if o == nil || IsNil(o.Charges) { + var ret []Charges + return ret + } + return o.Charges +} + +// GetChargesOk returns a tuple with the Charges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceResponse) GetChargesOk() ([]Charges, bool) { + if o == nil || IsNil(o.Charges) { + return nil, false + } + return o.Charges, true +} + +// HasCharges returns a boolean if a field has been set. +func (o *PriceResponse) HasCharges() bool { + if o != nil && !IsNil(o.Charges) { + return true + } + + return false +} + +// SetCharges gets a reference to the given []Charges and assigns it to the Charges field. +func (o *PriceResponse) SetCharges(v []Charges) { + o.Charges = v +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *PriceResponse) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceResponse) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *PriceResponse) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *PriceResponse) SetCurrency(v string) { + o.Currency = &v +} + +func (o PriceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BillingCommencementDate) { + toSerialize["billingCommencementDate"] = o.BillingCommencementDate + } + if !IsNil(o.BillingEnabled) { + toSerialize["billingEnabled"] = o.BillingEnabled + } + if !IsNil(o.Charges) { + toSerialize["charges"] = o.Charges + } + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PriceResponse) UnmarshalJSON(data []byte) (err error) { + varPriceResponse := _PriceResponse{} + + err = json.Unmarshal(data, &varPriceResponse) + + if err != nil { + return err + } + + *o = PriceResponse(varPriceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "billingCommencementDate") + delete(additionalProperties, "billingEnabled") + delete(additionalProperties, "charges") + delete(additionalProperties, "currency") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePriceResponse struct { + value *PriceResponse + isSet bool +} + +func (v NullablePriceResponse) Get() *PriceResponse { + return v.value +} + +func (v *NullablePriceResponse) Set(val *PriceResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePriceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceResponse(val *PriceResponse) *NullablePriceResponse { + return &NullablePriceResponse{value: val, isSet: true} +} + +func (v NullablePriceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_pricing_siebel_config.go b/services/networkedgev1/model_pricing_siebel_config.go new file mode 100644 index 00000000..4a05cf35 --- /dev/null +++ b/services/networkedgev1/model_pricing_siebel_config.go @@ -0,0 +1,457 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PricingSiebelConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PricingSiebelConfig{} + +// PricingSiebelConfig An object that has the pricing and other details of a Siebel order. +type PricingSiebelConfig struct { + // The termlength of the Siebel order. + TermLength *string `json:"termLength,omitempty"` + // The order number. + OrderNumber *string `json:"orderNumber,omitempty"` + // The core selection on Siebel. + Core *int32 `json:"core,omitempty"` + // Throughput. + Throughput *string `json:"throughput,omitempty"` + // The throughput unit. + ThroughputUnit *string `json:"ThroughputUnit,omitempty"` + // The software package code. + PackageCode *string `json:"packageCode,omitempty"` + // The additional bandwidth selection on Siebel. + AdditionalBandwidth *string `json:"additionalBandwidth,omitempty"` + Primary *PricingSiebelConfigPrimary `json:"primary,omitempty"` + Secondary *PricingSiebelConfigSecondary `json:"secondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PricingSiebelConfig PricingSiebelConfig + +// NewPricingSiebelConfig instantiates a new PricingSiebelConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPricingSiebelConfig() *PricingSiebelConfig { + this := PricingSiebelConfig{} + return &this +} + +// NewPricingSiebelConfigWithDefaults instantiates a new PricingSiebelConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPricingSiebelConfigWithDefaults() *PricingSiebelConfig { + this := PricingSiebelConfig{} + return &this +} + +// GetTermLength returns the TermLength field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetTermLength() string { + if o == nil || IsNil(o.TermLength) { + var ret string + return ret + } + return *o.TermLength +} + +// GetTermLengthOk returns a tuple with the TermLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetTermLengthOk() (*string, bool) { + if o == nil || IsNil(o.TermLength) { + return nil, false + } + return o.TermLength, true +} + +// HasTermLength returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasTermLength() bool { + if o != nil && !IsNil(o.TermLength) { + return true + } + + return false +} + +// SetTermLength gets a reference to the given string and assigns it to the TermLength field. +func (o *PricingSiebelConfig) SetTermLength(v string) { + o.TermLength = &v +} + +// GetOrderNumber returns the OrderNumber field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetOrderNumber() string { + if o == nil || IsNil(o.OrderNumber) { + var ret string + return ret + } + return *o.OrderNumber +} + +// GetOrderNumberOk returns a tuple with the OrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.OrderNumber) { + return nil, false + } + return o.OrderNumber, true +} + +// HasOrderNumber returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasOrderNumber() bool { + if o != nil && !IsNil(o.OrderNumber) { + return true + } + + return false +} + +// SetOrderNumber gets a reference to the given string and assigns it to the OrderNumber field. +func (o *PricingSiebelConfig) SetOrderNumber(v string) { + o.OrderNumber = &v +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetCore() int32 { + if o == nil || IsNil(o.Core) { + var ret int32 + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetCoreOk() (*int32, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given int32 and assigns it to the Core field. +func (o *PricingSiebelConfig) SetCore(v int32) { + o.Core = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetThroughput() string { + if o == nil || IsNil(o.Throughput) { + var ret string + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetThroughputOk() (*string, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given string and assigns it to the Throughput field. +func (o *PricingSiebelConfig) SetThroughput(v string) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *PricingSiebelConfig) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetPackageCode returns the PackageCode field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetPackageCode() string { + if o == nil || IsNil(o.PackageCode) { + var ret string + return ret + } + return *o.PackageCode +} + +// GetPackageCodeOk returns a tuple with the PackageCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetPackageCodeOk() (*string, bool) { + if o == nil || IsNil(o.PackageCode) { + return nil, false + } + return o.PackageCode, true +} + +// HasPackageCode returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasPackageCode() bool { + if o != nil && !IsNil(o.PackageCode) { + return true + } + + return false +} + +// SetPackageCode gets a reference to the given string and assigns it to the PackageCode field. +func (o *PricingSiebelConfig) SetPackageCode(v string) { + o.PackageCode = &v +} + +// GetAdditionalBandwidth returns the AdditionalBandwidth field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetAdditionalBandwidth() string { + if o == nil || IsNil(o.AdditionalBandwidth) { + var ret string + return ret + } + return *o.AdditionalBandwidth +} + +// GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetAdditionalBandwidthOk() (*string, bool) { + if o == nil || IsNil(o.AdditionalBandwidth) { + return nil, false + } + return o.AdditionalBandwidth, true +} + +// HasAdditionalBandwidth returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasAdditionalBandwidth() bool { + if o != nil && !IsNil(o.AdditionalBandwidth) { + return true + } + + return false +} + +// SetAdditionalBandwidth gets a reference to the given string and assigns it to the AdditionalBandwidth field. +func (o *PricingSiebelConfig) SetAdditionalBandwidth(v string) { + o.AdditionalBandwidth = &v +} + +// GetPrimary returns the Primary field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetPrimary() PricingSiebelConfigPrimary { + if o == nil || IsNil(o.Primary) { + var ret PricingSiebelConfigPrimary + return ret + } + return *o.Primary +} + +// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetPrimaryOk() (*PricingSiebelConfigPrimary, bool) { + if o == nil || IsNil(o.Primary) { + return nil, false + } + return o.Primary, true +} + +// HasPrimary returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasPrimary() bool { + if o != nil && !IsNil(o.Primary) { + return true + } + + return false +} + +// SetPrimary gets a reference to the given PricingSiebelConfigPrimary and assigns it to the Primary field. +func (o *PricingSiebelConfig) SetPrimary(v PricingSiebelConfigPrimary) { + o.Primary = &v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *PricingSiebelConfig) GetSecondary() PricingSiebelConfigSecondary { + if o == nil || IsNil(o.Secondary) { + var ret PricingSiebelConfigSecondary + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfig) GetSecondaryOk() (*PricingSiebelConfigSecondary, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *PricingSiebelConfig) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given PricingSiebelConfigSecondary and assigns it to the Secondary field. +func (o *PricingSiebelConfig) SetSecondary(v PricingSiebelConfigSecondary) { + o.Secondary = &v +} + +func (o PricingSiebelConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PricingSiebelConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TermLength) { + toSerialize["termLength"] = o.TermLength + } + if !IsNil(o.OrderNumber) { + toSerialize["orderNumber"] = o.OrderNumber + } + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["ThroughputUnit"] = o.ThroughputUnit + } + if !IsNil(o.PackageCode) { + toSerialize["packageCode"] = o.PackageCode + } + if !IsNil(o.AdditionalBandwidth) { + toSerialize["additionalBandwidth"] = o.AdditionalBandwidth + } + if !IsNil(o.Primary) { + toSerialize["primary"] = o.Primary + } + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PricingSiebelConfig) UnmarshalJSON(data []byte) (err error) { + varPricingSiebelConfig := _PricingSiebelConfig{} + + err = json.Unmarshal(data, &varPricingSiebelConfig) + + if err != nil { + return err + } + + *o = PricingSiebelConfig(varPricingSiebelConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "termLength") + delete(additionalProperties, "orderNumber") + delete(additionalProperties, "core") + delete(additionalProperties, "throughput") + delete(additionalProperties, "ThroughputUnit") + delete(additionalProperties, "packageCode") + delete(additionalProperties, "additionalBandwidth") + delete(additionalProperties, "primary") + delete(additionalProperties, "secondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePricingSiebelConfig struct { + value *PricingSiebelConfig + isSet bool +} + +func (v NullablePricingSiebelConfig) Get() *PricingSiebelConfig { + return v.value +} + +func (v *NullablePricingSiebelConfig) Set(val *PricingSiebelConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePricingSiebelConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePricingSiebelConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePricingSiebelConfig(val *PricingSiebelConfig) *NullablePricingSiebelConfig { + return &NullablePricingSiebelConfig{value: val, isSet: true} +} + +func (v NullablePricingSiebelConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePricingSiebelConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_pricing_siebel_config_primary.go b/services/networkedgev1/model_pricing_siebel_config_primary.go new file mode 100644 index 00000000..1450b255 --- /dev/null +++ b/services/networkedgev1/model_pricing_siebel_config_primary.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PricingSiebelConfigPrimary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PricingSiebelConfigPrimary{} + +// PricingSiebelConfigPrimary An object that has the charges associated with the primary device. +type PricingSiebelConfigPrimary struct { + // The currency of the charges. + Currency *string `json:"currency,omitempty"` + Charges []Charges `json:"charges,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PricingSiebelConfigPrimary PricingSiebelConfigPrimary + +// NewPricingSiebelConfigPrimary instantiates a new PricingSiebelConfigPrimary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPricingSiebelConfigPrimary() *PricingSiebelConfigPrimary { + this := PricingSiebelConfigPrimary{} + return &this +} + +// NewPricingSiebelConfigPrimaryWithDefaults instantiates a new PricingSiebelConfigPrimary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPricingSiebelConfigPrimaryWithDefaults() *PricingSiebelConfigPrimary { + this := PricingSiebelConfigPrimary{} + return &this +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *PricingSiebelConfigPrimary) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfigPrimary) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *PricingSiebelConfigPrimary) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *PricingSiebelConfigPrimary) SetCurrency(v string) { + o.Currency = &v +} + +// GetCharges returns the Charges field value if set, zero value otherwise. +func (o *PricingSiebelConfigPrimary) GetCharges() []Charges { + if o == nil || IsNil(o.Charges) { + var ret []Charges + return ret + } + return o.Charges +} + +// GetChargesOk returns a tuple with the Charges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfigPrimary) GetChargesOk() ([]Charges, bool) { + if o == nil || IsNil(o.Charges) { + return nil, false + } + return o.Charges, true +} + +// HasCharges returns a boolean if a field has been set. +func (o *PricingSiebelConfigPrimary) HasCharges() bool { + if o != nil && !IsNil(o.Charges) { + return true + } + + return false +} + +// SetCharges gets a reference to the given []Charges and assigns it to the Charges field. +func (o *PricingSiebelConfigPrimary) SetCharges(v []Charges) { + o.Charges = v +} + +func (o PricingSiebelConfigPrimary) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PricingSiebelConfigPrimary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + if !IsNil(o.Charges) { + toSerialize["charges"] = o.Charges + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PricingSiebelConfigPrimary) UnmarshalJSON(data []byte) (err error) { + varPricingSiebelConfigPrimary := _PricingSiebelConfigPrimary{} + + err = json.Unmarshal(data, &varPricingSiebelConfigPrimary) + + if err != nil { + return err + } + + *o = PricingSiebelConfigPrimary(varPricingSiebelConfigPrimary) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "currency") + delete(additionalProperties, "charges") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePricingSiebelConfigPrimary struct { + value *PricingSiebelConfigPrimary + isSet bool +} + +func (v NullablePricingSiebelConfigPrimary) Get() *PricingSiebelConfigPrimary { + return v.value +} + +func (v *NullablePricingSiebelConfigPrimary) Set(val *PricingSiebelConfigPrimary) { + v.value = val + v.isSet = true +} + +func (v NullablePricingSiebelConfigPrimary) IsSet() bool { + return v.isSet +} + +func (v *NullablePricingSiebelConfigPrimary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePricingSiebelConfigPrimary(val *PricingSiebelConfigPrimary) *NullablePricingSiebelConfigPrimary { + return &NullablePricingSiebelConfigPrimary{value: val, isSet: true} +} + +func (v NullablePricingSiebelConfigPrimary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePricingSiebelConfigPrimary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_pricing_siebel_config_secondary.go b/services/networkedgev1/model_pricing_siebel_config_secondary.go new file mode 100644 index 00000000..23017cab --- /dev/null +++ b/services/networkedgev1/model_pricing_siebel_config_secondary.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the PricingSiebelConfigSecondary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PricingSiebelConfigSecondary{} + +// PricingSiebelConfigSecondary An object that has the charges associated with the secondary device. +type PricingSiebelConfigSecondary struct { + // The currency of the charges. + Currency *string `json:"currency,omitempty"` + Charges []Charges `json:"charges,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PricingSiebelConfigSecondary PricingSiebelConfigSecondary + +// NewPricingSiebelConfigSecondary instantiates a new PricingSiebelConfigSecondary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPricingSiebelConfigSecondary() *PricingSiebelConfigSecondary { + this := PricingSiebelConfigSecondary{} + return &this +} + +// NewPricingSiebelConfigSecondaryWithDefaults instantiates a new PricingSiebelConfigSecondary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPricingSiebelConfigSecondaryWithDefaults() *PricingSiebelConfigSecondary { + this := PricingSiebelConfigSecondary{} + return &this +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *PricingSiebelConfigSecondary) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfigSecondary) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *PricingSiebelConfigSecondary) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *PricingSiebelConfigSecondary) SetCurrency(v string) { + o.Currency = &v +} + +// GetCharges returns the Charges field value if set, zero value otherwise. +func (o *PricingSiebelConfigSecondary) GetCharges() []Charges { + if o == nil || IsNil(o.Charges) { + var ret []Charges + return ret + } + return o.Charges +} + +// GetChargesOk returns a tuple with the Charges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PricingSiebelConfigSecondary) GetChargesOk() ([]Charges, bool) { + if o == nil || IsNil(o.Charges) { + return nil, false + } + return o.Charges, true +} + +// HasCharges returns a boolean if a field has been set. +func (o *PricingSiebelConfigSecondary) HasCharges() bool { + if o != nil && !IsNil(o.Charges) { + return true + } + + return false +} + +// SetCharges gets a reference to the given []Charges and assigns it to the Charges field. +func (o *PricingSiebelConfigSecondary) SetCharges(v []Charges) { + o.Charges = v +} + +func (o PricingSiebelConfigSecondary) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PricingSiebelConfigSecondary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + if !IsNil(o.Charges) { + toSerialize["charges"] = o.Charges + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PricingSiebelConfigSecondary) UnmarshalJSON(data []byte) (err error) { + varPricingSiebelConfigSecondary := _PricingSiebelConfigSecondary{} + + err = json.Unmarshal(data, &varPricingSiebelConfigSecondary) + + if err != nil { + return err + } + + *o = PricingSiebelConfigSecondary(varPricingSiebelConfigSecondary) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "currency") + delete(additionalProperties, "charges") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePricingSiebelConfigSecondary struct { + value *PricingSiebelConfigSecondary + isSet bool +} + +func (v NullablePricingSiebelConfigSecondary) Get() *PricingSiebelConfigSecondary { + return v.value +} + +func (v *NullablePricingSiebelConfigSecondary) Set(val *PricingSiebelConfigSecondary) { + v.value = val + v.isSet = true +} + +func (v NullablePricingSiebelConfigSecondary) IsSet() bool { + return v.isSet +} + +func (v *NullablePricingSiebelConfigSecondary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePricingSiebelConfigSecondary(val *PricingSiebelConfigSecondary) *NullablePricingSiebelConfigSecondary { + return &NullablePricingSiebelConfigSecondary{value: val, isSet: true} +} + +func (v NullablePricingSiebelConfigSecondary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePricingSiebelConfigSecondary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_public_key_request.go b/services/networkedgev1/model_public_key_request.go new file mode 100644 index 00000000..fe36d955 --- /dev/null +++ b/services/networkedgev1/model_public_key_request.go @@ -0,0 +1,236 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the PublicKeyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublicKeyRequest{} + +// PublicKeyRequest struct for PublicKeyRequest +type PublicKeyRequest struct { + // Key name + KeyName string `json:"keyName"` + // Key value + KeyValue string `json:"keyValue"` + // Key type, whether RSA or DSA. Default is RSA. + KeyType *string `json:"keyType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PublicKeyRequest PublicKeyRequest + +// NewPublicKeyRequest instantiates a new PublicKeyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPublicKeyRequest(keyName string, keyValue string) *PublicKeyRequest { + this := PublicKeyRequest{} + this.KeyName = keyName + this.KeyValue = keyValue + return &this +} + +// NewPublicKeyRequestWithDefaults instantiates a new PublicKeyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublicKeyRequestWithDefaults() *PublicKeyRequest { + this := PublicKeyRequest{} + return &this +} + +// GetKeyName returns the KeyName field value +func (o *PublicKeyRequest) GetKeyName() string { + if o == nil { + var ret string + return ret + } + + return o.KeyName +} + +// GetKeyNameOk returns a tuple with the KeyName field value +// and a boolean to check if the value has been set. +func (o *PublicKeyRequest) GetKeyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyName, true +} + +// SetKeyName sets field value +func (o *PublicKeyRequest) SetKeyName(v string) { + o.KeyName = v +} + +// GetKeyValue returns the KeyValue field value +func (o *PublicKeyRequest) GetKeyValue() string { + if o == nil { + var ret string + return ret + } + + return o.KeyValue +} + +// GetKeyValueOk returns a tuple with the KeyValue field value +// and a boolean to check if the value has been set. +func (o *PublicKeyRequest) GetKeyValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyValue, true +} + +// SetKeyValue sets field value +func (o *PublicKeyRequest) SetKeyValue(v string) { + o.KeyValue = v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *PublicKeyRequest) GetKeyType() string { + if o == nil || IsNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicKeyRequest) GetKeyTypeOk() (*string, bool) { + if o == nil || IsNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *PublicKeyRequest) HasKeyType() bool { + if o != nil && !IsNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *PublicKeyRequest) SetKeyType(v string) { + o.KeyType = &v +} + +func (o PublicKeyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublicKeyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["keyName"] = o.KeyName + toSerialize["keyValue"] = o.KeyValue + if !IsNil(o.KeyType) { + toSerialize["keyType"] = o.KeyType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PublicKeyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "keyName", + "keyValue", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPublicKeyRequest := _PublicKeyRequest{} + + err = json.Unmarshal(data, &varPublicKeyRequest) + + if err != nil { + return err + } + + *o = PublicKeyRequest(varPublicKeyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "keyName") + delete(additionalProperties, "keyValue") + delete(additionalProperties, "keyType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePublicKeyRequest struct { + value *PublicKeyRequest + isSet bool +} + +func (v NullablePublicKeyRequest) Get() *PublicKeyRequest { + return v.value +} + +func (v *NullablePublicKeyRequest) Set(val *PublicKeyRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePublicKeyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePublicKeyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublicKeyRequest(val *PublicKeyRequest) *NullablePublicKeyRequest { + return &NullablePublicKeyRequest{value: val, isSet: true} +} + +func (v NullablePublicKeyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublicKeyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_restore_backup_info_verbose.go b/services/networkedgev1/model_restore_backup_info_verbose.go new file mode 100644 index 00000000..dcc55960 --- /dev/null +++ b/services/networkedgev1/model_restore_backup_info_verbose.go @@ -0,0 +1,229 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the RestoreBackupInfoVerbose type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreBackupInfoVerbose{} + +// RestoreBackupInfoVerbose struct for RestoreBackupInfoVerbose +type RestoreBackupInfoVerbose struct { + DeviceBackup *RestoreBackupInfoVerboseDeviceBackup `json:"deviceBackup,omitempty"` + Services *RestoreBackupInfoVerboseServices `json:"services,omitempty"` + // If True, the backup is restorable once you perform the recommended opertions. If False, the backup is not restorable. + RestoreAllowedAfterDeleteOrEdit *bool `json:"restoreAllowedAfterDeleteOrEdit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RestoreBackupInfoVerbose RestoreBackupInfoVerbose + +// NewRestoreBackupInfoVerbose instantiates a new RestoreBackupInfoVerbose object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreBackupInfoVerbose() *RestoreBackupInfoVerbose { + this := RestoreBackupInfoVerbose{} + return &this +} + +// NewRestoreBackupInfoVerboseWithDefaults instantiates a new RestoreBackupInfoVerbose object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreBackupInfoVerboseWithDefaults() *RestoreBackupInfoVerbose { + this := RestoreBackupInfoVerbose{} + return &this +} + +// GetDeviceBackup returns the DeviceBackup field value if set, zero value otherwise. +func (o *RestoreBackupInfoVerbose) GetDeviceBackup() RestoreBackupInfoVerboseDeviceBackup { + if o == nil || IsNil(o.DeviceBackup) { + var ret RestoreBackupInfoVerboseDeviceBackup + return ret + } + return *o.DeviceBackup +} + +// GetDeviceBackupOk returns a tuple with the DeviceBackup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreBackupInfoVerbose) GetDeviceBackupOk() (*RestoreBackupInfoVerboseDeviceBackup, bool) { + if o == nil || IsNil(o.DeviceBackup) { + return nil, false + } + return o.DeviceBackup, true +} + +// HasDeviceBackup returns a boolean if a field has been set. +func (o *RestoreBackupInfoVerbose) HasDeviceBackup() bool { + if o != nil && !IsNil(o.DeviceBackup) { + return true + } + + return false +} + +// SetDeviceBackup gets a reference to the given RestoreBackupInfoVerboseDeviceBackup and assigns it to the DeviceBackup field. +func (o *RestoreBackupInfoVerbose) SetDeviceBackup(v RestoreBackupInfoVerboseDeviceBackup) { + o.DeviceBackup = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *RestoreBackupInfoVerbose) GetServices() RestoreBackupInfoVerboseServices { + if o == nil || IsNil(o.Services) { + var ret RestoreBackupInfoVerboseServices + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreBackupInfoVerbose) GetServicesOk() (*RestoreBackupInfoVerboseServices, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *RestoreBackupInfoVerbose) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given RestoreBackupInfoVerboseServices and assigns it to the Services field. +func (o *RestoreBackupInfoVerbose) SetServices(v RestoreBackupInfoVerboseServices) { + o.Services = &v +} + +// GetRestoreAllowedAfterDeleteOrEdit returns the RestoreAllowedAfterDeleteOrEdit field value if set, zero value otherwise. +func (o *RestoreBackupInfoVerbose) GetRestoreAllowedAfterDeleteOrEdit() bool { + if o == nil || IsNil(o.RestoreAllowedAfterDeleteOrEdit) { + var ret bool + return ret + } + return *o.RestoreAllowedAfterDeleteOrEdit +} + +// GetRestoreAllowedAfterDeleteOrEditOk returns a tuple with the RestoreAllowedAfterDeleteOrEdit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreBackupInfoVerbose) GetRestoreAllowedAfterDeleteOrEditOk() (*bool, bool) { + if o == nil || IsNil(o.RestoreAllowedAfterDeleteOrEdit) { + return nil, false + } + return o.RestoreAllowedAfterDeleteOrEdit, true +} + +// HasRestoreAllowedAfterDeleteOrEdit returns a boolean if a field has been set. +func (o *RestoreBackupInfoVerbose) HasRestoreAllowedAfterDeleteOrEdit() bool { + if o != nil && !IsNil(o.RestoreAllowedAfterDeleteOrEdit) { + return true + } + + return false +} + +// SetRestoreAllowedAfterDeleteOrEdit gets a reference to the given bool and assigns it to the RestoreAllowedAfterDeleteOrEdit field. +func (o *RestoreBackupInfoVerbose) SetRestoreAllowedAfterDeleteOrEdit(v bool) { + o.RestoreAllowedAfterDeleteOrEdit = &v +} + +func (o RestoreBackupInfoVerbose) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreBackupInfoVerbose) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceBackup) { + toSerialize["deviceBackup"] = o.DeviceBackup + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + if !IsNil(o.RestoreAllowedAfterDeleteOrEdit) { + toSerialize["restoreAllowedAfterDeleteOrEdit"] = o.RestoreAllowedAfterDeleteOrEdit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreBackupInfoVerbose) UnmarshalJSON(data []byte) (err error) { + varRestoreBackupInfoVerbose := _RestoreBackupInfoVerbose{} + + err = json.Unmarshal(data, &varRestoreBackupInfoVerbose) + + if err != nil { + return err + } + + *o = RestoreBackupInfoVerbose(varRestoreBackupInfoVerbose) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceBackup") + delete(additionalProperties, "services") + delete(additionalProperties, "restoreAllowedAfterDeleteOrEdit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreBackupInfoVerbose struct { + value *RestoreBackupInfoVerbose + isSet bool +} + +func (v NullableRestoreBackupInfoVerbose) Get() *RestoreBackupInfoVerbose { + return v.value +} + +func (v *NullableRestoreBackupInfoVerbose) Set(val *RestoreBackupInfoVerbose) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreBackupInfoVerbose) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreBackupInfoVerbose) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreBackupInfoVerbose(val *RestoreBackupInfoVerbose) *NullableRestoreBackupInfoVerbose { + return &NullableRestoreBackupInfoVerbose{value: val, isSet: true} +} + +func (v NullableRestoreBackupInfoVerbose) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreBackupInfoVerbose) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_restore_backup_info_verbose_device_backup.go b/services/networkedgev1/model_restore_backup_info_verbose_device_backup.go new file mode 100644 index 00000000..d8c1e259 --- /dev/null +++ b/services/networkedgev1/model_restore_backup_info_verbose_device_backup.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the RestoreBackupInfoVerboseDeviceBackup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreBackupInfoVerboseDeviceBackup{} + +// RestoreBackupInfoVerboseDeviceBackup An object that has the device backup details. +type RestoreBackupInfoVerboseDeviceBackup struct { + DeviceBackup *DeviceBackupRestore `json:"deviceBackup,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RestoreBackupInfoVerboseDeviceBackup RestoreBackupInfoVerboseDeviceBackup + +// NewRestoreBackupInfoVerboseDeviceBackup instantiates a new RestoreBackupInfoVerboseDeviceBackup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreBackupInfoVerboseDeviceBackup() *RestoreBackupInfoVerboseDeviceBackup { + this := RestoreBackupInfoVerboseDeviceBackup{} + return &this +} + +// NewRestoreBackupInfoVerboseDeviceBackupWithDefaults instantiates a new RestoreBackupInfoVerboseDeviceBackup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreBackupInfoVerboseDeviceBackupWithDefaults() *RestoreBackupInfoVerboseDeviceBackup { + this := RestoreBackupInfoVerboseDeviceBackup{} + return &this +} + +// GetDeviceBackup returns the DeviceBackup field value if set, zero value otherwise. +func (o *RestoreBackupInfoVerboseDeviceBackup) GetDeviceBackup() DeviceBackupRestore { + if o == nil || IsNil(o.DeviceBackup) { + var ret DeviceBackupRestore + return ret + } + return *o.DeviceBackup +} + +// GetDeviceBackupOk returns a tuple with the DeviceBackup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreBackupInfoVerboseDeviceBackup) GetDeviceBackupOk() (*DeviceBackupRestore, bool) { + if o == nil || IsNil(o.DeviceBackup) { + return nil, false + } + return o.DeviceBackup, true +} + +// HasDeviceBackup returns a boolean if a field has been set. +func (o *RestoreBackupInfoVerboseDeviceBackup) HasDeviceBackup() bool { + if o != nil && !IsNil(o.DeviceBackup) { + return true + } + + return false +} + +// SetDeviceBackup gets a reference to the given DeviceBackupRestore and assigns it to the DeviceBackup field. +func (o *RestoreBackupInfoVerboseDeviceBackup) SetDeviceBackup(v DeviceBackupRestore) { + o.DeviceBackup = &v +} + +func (o RestoreBackupInfoVerboseDeviceBackup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreBackupInfoVerboseDeviceBackup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceBackup) { + toSerialize["deviceBackup"] = o.DeviceBackup + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreBackupInfoVerboseDeviceBackup) UnmarshalJSON(data []byte) (err error) { + varRestoreBackupInfoVerboseDeviceBackup := _RestoreBackupInfoVerboseDeviceBackup{} + + err = json.Unmarshal(data, &varRestoreBackupInfoVerboseDeviceBackup) + + if err != nil { + return err + } + + *o = RestoreBackupInfoVerboseDeviceBackup(varRestoreBackupInfoVerboseDeviceBackup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceBackup") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreBackupInfoVerboseDeviceBackup struct { + value *RestoreBackupInfoVerboseDeviceBackup + isSet bool +} + +func (v NullableRestoreBackupInfoVerboseDeviceBackup) Get() *RestoreBackupInfoVerboseDeviceBackup { + return v.value +} + +func (v *NullableRestoreBackupInfoVerboseDeviceBackup) Set(val *RestoreBackupInfoVerboseDeviceBackup) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreBackupInfoVerboseDeviceBackup) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreBackupInfoVerboseDeviceBackup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreBackupInfoVerboseDeviceBackup(val *RestoreBackupInfoVerboseDeviceBackup) *NullableRestoreBackupInfoVerboseDeviceBackup { + return &NullableRestoreBackupInfoVerboseDeviceBackup{value: val, isSet: true} +} + +func (v NullableRestoreBackupInfoVerboseDeviceBackup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreBackupInfoVerboseDeviceBackup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_restore_backup_info_verbose_services.go b/services/networkedgev1/model_restore_backup_info_verbose_services.go new file mode 100644 index 00000000..cf132bf5 --- /dev/null +++ b/services/networkedgev1/model_restore_backup_info_verbose_services.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the RestoreBackupInfoVerboseServices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreBackupInfoVerboseServices{} + +// RestoreBackupInfoVerboseServices An object that has the analysis of services associated with the backup or services added to the device since the backup. +type RestoreBackupInfoVerboseServices struct { + ServiceName *ServiceInfo `json:"service_name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RestoreBackupInfoVerboseServices RestoreBackupInfoVerboseServices + +// NewRestoreBackupInfoVerboseServices instantiates a new RestoreBackupInfoVerboseServices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreBackupInfoVerboseServices() *RestoreBackupInfoVerboseServices { + this := RestoreBackupInfoVerboseServices{} + return &this +} + +// NewRestoreBackupInfoVerboseServicesWithDefaults instantiates a new RestoreBackupInfoVerboseServices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreBackupInfoVerboseServicesWithDefaults() *RestoreBackupInfoVerboseServices { + this := RestoreBackupInfoVerboseServices{} + return &this +} + +// GetServiceName returns the ServiceName field value if set, zero value otherwise. +func (o *RestoreBackupInfoVerboseServices) GetServiceName() ServiceInfo { + if o == nil || IsNil(o.ServiceName) { + var ret ServiceInfo + return ret + } + return *o.ServiceName +} + +// GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreBackupInfoVerboseServices) GetServiceNameOk() (*ServiceInfo, bool) { + if o == nil || IsNil(o.ServiceName) { + return nil, false + } + return o.ServiceName, true +} + +// HasServiceName returns a boolean if a field has been set. +func (o *RestoreBackupInfoVerboseServices) HasServiceName() bool { + if o != nil && !IsNil(o.ServiceName) { + return true + } + + return false +} + +// SetServiceName gets a reference to the given ServiceInfo and assigns it to the ServiceName field. +func (o *RestoreBackupInfoVerboseServices) SetServiceName(v ServiceInfo) { + o.ServiceName = &v +} + +func (o RestoreBackupInfoVerboseServices) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreBackupInfoVerboseServices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceName) { + toSerialize["service_name"] = o.ServiceName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreBackupInfoVerboseServices) UnmarshalJSON(data []byte) (err error) { + varRestoreBackupInfoVerboseServices := _RestoreBackupInfoVerboseServices{} + + err = json.Unmarshal(data, &varRestoreBackupInfoVerboseServices) + + if err != nil { + return err + } + + *o = RestoreBackupInfoVerboseServices(varRestoreBackupInfoVerboseServices) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "service_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreBackupInfoVerboseServices struct { + value *RestoreBackupInfoVerboseServices + isSet bool +} + +func (v NullableRestoreBackupInfoVerboseServices) Get() *RestoreBackupInfoVerboseServices { + return v.value +} + +func (v *NullableRestoreBackupInfoVerboseServices) Set(val *RestoreBackupInfoVerboseServices) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreBackupInfoVerboseServices) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreBackupInfoVerboseServices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreBackupInfoVerboseServices(val *RestoreBackupInfoVerboseServices) *NullableRestoreBackupInfoVerboseServices { + return &NullableRestoreBackupInfoVerboseServices{value: val, isSet: true} +} + +func (v NullableRestoreBackupInfoVerboseServices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreBackupInfoVerboseServices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_rma_detail_object.go b/services/networkedgev1/model_rma_detail_object.go new file mode 100644 index 00000000..269d0535 --- /dev/null +++ b/services/networkedgev1/model_rma_detail_object.go @@ -0,0 +1,383 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the RmaDetailObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RmaDetailObject{} + +// RmaDetailObject struct for RmaDetailObject +type RmaDetailObject struct { + // The unique Id of a device + DeviceUUID *string `json:"deviceUUID,omitempty"` + // Device version + Version *string `json:"version,omitempty"` + // Status of the request + Status *string `json:"status,omitempty"` + // Type of request + RequestType *string `json:"requestType,omitempty"` + // Requested by + RequestedBy *string `json:"requestedBy,omitempty"` + // Requested date + RequestedDate *string `json:"requestedDate,omitempty"` + // Requested date + CompletiondDate *string `json:"completiondDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RmaDetailObject RmaDetailObject + +// NewRmaDetailObject instantiates a new RmaDetailObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRmaDetailObject() *RmaDetailObject { + this := RmaDetailObject{} + return &this +} + +// NewRmaDetailObjectWithDefaults instantiates a new RmaDetailObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRmaDetailObjectWithDefaults() *RmaDetailObject { + this := RmaDetailObject{} + return &this +} + +// GetDeviceUUID returns the DeviceUUID field value if set, zero value otherwise. +func (o *RmaDetailObject) GetDeviceUUID() string { + if o == nil || IsNil(o.DeviceUUID) { + var ret string + return ret + } + return *o.DeviceUUID +} + +// GetDeviceUUIDOk returns a tuple with the DeviceUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetDeviceUUIDOk() (*string, bool) { + if o == nil || IsNil(o.DeviceUUID) { + return nil, false + } + return o.DeviceUUID, true +} + +// HasDeviceUUID returns a boolean if a field has been set. +func (o *RmaDetailObject) HasDeviceUUID() bool { + if o != nil && !IsNil(o.DeviceUUID) { + return true + } + + return false +} + +// SetDeviceUUID gets a reference to the given string and assigns it to the DeviceUUID field. +func (o *RmaDetailObject) SetDeviceUUID(v string) { + o.DeviceUUID = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *RmaDetailObject) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *RmaDetailObject) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *RmaDetailObject) SetVersion(v string) { + o.Version = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RmaDetailObject) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RmaDetailObject) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *RmaDetailObject) SetStatus(v string) { + o.Status = &v +} + +// GetRequestType returns the RequestType field value if set, zero value otherwise. +func (o *RmaDetailObject) GetRequestType() string { + if o == nil || IsNil(o.RequestType) { + var ret string + return ret + } + return *o.RequestType +} + +// GetRequestTypeOk returns a tuple with the RequestType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetRequestTypeOk() (*string, bool) { + if o == nil || IsNil(o.RequestType) { + return nil, false + } + return o.RequestType, true +} + +// HasRequestType returns a boolean if a field has been set. +func (o *RmaDetailObject) HasRequestType() bool { + if o != nil && !IsNil(o.RequestType) { + return true + } + + return false +} + +// SetRequestType gets a reference to the given string and assigns it to the RequestType field. +func (o *RmaDetailObject) SetRequestType(v string) { + o.RequestType = &v +} + +// GetRequestedBy returns the RequestedBy field value if set, zero value otherwise. +func (o *RmaDetailObject) GetRequestedBy() string { + if o == nil || IsNil(o.RequestedBy) { + var ret string + return ret + } + return *o.RequestedBy +} + +// GetRequestedByOk returns a tuple with the RequestedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetRequestedByOk() (*string, bool) { + if o == nil || IsNil(o.RequestedBy) { + return nil, false + } + return o.RequestedBy, true +} + +// HasRequestedBy returns a boolean if a field has been set. +func (o *RmaDetailObject) HasRequestedBy() bool { + if o != nil && !IsNil(o.RequestedBy) { + return true + } + + return false +} + +// SetRequestedBy gets a reference to the given string and assigns it to the RequestedBy field. +func (o *RmaDetailObject) SetRequestedBy(v string) { + o.RequestedBy = &v +} + +// GetRequestedDate returns the RequestedDate field value if set, zero value otherwise. +func (o *RmaDetailObject) GetRequestedDate() string { + if o == nil || IsNil(o.RequestedDate) { + var ret string + return ret + } + return *o.RequestedDate +} + +// GetRequestedDateOk returns a tuple with the RequestedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetRequestedDateOk() (*string, bool) { + if o == nil || IsNil(o.RequestedDate) { + return nil, false + } + return o.RequestedDate, true +} + +// HasRequestedDate returns a boolean if a field has been set. +func (o *RmaDetailObject) HasRequestedDate() bool { + if o != nil && !IsNil(o.RequestedDate) { + return true + } + + return false +} + +// SetRequestedDate gets a reference to the given string and assigns it to the RequestedDate field. +func (o *RmaDetailObject) SetRequestedDate(v string) { + o.RequestedDate = &v +} + +// GetCompletiondDate returns the CompletiondDate field value if set, zero value otherwise. +func (o *RmaDetailObject) GetCompletiondDate() string { + if o == nil || IsNil(o.CompletiondDate) { + var ret string + return ret + } + return *o.CompletiondDate +} + +// GetCompletiondDateOk returns a tuple with the CompletiondDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RmaDetailObject) GetCompletiondDateOk() (*string, bool) { + if o == nil || IsNil(o.CompletiondDate) { + return nil, false + } + return o.CompletiondDate, true +} + +// HasCompletiondDate returns a boolean if a field has been set. +func (o *RmaDetailObject) HasCompletiondDate() bool { + if o != nil && !IsNil(o.CompletiondDate) { + return true + } + + return false +} + +// SetCompletiondDate gets a reference to the given string and assigns it to the CompletiondDate field. +func (o *RmaDetailObject) SetCompletiondDate(v string) { + o.CompletiondDate = &v +} + +func (o RmaDetailObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RmaDetailObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceUUID) { + toSerialize["deviceUUID"] = o.DeviceUUID + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.RequestType) { + toSerialize["requestType"] = o.RequestType + } + if !IsNil(o.RequestedBy) { + toSerialize["requestedBy"] = o.RequestedBy + } + if !IsNil(o.RequestedDate) { + toSerialize["requestedDate"] = o.RequestedDate + } + if !IsNil(o.CompletiondDate) { + toSerialize["completiondDate"] = o.CompletiondDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RmaDetailObject) UnmarshalJSON(data []byte) (err error) { + varRmaDetailObject := _RmaDetailObject{} + + err = json.Unmarshal(data, &varRmaDetailObject) + + if err != nil { + return err + } + + *o = RmaDetailObject(varRmaDetailObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceUUID") + delete(additionalProperties, "version") + delete(additionalProperties, "status") + delete(additionalProperties, "requestType") + delete(additionalProperties, "requestedBy") + delete(additionalProperties, "requestedDate") + delete(additionalProperties, "completiondDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRmaDetailObject struct { + value *RmaDetailObject + isSet bool +} + +func (v NullableRmaDetailObject) Get() *RmaDetailObject { + return v.value +} + +func (v *NullableRmaDetailObject) Set(val *RmaDetailObject) { + v.value = val + v.isSet = true +} + +func (v NullableRmaDetailObject) IsSet() bool { + return v.isSet +} + +func (v *NullableRmaDetailObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRmaDetailObject(val *RmaDetailObject) *NullableRmaDetailObject { + return &NullableRmaDetailObject{value: val, isSet: true} +} + +func (v NullableRmaDetailObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRmaDetailObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_rma_vendor_config.go b/services/networkedgev1/model_rma_vendor_config.go new file mode 100644 index 00000000..56c60331 --- /dev/null +++ b/services/networkedgev1/model_rma_vendor_config.go @@ -0,0 +1,421 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the RMAVendorConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RMAVendorConfig{} + +// RMAVendorConfig struct for RMAVendorConfig +type RMAVendorConfig struct { + // Physical location within the Viptela overlay network, such as a branch office, or a campus (relevant only for Cisco SD-WANs) + SiteId *string `json:"siteId,omitempty"` + // IP assigned to CSRSDWAN router and vSmart controller (relevant only for Cisco SD-WANs) + SystemIpAddress *string `json:"systemIpAddress,omitempty"` + // License key. Mandatory for some devices. + LicenseKey *string `json:"licenseKey,omitempty"` + // License secret (Secret key). Mandatory for some devices. + LicenseSecret *string `json:"licenseSecret,omitempty"` + // For Fortinet devices, this is the System IP address. + Controller1 *string `json:"controller1,omitempty"` + // The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. Should be at least 6 characters long and must include an uppercase letter and a number. This field may be required for some vendors. + AdminPassword *string `json:"adminPassword,omitempty"` + // Available on VMware Orchestration Portal + ActivationKey *string `json:"activationKey,omitempty"` + // Mandatory for Zscaler devices + ProvisioningKey *string `json:"provisioningKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RMAVendorConfig RMAVendorConfig + +// NewRMAVendorConfig instantiates a new RMAVendorConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRMAVendorConfig() *RMAVendorConfig { + this := RMAVendorConfig{} + return &this +} + +// NewRMAVendorConfigWithDefaults instantiates a new RMAVendorConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRMAVendorConfigWithDefaults() *RMAVendorConfig { + this := RMAVendorConfig{} + return &this +} + +// GetSiteId returns the SiteId field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetSiteId() string { + if o == nil || IsNil(o.SiteId) { + var ret string + return ret + } + return *o.SiteId +} + +// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetSiteIdOk() (*string, bool) { + if o == nil || IsNil(o.SiteId) { + return nil, false + } + return o.SiteId, true +} + +// HasSiteId returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasSiteId() bool { + if o != nil && !IsNil(o.SiteId) { + return true + } + + return false +} + +// SetSiteId gets a reference to the given string and assigns it to the SiteId field. +func (o *RMAVendorConfig) SetSiteId(v string) { + o.SiteId = &v +} + +// GetSystemIpAddress returns the SystemIpAddress field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetSystemIpAddress() string { + if o == nil || IsNil(o.SystemIpAddress) { + var ret string + return ret + } + return *o.SystemIpAddress +} + +// GetSystemIpAddressOk returns a tuple with the SystemIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetSystemIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SystemIpAddress) { + return nil, false + } + return o.SystemIpAddress, true +} + +// HasSystemIpAddress returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasSystemIpAddress() bool { + if o != nil && !IsNil(o.SystemIpAddress) { + return true + } + + return false +} + +// SetSystemIpAddress gets a reference to the given string and assigns it to the SystemIpAddress field. +func (o *RMAVendorConfig) SetSystemIpAddress(v string) { + o.SystemIpAddress = &v +} + +// GetLicenseKey returns the LicenseKey field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetLicenseKey() string { + if o == nil || IsNil(o.LicenseKey) { + var ret string + return ret + } + return *o.LicenseKey +} + +// GetLicenseKeyOk returns a tuple with the LicenseKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetLicenseKeyOk() (*string, bool) { + if o == nil || IsNil(o.LicenseKey) { + return nil, false + } + return o.LicenseKey, true +} + +// HasLicenseKey returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasLicenseKey() bool { + if o != nil && !IsNil(o.LicenseKey) { + return true + } + + return false +} + +// SetLicenseKey gets a reference to the given string and assigns it to the LicenseKey field. +func (o *RMAVendorConfig) SetLicenseKey(v string) { + o.LicenseKey = &v +} + +// GetLicenseSecret returns the LicenseSecret field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetLicenseSecret() string { + if o == nil || IsNil(o.LicenseSecret) { + var ret string + return ret + } + return *o.LicenseSecret +} + +// GetLicenseSecretOk returns a tuple with the LicenseSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetLicenseSecretOk() (*string, bool) { + if o == nil || IsNil(o.LicenseSecret) { + return nil, false + } + return o.LicenseSecret, true +} + +// HasLicenseSecret returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasLicenseSecret() bool { + if o != nil && !IsNil(o.LicenseSecret) { + return true + } + + return false +} + +// SetLicenseSecret gets a reference to the given string and assigns it to the LicenseSecret field. +func (o *RMAVendorConfig) SetLicenseSecret(v string) { + o.LicenseSecret = &v +} + +// GetController1 returns the Controller1 field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetController1() string { + if o == nil || IsNil(o.Controller1) { + var ret string + return ret + } + return *o.Controller1 +} + +// GetController1Ok returns a tuple with the Controller1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetController1Ok() (*string, bool) { + if o == nil || IsNil(o.Controller1) { + return nil, false + } + return o.Controller1, true +} + +// HasController1 returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasController1() bool { + if o != nil && !IsNil(o.Controller1) { + return true + } + + return false +} + +// SetController1 gets a reference to the given string and assigns it to the Controller1 field. +func (o *RMAVendorConfig) SetController1(v string) { + o.Controller1 = &v +} + +// GetAdminPassword returns the AdminPassword field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetAdminPassword() string { + if o == nil || IsNil(o.AdminPassword) { + var ret string + return ret + } + return *o.AdminPassword +} + +// GetAdminPasswordOk returns a tuple with the AdminPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetAdminPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AdminPassword) { + return nil, false + } + return o.AdminPassword, true +} + +// HasAdminPassword returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasAdminPassword() bool { + if o != nil && !IsNil(o.AdminPassword) { + return true + } + + return false +} + +// SetAdminPassword gets a reference to the given string and assigns it to the AdminPassword field. +func (o *RMAVendorConfig) SetAdminPassword(v string) { + o.AdminPassword = &v +} + +// GetActivationKey returns the ActivationKey field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetActivationKey() string { + if o == nil || IsNil(o.ActivationKey) { + var ret string + return ret + } + return *o.ActivationKey +} + +// GetActivationKeyOk returns a tuple with the ActivationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetActivationKeyOk() (*string, bool) { + if o == nil || IsNil(o.ActivationKey) { + return nil, false + } + return o.ActivationKey, true +} + +// HasActivationKey returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasActivationKey() bool { + if o != nil && !IsNil(o.ActivationKey) { + return true + } + + return false +} + +// SetActivationKey gets a reference to the given string and assigns it to the ActivationKey field. +func (o *RMAVendorConfig) SetActivationKey(v string) { + o.ActivationKey = &v +} + +// GetProvisioningKey returns the ProvisioningKey field value if set, zero value otherwise. +func (o *RMAVendorConfig) GetProvisioningKey() string { + if o == nil || IsNil(o.ProvisioningKey) { + var ret string + return ret + } + return *o.ProvisioningKey +} + +// GetProvisioningKeyOk returns a tuple with the ProvisioningKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RMAVendorConfig) GetProvisioningKeyOk() (*string, bool) { + if o == nil || IsNil(o.ProvisioningKey) { + return nil, false + } + return o.ProvisioningKey, true +} + +// HasProvisioningKey returns a boolean if a field has been set. +func (o *RMAVendorConfig) HasProvisioningKey() bool { + if o != nil && !IsNil(o.ProvisioningKey) { + return true + } + + return false +} + +// SetProvisioningKey gets a reference to the given string and assigns it to the ProvisioningKey field. +func (o *RMAVendorConfig) SetProvisioningKey(v string) { + o.ProvisioningKey = &v +} + +func (o RMAVendorConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RMAVendorConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SiteId) { + toSerialize["siteId"] = o.SiteId + } + if !IsNil(o.SystemIpAddress) { + toSerialize["systemIpAddress"] = o.SystemIpAddress + } + if !IsNil(o.LicenseKey) { + toSerialize["licenseKey"] = o.LicenseKey + } + if !IsNil(o.LicenseSecret) { + toSerialize["licenseSecret"] = o.LicenseSecret + } + if !IsNil(o.Controller1) { + toSerialize["controller1"] = o.Controller1 + } + if !IsNil(o.AdminPassword) { + toSerialize["adminPassword"] = o.AdminPassword + } + if !IsNil(o.ActivationKey) { + toSerialize["activationKey"] = o.ActivationKey + } + if !IsNil(o.ProvisioningKey) { + toSerialize["provisioningKey"] = o.ProvisioningKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RMAVendorConfig) UnmarshalJSON(data []byte) (err error) { + varRMAVendorConfig := _RMAVendorConfig{} + + err = json.Unmarshal(data, &varRMAVendorConfig) + + if err != nil { + return err + } + + *o = RMAVendorConfig(varRMAVendorConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "siteId") + delete(additionalProperties, "systemIpAddress") + delete(additionalProperties, "licenseKey") + delete(additionalProperties, "licenseSecret") + delete(additionalProperties, "controller1") + delete(additionalProperties, "adminPassword") + delete(additionalProperties, "activationKey") + delete(additionalProperties, "provisioningKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRMAVendorConfig struct { + value *RMAVendorConfig + isSet bool +} + +func (v NullableRMAVendorConfig) Get() *RMAVendorConfig { + return v.value +} + +func (v *NullableRMAVendorConfig) Set(val *RMAVendorConfig) { + v.value = val + v.isSet = true +} + +func (v NullableRMAVendorConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableRMAVendorConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRMAVendorConfig(val *RMAVendorConfig) *NullableRMAVendorConfig { + return &NullableRMAVendorConfig{value: val, isSet: true} +} + +func (v NullableRMAVendorConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRMAVendorConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_secondary_device_delete_request.go b/services/networkedgev1/model_secondary_device_delete_request.go new file mode 100644 index 00000000..d4a51941 --- /dev/null +++ b/services/networkedgev1/model_secondary_device_delete_request.go @@ -0,0 +1,155 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SecondaryDeviceDeleteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecondaryDeviceDeleteRequest{} + +// SecondaryDeviceDeleteRequest struct for SecondaryDeviceDeleteRequest +type SecondaryDeviceDeleteRequest struct { + // Object that holds the secondary deactivation key for a redundant device. If you do not provide a deactivation key for a Palo Alto BYOL device, you must contact your vendor to release the license. + DeactivationKey *string `json:"deactivationKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SecondaryDeviceDeleteRequest SecondaryDeviceDeleteRequest + +// NewSecondaryDeviceDeleteRequest instantiates a new SecondaryDeviceDeleteRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecondaryDeviceDeleteRequest() *SecondaryDeviceDeleteRequest { + this := SecondaryDeviceDeleteRequest{} + return &this +} + +// NewSecondaryDeviceDeleteRequestWithDefaults instantiates a new SecondaryDeviceDeleteRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecondaryDeviceDeleteRequestWithDefaults() *SecondaryDeviceDeleteRequest { + this := SecondaryDeviceDeleteRequest{} + return &this +} + +// GetDeactivationKey returns the DeactivationKey field value if set, zero value otherwise. +func (o *SecondaryDeviceDeleteRequest) GetDeactivationKey() string { + if o == nil || IsNil(o.DeactivationKey) { + var ret string + return ret + } + return *o.DeactivationKey +} + +// GetDeactivationKeyOk returns a tuple with the DeactivationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecondaryDeviceDeleteRequest) GetDeactivationKeyOk() (*string, bool) { + if o == nil || IsNil(o.DeactivationKey) { + return nil, false + } + return o.DeactivationKey, true +} + +// HasDeactivationKey returns a boolean if a field has been set. +func (o *SecondaryDeviceDeleteRequest) HasDeactivationKey() bool { + if o != nil && !IsNil(o.DeactivationKey) { + return true + } + + return false +} + +// SetDeactivationKey gets a reference to the given string and assigns it to the DeactivationKey field. +func (o *SecondaryDeviceDeleteRequest) SetDeactivationKey(v string) { + o.DeactivationKey = &v +} + +func (o SecondaryDeviceDeleteRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecondaryDeviceDeleteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeactivationKey) { + toSerialize["deactivationKey"] = o.DeactivationKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SecondaryDeviceDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varSecondaryDeviceDeleteRequest := _SecondaryDeviceDeleteRequest{} + + err = json.Unmarshal(data, &varSecondaryDeviceDeleteRequest) + + if err != nil { + return err + } + + *o = SecondaryDeviceDeleteRequest(varSecondaryDeviceDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deactivationKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSecondaryDeviceDeleteRequest struct { + value *SecondaryDeviceDeleteRequest + isSet bool +} + +func (v NullableSecondaryDeviceDeleteRequest) Get() *SecondaryDeviceDeleteRequest { + return v.value +} + +func (v *NullableSecondaryDeviceDeleteRequest) Set(val *SecondaryDeviceDeleteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecondaryDeviceDeleteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecondaryDeviceDeleteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecondaryDeviceDeleteRequest(val *SecondaryDeviceDeleteRequest) *NullableSecondaryDeviceDeleteRequest { + return &NullableSecondaryDeviceDeleteRequest{value: val, isSet: true} +} + +func (v NullableSecondaryDeviceDeleteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecondaryDeviceDeleteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_self_configured_config.go b/services/networkedgev1/model_self_configured_config.go new file mode 100644 index 00000000..b809f480 --- /dev/null +++ b/services/networkedgev1/model_self_configured_config.go @@ -0,0 +1,340 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SelfConfiguredConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SelfConfiguredConfig{} + +// SelfConfiguredConfig struct for SelfConfiguredConfig +type SelfConfiguredConfig struct { + // Whether the device is EQUINIX-CONFIGURED or SELF-MANAGED. + Type *string `json:"type,omitempty"` + LicenseOptions *SelfConfiguredConfigLicenseOptions `json:"licenseOptions,omitempty"` + SupportedServices []SupportedServicesConfig `json:"supportedServices,omitempty"` + AdditionalFields []AdditionalFieldsConfig `json:"additionalFields,omitempty"` + DefaultAcls *DefaultAclsConfig `json:"defaultAcls,omitempty"` + ClusteringDetails *ClusteringDetails `json:"clusteringDetails,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SelfConfiguredConfig SelfConfiguredConfig + +// NewSelfConfiguredConfig instantiates a new SelfConfiguredConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSelfConfiguredConfig() *SelfConfiguredConfig { + this := SelfConfiguredConfig{} + return &this +} + +// NewSelfConfiguredConfigWithDefaults instantiates a new SelfConfiguredConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSelfConfiguredConfigWithDefaults() *SelfConfiguredConfig { + this := SelfConfiguredConfig{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *SelfConfiguredConfig) SetType(v string) { + o.Type = &v +} + +// GetLicenseOptions returns the LicenseOptions field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetLicenseOptions() SelfConfiguredConfigLicenseOptions { + if o == nil || IsNil(o.LicenseOptions) { + var ret SelfConfiguredConfigLicenseOptions + return ret + } + return *o.LicenseOptions +} + +// GetLicenseOptionsOk returns a tuple with the LicenseOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetLicenseOptionsOk() (*SelfConfiguredConfigLicenseOptions, bool) { + if o == nil || IsNil(o.LicenseOptions) { + return nil, false + } + return o.LicenseOptions, true +} + +// HasLicenseOptions returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasLicenseOptions() bool { + if o != nil && !IsNil(o.LicenseOptions) { + return true + } + + return false +} + +// SetLicenseOptions gets a reference to the given SelfConfiguredConfigLicenseOptions and assigns it to the LicenseOptions field. +func (o *SelfConfiguredConfig) SetLicenseOptions(v SelfConfiguredConfigLicenseOptions) { + o.LicenseOptions = &v +} + +// GetSupportedServices returns the SupportedServices field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetSupportedServices() []SupportedServicesConfig { + if o == nil || IsNil(o.SupportedServices) { + var ret []SupportedServicesConfig + return ret + } + return o.SupportedServices +} + +// GetSupportedServicesOk returns a tuple with the SupportedServices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetSupportedServicesOk() ([]SupportedServicesConfig, bool) { + if o == nil || IsNil(o.SupportedServices) { + return nil, false + } + return o.SupportedServices, true +} + +// HasSupportedServices returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasSupportedServices() bool { + if o != nil && !IsNil(o.SupportedServices) { + return true + } + + return false +} + +// SetSupportedServices gets a reference to the given []SupportedServicesConfig and assigns it to the SupportedServices field. +func (o *SelfConfiguredConfig) SetSupportedServices(v []SupportedServicesConfig) { + o.SupportedServices = v +} + +// GetAdditionalFields returns the AdditionalFields field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetAdditionalFields() []AdditionalFieldsConfig { + if o == nil || IsNil(o.AdditionalFields) { + var ret []AdditionalFieldsConfig + return ret + } + return o.AdditionalFields +} + +// GetAdditionalFieldsOk returns a tuple with the AdditionalFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetAdditionalFieldsOk() ([]AdditionalFieldsConfig, bool) { + if o == nil || IsNil(o.AdditionalFields) { + return nil, false + } + return o.AdditionalFields, true +} + +// HasAdditionalFields returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasAdditionalFields() bool { + if o != nil && !IsNil(o.AdditionalFields) { + return true + } + + return false +} + +// SetAdditionalFields gets a reference to the given []AdditionalFieldsConfig and assigns it to the AdditionalFields field. +func (o *SelfConfiguredConfig) SetAdditionalFields(v []AdditionalFieldsConfig) { + o.AdditionalFields = v +} + +// GetDefaultAcls returns the DefaultAcls field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetDefaultAcls() DefaultAclsConfig { + if o == nil || IsNil(o.DefaultAcls) { + var ret DefaultAclsConfig + return ret + } + return *o.DefaultAcls +} + +// GetDefaultAclsOk returns a tuple with the DefaultAcls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetDefaultAclsOk() (*DefaultAclsConfig, bool) { + if o == nil || IsNil(o.DefaultAcls) { + return nil, false + } + return o.DefaultAcls, true +} + +// HasDefaultAcls returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasDefaultAcls() bool { + if o != nil && !IsNil(o.DefaultAcls) { + return true + } + + return false +} + +// SetDefaultAcls gets a reference to the given DefaultAclsConfig and assigns it to the DefaultAcls field. +func (o *SelfConfiguredConfig) SetDefaultAcls(v DefaultAclsConfig) { + o.DefaultAcls = &v +} + +// GetClusteringDetails returns the ClusteringDetails field value if set, zero value otherwise. +func (o *SelfConfiguredConfig) GetClusteringDetails() ClusteringDetails { + if o == nil || IsNil(o.ClusteringDetails) { + var ret ClusteringDetails + return ret + } + return *o.ClusteringDetails +} + +// GetClusteringDetailsOk returns a tuple with the ClusteringDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfig) GetClusteringDetailsOk() (*ClusteringDetails, bool) { + if o == nil || IsNil(o.ClusteringDetails) { + return nil, false + } + return o.ClusteringDetails, true +} + +// HasClusteringDetails returns a boolean if a field has been set. +func (o *SelfConfiguredConfig) HasClusteringDetails() bool { + if o != nil && !IsNil(o.ClusteringDetails) { + return true + } + + return false +} + +// SetClusteringDetails gets a reference to the given ClusteringDetails and assigns it to the ClusteringDetails field. +func (o *SelfConfiguredConfig) SetClusteringDetails(v ClusteringDetails) { + o.ClusteringDetails = &v +} + +func (o SelfConfiguredConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SelfConfiguredConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.LicenseOptions) { + toSerialize["licenseOptions"] = o.LicenseOptions + } + if !IsNil(o.SupportedServices) { + toSerialize["supportedServices"] = o.SupportedServices + } + if !IsNil(o.AdditionalFields) { + toSerialize["additionalFields"] = o.AdditionalFields + } + if !IsNil(o.DefaultAcls) { + toSerialize["defaultAcls"] = o.DefaultAcls + } + if !IsNil(o.ClusteringDetails) { + toSerialize["clusteringDetails"] = o.ClusteringDetails + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SelfConfiguredConfig) UnmarshalJSON(data []byte) (err error) { + varSelfConfiguredConfig := _SelfConfiguredConfig{} + + err = json.Unmarshal(data, &varSelfConfiguredConfig) + + if err != nil { + return err + } + + *o = SelfConfiguredConfig(varSelfConfiguredConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "licenseOptions") + delete(additionalProperties, "supportedServices") + delete(additionalProperties, "additionalFields") + delete(additionalProperties, "defaultAcls") + delete(additionalProperties, "clusteringDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSelfConfiguredConfig struct { + value *SelfConfiguredConfig + isSet bool +} + +func (v NullableSelfConfiguredConfig) Get() *SelfConfiguredConfig { + return v.value +} + +func (v *NullableSelfConfiguredConfig) Set(val *SelfConfiguredConfig) { + v.value = val + v.isSet = true +} + +func (v NullableSelfConfiguredConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfConfiguredConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfConfiguredConfig(val *SelfConfiguredConfig) *NullableSelfConfiguredConfig { + return &NullableSelfConfiguredConfig{value: val, isSet: true} +} + +func (v NullableSelfConfiguredConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfConfiguredConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_self_configured_config_license_options.go b/services/networkedgev1/model_self_configured_config_license_options.go new file mode 100644 index 00000000..f35c34e1 --- /dev/null +++ b/services/networkedgev1/model_self_configured_config_license_options.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SelfConfiguredConfigLicenseOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SelfConfiguredConfigLicenseOptions{} + +// SelfConfiguredConfigLicenseOptions struct for SelfConfiguredConfigLicenseOptions +type SelfConfiguredConfigLicenseOptions struct { + SUB map[string]interface{} `json:"SUB,omitempty"` + BYOL map[string]interface{} `json:"BYOL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SelfConfiguredConfigLicenseOptions SelfConfiguredConfigLicenseOptions + +// NewSelfConfiguredConfigLicenseOptions instantiates a new SelfConfiguredConfigLicenseOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSelfConfiguredConfigLicenseOptions() *SelfConfiguredConfigLicenseOptions { + this := SelfConfiguredConfigLicenseOptions{} + return &this +} + +// NewSelfConfiguredConfigLicenseOptionsWithDefaults instantiates a new SelfConfiguredConfigLicenseOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSelfConfiguredConfigLicenseOptionsWithDefaults() *SelfConfiguredConfigLicenseOptions { + this := SelfConfiguredConfigLicenseOptions{} + return &this +} + +// GetSUB returns the SUB field value if set, zero value otherwise. +func (o *SelfConfiguredConfigLicenseOptions) GetSUB() map[string]interface{} { + if o == nil || IsNil(o.SUB) { + var ret map[string]interface{} + return ret + } + return o.SUB +} + +// GetSUBOk returns a tuple with the SUB field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfigLicenseOptions) GetSUBOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.SUB) { + return map[string]interface{}{}, false + } + return o.SUB, true +} + +// HasSUB returns a boolean if a field has been set. +func (o *SelfConfiguredConfigLicenseOptions) HasSUB() bool { + if o != nil && !IsNil(o.SUB) { + return true + } + + return false +} + +// SetSUB gets a reference to the given map[string]interface{} and assigns it to the SUB field. +func (o *SelfConfiguredConfigLicenseOptions) SetSUB(v map[string]interface{}) { + o.SUB = v +} + +// GetBYOL returns the BYOL field value if set, zero value otherwise. +func (o *SelfConfiguredConfigLicenseOptions) GetBYOL() map[string]interface{} { + if o == nil || IsNil(o.BYOL) { + var ret map[string]interface{} + return ret + } + return o.BYOL +} + +// GetBYOLOk returns a tuple with the BYOL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfConfiguredConfigLicenseOptions) GetBYOLOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.BYOL) { + return map[string]interface{}{}, false + } + return o.BYOL, true +} + +// HasBYOL returns a boolean if a field has been set. +func (o *SelfConfiguredConfigLicenseOptions) HasBYOL() bool { + if o != nil && !IsNil(o.BYOL) { + return true + } + + return false +} + +// SetBYOL gets a reference to the given map[string]interface{} and assigns it to the BYOL field. +func (o *SelfConfiguredConfigLicenseOptions) SetBYOL(v map[string]interface{}) { + o.BYOL = v +} + +func (o SelfConfiguredConfigLicenseOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SelfConfiguredConfigLicenseOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SUB) { + toSerialize["SUB"] = o.SUB + } + if !IsNil(o.BYOL) { + toSerialize["BYOL"] = o.BYOL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SelfConfiguredConfigLicenseOptions) UnmarshalJSON(data []byte) (err error) { + varSelfConfiguredConfigLicenseOptions := _SelfConfiguredConfigLicenseOptions{} + + err = json.Unmarshal(data, &varSelfConfiguredConfigLicenseOptions) + + if err != nil { + return err + } + + *o = SelfConfiguredConfigLicenseOptions(varSelfConfiguredConfigLicenseOptions) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "SUB") + delete(additionalProperties, "BYOL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSelfConfiguredConfigLicenseOptions struct { + value *SelfConfiguredConfigLicenseOptions + isSet bool +} + +func (v NullableSelfConfiguredConfigLicenseOptions) Get() *SelfConfiguredConfigLicenseOptions { + return v.value +} + +func (v *NullableSelfConfiguredConfigLicenseOptions) Set(val *SelfConfiguredConfigLicenseOptions) { + v.value = val + v.isSet = true +} + +func (v NullableSelfConfiguredConfigLicenseOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfConfiguredConfigLicenseOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfConfiguredConfigLicenseOptions(val *SelfConfiguredConfigLicenseOptions) *NullableSelfConfiguredConfigLicenseOptions { + return &NullableSelfConfiguredConfigLicenseOptions{value: val, isSet: true} +} + +func (v NullableSelfConfiguredConfigLicenseOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfConfiguredConfigLicenseOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_service_info.go b/services/networkedgev1/model_service_info.go new file mode 100644 index 00000000..4d6b7987 --- /dev/null +++ b/services/networkedgev1/model_service_info.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ServiceInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceInfo{} + +// ServiceInfo struct for ServiceInfo +type ServiceInfo struct { + // The unique ID of the service. + ServiceId *string `json:"serviceId,omitempty"` + // The name of the service. + ServiceName *string `json:"serviceName,omitempty"` + // The operation you must perform to restore the backup successfully. UNSUPPORTED- You cannot restore this backup. DELETE- You need to delete this service to restore the backup. NONE- You do not need to change anything to restore the backup. + OperationNeededToPerform *string `json:"operationNeededToPerform,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ServiceInfo ServiceInfo + +// NewServiceInfo instantiates a new ServiceInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceInfo() *ServiceInfo { + this := ServiceInfo{} + return &this +} + +// NewServiceInfoWithDefaults instantiates a new ServiceInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceInfoWithDefaults() *ServiceInfo { + this := ServiceInfo{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ServiceInfo) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInfo) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ServiceInfo) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ServiceInfo) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetServiceName returns the ServiceName field value if set, zero value otherwise. +func (o *ServiceInfo) GetServiceName() string { + if o == nil || IsNil(o.ServiceName) { + var ret string + return ret + } + return *o.ServiceName +} + +// GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInfo) GetServiceNameOk() (*string, bool) { + if o == nil || IsNil(o.ServiceName) { + return nil, false + } + return o.ServiceName, true +} + +// HasServiceName returns a boolean if a field has been set. +func (o *ServiceInfo) HasServiceName() bool { + if o != nil && !IsNil(o.ServiceName) { + return true + } + + return false +} + +// SetServiceName gets a reference to the given string and assigns it to the ServiceName field. +func (o *ServiceInfo) SetServiceName(v string) { + o.ServiceName = &v +} + +// GetOperationNeededToPerform returns the OperationNeededToPerform field value if set, zero value otherwise. +func (o *ServiceInfo) GetOperationNeededToPerform() string { + if o == nil || IsNil(o.OperationNeededToPerform) { + var ret string + return ret + } + return *o.OperationNeededToPerform +} + +// GetOperationNeededToPerformOk returns a tuple with the OperationNeededToPerform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInfo) GetOperationNeededToPerformOk() (*string, bool) { + if o == nil || IsNil(o.OperationNeededToPerform) { + return nil, false + } + return o.OperationNeededToPerform, true +} + +// HasOperationNeededToPerform returns a boolean if a field has been set. +func (o *ServiceInfo) HasOperationNeededToPerform() bool { + if o != nil && !IsNil(o.OperationNeededToPerform) { + return true + } + + return false +} + +// SetOperationNeededToPerform gets a reference to the given string and assigns it to the OperationNeededToPerform field. +func (o *ServiceInfo) SetOperationNeededToPerform(v string) { + o.OperationNeededToPerform = &v +} + +func (o ServiceInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceId) { + toSerialize["serviceId"] = o.ServiceId + } + if !IsNil(o.ServiceName) { + toSerialize["serviceName"] = o.ServiceName + } + if !IsNil(o.OperationNeededToPerform) { + toSerialize["operationNeededToPerform"] = o.OperationNeededToPerform + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ServiceInfo) UnmarshalJSON(data []byte) (err error) { + varServiceInfo := _ServiceInfo{} + + err = json.Unmarshal(data, &varServiceInfo) + + if err != nil { + return err + } + + *o = ServiceInfo(varServiceInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "serviceId") + delete(additionalProperties, "serviceName") + delete(additionalProperties, "operationNeededToPerform") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableServiceInfo struct { + value *ServiceInfo + isSet bool +} + +func (v NullableServiceInfo) Get() *ServiceInfo { + return v.value +} + +func (v *NullableServiceInfo) Set(val *ServiceInfo) { + v.value = val + v.isSet = true +} + +func (v NullableServiceInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceInfo(val *ServiceInfo) *NullableServiceInfo { + return &NullableServiceInfo{value: val, isSet: true} +} + +func (v NullableServiceInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_software_package.go b/services/networkedgev1/model_software_package.go new file mode 100644 index 00000000..b0d99fd3 --- /dev/null +++ b/services/networkedgev1/model_software_package.go @@ -0,0 +1,268 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SoftwarePackage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SoftwarePackage{} + +// SoftwarePackage struct for SoftwarePackage +type SoftwarePackage struct { + // Software package name + Name *string `json:"name,omitempty"` + // Software package code + PackageCode *string `json:"packageCode,omitempty"` + // Software package license type + LicenseType *string `json:"licenseType,omitempty"` + VersionDetails []VersionDetails `json:"versionDetails,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SoftwarePackage SoftwarePackage + +// NewSoftwarePackage instantiates a new SoftwarePackage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSoftwarePackage() *SoftwarePackage { + this := SoftwarePackage{} + return &this +} + +// NewSoftwarePackageWithDefaults instantiates a new SoftwarePackage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSoftwarePackageWithDefaults() *SoftwarePackage { + this := SoftwarePackage{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SoftwarePackage) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SoftwarePackage) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SoftwarePackage) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SoftwarePackage) SetName(v string) { + o.Name = &v +} + +// GetPackageCode returns the PackageCode field value if set, zero value otherwise. +func (o *SoftwarePackage) GetPackageCode() string { + if o == nil || IsNil(o.PackageCode) { + var ret string + return ret + } + return *o.PackageCode +} + +// GetPackageCodeOk returns a tuple with the PackageCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SoftwarePackage) GetPackageCodeOk() (*string, bool) { + if o == nil || IsNil(o.PackageCode) { + return nil, false + } + return o.PackageCode, true +} + +// HasPackageCode returns a boolean if a field has been set. +func (o *SoftwarePackage) HasPackageCode() bool { + if o != nil && !IsNil(o.PackageCode) { + return true + } + + return false +} + +// SetPackageCode gets a reference to the given string and assigns it to the PackageCode field. +func (o *SoftwarePackage) SetPackageCode(v string) { + o.PackageCode = &v +} + +// GetLicenseType returns the LicenseType field value if set, zero value otherwise. +func (o *SoftwarePackage) GetLicenseType() string { + if o == nil || IsNil(o.LicenseType) { + var ret string + return ret + } + return *o.LicenseType +} + +// GetLicenseTypeOk returns a tuple with the LicenseType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SoftwarePackage) GetLicenseTypeOk() (*string, bool) { + if o == nil || IsNil(o.LicenseType) { + return nil, false + } + return o.LicenseType, true +} + +// HasLicenseType returns a boolean if a field has been set. +func (o *SoftwarePackage) HasLicenseType() bool { + if o != nil && !IsNil(o.LicenseType) { + return true + } + + return false +} + +// SetLicenseType gets a reference to the given string and assigns it to the LicenseType field. +func (o *SoftwarePackage) SetLicenseType(v string) { + o.LicenseType = &v +} + +// GetVersionDetails returns the VersionDetails field value if set, zero value otherwise. +func (o *SoftwarePackage) GetVersionDetails() []VersionDetails { + if o == nil || IsNil(o.VersionDetails) { + var ret []VersionDetails + return ret + } + return o.VersionDetails +} + +// GetVersionDetailsOk returns a tuple with the VersionDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SoftwarePackage) GetVersionDetailsOk() ([]VersionDetails, bool) { + if o == nil || IsNil(o.VersionDetails) { + return nil, false + } + return o.VersionDetails, true +} + +// HasVersionDetails returns a boolean if a field has been set. +func (o *SoftwarePackage) HasVersionDetails() bool { + if o != nil && !IsNil(o.VersionDetails) { + return true + } + + return false +} + +// SetVersionDetails gets a reference to the given []VersionDetails and assigns it to the VersionDetails field. +func (o *SoftwarePackage) SetVersionDetails(v []VersionDetails) { + o.VersionDetails = v +} + +func (o SoftwarePackage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SoftwarePackage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.PackageCode) { + toSerialize["packageCode"] = o.PackageCode + } + if !IsNil(o.LicenseType) { + toSerialize["licenseType"] = o.LicenseType + } + if !IsNil(o.VersionDetails) { + toSerialize["versionDetails"] = o.VersionDetails + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SoftwarePackage) UnmarshalJSON(data []byte) (err error) { + varSoftwarePackage := _SoftwarePackage{} + + err = json.Unmarshal(data, &varSoftwarePackage) + + if err != nil { + return err + } + + *o = SoftwarePackage(varSoftwarePackage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "packageCode") + delete(additionalProperties, "licenseType") + delete(additionalProperties, "versionDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSoftwarePackage struct { + value *SoftwarePackage + isSet bool +} + +func (v NullableSoftwarePackage) Get() *SoftwarePackage { + return v.value +} + +func (v *NullableSoftwarePackage) Set(val *SoftwarePackage) { + v.value = val + v.isSet = true +} + +func (v NullableSoftwarePackage) IsSet() bool { + return v.isSet +} + +func (v *NullableSoftwarePackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSoftwarePackage(val *SoftwarePackage) *NullableSoftwarePackage { + return &NullableSoftwarePackage{value: val, isSet: true} +} + +func (v NullableSoftwarePackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSoftwarePackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_speed_band.go b/services/networkedgev1/model_speed_band.go new file mode 100644 index 00000000..47b53b1e --- /dev/null +++ b/services/networkedgev1/model_speed_band.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SpeedBand type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpeedBand{} + +// SpeedBand struct for SpeedBand +type SpeedBand struct { + Speed *float64 `json:"speed,omitempty"` + Unit *string `json:"unit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SpeedBand SpeedBand + +// NewSpeedBand instantiates a new SpeedBand object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpeedBand() *SpeedBand { + this := SpeedBand{} + return &this +} + +// NewSpeedBandWithDefaults instantiates a new SpeedBand object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpeedBandWithDefaults() *SpeedBand { + this := SpeedBand{} + return &this +} + +// GetSpeed returns the Speed field value if set, zero value otherwise. +func (o *SpeedBand) GetSpeed() float64 { + if o == nil || IsNil(o.Speed) { + var ret float64 + return ret + } + return *o.Speed +} + +// GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpeedBand) GetSpeedOk() (*float64, bool) { + if o == nil || IsNil(o.Speed) { + return nil, false + } + return o.Speed, true +} + +// HasSpeed returns a boolean if a field has been set. +func (o *SpeedBand) HasSpeed() bool { + if o != nil && !IsNil(o.Speed) { + return true + } + + return false +} + +// SetSpeed gets a reference to the given float64 and assigns it to the Speed field. +func (o *SpeedBand) SetSpeed(v float64) { + o.Speed = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *SpeedBand) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpeedBand) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *SpeedBand) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *SpeedBand) SetUnit(v string) { + o.Unit = &v +} + +func (o SpeedBand) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpeedBand) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Speed) { + toSerialize["speed"] = o.Speed + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SpeedBand) UnmarshalJSON(data []byte) (err error) { + varSpeedBand := _SpeedBand{} + + err = json.Unmarshal(data, &varSpeedBand) + + if err != nil { + return err + } + + *o = SpeedBand(varSpeedBand) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "speed") + delete(additionalProperties, "unit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSpeedBand struct { + value *SpeedBand + isSet bool +} + +func (v NullableSpeedBand) Get() *SpeedBand { + return v.value +} + +func (v *NullableSpeedBand) Set(val *SpeedBand) { + v.value = val + v.isSet = true +} + +func (v NullableSpeedBand) IsSet() bool { + return v.isSet +} + +func (v *NullableSpeedBand) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpeedBand(val *SpeedBand) *NullableSpeedBand { + return &NullableSpeedBand{value: val, isSet: true} +} + +func (v NullableSpeedBand) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpeedBand) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_create_request.go b/services/networkedgev1/model_ssh_user_create_request.go new file mode 100644 index 00000000..8d191dbe --- /dev/null +++ b/services/networkedgev1/model_ssh_user_create_request.go @@ -0,0 +1,228 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the SshUserCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserCreateRequest{} + +// SshUserCreateRequest struct for SshUserCreateRequest +type SshUserCreateRequest struct { + // At least 3 and upto a maximum of 32 alphanumeric characters. The only special characters allowed are - _ + Username string `json:"username"` + // At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ + Password string `json:"password"` + // The unique Id of a virtual device. + DeviceUuid string `json:"deviceUuid"` + AdditionalProperties map[string]interface{} +} + +type _SshUserCreateRequest SshUserCreateRequest + +// NewSshUserCreateRequest instantiates a new SshUserCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserCreateRequest(username string, password string, deviceUuid string) *SshUserCreateRequest { + this := SshUserCreateRequest{} + this.Username = username + this.Password = password + this.DeviceUuid = deviceUuid + return &this +} + +// NewSshUserCreateRequestWithDefaults instantiates a new SshUserCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserCreateRequestWithDefaults() *SshUserCreateRequest { + this := SshUserCreateRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *SshUserCreateRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *SshUserCreateRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *SshUserCreateRequest) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *SshUserCreateRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *SshUserCreateRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *SshUserCreateRequest) SetPassword(v string) { + o.Password = v +} + +// GetDeviceUuid returns the DeviceUuid field value +func (o *SshUserCreateRequest) GetDeviceUuid() string { + if o == nil { + var ret string + return ret + } + + return o.DeviceUuid +} + +// GetDeviceUuidOk returns a tuple with the DeviceUuid field value +// and a boolean to check if the value has been set. +func (o *SshUserCreateRequest) GetDeviceUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeviceUuid, true +} + +// SetDeviceUuid sets field value +func (o *SshUserCreateRequest) SetDeviceUuid(v string) { + o.DeviceUuid = v +} + +func (o SshUserCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + toSerialize["deviceUuid"] = o.DeviceUuid + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserCreateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + "deviceUuid", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSshUserCreateRequest := _SshUserCreateRequest{} + + err = json.Unmarshal(data, &varSshUserCreateRequest) + + if err != nil { + return err + } + + *o = SshUserCreateRequest(varSshUserCreateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "deviceUuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserCreateRequest struct { + value *SshUserCreateRequest + isSet bool +} + +func (v NullableSshUserCreateRequest) Get() *SshUserCreateRequest { + return v.value +} + +func (v *NullableSshUserCreateRequest) Set(val *SshUserCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserCreateRequest(val *SshUserCreateRequest) *NullableSshUserCreateRequest { + return &NullableSshUserCreateRequest{value: val, isSet: true} +} + +func (v NullableSshUserCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_create_response.go b/services/networkedgev1/model_ssh_user_create_response.go new file mode 100644 index 00000000..6e06a049 --- /dev/null +++ b/services/networkedgev1/model_ssh_user_create_response.go @@ -0,0 +1,155 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SshUserCreateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserCreateResponse{} + +// SshUserCreateResponse struct for SshUserCreateResponse +type SshUserCreateResponse struct { + // The ID of the newly created SSH user. + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUserCreateResponse SshUserCreateResponse + +// NewSshUserCreateResponse instantiates a new SshUserCreateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserCreateResponse() *SshUserCreateResponse { + this := SshUserCreateResponse{} + return &this +} + +// NewSshUserCreateResponseWithDefaults instantiates a new SshUserCreateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserCreateResponseWithDefaults() *SshUserCreateResponse { + this := SshUserCreateResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *SshUserCreateResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserCreateResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *SshUserCreateResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *SshUserCreateResponse) SetUuid(v string) { + o.Uuid = &v +} + +func (o SshUserCreateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserCreateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserCreateResponse) UnmarshalJSON(data []byte) (err error) { + varSshUserCreateResponse := _SshUserCreateResponse{} + + err = json.Unmarshal(data, &varSshUserCreateResponse) + + if err != nil { + return err + } + + *o = SshUserCreateResponse(varSshUserCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserCreateResponse struct { + value *SshUserCreateResponse + isSet bool +} + +func (v NullableSshUserCreateResponse) Get() *SshUserCreateResponse { + return v.value +} + +func (v *NullableSshUserCreateResponse) Set(val *SshUserCreateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserCreateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserCreateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserCreateResponse(val *SshUserCreateResponse) *NullableSshUserCreateResponse { + return &NullableSshUserCreateResponse{value: val, isSet: true} +} + +func (v NullableSshUserCreateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserCreateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_info_dissociate_response.go b/services/networkedgev1/model_ssh_user_info_dissociate_response.go new file mode 100644 index 00000000..47b4ace5 --- /dev/null +++ b/services/networkedgev1/model_ssh_user_info_dissociate_response.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SshUserInfoDissociateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserInfoDissociateResponse{} + +// SshUserInfoDissociateResponse struct for SshUserInfoDissociateResponse +type SshUserInfoDissociateResponse struct { + // true = the ssh user has been deleted since there are no more devices associated with this user; false = the ssh user has not been deleted since associations with devices exist. + SshUserDeleted *bool `json:"sshUserDeleted,omitempty"` + SshUserToDeviceAssociationDeleted *bool `json:"sshUserToDeviceAssociationDeleted,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUserInfoDissociateResponse SshUserInfoDissociateResponse + +// NewSshUserInfoDissociateResponse instantiates a new SshUserInfoDissociateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserInfoDissociateResponse() *SshUserInfoDissociateResponse { + this := SshUserInfoDissociateResponse{} + return &this +} + +// NewSshUserInfoDissociateResponseWithDefaults instantiates a new SshUserInfoDissociateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserInfoDissociateResponseWithDefaults() *SshUserInfoDissociateResponse { + this := SshUserInfoDissociateResponse{} + return &this +} + +// GetSshUserDeleted returns the SshUserDeleted field value if set, zero value otherwise. +func (o *SshUserInfoDissociateResponse) GetSshUserDeleted() bool { + if o == nil || IsNil(o.SshUserDeleted) { + var ret bool + return ret + } + return *o.SshUserDeleted +} + +// GetSshUserDeletedOk returns a tuple with the SshUserDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoDissociateResponse) GetSshUserDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.SshUserDeleted) { + return nil, false + } + return o.SshUserDeleted, true +} + +// HasSshUserDeleted returns a boolean if a field has been set. +func (o *SshUserInfoDissociateResponse) HasSshUserDeleted() bool { + if o != nil && !IsNil(o.SshUserDeleted) { + return true + } + + return false +} + +// SetSshUserDeleted gets a reference to the given bool and assigns it to the SshUserDeleted field. +func (o *SshUserInfoDissociateResponse) SetSshUserDeleted(v bool) { + o.SshUserDeleted = &v +} + +// GetSshUserToDeviceAssociationDeleted returns the SshUserToDeviceAssociationDeleted field value if set, zero value otherwise. +func (o *SshUserInfoDissociateResponse) GetSshUserToDeviceAssociationDeleted() bool { + if o == nil || IsNil(o.SshUserToDeviceAssociationDeleted) { + var ret bool + return ret + } + return *o.SshUserToDeviceAssociationDeleted +} + +// GetSshUserToDeviceAssociationDeletedOk returns a tuple with the SshUserToDeviceAssociationDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoDissociateResponse) GetSshUserToDeviceAssociationDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.SshUserToDeviceAssociationDeleted) { + return nil, false + } + return o.SshUserToDeviceAssociationDeleted, true +} + +// HasSshUserToDeviceAssociationDeleted returns a boolean if a field has been set. +func (o *SshUserInfoDissociateResponse) HasSshUserToDeviceAssociationDeleted() bool { + if o != nil && !IsNil(o.SshUserToDeviceAssociationDeleted) { + return true + } + + return false +} + +// SetSshUserToDeviceAssociationDeleted gets a reference to the given bool and assigns it to the SshUserToDeviceAssociationDeleted field. +func (o *SshUserInfoDissociateResponse) SetSshUserToDeviceAssociationDeleted(v bool) { + o.SshUserToDeviceAssociationDeleted = &v +} + +func (o SshUserInfoDissociateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserInfoDissociateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SshUserDeleted) { + toSerialize["sshUserDeleted"] = o.SshUserDeleted + } + if !IsNil(o.SshUserToDeviceAssociationDeleted) { + toSerialize["sshUserToDeviceAssociationDeleted"] = o.SshUserToDeviceAssociationDeleted + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserInfoDissociateResponse) UnmarshalJSON(data []byte) (err error) { + varSshUserInfoDissociateResponse := _SshUserInfoDissociateResponse{} + + err = json.Unmarshal(data, &varSshUserInfoDissociateResponse) + + if err != nil { + return err + } + + *o = SshUserInfoDissociateResponse(varSshUserInfoDissociateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "sshUserDeleted") + delete(additionalProperties, "sshUserToDeviceAssociationDeleted") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserInfoDissociateResponse struct { + value *SshUserInfoDissociateResponse + isSet bool +} + +func (v NullableSshUserInfoDissociateResponse) Get() *SshUserInfoDissociateResponse { + return v.value +} + +func (v *NullableSshUserInfoDissociateResponse) Set(val *SshUserInfoDissociateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserInfoDissociateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserInfoDissociateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserInfoDissociateResponse(val *SshUserInfoDissociateResponse) *NullableSshUserInfoDissociateResponse { + return &NullableSshUserInfoDissociateResponse{value: val, isSet: true} +} + +func (v NullableSshUserInfoDissociateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserInfoDissociateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_info_verbose.go b/services/networkedgev1/model_ssh_user_info_verbose.go new file mode 100644 index 00000000..3dd29d2e --- /dev/null +++ b/services/networkedgev1/model_ssh_user_info_verbose.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SshUserInfoVerbose type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserInfoVerbose{} + +// SshUserInfoVerbose struct for SshUserInfoVerbose +type SshUserInfoVerbose struct { + // The unique Id of the ssh user. + Uuid *string `json:"uuid,omitempty"` + // The user name of the ssh user. + Username *string `json:"username,omitempty"` + // The devices associated with this ssh user. + DeviceUuids []string `json:"deviceUuids,omitempty"` + // Status and error messages corresponding to the metros where the user exists + MetroStatusMap *map[string]MetroStatus `json:"metroStatusMap,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUserInfoVerbose SshUserInfoVerbose + +// NewSshUserInfoVerbose instantiates a new SshUserInfoVerbose object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserInfoVerbose() *SshUserInfoVerbose { + this := SshUserInfoVerbose{} + return &this +} + +// NewSshUserInfoVerboseWithDefaults instantiates a new SshUserInfoVerbose object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserInfoVerboseWithDefaults() *SshUserInfoVerbose { + this := SshUserInfoVerbose{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *SshUserInfoVerbose) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoVerbose) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *SshUserInfoVerbose) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *SshUserInfoVerbose) SetUuid(v string) { + o.Uuid = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SshUserInfoVerbose) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoVerbose) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SshUserInfoVerbose) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SshUserInfoVerbose) SetUsername(v string) { + o.Username = &v +} + +// GetDeviceUuids returns the DeviceUuids field value if set, zero value otherwise. +func (o *SshUserInfoVerbose) GetDeviceUuids() []string { + if o == nil || IsNil(o.DeviceUuids) { + var ret []string + return ret + } + return o.DeviceUuids +} + +// GetDeviceUuidsOk returns a tuple with the DeviceUuids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoVerbose) GetDeviceUuidsOk() ([]string, bool) { + if o == nil || IsNil(o.DeviceUuids) { + return nil, false + } + return o.DeviceUuids, true +} + +// HasDeviceUuids returns a boolean if a field has been set. +func (o *SshUserInfoVerbose) HasDeviceUuids() bool { + if o != nil && !IsNil(o.DeviceUuids) { + return true + } + + return false +} + +// SetDeviceUuids gets a reference to the given []string and assigns it to the DeviceUuids field. +func (o *SshUserInfoVerbose) SetDeviceUuids(v []string) { + o.DeviceUuids = v +} + +// GetMetroStatusMap returns the MetroStatusMap field value if set, zero value otherwise. +func (o *SshUserInfoVerbose) GetMetroStatusMap() map[string]MetroStatus { + if o == nil || IsNil(o.MetroStatusMap) { + var ret map[string]MetroStatus + return ret + } + return *o.MetroStatusMap +} + +// GetMetroStatusMapOk returns a tuple with the MetroStatusMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserInfoVerbose) GetMetroStatusMapOk() (*map[string]MetroStatus, bool) { + if o == nil || IsNil(o.MetroStatusMap) { + return nil, false + } + return o.MetroStatusMap, true +} + +// HasMetroStatusMap returns a boolean if a field has been set. +func (o *SshUserInfoVerbose) HasMetroStatusMap() bool { + if o != nil && !IsNil(o.MetroStatusMap) { + return true + } + + return false +} + +// SetMetroStatusMap gets a reference to the given map[string]MetroStatus and assigns it to the MetroStatusMap field. +func (o *SshUserInfoVerbose) SetMetroStatusMap(v map[string]MetroStatus) { + o.MetroStatusMap = &v +} + +func (o SshUserInfoVerbose) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserInfoVerbose) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.DeviceUuids) { + toSerialize["deviceUuids"] = o.DeviceUuids + } + if !IsNil(o.MetroStatusMap) { + toSerialize["metroStatusMap"] = o.MetroStatusMap + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserInfoVerbose) UnmarshalJSON(data []byte) (err error) { + varSshUserInfoVerbose := _SshUserInfoVerbose{} + + err = json.Unmarshal(data, &varSshUserInfoVerbose) + + if err != nil { + return err + } + + *o = SshUserInfoVerbose(varSshUserInfoVerbose) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "username") + delete(additionalProperties, "deviceUuids") + delete(additionalProperties, "metroStatusMap") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserInfoVerbose struct { + value *SshUserInfoVerbose + isSet bool +} + +func (v NullableSshUserInfoVerbose) Get() *SshUserInfoVerbose { + return v.value +} + +func (v *NullableSshUserInfoVerbose) Set(val *SshUserInfoVerbose) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserInfoVerbose) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserInfoVerbose) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserInfoVerbose(val *SshUserInfoVerbose) *NullableSshUserInfoVerbose { + return &NullableSshUserInfoVerbose{value: val, isSet: true} +} + +func (v NullableSshUserInfoVerbose) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserInfoVerbose) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_operation_request.go b/services/networkedgev1/model_ssh_user_operation_request.go new file mode 100644 index 00000000..48b90a5b --- /dev/null +++ b/services/networkedgev1/model_ssh_user_operation_request.go @@ -0,0 +1,281 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the SshUserOperationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserOperationRequest{} + +// SshUserOperationRequest struct for SshUserOperationRequest +type SshUserOperationRequest struct { + // Required for DELETE operation. + SshUserUuid *string `json:"sshUserUuid,omitempty"` + Action SshUserOperationRequestAction `json:"action"` + // SSH User name + SshUsername *string `json:"sshUsername,omitempty"` + // SSH Password + SshPassword *string `json:"sshPassword,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUserOperationRequest SshUserOperationRequest + +// NewSshUserOperationRequest instantiates a new SshUserOperationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserOperationRequest(action SshUserOperationRequestAction) *SshUserOperationRequest { + this := SshUserOperationRequest{} + this.Action = action + return &this +} + +// NewSshUserOperationRequestWithDefaults instantiates a new SshUserOperationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserOperationRequestWithDefaults() *SshUserOperationRequest { + this := SshUserOperationRequest{} + return &this +} + +// GetSshUserUuid returns the SshUserUuid field value if set, zero value otherwise. +func (o *SshUserOperationRequest) GetSshUserUuid() string { + if o == nil || IsNil(o.SshUserUuid) { + var ret string + return ret + } + return *o.SshUserUuid +} + +// GetSshUserUuidOk returns a tuple with the SshUserUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserOperationRequest) GetSshUserUuidOk() (*string, bool) { + if o == nil || IsNil(o.SshUserUuid) { + return nil, false + } + return o.SshUserUuid, true +} + +// HasSshUserUuid returns a boolean if a field has been set. +func (o *SshUserOperationRequest) HasSshUserUuid() bool { + if o != nil && !IsNil(o.SshUserUuid) { + return true + } + + return false +} + +// SetSshUserUuid gets a reference to the given string and assigns it to the SshUserUuid field. +func (o *SshUserOperationRequest) SetSshUserUuid(v string) { + o.SshUserUuid = &v +} + +// GetAction returns the Action field value +func (o *SshUserOperationRequest) GetAction() SshUserOperationRequestAction { + if o == nil { + var ret SshUserOperationRequestAction + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *SshUserOperationRequest) GetActionOk() (*SshUserOperationRequestAction, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *SshUserOperationRequest) SetAction(v SshUserOperationRequestAction) { + o.Action = v +} + +// GetSshUsername returns the SshUsername field value if set, zero value otherwise. +func (o *SshUserOperationRequest) GetSshUsername() string { + if o == nil || IsNil(o.SshUsername) { + var ret string + return ret + } + return *o.SshUsername +} + +// GetSshUsernameOk returns a tuple with the SshUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserOperationRequest) GetSshUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SshUsername) { + return nil, false + } + return o.SshUsername, true +} + +// HasSshUsername returns a boolean if a field has been set. +func (o *SshUserOperationRequest) HasSshUsername() bool { + if o != nil && !IsNil(o.SshUsername) { + return true + } + + return false +} + +// SetSshUsername gets a reference to the given string and assigns it to the SshUsername field. +func (o *SshUserOperationRequest) SetSshUsername(v string) { + o.SshUsername = &v +} + +// GetSshPassword returns the SshPassword field value if set, zero value otherwise. +func (o *SshUserOperationRequest) GetSshPassword() string { + if o == nil || IsNil(o.SshPassword) { + var ret string + return ret + } + return *o.SshPassword +} + +// GetSshPasswordOk returns a tuple with the SshPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserOperationRequest) GetSshPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SshPassword) { + return nil, false + } + return o.SshPassword, true +} + +// HasSshPassword returns a boolean if a field has been set. +func (o *SshUserOperationRequest) HasSshPassword() bool { + if o != nil && !IsNil(o.SshPassword) { + return true + } + + return false +} + +// SetSshPassword gets a reference to the given string and assigns it to the SshPassword field. +func (o *SshUserOperationRequest) SetSshPassword(v string) { + o.SshPassword = &v +} + +func (o SshUserOperationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserOperationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SshUserUuid) { + toSerialize["sshUserUuid"] = o.SshUserUuid + } + toSerialize["action"] = o.Action + if !IsNil(o.SshUsername) { + toSerialize["sshUsername"] = o.SshUsername + } + if !IsNil(o.SshPassword) { + toSerialize["sshPassword"] = o.SshPassword + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserOperationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSshUserOperationRequest := _SshUserOperationRequest{} + + err = json.Unmarshal(data, &varSshUserOperationRequest) + + if err != nil { + return err + } + + *o = SshUserOperationRequest(varSshUserOperationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "sshUserUuid") + delete(additionalProperties, "action") + delete(additionalProperties, "sshUsername") + delete(additionalProperties, "sshPassword") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserOperationRequest struct { + value *SshUserOperationRequest + isSet bool +} + +func (v NullableSshUserOperationRequest) Get() *SshUserOperationRequest { + return v.value +} + +func (v *NullableSshUserOperationRequest) Set(val *SshUserOperationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserOperationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserOperationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserOperationRequest(val *SshUserOperationRequest) *NullableSshUserOperationRequest { + return &NullableSshUserOperationRequest{value: val, isSet: true} +} + +func (v NullableSshUserOperationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserOperationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_operation_request_action.go b/services/networkedgev1/model_ssh_user_operation_request_action.go new file mode 100644 index 00000000..ceb58268 --- /dev/null +++ b/services/networkedgev1/model_ssh_user_operation_request_action.go @@ -0,0 +1,113 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// SshUserOperationRequestAction SSH operation to be performed +type SshUserOperationRequestAction string + +// List of SshUserOperationRequest_action +const ( + SSHUSEROPERATIONREQUESTACTION_CREATE SshUserOperationRequestAction = "CREATE" + SSHUSEROPERATIONREQUESTACTION_DELETE SshUserOperationRequestAction = "DELETE" + SSHUSEROPERATIONREQUESTACTION_REUSE SshUserOperationRequestAction = "REUSE" +) + +// All allowed values of SshUserOperationRequestAction enum +var AllowedSshUserOperationRequestActionEnumValues = []SshUserOperationRequestAction{ + "CREATE", + "DELETE", + "REUSE", +} + +func (v *SshUserOperationRequestAction) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SshUserOperationRequestAction(value) + for _, existing := range AllowedSshUserOperationRequestActionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SshUserOperationRequestAction", value) +} + +// NewSshUserOperationRequestActionFromValue returns a pointer to a valid SshUserOperationRequestAction +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSshUserOperationRequestActionFromValue(v string) (*SshUserOperationRequestAction, error) { + ev := SshUserOperationRequestAction(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SshUserOperationRequestAction: valid values are %v", v, AllowedSshUserOperationRequestActionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SshUserOperationRequestAction) IsValid() bool { + for _, existing := range AllowedSshUserOperationRequestActionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SshUserOperationRequest_action value +func (v SshUserOperationRequestAction) Ptr() *SshUserOperationRequestAction { + return &v +} + +type NullableSshUserOperationRequestAction struct { + value *SshUserOperationRequestAction + isSet bool +} + +func (v NullableSshUserOperationRequestAction) Get() *SshUserOperationRequestAction { + return v.value +} + +func (v *NullableSshUserOperationRequestAction) Set(val *SshUserOperationRequestAction) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserOperationRequestAction) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserOperationRequestAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserOperationRequestAction(val *SshUserOperationRequestAction) *NullableSshUserOperationRequestAction { + return &NullableSshUserOperationRequestAction{value: val, isSet: true} +} + +func (v NullableSshUserOperationRequestAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserOperationRequestAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_page_response.go b/services/networkedgev1/model_ssh_user_page_response.go new file mode 100644 index 00000000..5170853e --- /dev/null +++ b/services/networkedgev1/model_ssh_user_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SshUserPageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserPageResponse{} + +// SshUserPageResponse struct for SshUserPageResponse +type SshUserPageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []SshUserInfoVerbose `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUserPageResponse SshUserPageResponse + +// NewSshUserPageResponse instantiates a new SshUserPageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserPageResponse() *SshUserPageResponse { + this := SshUserPageResponse{} + return &this +} + +// NewSshUserPageResponseWithDefaults instantiates a new SshUserPageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserPageResponseWithDefaults() *SshUserPageResponse { + this := SshUserPageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *SshUserPageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserPageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *SshUserPageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *SshUserPageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *SshUserPageResponse) GetData() []SshUserInfoVerbose { + if o == nil || IsNil(o.Data) { + var ret []SshUserInfoVerbose + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUserPageResponse) GetDataOk() ([]SshUserInfoVerbose, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *SshUserPageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SshUserInfoVerbose and assigns it to the Data field. +func (o *SshUserPageResponse) SetData(v []SshUserInfoVerbose) { + o.Data = v +} + +func (o SshUserPageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserPageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserPageResponse) UnmarshalJSON(data []byte) (err error) { + varSshUserPageResponse := _SshUserPageResponse{} + + err = json.Unmarshal(data, &varSshUserPageResponse) + + if err != nil { + return err + } + + *o = SshUserPageResponse(varSshUserPageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserPageResponse struct { + value *SshUserPageResponse + isSet bool +} + +func (v NullableSshUserPageResponse) Get() *SshUserPageResponse { + return v.value +} + +func (v *NullableSshUserPageResponse) Set(val *SshUserPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserPageResponse(val *SshUserPageResponse) *NullableSshUserPageResponse { + return &NullableSshUserPageResponse{value: val, isSet: true} +} + +func (v NullableSshUserPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_user_update_request.go b/services/networkedgev1/model_ssh_user_update_request.go new file mode 100644 index 00000000..c726e113 --- /dev/null +++ b/services/networkedgev1/model_ssh_user_update_request.go @@ -0,0 +1,168 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the SshUserUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUserUpdateRequest{} + +// SshUserUpdateRequest struct for SshUserUpdateRequest +type SshUserUpdateRequest struct { + // At least 6 and upto a maximum of 12 alphanumeric characters. The only special characters allowed are - _ $ @ + Password string `json:"password"` + AdditionalProperties map[string]interface{} +} + +type _SshUserUpdateRequest SshUserUpdateRequest + +// NewSshUserUpdateRequest instantiates a new SshUserUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUserUpdateRequest(password string) *SshUserUpdateRequest { + this := SshUserUpdateRequest{} + this.Password = password + return &this +} + +// NewSshUserUpdateRequestWithDefaults instantiates a new SshUserUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUserUpdateRequestWithDefaults() *SshUserUpdateRequest { + this := SshUserUpdateRequest{} + return &this +} + +// GetPassword returns the Password field value +func (o *SshUserUpdateRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *SshUserUpdateRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *SshUserUpdateRequest) SetPassword(v string) { + o.Password = v +} + +func (o SshUserUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUserUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["password"] = o.Password + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUserUpdateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSshUserUpdateRequest := _SshUserUpdateRequest{} + + err = json.Unmarshal(data, &varSshUserUpdateRequest) + + if err != nil { + return err + } + + *o = SshUserUpdateRequest(varSshUserUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUserUpdateRequest struct { + value *SshUserUpdateRequest + isSet bool +} + +func (v NullableSshUserUpdateRequest) Get() *SshUserUpdateRequest { + return v.value +} + +func (v *NullableSshUserUpdateRequest) Set(val *SshUserUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSshUserUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUserUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUserUpdateRequest(val *SshUserUpdateRequest) *NullableSshUserUpdateRequest { + return &NullableSshUserUpdateRequest{value: val, isSet: true} +} + +func (v NullableSshUserUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUserUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_ssh_users.go b/services/networkedgev1/model_ssh_users.go new file mode 100644 index 00000000..2112b639 --- /dev/null +++ b/services/networkedgev1/model_ssh_users.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SshUsers type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SshUsers{} + +// SshUsers struct for SshUsers +type SshUsers struct { + // sshUsername. This should be minimum 3 and maximum 32 characters and include alphanumeric characters, dash, and underscore. + SshUsername *string `json:"sshUsername,omitempty"` + // sshPassword + SshPassword *string `json:"sshPassword,omitempty"` + // sshUserUuid + SshUserUuid *string `json:"sshUserUuid,omitempty"` + // action + Action *string `json:"action,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SshUsers SshUsers + +// NewSshUsers instantiates a new SshUsers object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSshUsers() *SshUsers { + this := SshUsers{} + return &this +} + +// NewSshUsersWithDefaults instantiates a new SshUsers object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSshUsersWithDefaults() *SshUsers { + this := SshUsers{} + return &this +} + +// GetSshUsername returns the SshUsername field value if set, zero value otherwise. +func (o *SshUsers) GetSshUsername() string { + if o == nil || IsNil(o.SshUsername) { + var ret string + return ret + } + return *o.SshUsername +} + +// GetSshUsernameOk returns a tuple with the SshUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUsers) GetSshUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SshUsername) { + return nil, false + } + return o.SshUsername, true +} + +// HasSshUsername returns a boolean if a field has been set. +func (o *SshUsers) HasSshUsername() bool { + if o != nil && !IsNil(o.SshUsername) { + return true + } + + return false +} + +// SetSshUsername gets a reference to the given string and assigns it to the SshUsername field. +func (o *SshUsers) SetSshUsername(v string) { + o.SshUsername = &v +} + +// GetSshPassword returns the SshPassword field value if set, zero value otherwise. +func (o *SshUsers) GetSshPassword() string { + if o == nil || IsNil(o.SshPassword) { + var ret string + return ret + } + return *o.SshPassword +} + +// GetSshPasswordOk returns a tuple with the SshPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUsers) GetSshPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SshPassword) { + return nil, false + } + return o.SshPassword, true +} + +// HasSshPassword returns a boolean if a field has been set. +func (o *SshUsers) HasSshPassword() bool { + if o != nil && !IsNil(o.SshPassword) { + return true + } + + return false +} + +// SetSshPassword gets a reference to the given string and assigns it to the SshPassword field. +func (o *SshUsers) SetSshPassword(v string) { + o.SshPassword = &v +} + +// GetSshUserUuid returns the SshUserUuid field value if set, zero value otherwise. +func (o *SshUsers) GetSshUserUuid() string { + if o == nil || IsNil(o.SshUserUuid) { + var ret string + return ret + } + return *o.SshUserUuid +} + +// GetSshUserUuidOk returns a tuple with the SshUserUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUsers) GetSshUserUuidOk() (*string, bool) { + if o == nil || IsNil(o.SshUserUuid) { + return nil, false + } + return o.SshUserUuid, true +} + +// HasSshUserUuid returns a boolean if a field has been set. +func (o *SshUsers) HasSshUserUuid() bool { + if o != nil && !IsNil(o.SshUserUuid) { + return true + } + + return false +} + +// SetSshUserUuid gets a reference to the given string and assigns it to the SshUserUuid field. +func (o *SshUsers) SetSshUserUuid(v string) { + o.SshUserUuid = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *SshUsers) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SshUsers) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *SshUsers) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *SshUsers) SetAction(v string) { + o.Action = &v +} + +func (o SshUsers) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SshUsers) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SshUsername) { + toSerialize["sshUsername"] = o.SshUsername + } + if !IsNil(o.SshPassword) { + toSerialize["sshPassword"] = o.SshPassword + } + if !IsNil(o.SshUserUuid) { + toSerialize["sshUserUuid"] = o.SshUserUuid + } + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SshUsers) UnmarshalJSON(data []byte) (err error) { + varSshUsers := _SshUsers{} + + err = json.Unmarshal(data, &varSshUsers) + + if err != nil { + return err + } + + *o = SshUsers(varSshUsers) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "sshUsername") + delete(additionalProperties, "sshPassword") + delete(additionalProperties, "sshUserUuid") + delete(additionalProperties, "action") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSshUsers struct { + value *SshUsers + isSet bool +} + +func (v NullableSshUsers) Get() *SshUsers { + return v.value +} + +func (v *NullableSshUsers) Set(val *SshUsers) { + v.value = val + v.isSet = true +} + +func (v NullableSshUsers) IsSet() bool { + return v.isSet +} + +func (v *NullableSshUsers) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSshUsers(val *SshUsers) *NullableSshUsers { + return &NullableSshUsers{value: val, isSet: true} +} + +func (v NullableSshUsers) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSshUsers) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_stack_trace_element.go b/services/networkedgev1/model_stack_trace_element.go new file mode 100644 index 00000000..0ccb771f --- /dev/null +++ b/services/networkedgev1/model_stack_trace_element.go @@ -0,0 +1,302 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the StackTraceElement type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StackTraceElement{} + +// StackTraceElement struct for StackTraceElement +type StackTraceElement struct { + ClassName *string `json:"className,omitempty"` + FileName *string `json:"fileName,omitempty"` + LineNumber *int32 `json:"lineNumber,omitempty"` + MethodName *string `json:"methodName,omitempty"` + NativeMethod *bool `json:"nativeMethod,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StackTraceElement StackTraceElement + +// NewStackTraceElement instantiates a new StackTraceElement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStackTraceElement() *StackTraceElement { + this := StackTraceElement{} + return &this +} + +// NewStackTraceElementWithDefaults instantiates a new StackTraceElement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStackTraceElementWithDefaults() *StackTraceElement { + this := StackTraceElement{} + return &this +} + +// GetClassName returns the ClassName field value if set, zero value otherwise. +func (o *StackTraceElement) GetClassName() string { + if o == nil || IsNil(o.ClassName) { + var ret string + return ret + } + return *o.ClassName +} + +// GetClassNameOk returns a tuple with the ClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StackTraceElement) GetClassNameOk() (*string, bool) { + if o == nil || IsNil(o.ClassName) { + return nil, false + } + return o.ClassName, true +} + +// HasClassName returns a boolean if a field has been set. +func (o *StackTraceElement) HasClassName() bool { + if o != nil && !IsNil(o.ClassName) { + return true + } + + return false +} + +// SetClassName gets a reference to the given string and assigns it to the ClassName field. +func (o *StackTraceElement) SetClassName(v string) { + o.ClassName = &v +} + +// GetFileName returns the FileName field value if set, zero value otherwise. +func (o *StackTraceElement) GetFileName() string { + if o == nil || IsNil(o.FileName) { + var ret string + return ret + } + return *o.FileName +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StackTraceElement) GetFileNameOk() (*string, bool) { + if o == nil || IsNil(o.FileName) { + return nil, false + } + return o.FileName, true +} + +// HasFileName returns a boolean if a field has been set. +func (o *StackTraceElement) HasFileName() bool { + if o != nil && !IsNil(o.FileName) { + return true + } + + return false +} + +// SetFileName gets a reference to the given string and assigns it to the FileName field. +func (o *StackTraceElement) SetFileName(v string) { + o.FileName = &v +} + +// GetLineNumber returns the LineNumber field value if set, zero value otherwise. +func (o *StackTraceElement) GetLineNumber() int32 { + if o == nil || IsNil(o.LineNumber) { + var ret int32 + return ret + } + return *o.LineNumber +} + +// GetLineNumberOk returns a tuple with the LineNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StackTraceElement) GetLineNumberOk() (*int32, bool) { + if o == nil || IsNil(o.LineNumber) { + return nil, false + } + return o.LineNumber, true +} + +// HasLineNumber returns a boolean if a field has been set. +func (o *StackTraceElement) HasLineNumber() bool { + if o != nil && !IsNil(o.LineNumber) { + return true + } + + return false +} + +// SetLineNumber gets a reference to the given int32 and assigns it to the LineNumber field. +func (o *StackTraceElement) SetLineNumber(v int32) { + o.LineNumber = &v +} + +// GetMethodName returns the MethodName field value if set, zero value otherwise. +func (o *StackTraceElement) GetMethodName() string { + if o == nil || IsNil(o.MethodName) { + var ret string + return ret + } + return *o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StackTraceElement) GetMethodNameOk() (*string, bool) { + if o == nil || IsNil(o.MethodName) { + return nil, false + } + return o.MethodName, true +} + +// HasMethodName returns a boolean if a field has been set. +func (o *StackTraceElement) HasMethodName() bool { + if o != nil && !IsNil(o.MethodName) { + return true + } + + return false +} + +// SetMethodName gets a reference to the given string and assigns it to the MethodName field. +func (o *StackTraceElement) SetMethodName(v string) { + o.MethodName = &v +} + +// GetNativeMethod returns the NativeMethod field value if set, zero value otherwise. +func (o *StackTraceElement) GetNativeMethod() bool { + if o == nil || IsNil(o.NativeMethod) { + var ret bool + return ret + } + return *o.NativeMethod +} + +// GetNativeMethodOk returns a tuple with the NativeMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StackTraceElement) GetNativeMethodOk() (*bool, bool) { + if o == nil || IsNil(o.NativeMethod) { + return nil, false + } + return o.NativeMethod, true +} + +// HasNativeMethod returns a boolean if a field has been set. +func (o *StackTraceElement) HasNativeMethod() bool { + if o != nil && !IsNil(o.NativeMethod) { + return true + } + + return false +} + +// SetNativeMethod gets a reference to the given bool and assigns it to the NativeMethod field. +func (o *StackTraceElement) SetNativeMethod(v bool) { + o.NativeMethod = &v +} + +func (o StackTraceElement) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StackTraceElement) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClassName) { + toSerialize["className"] = o.ClassName + } + if !IsNil(o.FileName) { + toSerialize["fileName"] = o.FileName + } + if !IsNil(o.LineNumber) { + toSerialize["lineNumber"] = o.LineNumber + } + if !IsNil(o.MethodName) { + toSerialize["methodName"] = o.MethodName + } + if !IsNil(o.NativeMethod) { + toSerialize["nativeMethod"] = o.NativeMethod + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StackTraceElement) UnmarshalJSON(data []byte) (err error) { + varStackTraceElement := _StackTraceElement{} + + err = json.Unmarshal(data, &varStackTraceElement) + + if err != nil { + return err + } + + *o = StackTraceElement(varStackTraceElement) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "className") + delete(additionalProperties, "fileName") + delete(additionalProperties, "lineNumber") + delete(additionalProperties, "methodName") + delete(additionalProperties, "nativeMethod") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStackTraceElement struct { + value *StackTraceElement + isSet bool +} + +func (v NullableStackTraceElement) Get() *StackTraceElement { + return v.value +} + +func (v *NullableStackTraceElement) Set(val *StackTraceElement) { + v.value = val + v.isSet = true +} + +func (v NullableStackTraceElement) IsSet() bool { + return v.isSet +} + +func (v *NullableStackTraceElement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStackTraceElement(val *StackTraceElement) *NullableStackTraceElement { + return &NullableStackTraceElement{value: val, isSet: true} +} + +func (v NullableStackTraceElement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStackTraceElement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_supported_services_config.go b/services/networkedgev1/model_supported_services_config.go new file mode 100644 index 00000000..cf3e6516 --- /dev/null +++ b/services/networkedgev1/model_supported_services_config.go @@ -0,0 +1,268 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the SupportedServicesConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SupportedServicesConfig{} + +// SupportedServicesConfig struct for SupportedServicesConfig +type SupportedServicesConfig struct { + // The name of supported service. + Name *string `json:"name,omitempty"` + // Whether or not this supported service is a required input at the time of device creation. + Required *bool `json:"required,omitempty"` + PackageCodes []string `json:"packageCodes,omitempty"` + // Whether the service is available for cluster devices. + SupportedForClustering *bool `json:"supportedForClustering,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SupportedServicesConfig SupportedServicesConfig + +// NewSupportedServicesConfig instantiates a new SupportedServicesConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSupportedServicesConfig() *SupportedServicesConfig { + this := SupportedServicesConfig{} + return &this +} + +// NewSupportedServicesConfigWithDefaults instantiates a new SupportedServicesConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSupportedServicesConfigWithDefaults() *SupportedServicesConfig { + this := SupportedServicesConfig{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SupportedServicesConfig) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedServicesConfig) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SupportedServicesConfig) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SupportedServicesConfig) SetName(v string) { + o.Name = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *SupportedServicesConfig) GetRequired() bool { + if o == nil || IsNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedServicesConfig) GetRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *SupportedServicesConfig) HasRequired() bool { + if o != nil && !IsNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *SupportedServicesConfig) SetRequired(v bool) { + o.Required = &v +} + +// GetPackageCodes returns the PackageCodes field value if set, zero value otherwise. +func (o *SupportedServicesConfig) GetPackageCodes() []string { + if o == nil || IsNil(o.PackageCodes) { + var ret []string + return ret + } + return o.PackageCodes +} + +// GetPackageCodesOk returns a tuple with the PackageCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedServicesConfig) GetPackageCodesOk() ([]string, bool) { + if o == nil || IsNil(o.PackageCodes) { + return nil, false + } + return o.PackageCodes, true +} + +// HasPackageCodes returns a boolean if a field has been set. +func (o *SupportedServicesConfig) HasPackageCodes() bool { + if o != nil && !IsNil(o.PackageCodes) { + return true + } + + return false +} + +// SetPackageCodes gets a reference to the given []string and assigns it to the PackageCodes field. +func (o *SupportedServicesConfig) SetPackageCodes(v []string) { + o.PackageCodes = v +} + +// GetSupportedForClustering returns the SupportedForClustering field value if set, zero value otherwise. +func (o *SupportedServicesConfig) GetSupportedForClustering() bool { + if o == nil || IsNil(o.SupportedForClustering) { + var ret bool + return ret + } + return *o.SupportedForClustering +} + +// GetSupportedForClusteringOk returns a tuple with the SupportedForClustering field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedServicesConfig) GetSupportedForClusteringOk() (*bool, bool) { + if o == nil || IsNil(o.SupportedForClustering) { + return nil, false + } + return o.SupportedForClustering, true +} + +// HasSupportedForClustering returns a boolean if a field has been set. +func (o *SupportedServicesConfig) HasSupportedForClustering() bool { + if o != nil && !IsNil(o.SupportedForClustering) { + return true + } + + return false +} + +// SetSupportedForClustering gets a reference to the given bool and assigns it to the SupportedForClustering field. +func (o *SupportedServicesConfig) SetSupportedForClustering(v bool) { + o.SupportedForClustering = &v +} + +func (o SupportedServicesConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SupportedServicesConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.PackageCodes) { + toSerialize["packageCodes"] = o.PackageCodes + } + if !IsNil(o.SupportedForClustering) { + toSerialize["supportedForClustering"] = o.SupportedForClustering + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SupportedServicesConfig) UnmarshalJSON(data []byte) (err error) { + varSupportedServicesConfig := _SupportedServicesConfig{} + + err = json.Unmarshal(data, &varSupportedServicesConfig) + + if err != nil { + return err + } + + *o = SupportedServicesConfig(varSupportedServicesConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "required") + delete(additionalProperties, "packageCodes") + delete(additionalProperties, "supportedForClustering") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSupportedServicesConfig struct { + value *SupportedServicesConfig + isSet bool +} + +func (v NullableSupportedServicesConfig) Get() *SupportedServicesConfig { + return v.value +} + +func (v *NullableSupportedServicesConfig) Set(val *SupportedServicesConfig) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedServicesConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedServicesConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedServicesConfig(val *SupportedServicesConfig) *NullableSupportedServicesConfig { + return &NullableSupportedServicesConfig{value: val, isSet: true} +} + +func (v NullableSupportedServicesConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedServicesConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_throughput.go b/services/networkedgev1/model_throughput.go new file mode 100644 index 00000000..e4530da1 --- /dev/null +++ b/services/networkedgev1/model_throughput.go @@ -0,0 +1,229 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Throughput type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Throughput{} + +// Throughput struct for Throughput +type Throughput struct { + Throughput *int32 `json:"throughput,omitempty"` + ThroughputUnit *string `json:"throughputUnit,omitempty"` + // Metros where the license is available + MetroCodes []string `json:"metroCodes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Throughput Throughput + +// NewThroughput instantiates a new Throughput object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewThroughput() *Throughput { + this := Throughput{} + return &this +} + +// NewThroughputWithDefaults instantiates a new Throughput object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewThroughputWithDefaults() *Throughput { + this := Throughput{} + return &this +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *Throughput) GetThroughput() int32 { + if o == nil || IsNil(o.Throughput) { + var ret int32 + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throughput) GetThroughputOk() (*int32, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *Throughput) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given int32 and assigns it to the Throughput field. +func (o *Throughput) SetThroughput(v int32) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *Throughput) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throughput) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *Throughput) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *Throughput) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetMetroCodes returns the MetroCodes field value if set, zero value otherwise. +func (o *Throughput) GetMetroCodes() []string { + if o == nil || IsNil(o.MetroCodes) { + var ret []string + return ret + } + return o.MetroCodes +} + +// GetMetroCodesOk returns a tuple with the MetroCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throughput) GetMetroCodesOk() ([]string, bool) { + if o == nil || IsNil(o.MetroCodes) { + return nil, false + } + return o.MetroCodes, true +} + +// HasMetroCodes returns a boolean if a field has been set. +func (o *Throughput) HasMetroCodes() bool { + if o != nil && !IsNil(o.MetroCodes) { + return true + } + + return false +} + +// SetMetroCodes gets a reference to the given []string and assigns it to the MetroCodes field. +func (o *Throughput) SetMetroCodes(v []string) { + o.MetroCodes = v +} + +func (o Throughput) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Throughput) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + if !IsNil(o.MetroCodes) { + toSerialize["metroCodes"] = o.MetroCodes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Throughput) UnmarshalJSON(data []byte) (err error) { + varThroughput := _Throughput{} + + err = json.Unmarshal(data, &varThroughput) + + if err != nil { + return err + } + + *o = Throughput(varThroughput) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + delete(additionalProperties, "metroCodes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableThroughput struct { + value *Throughput + isSet bool +} + +func (v NullableThroughput) Get() *Throughput { + return v.value +} + +func (v *NullableThroughput) Set(val *Throughput) { + v.value = val + v.isSet = true +} + +func (v NullableThroughput) IsSet() bool { + return v.isSet +} + +func (v *NullableThroughput) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableThroughput(val *Throughput) *NullableThroughput { + return &NullableThroughput{value: val, isSet: true} +} + +func (v NullableThroughput) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableThroughput) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_throughput_config.go b/services/networkedgev1/model_throughput_config.go new file mode 100644 index 00000000..152325c0 --- /dev/null +++ b/services/networkedgev1/model_throughput_config.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the ThroughputConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ThroughputConfig{} + +// ThroughputConfig struct for ThroughputConfig +type ThroughputConfig struct { + // Whether this throughput is supported. + Supported *bool `json:"supported,omitempty"` + // Throughput. + Throughput *string `json:"throughput,omitempty"` + // Throughput unit. + ThroughputUnit *string `json:"throughputUnit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ThroughputConfig ThroughputConfig + +// NewThroughputConfig instantiates a new ThroughputConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewThroughputConfig() *ThroughputConfig { + this := ThroughputConfig{} + return &this +} + +// NewThroughputConfigWithDefaults instantiates a new ThroughputConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewThroughputConfigWithDefaults() *ThroughputConfig { + this := ThroughputConfig{} + return &this +} + +// GetSupported returns the Supported field value if set, zero value otherwise. +func (o *ThroughputConfig) GetSupported() bool { + if o == nil || IsNil(o.Supported) { + var ret bool + return ret + } + return *o.Supported +} + +// GetSupportedOk returns a tuple with the Supported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ThroughputConfig) GetSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.Supported) { + return nil, false + } + return o.Supported, true +} + +// HasSupported returns a boolean if a field has been set. +func (o *ThroughputConfig) HasSupported() bool { + if o != nil && !IsNil(o.Supported) { + return true + } + + return false +} + +// SetSupported gets a reference to the given bool and assigns it to the Supported field. +func (o *ThroughputConfig) SetSupported(v bool) { + o.Supported = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *ThroughputConfig) GetThroughput() string { + if o == nil || IsNil(o.Throughput) { + var ret string + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ThroughputConfig) GetThroughputOk() (*string, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *ThroughputConfig) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given string and assigns it to the Throughput field. +func (o *ThroughputConfig) SetThroughput(v string) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *ThroughputConfig) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ThroughputConfig) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *ThroughputConfig) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *ThroughputConfig) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +func (o ThroughputConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ThroughputConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Supported) { + toSerialize["supported"] = o.Supported + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ThroughputConfig) UnmarshalJSON(data []byte) (err error) { + varThroughputConfig := _ThroughputConfig{} + + err = json.Unmarshal(data, &varThroughputConfig) + + if err != nil { + return err + } + + *o = ThroughputConfig(varThroughputConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "supported") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableThroughputConfig struct { + value *ThroughputConfig + isSet bool +} + +func (v NullableThroughputConfig) Get() *ThroughputConfig { + return v.value +} + +func (v *NullableThroughputConfig) Set(val *ThroughputConfig) { + v.value = val + v.isSet = true +} + +func (v NullableThroughputConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableThroughputConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableThroughputConfig(val *ThroughputConfig) *NullableThroughputConfig { + return &NullableThroughputConfig{value: val, isSet: true} +} + +func (v NullableThroughputConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableThroughputConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_throwable.go b/services/networkedgev1/model_throwable.go new file mode 100644 index 00000000..8916fa89 --- /dev/null +++ b/services/networkedgev1/model_throwable.go @@ -0,0 +1,302 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the Throwable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Throwable{} + +// Throwable struct for Throwable +type Throwable struct { + Cause *Throwable `json:"cause,omitempty"` + LocalizedMessage *string `json:"localizedMessage,omitempty"` + Message *string `json:"message,omitempty"` + StackTrace []StackTraceElement `json:"stackTrace,omitempty"` + Suppressed []Throwable `json:"suppressed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Throwable Throwable + +// NewThrowable instantiates a new Throwable object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewThrowable() *Throwable { + this := Throwable{} + return &this +} + +// NewThrowableWithDefaults instantiates a new Throwable object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewThrowableWithDefaults() *Throwable { + this := Throwable{} + return &this +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *Throwable) GetCause() Throwable { + if o == nil || IsNil(o.Cause) { + var ret Throwable + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throwable) GetCauseOk() (*Throwable, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *Throwable) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given Throwable and assigns it to the Cause field. +func (o *Throwable) SetCause(v Throwable) { + o.Cause = &v +} + +// GetLocalizedMessage returns the LocalizedMessage field value if set, zero value otherwise. +func (o *Throwable) GetLocalizedMessage() string { + if o == nil || IsNil(o.LocalizedMessage) { + var ret string + return ret + } + return *o.LocalizedMessage +} + +// GetLocalizedMessageOk returns a tuple with the LocalizedMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throwable) GetLocalizedMessageOk() (*string, bool) { + if o == nil || IsNil(o.LocalizedMessage) { + return nil, false + } + return o.LocalizedMessage, true +} + +// HasLocalizedMessage returns a boolean if a field has been set. +func (o *Throwable) HasLocalizedMessage() bool { + if o != nil && !IsNil(o.LocalizedMessage) { + return true + } + + return false +} + +// SetLocalizedMessage gets a reference to the given string and assigns it to the LocalizedMessage field. +func (o *Throwable) SetLocalizedMessage(v string) { + o.LocalizedMessage = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *Throwable) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throwable) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *Throwable) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *Throwable) SetMessage(v string) { + o.Message = &v +} + +// GetStackTrace returns the StackTrace field value if set, zero value otherwise. +func (o *Throwable) GetStackTrace() []StackTraceElement { + if o == nil || IsNil(o.StackTrace) { + var ret []StackTraceElement + return ret + } + return o.StackTrace +} + +// GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throwable) GetStackTraceOk() ([]StackTraceElement, bool) { + if o == nil || IsNil(o.StackTrace) { + return nil, false + } + return o.StackTrace, true +} + +// HasStackTrace returns a boolean if a field has been set. +func (o *Throwable) HasStackTrace() bool { + if o != nil && !IsNil(o.StackTrace) { + return true + } + + return false +} + +// SetStackTrace gets a reference to the given []StackTraceElement and assigns it to the StackTrace field. +func (o *Throwable) SetStackTrace(v []StackTraceElement) { + o.StackTrace = v +} + +// GetSuppressed returns the Suppressed field value if set, zero value otherwise. +func (o *Throwable) GetSuppressed() []Throwable { + if o == nil || IsNil(o.Suppressed) { + var ret []Throwable + return ret + } + return o.Suppressed +} + +// GetSuppressedOk returns a tuple with the Suppressed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Throwable) GetSuppressedOk() ([]Throwable, bool) { + if o == nil || IsNil(o.Suppressed) { + return nil, false + } + return o.Suppressed, true +} + +// HasSuppressed returns a boolean if a field has been set. +func (o *Throwable) HasSuppressed() bool { + if o != nil && !IsNil(o.Suppressed) { + return true + } + + return false +} + +// SetSuppressed gets a reference to the given []Throwable and assigns it to the Suppressed field. +func (o *Throwable) SetSuppressed(v []Throwable) { + o.Suppressed = v +} + +func (o Throwable) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Throwable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.LocalizedMessage) { + toSerialize["localizedMessage"] = o.LocalizedMessage + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StackTrace) { + toSerialize["stackTrace"] = o.StackTrace + } + if !IsNil(o.Suppressed) { + toSerialize["suppressed"] = o.Suppressed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Throwable) UnmarshalJSON(data []byte) (err error) { + varThrowable := _Throwable{} + + err = json.Unmarshal(data, &varThrowable) + + if err != nil { + return err + } + + *o = Throwable(varThrowable) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cause") + delete(additionalProperties, "localizedMessage") + delete(additionalProperties, "message") + delete(additionalProperties, "stackTrace") + delete(additionalProperties, "suppressed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableThrowable struct { + value *Throwable + isSet bool +} + +func (v NullableThrowable) Get() *Throwable { + return v.value +} + +func (v *NullableThrowable) Set(val *Throwable) { + v.value = val + v.isSet = true +} + +func (v NullableThrowable) IsSet() bool { + return v.isSet +} + +func (v *NullableThrowable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableThrowable(val *Throwable) *NullableThrowable { + return &NullableThrowable{value: val, isSet: true} +} + +func (v NullableThrowable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableThrowable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_update_device_acl_template_request.go b/services/networkedgev1/model_update_device_acl_template_request.go new file mode 100644 index 00000000..d1fd6b29 --- /dev/null +++ b/services/networkedgev1/model_update_device_acl_template_request.go @@ -0,0 +1,168 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateDeviceACLTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateDeviceACLTemplateRequest{} + +// UpdateDeviceACLTemplateRequest struct for UpdateDeviceACLTemplateRequest +type UpdateDeviceACLTemplateRequest struct { + // An array of ACLs. + AclDetails []ACLDetails `json:"aclDetails"` + AdditionalProperties map[string]interface{} +} + +type _UpdateDeviceACLTemplateRequest UpdateDeviceACLTemplateRequest + +// NewUpdateDeviceACLTemplateRequest instantiates a new UpdateDeviceACLTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateDeviceACLTemplateRequest(aclDetails []ACLDetails) *UpdateDeviceACLTemplateRequest { + this := UpdateDeviceACLTemplateRequest{} + this.AclDetails = aclDetails + return &this +} + +// NewUpdateDeviceACLTemplateRequestWithDefaults instantiates a new UpdateDeviceACLTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateDeviceACLTemplateRequestWithDefaults() *UpdateDeviceACLTemplateRequest { + this := UpdateDeviceACLTemplateRequest{} + return &this +} + +// GetAclDetails returns the AclDetails field value +func (o *UpdateDeviceACLTemplateRequest) GetAclDetails() []ACLDetails { + if o == nil { + var ret []ACLDetails + return ret + } + + return o.AclDetails +} + +// GetAclDetailsOk returns a tuple with the AclDetails field value +// and a boolean to check if the value has been set. +func (o *UpdateDeviceACLTemplateRequest) GetAclDetailsOk() ([]ACLDetails, bool) { + if o == nil { + return nil, false + } + return o.AclDetails, true +} + +// SetAclDetails sets field value +func (o *UpdateDeviceACLTemplateRequest) SetAclDetails(v []ACLDetails) { + o.AclDetails = v +} + +func (o UpdateDeviceACLTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateDeviceACLTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["aclDetails"] = o.AclDetails + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateDeviceACLTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "aclDetails", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateDeviceACLTemplateRequest := _UpdateDeviceACLTemplateRequest{} + + err = json.Unmarshal(data, &varUpdateDeviceACLTemplateRequest) + + if err != nil { + return err + } + + *o = UpdateDeviceACLTemplateRequest(varUpdateDeviceACLTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "aclDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateDeviceACLTemplateRequest struct { + value *UpdateDeviceACLTemplateRequest + isSet bool +} + +func (v NullableUpdateDeviceACLTemplateRequest) Get() *UpdateDeviceACLTemplateRequest { + return v.value +} + +func (v *NullableUpdateDeviceACLTemplateRequest) Set(val *UpdateDeviceACLTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateDeviceACLTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateDeviceACLTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateDeviceACLTemplateRequest(val *UpdateDeviceACLTemplateRequest) *NullableUpdateDeviceACLTemplateRequest { + return &NullableUpdateDeviceACLTemplateRequest{value: val, isSet: true} +} + +func (v NullableUpdateDeviceACLTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateDeviceACLTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_upgrade_core_request_details.go b/services/networkedgev1/model_upgrade_core_request_details.go new file mode 100644 index 00000000..a3de31ca --- /dev/null +++ b/services/networkedgev1/model_upgrade_core_request_details.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the UpgradeCoreRequestDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpgradeCoreRequestDetails{} + +// UpgradeCoreRequestDetails struct for UpgradeCoreRequestDetails +type UpgradeCoreRequestDetails struct { + // Core requested for the device + Core *float32 `json:"core,omitempty"` + // Whether the peer device should be upgraded or not. + UpgradePeerDevice *bool `json:"upgradePeerDevice,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpgradeCoreRequestDetails UpgradeCoreRequestDetails + +// NewUpgradeCoreRequestDetails instantiates a new UpgradeCoreRequestDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpgradeCoreRequestDetails() *UpgradeCoreRequestDetails { + this := UpgradeCoreRequestDetails{} + return &this +} + +// NewUpgradeCoreRequestDetailsWithDefaults instantiates a new UpgradeCoreRequestDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpgradeCoreRequestDetailsWithDefaults() *UpgradeCoreRequestDetails { + this := UpgradeCoreRequestDetails{} + return &this +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *UpgradeCoreRequestDetails) GetCore() float32 { + if o == nil || IsNil(o.Core) { + var ret float32 + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpgradeCoreRequestDetails) GetCoreOk() (*float32, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *UpgradeCoreRequestDetails) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given float32 and assigns it to the Core field. +func (o *UpgradeCoreRequestDetails) SetCore(v float32) { + o.Core = &v +} + +// GetUpgradePeerDevice returns the UpgradePeerDevice field value if set, zero value otherwise. +func (o *UpgradeCoreRequestDetails) GetUpgradePeerDevice() bool { + if o == nil || IsNil(o.UpgradePeerDevice) { + var ret bool + return ret + } + return *o.UpgradePeerDevice +} + +// GetUpgradePeerDeviceOk returns a tuple with the UpgradePeerDevice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpgradeCoreRequestDetails) GetUpgradePeerDeviceOk() (*bool, bool) { + if o == nil || IsNil(o.UpgradePeerDevice) { + return nil, false + } + return o.UpgradePeerDevice, true +} + +// HasUpgradePeerDevice returns a boolean if a field has been set. +func (o *UpgradeCoreRequestDetails) HasUpgradePeerDevice() bool { + if o != nil && !IsNil(o.UpgradePeerDevice) { + return true + } + + return false +} + +// SetUpgradePeerDevice gets a reference to the given bool and assigns it to the UpgradePeerDevice field. +func (o *UpgradeCoreRequestDetails) SetUpgradePeerDevice(v bool) { + o.UpgradePeerDevice = &v +} + +func (o UpgradeCoreRequestDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpgradeCoreRequestDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.UpgradePeerDevice) { + toSerialize["upgradePeerDevice"] = o.UpgradePeerDevice + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpgradeCoreRequestDetails) UnmarshalJSON(data []byte) (err error) { + varUpgradeCoreRequestDetails := _UpgradeCoreRequestDetails{} + + err = json.Unmarshal(data, &varUpgradeCoreRequestDetails) + + if err != nil { + return err + } + + *o = UpgradeCoreRequestDetails(varUpgradeCoreRequestDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "core") + delete(additionalProperties, "upgradePeerDevice") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpgradeCoreRequestDetails struct { + value *UpgradeCoreRequestDetails + isSet bool +} + +func (v NullableUpgradeCoreRequestDetails) Get() *UpgradeCoreRequestDetails { + return v.value +} + +func (v *NullableUpgradeCoreRequestDetails) Set(val *UpgradeCoreRequestDetails) { + v.value = val + v.isSet = true +} + +func (v NullableUpgradeCoreRequestDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableUpgradeCoreRequestDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpgradeCoreRequestDetails(val *UpgradeCoreRequestDetails) *NullableUpgradeCoreRequestDetails { + return &NullableUpgradeCoreRequestDetails{value: val, isSet: true} +} + +func (v NullableUpgradeCoreRequestDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpgradeCoreRequestDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_user_public_key_config.go b/services/networkedgev1/model_user_public_key_config.go new file mode 100644 index 00000000..068b7215 --- /dev/null +++ b/services/networkedgev1/model_user_public_key_config.go @@ -0,0 +1,231 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the UserPublicKeyConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserPublicKeyConfig{} + +// UserPublicKeyConfig An object with public key details. +type UserPublicKeyConfig struct { + // Username. + Username *string `json:"username,omitempty"` + // Key name. + PublicKeyName *string `json:"publicKeyName,omitempty"` + // The public key. + PublicKey *string `json:"publicKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserPublicKeyConfig UserPublicKeyConfig + +// NewUserPublicKeyConfig instantiates a new UserPublicKeyConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserPublicKeyConfig() *UserPublicKeyConfig { + this := UserPublicKeyConfig{} + return &this +} + +// NewUserPublicKeyConfigWithDefaults instantiates a new UserPublicKeyConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserPublicKeyConfigWithDefaults() *UserPublicKeyConfig { + this := UserPublicKeyConfig{} + return &this +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UserPublicKeyConfig) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserPublicKeyConfig) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *UserPublicKeyConfig) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *UserPublicKeyConfig) SetUsername(v string) { + o.Username = &v +} + +// GetPublicKeyName returns the PublicKeyName field value if set, zero value otherwise. +func (o *UserPublicKeyConfig) GetPublicKeyName() string { + if o == nil || IsNil(o.PublicKeyName) { + var ret string + return ret + } + return *o.PublicKeyName +} + +// GetPublicKeyNameOk returns a tuple with the PublicKeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserPublicKeyConfig) GetPublicKeyNameOk() (*string, bool) { + if o == nil || IsNil(o.PublicKeyName) { + return nil, false + } + return o.PublicKeyName, true +} + +// HasPublicKeyName returns a boolean if a field has been set. +func (o *UserPublicKeyConfig) HasPublicKeyName() bool { + if o != nil && !IsNil(o.PublicKeyName) { + return true + } + + return false +} + +// SetPublicKeyName gets a reference to the given string and assigns it to the PublicKeyName field. +func (o *UserPublicKeyConfig) SetPublicKeyName(v string) { + o.PublicKeyName = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *UserPublicKeyConfig) GetPublicKey() string { + if o == nil || IsNil(o.PublicKey) { + var ret string + return ret + } + return *o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserPublicKeyConfig) GetPublicKeyOk() (*string, bool) { + if o == nil || IsNil(o.PublicKey) { + return nil, false + } + return o.PublicKey, true +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *UserPublicKeyConfig) HasPublicKey() bool { + if o != nil && !IsNil(o.PublicKey) { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. +func (o *UserPublicKeyConfig) SetPublicKey(v string) { + o.PublicKey = &v +} + +func (o UserPublicKeyConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserPublicKeyConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.PublicKeyName) { + toSerialize["publicKeyName"] = o.PublicKeyName + } + if !IsNil(o.PublicKey) { + toSerialize["publicKey"] = o.PublicKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserPublicKeyConfig) UnmarshalJSON(data []byte) (err error) { + varUserPublicKeyConfig := _UserPublicKeyConfig{} + + err = json.Unmarshal(data, &varUserPublicKeyConfig) + + if err != nil { + return err + } + + *o = UserPublicKeyConfig(varUserPublicKeyConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "publicKeyName") + delete(additionalProperties, "publicKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserPublicKeyConfig struct { + value *UserPublicKeyConfig + isSet bool +} + +func (v NullableUserPublicKeyConfig) Get() *UserPublicKeyConfig { + return v.value +} + +func (v *NullableUserPublicKeyConfig) Set(val *UserPublicKeyConfig) { + v.value = val + v.isSet = true +} + +func (v NullableUserPublicKeyConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableUserPublicKeyConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserPublicKeyConfig(val *UserPublicKeyConfig) *NullableUserPublicKeyConfig { + return &NullableUserPublicKeyConfig{value: val, isSet: true} +} + +func (v NullableUserPublicKeyConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserPublicKeyConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_user_public_key_request.go b/services/networkedgev1/model_user_public_key_request.go new file mode 100644 index 00000000..cde341c6 --- /dev/null +++ b/services/networkedgev1/model_user_public_key_request.go @@ -0,0 +1,193 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the UserPublicKeyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserPublicKeyRequest{} + +// UserPublicKeyRequest An object with public key details. +type UserPublicKeyRequest struct { + // Username. + Username *string `json:"username,omitempty"` + // Key name. This field may be required for some vendors. The keyName must be an existing keyName associated with an existing keyValue. To set up a new keyName and keyValue pair, call Create Public Key. + KeyName *string `json:"keyName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserPublicKeyRequest UserPublicKeyRequest + +// NewUserPublicKeyRequest instantiates a new UserPublicKeyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserPublicKeyRequest() *UserPublicKeyRequest { + this := UserPublicKeyRequest{} + return &this +} + +// NewUserPublicKeyRequestWithDefaults instantiates a new UserPublicKeyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserPublicKeyRequestWithDefaults() *UserPublicKeyRequest { + this := UserPublicKeyRequest{} + return &this +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UserPublicKeyRequest) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserPublicKeyRequest) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *UserPublicKeyRequest) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *UserPublicKeyRequest) SetUsername(v string) { + o.Username = &v +} + +// GetKeyName returns the KeyName field value if set, zero value otherwise. +func (o *UserPublicKeyRequest) GetKeyName() string { + if o == nil || IsNil(o.KeyName) { + var ret string + return ret + } + return *o.KeyName +} + +// GetKeyNameOk returns a tuple with the KeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserPublicKeyRequest) GetKeyNameOk() (*string, bool) { + if o == nil || IsNil(o.KeyName) { + return nil, false + } + return o.KeyName, true +} + +// HasKeyName returns a boolean if a field has been set. +func (o *UserPublicKeyRequest) HasKeyName() bool { + if o != nil && !IsNil(o.KeyName) { + return true + } + + return false +} + +// SetKeyName gets a reference to the given string and assigns it to the KeyName field. +func (o *UserPublicKeyRequest) SetKeyName(v string) { + o.KeyName = &v +} + +func (o UserPublicKeyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserPublicKeyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.KeyName) { + toSerialize["keyName"] = o.KeyName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserPublicKeyRequest) UnmarshalJSON(data []byte) (err error) { + varUserPublicKeyRequest := _UserPublicKeyRequest{} + + err = json.Unmarshal(data, &varUserPublicKeyRequest) + + if err != nil { + return err + } + + *o = UserPublicKeyRequest(varUserPublicKeyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "keyName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserPublicKeyRequest struct { + value *UserPublicKeyRequest + isSet bool +} + +func (v NullableUserPublicKeyRequest) Get() *UserPublicKeyRequest { + return v.value +} + +func (v *NullableUserPublicKeyRequest) Set(val *UserPublicKeyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserPublicKeyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserPublicKeyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserPublicKeyRequest(val *UserPublicKeyRequest) *NullableUserPublicKeyRequest { + return &NullableUserPublicKeyRequest{value: val, isSet: true} +} + +func (v NullableUserPublicKeyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserPublicKeyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vendor_config.go b/services/networkedgev1/model_vendor_config.go new file mode 100644 index 00000000..b39a1c7a --- /dev/null +++ b/services/networkedgev1/model_vendor_config.go @@ -0,0 +1,1096 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VendorConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorConfig{} + +// VendorConfig struct for VendorConfig +type VendorConfig struct { + // Physical location within the Viptela overlay network, such as a branch office, or a campus (relevant only for Cisco SD-WANs) + SiteId *string `json:"siteId,omitempty"` + // IP assigned to CSRSDWAN router and vSmart controller (relevant only for Cisco SD-WANs) + SystemIpAddress *string `json:"systemIpAddress,omitempty"` + LicenseKey *string `json:"licenseKey,omitempty"` + LicenseSecret *string `json:"licenseSecret,omitempty"` + LocalId *string `json:"localId,omitempty"` + RemoteId *string `json:"remoteId,omitempty"` + // This is required for Cisco FTD Firewall devices. If you choose \"FMC,\" you must also provide the controller IP and the activation key. + ManagementType *string `json:"managementType,omitempty"` + // For Fortinet devices, this is the System IP address. + Controller1 *string `json:"controller1,omitempty"` + Controller2 *string `json:"controller2,omitempty"` + SerialNumber *string `json:"serialNumber,omitempty"` + // The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. Should be at least 6 characters long and must include an uppercase letter and a number. This field may be required for some vendors. + AdminPassword *string `json:"adminPassword,omitempty"` + ActivationKey *string `json:"activationKey,omitempty"` + ControllerFqdn *string `json:"controllerFqdn,omitempty"` + RootPassword *string `json:"rootPassword,omitempty"` + // The name of account. + AccountName *string `json:"accountName,omitempty"` + // The host name. + Hostname *string `json:"hostname,omitempty"` + // The account key. + AccountKey *string `json:"accountKey,omitempty"` + // The appliance tag. + ApplianceTag *string `json:"applianceTag,omitempty"` + // This field is rel + UserName *string `json:"userName,omitempty"` + // Whether you want your Arista device to connect to Cloud Vision. Only relevant for Arista devices. + ConnectToCloudVision *bool `json:"connectToCloudVision,omitempty"` + // Either As-a-Service or On-Premise. Only relevant for Arista devices. + CvpType *string `json:"cvpType,omitempty"` + // Fully qualified domain name for Cloud Vision As-a-Service. Only relevant for Arista devices. + CvpFqdn *string `json:"cvpFqdn,omitempty"` + // Only relevant for Arista devices. CvpIpAddress is required if connectToCloudVision=true and cvpType=On-Premise. + CvpIpAddress *string `json:"cvpIpAddress,omitempty"` + // Only relevant for Arista devices. CvaasPort is required if connectToCloudVision=true and cvpType=As-a-Service. + CvaasPort *string `json:"cvaasPort,omitempty"` + // Only relevant for Arista devices. CvpPort is required if connectToCloudVision=true and cvpType=On-Premise. + CvpPort *string `json:"cvpPort,omitempty"` + // Only relevant for Arista devices. CvpToken is required if connectToCloudVision=true and (cvpType=On-Premise or cvpType=As-a-Service). + CvpToken *string `json:"cvpToken,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VendorConfig VendorConfig + +// NewVendorConfig instantiates a new VendorConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVendorConfig() *VendorConfig { + this := VendorConfig{} + return &this +} + +// NewVendorConfigWithDefaults instantiates a new VendorConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVendorConfigWithDefaults() *VendorConfig { + this := VendorConfig{} + return &this +} + +// GetSiteId returns the SiteId field value if set, zero value otherwise. +func (o *VendorConfig) GetSiteId() string { + if o == nil || IsNil(o.SiteId) { + var ret string + return ret + } + return *o.SiteId +} + +// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetSiteIdOk() (*string, bool) { + if o == nil || IsNil(o.SiteId) { + return nil, false + } + return o.SiteId, true +} + +// HasSiteId returns a boolean if a field has been set. +func (o *VendorConfig) HasSiteId() bool { + if o != nil && !IsNil(o.SiteId) { + return true + } + + return false +} + +// SetSiteId gets a reference to the given string and assigns it to the SiteId field. +func (o *VendorConfig) SetSiteId(v string) { + o.SiteId = &v +} + +// GetSystemIpAddress returns the SystemIpAddress field value if set, zero value otherwise. +func (o *VendorConfig) GetSystemIpAddress() string { + if o == nil || IsNil(o.SystemIpAddress) { + var ret string + return ret + } + return *o.SystemIpAddress +} + +// GetSystemIpAddressOk returns a tuple with the SystemIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetSystemIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SystemIpAddress) { + return nil, false + } + return o.SystemIpAddress, true +} + +// HasSystemIpAddress returns a boolean if a field has been set. +func (o *VendorConfig) HasSystemIpAddress() bool { + if o != nil && !IsNil(o.SystemIpAddress) { + return true + } + + return false +} + +// SetSystemIpAddress gets a reference to the given string and assigns it to the SystemIpAddress field. +func (o *VendorConfig) SetSystemIpAddress(v string) { + o.SystemIpAddress = &v +} + +// GetLicenseKey returns the LicenseKey field value if set, zero value otherwise. +func (o *VendorConfig) GetLicenseKey() string { + if o == nil || IsNil(o.LicenseKey) { + var ret string + return ret + } + return *o.LicenseKey +} + +// GetLicenseKeyOk returns a tuple with the LicenseKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetLicenseKeyOk() (*string, bool) { + if o == nil || IsNil(o.LicenseKey) { + return nil, false + } + return o.LicenseKey, true +} + +// HasLicenseKey returns a boolean if a field has been set. +func (o *VendorConfig) HasLicenseKey() bool { + if o != nil && !IsNil(o.LicenseKey) { + return true + } + + return false +} + +// SetLicenseKey gets a reference to the given string and assigns it to the LicenseKey field. +func (o *VendorConfig) SetLicenseKey(v string) { + o.LicenseKey = &v +} + +// GetLicenseSecret returns the LicenseSecret field value if set, zero value otherwise. +func (o *VendorConfig) GetLicenseSecret() string { + if o == nil || IsNil(o.LicenseSecret) { + var ret string + return ret + } + return *o.LicenseSecret +} + +// GetLicenseSecretOk returns a tuple with the LicenseSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetLicenseSecretOk() (*string, bool) { + if o == nil || IsNil(o.LicenseSecret) { + return nil, false + } + return o.LicenseSecret, true +} + +// HasLicenseSecret returns a boolean if a field has been set. +func (o *VendorConfig) HasLicenseSecret() bool { + if o != nil && !IsNil(o.LicenseSecret) { + return true + } + + return false +} + +// SetLicenseSecret gets a reference to the given string and assigns it to the LicenseSecret field. +func (o *VendorConfig) SetLicenseSecret(v string) { + o.LicenseSecret = &v +} + +// GetLocalId returns the LocalId field value if set, zero value otherwise. +func (o *VendorConfig) GetLocalId() string { + if o == nil || IsNil(o.LocalId) { + var ret string + return ret + } + return *o.LocalId +} + +// GetLocalIdOk returns a tuple with the LocalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetLocalIdOk() (*string, bool) { + if o == nil || IsNil(o.LocalId) { + return nil, false + } + return o.LocalId, true +} + +// HasLocalId returns a boolean if a field has been set. +func (o *VendorConfig) HasLocalId() bool { + if o != nil && !IsNil(o.LocalId) { + return true + } + + return false +} + +// SetLocalId gets a reference to the given string and assigns it to the LocalId field. +func (o *VendorConfig) SetLocalId(v string) { + o.LocalId = &v +} + +// GetRemoteId returns the RemoteId field value if set, zero value otherwise. +func (o *VendorConfig) GetRemoteId() string { + if o == nil || IsNil(o.RemoteId) { + var ret string + return ret + } + return *o.RemoteId +} + +// GetRemoteIdOk returns a tuple with the RemoteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetRemoteIdOk() (*string, bool) { + if o == nil || IsNil(o.RemoteId) { + return nil, false + } + return o.RemoteId, true +} + +// HasRemoteId returns a boolean if a field has been set. +func (o *VendorConfig) HasRemoteId() bool { + if o != nil && !IsNil(o.RemoteId) { + return true + } + + return false +} + +// SetRemoteId gets a reference to the given string and assigns it to the RemoteId field. +func (o *VendorConfig) SetRemoteId(v string) { + o.RemoteId = &v +} + +// GetManagementType returns the ManagementType field value if set, zero value otherwise. +func (o *VendorConfig) GetManagementType() string { + if o == nil || IsNil(o.ManagementType) { + var ret string + return ret + } + return *o.ManagementType +} + +// GetManagementTypeOk returns a tuple with the ManagementType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetManagementTypeOk() (*string, bool) { + if o == nil || IsNil(o.ManagementType) { + return nil, false + } + return o.ManagementType, true +} + +// HasManagementType returns a boolean if a field has been set. +func (o *VendorConfig) HasManagementType() bool { + if o != nil && !IsNil(o.ManagementType) { + return true + } + + return false +} + +// SetManagementType gets a reference to the given string and assigns it to the ManagementType field. +func (o *VendorConfig) SetManagementType(v string) { + o.ManagementType = &v +} + +// GetController1 returns the Controller1 field value if set, zero value otherwise. +func (o *VendorConfig) GetController1() string { + if o == nil || IsNil(o.Controller1) { + var ret string + return ret + } + return *o.Controller1 +} + +// GetController1Ok returns a tuple with the Controller1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetController1Ok() (*string, bool) { + if o == nil || IsNil(o.Controller1) { + return nil, false + } + return o.Controller1, true +} + +// HasController1 returns a boolean if a field has been set. +func (o *VendorConfig) HasController1() bool { + if o != nil && !IsNil(o.Controller1) { + return true + } + + return false +} + +// SetController1 gets a reference to the given string and assigns it to the Controller1 field. +func (o *VendorConfig) SetController1(v string) { + o.Controller1 = &v +} + +// GetController2 returns the Controller2 field value if set, zero value otherwise. +func (o *VendorConfig) GetController2() string { + if o == nil || IsNil(o.Controller2) { + var ret string + return ret + } + return *o.Controller2 +} + +// GetController2Ok returns a tuple with the Controller2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetController2Ok() (*string, bool) { + if o == nil || IsNil(o.Controller2) { + return nil, false + } + return o.Controller2, true +} + +// HasController2 returns a boolean if a field has been set. +func (o *VendorConfig) HasController2() bool { + if o != nil && !IsNil(o.Controller2) { + return true + } + + return false +} + +// SetController2 gets a reference to the given string and assigns it to the Controller2 field. +func (o *VendorConfig) SetController2(v string) { + o.Controller2 = &v +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *VendorConfig) GetSerialNumber() string { + if o == nil || IsNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetSerialNumberOk() (*string, bool) { + if o == nil || IsNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *VendorConfig) HasSerialNumber() bool { + if o != nil && !IsNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *VendorConfig) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetAdminPassword returns the AdminPassword field value if set, zero value otherwise. +func (o *VendorConfig) GetAdminPassword() string { + if o == nil || IsNil(o.AdminPassword) { + var ret string + return ret + } + return *o.AdminPassword +} + +// GetAdminPasswordOk returns a tuple with the AdminPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetAdminPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AdminPassword) { + return nil, false + } + return o.AdminPassword, true +} + +// HasAdminPassword returns a boolean if a field has been set. +func (o *VendorConfig) HasAdminPassword() bool { + if o != nil && !IsNil(o.AdminPassword) { + return true + } + + return false +} + +// SetAdminPassword gets a reference to the given string and assigns it to the AdminPassword field. +func (o *VendorConfig) SetAdminPassword(v string) { + o.AdminPassword = &v +} + +// GetActivationKey returns the ActivationKey field value if set, zero value otherwise. +func (o *VendorConfig) GetActivationKey() string { + if o == nil || IsNil(o.ActivationKey) { + var ret string + return ret + } + return *o.ActivationKey +} + +// GetActivationKeyOk returns a tuple with the ActivationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetActivationKeyOk() (*string, bool) { + if o == nil || IsNil(o.ActivationKey) { + return nil, false + } + return o.ActivationKey, true +} + +// HasActivationKey returns a boolean if a field has been set. +func (o *VendorConfig) HasActivationKey() bool { + if o != nil && !IsNil(o.ActivationKey) { + return true + } + + return false +} + +// SetActivationKey gets a reference to the given string and assigns it to the ActivationKey field. +func (o *VendorConfig) SetActivationKey(v string) { + o.ActivationKey = &v +} + +// GetControllerFqdn returns the ControllerFqdn field value if set, zero value otherwise. +func (o *VendorConfig) GetControllerFqdn() string { + if o == nil || IsNil(o.ControllerFqdn) { + var ret string + return ret + } + return *o.ControllerFqdn +} + +// GetControllerFqdnOk returns a tuple with the ControllerFqdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetControllerFqdnOk() (*string, bool) { + if o == nil || IsNil(o.ControllerFqdn) { + return nil, false + } + return o.ControllerFqdn, true +} + +// HasControllerFqdn returns a boolean if a field has been set. +func (o *VendorConfig) HasControllerFqdn() bool { + if o != nil && !IsNil(o.ControllerFqdn) { + return true + } + + return false +} + +// SetControllerFqdn gets a reference to the given string and assigns it to the ControllerFqdn field. +func (o *VendorConfig) SetControllerFqdn(v string) { + o.ControllerFqdn = &v +} + +// GetRootPassword returns the RootPassword field value if set, zero value otherwise. +func (o *VendorConfig) GetRootPassword() string { + if o == nil || IsNil(o.RootPassword) { + var ret string + return ret + } + return *o.RootPassword +} + +// GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetRootPasswordOk() (*string, bool) { + if o == nil || IsNil(o.RootPassword) { + return nil, false + } + return o.RootPassword, true +} + +// HasRootPassword returns a boolean if a field has been set. +func (o *VendorConfig) HasRootPassword() bool { + if o != nil && !IsNil(o.RootPassword) { + return true + } + + return false +} + +// SetRootPassword gets a reference to the given string and assigns it to the RootPassword field. +func (o *VendorConfig) SetRootPassword(v string) { + o.RootPassword = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *VendorConfig) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *VendorConfig) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *VendorConfig) SetAccountName(v string) { + o.AccountName = &v +} + +// GetHostname returns the Hostname field value if set, zero value otherwise. +func (o *VendorConfig) GetHostname() string { + if o == nil || IsNil(o.Hostname) { + var ret string + return ret + } + return *o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetHostnameOk() (*string, bool) { + if o == nil || IsNil(o.Hostname) { + return nil, false + } + return o.Hostname, true +} + +// HasHostname returns a boolean if a field has been set. +func (o *VendorConfig) HasHostname() bool { + if o != nil && !IsNil(o.Hostname) { + return true + } + + return false +} + +// SetHostname gets a reference to the given string and assigns it to the Hostname field. +func (o *VendorConfig) SetHostname(v string) { + o.Hostname = &v +} + +// GetAccountKey returns the AccountKey field value if set, zero value otherwise. +func (o *VendorConfig) GetAccountKey() string { + if o == nil || IsNil(o.AccountKey) { + var ret string + return ret + } + return *o.AccountKey +} + +// GetAccountKeyOk returns a tuple with the AccountKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetAccountKeyOk() (*string, bool) { + if o == nil || IsNil(o.AccountKey) { + return nil, false + } + return o.AccountKey, true +} + +// HasAccountKey returns a boolean if a field has been set. +func (o *VendorConfig) HasAccountKey() bool { + if o != nil && !IsNil(o.AccountKey) { + return true + } + + return false +} + +// SetAccountKey gets a reference to the given string and assigns it to the AccountKey field. +func (o *VendorConfig) SetAccountKey(v string) { + o.AccountKey = &v +} + +// GetApplianceTag returns the ApplianceTag field value if set, zero value otherwise. +func (o *VendorConfig) GetApplianceTag() string { + if o == nil || IsNil(o.ApplianceTag) { + var ret string + return ret + } + return *o.ApplianceTag +} + +// GetApplianceTagOk returns a tuple with the ApplianceTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetApplianceTagOk() (*string, bool) { + if o == nil || IsNil(o.ApplianceTag) { + return nil, false + } + return o.ApplianceTag, true +} + +// HasApplianceTag returns a boolean if a field has been set. +func (o *VendorConfig) HasApplianceTag() bool { + if o != nil && !IsNil(o.ApplianceTag) { + return true + } + + return false +} + +// SetApplianceTag gets a reference to the given string and assigns it to the ApplianceTag field. +func (o *VendorConfig) SetApplianceTag(v string) { + o.ApplianceTag = &v +} + +// GetUserName returns the UserName field value if set, zero value otherwise. +func (o *VendorConfig) GetUserName() string { + if o == nil || IsNil(o.UserName) { + var ret string + return ret + } + return *o.UserName +} + +// GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetUserNameOk() (*string, bool) { + if o == nil || IsNil(o.UserName) { + return nil, false + } + return o.UserName, true +} + +// HasUserName returns a boolean if a field has been set. +func (o *VendorConfig) HasUserName() bool { + if o != nil && !IsNil(o.UserName) { + return true + } + + return false +} + +// SetUserName gets a reference to the given string and assigns it to the UserName field. +func (o *VendorConfig) SetUserName(v string) { + o.UserName = &v +} + +// GetConnectToCloudVision returns the ConnectToCloudVision field value if set, zero value otherwise. +func (o *VendorConfig) GetConnectToCloudVision() bool { + if o == nil || IsNil(o.ConnectToCloudVision) { + var ret bool + return ret + } + return *o.ConnectToCloudVision +} + +// GetConnectToCloudVisionOk returns a tuple with the ConnectToCloudVision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetConnectToCloudVisionOk() (*bool, bool) { + if o == nil || IsNil(o.ConnectToCloudVision) { + return nil, false + } + return o.ConnectToCloudVision, true +} + +// HasConnectToCloudVision returns a boolean if a field has been set. +func (o *VendorConfig) HasConnectToCloudVision() bool { + if o != nil && !IsNil(o.ConnectToCloudVision) { + return true + } + + return false +} + +// SetConnectToCloudVision gets a reference to the given bool and assigns it to the ConnectToCloudVision field. +func (o *VendorConfig) SetConnectToCloudVision(v bool) { + o.ConnectToCloudVision = &v +} + +// GetCvpType returns the CvpType field value if set, zero value otherwise. +func (o *VendorConfig) GetCvpType() string { + if o == nil || IsNil(o.CvpType) { + var ret string + return ret + } + return *o.CvpType +} + +// GetCvpTypeOk returns a tuple with the CvpType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvpTypeOk() (*string, bool) { + if o == nil || IsNil(o.CvpType) { + return nil, false + } + return o.CvpType, true +} + +// HasCvpType returns a boolean if a field has been set. +func (o *VendorConfig) HasCvpType() bool { + if o != nil && !IsNil(o.CvpType) { + return true + } + + return false +} + +// SetCvpType gets a reference to the given string and assigns it to the CvpType field. +func (o *VendorConfig) SetCvpType(v string) { + o.CvpType = &v +} + +// GetCvpFqdn returns the CvpFqdn field value if set, zero value otherwise. +func (o *VendorConfig) GetCvpFqdn() string { + if o == nil || IsNil(o.CvpFqdn) { + var ret string + return ret + } + return *o.CvpFqdn +} + +// GetCvpFqdnOk returns a tuple with the CvpFqdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvpFqdnOk() (*string, bool) { + if o == nil || IsNil(o.CvpFqdn) { + return nil, false + } + return o.CvpFqdn, true +} + +// HasCvpFqdn returns a boolean if a field has been set. +func (o *VendorConfig) HasCvpFqdn() bool { + if o != nil && !IsNil(o.CvpFqdn) { + return true + } + + return false +} + +// SetCvpFqdn gets a reference to the given string and assigns it to the CvpFqdn field. +func (o *VendorConfig) SetCvpFqdn(v string) { + o.CvpFqdn = &v +} + +// GetCvpIpAddress returns the CvpIpAddress field value if set, zero value otherwise. +func (o *VendorConfig) GetCvpIpAddress() string { + if o == nil || IsNil(o.CvpIpAddress) { + var ret string + return ret + } + return *o.CvpIpAddress +} + +// GetCvpIpAddressOk returns a tuple with the CvpIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvpIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.CvpIpAddress) { + return nil, false + } + return o.CvpIpAddress, true +} + +// HasCvpIpAddress returns a boolean if a field has been set. +func (o *VendorConfig) HasCvpIpAddress() bool { + if o != nil && !IsNil(o.CvpIpAddress) { + return true + } + + return false +} + +// SetCvpIpAddress gets a reference to the given string and assigns it to the CvpIpAddress field. +func (o *VendorConfig) SetCvpIpAddress(v string) { + o.CvpIpAddress = &v +} + +// GetCvaasPort returns the CvaasPort field value if set, zero value otherwise. +func (o *VendorConfig) GetCvaasPort() string { + if o == nil || IsNil(o.CvaasPort) { + var ret string + return ret + } + return *o.CvaasPort +} + +// GetCvaasPortOk returns a tuple with the CvaasPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvaasPortOk() (*string, bool) { + if o == nil || IsNil(o.CvaasPort) { + return nil, false + } + return o.CvaasPort, true +} + +// HasCvaasPort returns a boolean if a field has been set. +func (o *VendorConfig) HasCvaasPort() bool { + if o != nil && !IsNil(o.CvaasPort) { + return true + } + + return false +} + +// SetCvaasPort gets a reference to the given string and assigns it to the CvaasPort field. +func (o *VendorConfig) SetCvaasPort(v string) { + o.CvaasPort = &v +} + +// GetCvpPort returns the CvpPort field value if set, zero value otherwise. +func (o *VendorConfig) GetCvpPort() string { + if o == nil || IsNil(o.CvpPort) { + var ret string + return ret + } + return *o.CvpPort +} + +// GetCvpPortOk returns a tuple with the CvpPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvpPortOk() (*string, bool) { + if o == nil || IsNil(o.CvpPort) { + return nil, false + } + return o.CvpPort, true +} + +// HasCvpPort returns a boolean if a field has been set. +func (o *VendorConfig) HasCvpPort() bool { + if o != nil && !IsNil(o.CvpPort) { + return true + } + + return false +} + +// SetCvpPort gets a reference to the given string and assigns it to the CvpPort field. +func (o *VendorConfig) SetCvpPort(v string) { + o.CvpPort = &v +} + +// GetCvpToken returns the CvpToken field value if set, zero value otherwise. +func (o *VendorConfig) GetCvpToken() string { + if o == nil || IsNil(o.CvpToken) { + var ret string + return ret + } + return *o.CvpToken +} + +// GetCvpTokenOk returns a tuple with the CvpToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfig) GetCvpTokenOk() (*string, bool) { + if o == nil || IsNil(o.CvpToken) { + return nil, false + } + return o.CvpToken, true +} + +// HasCvpToken returns a boolean if a field has been set. +func (o *VendorConfig) HasCvpToken() bool { + if o != nil && !IsNil(o.CvpToken) { + return true + } + + return false +} + +// SetCvpToken gets a reference to the given string and assigns it to the CvpToken field. +func (o *VendorConfig) SetCvpToken(v string) { + o.CvpToken = &v +} + +func (o VendorConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SiteId) { + toSerialize["siteId"] = o.SiteId + } + if !IsNil(o.SystemIpAddress) { + toSerialize["systemIpAddress"] = o.SystemIpAddress + } + if !IsNil(o.LicenseKey) { + toSerialize["licenseKey"] = o.LicenseKey + } + if !IsNil(o.LicenseSecret) { + toSerialize["licenseSecret"] = o.LicenseSecret + } + if !IsNil(o.LocalId) { + toSerialize["localId"] = o.LocalId + } + if !IsNil(o.RemoteId) { + toSerialize["remoteId"] = o.RemoteId + } + if !IsNil(o.ManagementType) { + toSerialize["managementType"] = o.ManagementType + } + if !IsNil(o.Controller1) { + toSerialize["controller1"] = o.Controller1 + } + if !IsNil(o.Controller2) { + toSerialize["controller2"] = o.Controller2 + } + if !IsNil(o.SerialNumber) { + toSerialize["serialNumber"] = o.SerialNumber + } + if !IsNil(o.AdminPassword) { + toSerialize["adminPassword"] = o.AdminPassword + } + if !IsNil(o.ActivationKey) { + toSerialize["activationKey"] = o.ActivationKey + } + if !IsNil(o.ControllerFqdn) { + toSerialize["controllerFqdn"] = o.ControllerFqdn + } + if !IsNil(o.RootPassword) { + toSerialize["rootPassword"] = o.RootPassword + } + if !IsNil(o.AccountName) { + toSerialize["accountName"] = o.AccountName + } + if !IsNil(o.Hostname) { + toSerialize["hostname"] = o.Hostname + } + if !IsNil(o.AccountKey) { + toSerialize["accountKey"] = o.AccountKey + } + if !IsNil(o.ApplianceTag) { + toSerialize["applianceTag"] = o.ApplianceTag + } + if !IsNil(o.UserName) { + toSerialize["userName"] = o.UserName + } + if !IsNil(o.ConnectToCloudVision) { + toSerialize["connectToCloudVision"] = o.ConnectToCloudVision + } + if !IsNil(o.CvpType) { + toSerialize["cvpType"] = o.CvpType + } + if !IsNil(o.CvpFqdn) { + toSerialize["cvpFqdn"] = o.CvpFqdn + } + if !IsNil(o.CvpIpAddress) { + toSerialize["cvpIpAddress"] = o.CvpIpAddress + } + if !IsNil(o.CvaasPort) { + toSerialize["cvaasPort"] = o.CvaasPort + } + if !IsNil(o.CvpPort) { + toSerialize["cvpPort"] = o.CvpPort + } + if !IsNil(o.CvpToken) { + toSerialize["cvpToken"] = o.CvpToken + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VendorConfig) UnmarshalJSON(data []byte) (err error) { + varVendorConfig := _VendorConfig{} + + err = json.Unmarshal(data, &varVendorConfig) + + if err != nil { + return err + } + + *o = VendorConfig(varVendorConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "siteId") + delete(additionalProperties, "systemIpAddress") + delete(additionalProperties, "licenseKey") + delete(additionalProperties, "licenseSecret") + delete(additionalProperties, "localId") + delete(additionalProperties, "remoteId") + delete(additionalProperties, "managementType") + delete(additionalProperties, "controller1") + delete(additionalProperties, "controller2") + delete(additionalProperties, "serialNumber") + delete(additionalProperties, "adminPassword") + delete(additionalProperties, "activationKey") + delete(additionalProperties, "controllerFqdn") + delete(additionalProperties, "rootPassword") + delete(additionalProperties, "accountName") + delete(additionalProperties, "hostname") + delete(additionalProperties, "accountKey") + delete(additionalProperties, "applianceTag") + delete(additionalProperties, "userName") + delete(additionalProperties, "connectToCloudVision") + delete(additionalProperties, "cvpType") + delete(additionalProperties, "cvpFqdn") + delete(additionalProperties, "cvpIpAddress") + delete(additionalProperties, "cvaasPort") + delete(additionalProperties, "cvpPort") + delete(additionalProperties, "cvpToken") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVendorConfig struct { + value *VendorConfig + isSet bool +} + +func (v NullableVendorConfig) Get() *VendorConfig { + return v.value +} + +func (v *NullableVendorConfig) Set(val *VendorConfig) { + v.value = val + v.isSet = true +} + +func (v NullableVendorConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableVendorConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVendorConfig(val *VendorConfig) *NullableVendorConfig { + return &NullableVendorConfig{value: val, isSet: true} +} + +func (v NullableVendorConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVendorConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vendor_config_details_node0.go b/services/networkedgev1/model_vendor_config_details_node0.go new file mode 100644 index 00000000..45672929 --- /dev/null +++ b/services/networkedgev1/model_vendor_config_details_node0.go @@ -0,0 +1,341 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VendorConfigDetailsNode0 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorConfigDetailsNode0{} + +// VendorConfigDetailsNode0 struct for VendorConfigDetailsNode0 +type VendorConfigDetailsNode0 struct { + // The host name. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14; Aruba 2-24. + Hostname *string `json:"hostname,omitempty"` + ActivationKey *string `json:"activationKey,omitempty"` + ControllerFqdn *string `json:"controllerFqdn,omitempty"` + RootPassword *string `json:"rootPassword,omitempty"` + // The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. + AdminPassword *string `json:"adminPassword,omitempty"` + Controller1 *string `json:"controller1,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VendorConfigDetailsNode0 VendorConfigDetailsNode0 + +// NewVendorConfigDetailsNode0 instantiates a new VendorConfigDetailsNode0 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVendorConfigDetailsNode0() *VendorConfigDetailsNode0 { + this := VendorConfigDetailsNode0{} + return &this +} + +// NewVendorConfigDetailsNode0WithDefaults instantiates a new VendorConfigDetailsNode0 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVendorConfigDetailsNode0WithDefaults() *VendorConfigDetailsNode0 { + this := VendorConfigDetailsNode0{} + return &this +} + +// GetHostname returns the Hostname field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetHostname() string { + if o == nil || IsNil(o.Hostname) { + var ret string + return ret + } + return *o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetHostnameOk() (*string, bool) { + if o == nil || IsNil(o.Hostname) { + return nil, false + } + return o.Hostname, true +} + +// HasHostname returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasHostname() bool { + if o != nil && !IsNil(o.Hostname) { + return true + } + + return false +} + +// SetHostname gets a reference to the given string and assigns it to the Hostname field. +func (o *VendorConfigDetailsNode0) SetHostname(v string) { + o.Hostname = &v +} + +// GetActivationKey returns the ActivationKey field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetActivationKey() string { + if o == nil || IsNil(o.ActivationKey) { + var ret string + return ret + } + return *o.ActivationKey +} + +// GetActivationKeyOk returns a tuple with the ActivationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetActivationKeyOk() (*string, bool) { + if o == nil || IsNil(o.ActivationKey) { + return nil, false + } + return o.ActivationKey, true +} + +// HasActivationKey returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasActivationKey() bool { + if o != nil && !IsNil(o.ActivationKey) { + return true + } + + return false +} + +// SetActivationKey gets a reference to the given string and assigns it to the ActivationKey field. +func (o *VendorConfigDetailsNode0) SetActivationKey(v string) { + o.ActivationKey = &v +} + +// GetControllerFqdn returns the ControllerFqdn field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetControllerFqdn() string { + if o == nil || IsNil(o.ControllerFqdn) { + var ret string + return ret + } + return *o.ControllerFqdn +} + +// GetControllerFqdnOk returns a tuple with the ControllerFqdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetControllerFqdnOk() (*string, bool) { + if o == nil || IsNil(o.ControllerFqdn) { + return nil, false + } + return o.ControllerFqdn, true +} + +// HasControllerFqdn returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasControllerFqdn() bool { + if o != nil && !IsNil(o.ControllerFqdn) { + return true + } + + return false +} + +// SetControllerFqdn gets a reference to the given string and assigns it to the ControllerFqdn field. +func (o *VendorConfigDetailsNode0) SetControllerFqdn(v string) { + o.ControllerFqdn = &v +} + +// GetRootPassword returns the RootPassword field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetRootPassword() string { + if o == nil || IsNil(o.RootPassword) { + var ret string + return ret + } + return *o.RootPassword +} + +// GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetRootPasswordOk() (*string, bool) { + if o == nil || IsNil(o.RootPassword) { + return nil, false + } + return o.RootPassword, true +} + +// HasRootPassword returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasRootPassword() bool { + if o != nil && !IsNil(o.RootPassword) { + return true + } + + return false +} + +// SetRootPassword gets a reference to the given string and assigns it to the RootPassword field. +func (o *VendorConfigDetailsNode0) SetRootPassword(v string) { + o.RootPassword = &v +} + +// GetAdminPassword returns the AdminPassword field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetAdminPassword() string { + if o == nil || IsNil(o.AdminPassword) { + var ret string + return ret + } + return *o.AdminPassword +} + +// GetAdminPasswordOk returns a tuple with the AdminPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetAdminPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AdminPassword) { + return nil, false + } + return o.AdminPassword, true +} + +// HasAdminPassword returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasAdminPassword() bool { + if o != nil && !IsNil(o.AdminPassword) { + return true + } + + return false +} + +// SetAdminPassword gets a reference to the given string and assigns it to the AdminPassword field. +func (o *VendorConfigDetailsNode0) SetAdminPassword(v string) { + o.AdminPassword = &v +} + +// GetController1 returns the Controller1 field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode0) GetController1() string { + if o == nil || IsNil(o.Controller1) { + var ret string + return ret + } + return *o.Controller1 +} + +// GetController1Ok returns a tuple with the Controller1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode0) GetController1Ok() (*string, bool) { + if o == nil || IsNil(o.Controller1) { + return nil, false + } + return o.Controller1, true +} + +// HasController1 returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode0) HasController1() bool { + if o != nil && !IsNil(o.Controller1) { + return true + } + + return false +} + +// SetController1 gets a reference to the given string and assigns it to the Controller1 field. +func (o *VendorConfigDetailsNode0) SetController1(v string) { + o.Controller1 = &v +} + +func (o VendorConfigDetailsNode0) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorConfigDetailsNode0) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Hostname) { + toSerialize["hostname"] = o.Hostname + } + if !IsNil(o.ActivationKey) { + toSerialize["activationKey"] = o.ActivationKey + } + if !IsNil(o.ControllerFqdn) { + toSerialize["controllerFqdn"] = o.ControllerFqdn + } + if !IsNil(o.RootPassword) { + toSerialize["rootPassword"] = o.RootPassword + } + if !IsNil(o.AdminPassword) { + toSerialize["adminPassword"] = o.AdminPassword + } + if !IsNil(o.Controller1) { + toSerialize["controller1"] = o.Controller1 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VendorConfigDetailsNode0) UnmarshalJSON(data []byte) (err error) { + varVendorConfigDetailsNode0 := _VendorConfigDetailsNode0{} + + err = json.Unmarshal(data, &varVendorConfigDetailsNode0) + + if err != nil { + return err + } + + *o = VendorConfigDetailsNode0(varVendorConfigDetailsNode0) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "hostname") + delete(additionalProperties, "activationKey") + delete(additionalProperties, "controllerFqdn") + delete(additionalProperties, "rootPassword") + delete(additionalProperties, "adminPassword") + delete(additionalProperties, "controller1") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVendorConfigDetailsNode0 struct { + value *VendorConfigDetailsNode0 + isSet bool +} + +func (v NullableVendorConfigDetailsNode0) Get() *VendorConfigDetailsNode0 { + return v.value +} + +func (v *NullableVendorConfigDetailsNode0) Set(val *VendorConfigDetailsNode0) { + v.value = val + v.isSet = true +} + +func (v NullableVendorConfigDetailsNode0) IsSet() bool { + return v.isSet +} + +func (v *NullableVendorConfigDetailsNode0) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVendorConfigDetailsNode0(val *VendorConfigDetailsNode0) *NullableVendorConfigDetailsNode0 { + return &NullableVendorConfigDetailsNode0{value: val, isSet: true} +} + +func (v NullableVendorConfigDetailsNode0) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVendorConfigDetailsNode0) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vendor_config_details_node1.go b/services/networkedgev1/model_vendor_config_details_node1.go new file mode 100644 index 00000000..793e8531 --- /dev/null +++ b/services/networkedgev1/model_vendor_config_details_node1.go @@ -0,0 +1,230 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VendorConfigDetailsNode1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorConfigDetailsNode1{} + +// VendorConfigDetailsNode1 struct for VendorConfigDetailsNode1 +type VendorConfigDetailsNode1 struct { + // The host name. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14; Aruba 2-24. + Hostname *string `json:"hostname,omitempty"` + RootPassword *string `json:"rootPassword,omitempty"` + // The administrative password of the device. You can use it to log in to the console. This field is not available for all device types. + AdminPassword *string `json:"adminPassword,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VendorConfigDetailsNode1 VendorConfigDetailsNode1 + +// NewVendorConfigDetailsNode1 instantiates a new VendorConfigDetailsNode1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVendorConfigDetailsNode1() *VendorConfigDetailsNode1 { + this := VendorConfigDetailsNode1{} + return &this +} + +// NewVendorConfigDetailsNode1WithDefaults instantiates a new VendorConfigDetailsNode1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVendorConfigDetailsNode1WithDefaults() *VendorConfigDetailsNode1 { + this := VendorConfigDetailsNode1{} + return &this +} + +// GetHostname returns the Hostname field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode1) GetHostname() string { + if o == nil || IsNil(o.Hostname) { + var ret string + return ret + } + return *o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode1) GetHostnameOk() (*string, bool) { + if o == nil || IsNil(o.Hostname) { + return nil, false + } + return o.Hostname, true +} + +// HasHostname returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode1) HasHostname() bool { + if o != nil && !IsNil(o.Hostname) { + return true + } + + return false +} + +// SetHostname gets a reference to the given string and assigns it to the Hostname field. +func (o *VendorConfigDetailsNode1) SetHostname(v string) { + o.Hostname = &v +} + +// GetRootPassword returns the RootPassword field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode1) GetRootPassword() string { + if o == nil || IsNil(o.RootPassword) { + var ret string + return ret + } + return *o.RootPassword +} + +// GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode1) GetRootPasswordOk() (*string, bool) { + if o == nil || IsNil(o.RootPassword) { + return nil, false + } + return o.RootPassword, true +} + +// HasRootPassword returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode1) HasRootPassword() bool { + if o != nil && !IsNil(o.RootPassword) { + return true + } + + return false +} + +// SetRootPassword gets a reference to the given string and assigns it to the RootPassword field. +func (o *VendorConfigDetailsNode1) SetRootPassword(v string) { + o.RootPassword = &v +} + +// GetAdminPassword returns the AdminPassword field value if set, zero value otherwise. +func (o *VendorConfigDetailsNode1) GetAdminPassword() string { + if o == nil || IsNil(o.AdminPassword) { + var ret string + return ret + } + return *o.AdminPassword +} + +// GetAdminPasswordOk returns a tuple with the AdminPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorConfigDetailsNode1) GetAdminPasswordOk() (*string, bool) { + if o == nil || IsNil(o.AdminPassword) { + return nil, false + } + return o.AdminPassword, true +} + +// HasAdminPassword returns a boolean if a field has been set. +func (o *VendorConfigDetailsNode1) HasAdminPassword() bool { + if o != nil && !IsNil(o.AdminPassword) { + return true + } + + return false +} + +// SetAdminPassword gets a reference to the given string and assigns it to the AdminPassword field. +func (o *VendorConfigDetailsNode1) SetAdminPassword(v string) { + o.AdminPassword = &v +} + +func (o VendorConfigDetailsNode1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorConfigDetailsNode1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Hostname) { + toSerialize["hostname"] = o.Hostname + } + if !IsNil(o.RootPassword) { + toSerialize["rootPassword"] = o.RootPassword + } + if !IsNil(o.AdminPassword) { + toSerialize["adminPassword"] = o.AdminPassword + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VendorConfigDetailsNode1) UnmarshalJSON(data []byte) (err error) { + varVendorConfigDetailsNode1 := _VendorConfigDetailsNode1{} + + err = json.Unmarshal(data, &varVendorConfigDetailsNode1) + + if err != nil { + return err + } + + *o = VendorConfigDetailsNode1(varVendorConfigDetailsNode1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "hostname") + delete(additionalProperties, "rootPassword") + delete(additionalProperties, "adminPassword") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVendorConfigDetailsNode1 struct { + value *VendorConfigDetailsNode1 + isSet bool +} + +func (v NullableVendorConfigDetailsNode1) Get() *VendorConfigDetailsNode1 { + return v.value +} + +func (v *NullableVendorConfigDetailsNode1) Set(val *VendorConfigDetailsNode1) { + v.value = val + v.isSet = true +} + +func (v NullableVendorConfigDetailsNode1) IsSet() bool { + return v.isSet +} + +func (v *NullableVendorConfigDetailsNode1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVendorConfigDetailsNode1(val *VendorConfigDetailsNode1) *NullableVendorConfigDetailsNode1 { + return &NullableVendorConfigDetailsNode1{value: val, isSet: true} +} + +func (v NullableVendorConfigDetailsNode1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVendorConfigDetailsNode1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vendor_terms_response.go b/services/networkedgev1/model_vendor_terms_response.go new file mode 100644 index 00000000..56d0477a --- /dev/null +++ b/services/networkedgev1/model_vendor_terms_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VendorTermsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorTermsResponse{} + +// VendorTermsResponse struct for VendorTermsResponse +type VendorTermsResponse struct { + Terms *string `json:"terms,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VendorTermsResponse VendorTermsResponse + +// NewVendorTermsResponse instantiates a new VendorTermsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVendorTermsResponse() *VendorTermsResponse { + this := VendorTermsResponse{} + return &this +} + +// NewVendorTermsResponseWithDefaults instantiates a new VendorTermsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVendorTermsResponseWithDefaults() *VendorTermsResponse { + this := VendorTermsResponse{} + return &this +} + +// GetTerms returns the Terms field value if set, zero value otherwise. +func (o *VendorTermsResponse) GetTerms() string { + if o == nil || IsNil(o.Terms) { + var ret string + return ret + } + return *o.Terms +} + +// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VendorTermsResponse) GetTermsOk() (*string, bool) { + if o == nil || IsNil(o.Terms) { + return nil, false + } + return o.Terms, true +} + +// HasTerms returns a boolean if a field has been set. +func (o *VendorTermsResponse) HasTerms() bool { + if o != nil && !IsNil(o.Terms) { + return true + } + + return false +} + +// SetTerms gets a reference to the given string and assigns it to the Terms field. +func (o *VendorTermsResponse) SetTerms(v string) { + o.Terms = &v +} + +func (o VendorTermsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorTermsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Terms) { + toSerialize["terms"] = o.Terms + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VendorTermsResponse) UnmarshalJSON(data []byte) (err error) { + varVendorTermsResponse := _VendorTermsResponse{} + + err = json.Unmarshal(data, &varVendorTermsResponse) + + if err != nil { + return err + } + + *o = VendorTermsResponse(varVendorTermsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "terms") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVendorTermsResponse struct { + value *VendorTermsResponse + isSet bool +} + +func (v NullableVendorTermsResponse) Get() *VendorTermsResponse { + return v.value +} + +func (v *NullableVendorTermsResponse) Set(val *VendorTermsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVendorTermsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVendorTermsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVendorTermsResponse(val *VendorTermsResponse) *NullableVendorTermsResponse { + return &NullableVendorTermsResponse{value: val, isSet: true} +} + +func (v NullableVendorTermsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVendorTermsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_version_details.go b/services/networkedgev1/model_version_details.go new file mode 100644 index 00000000..6011bd10 --- /dev/null +++ b/services/networkedgev1/model_version_details.go @@ -0,0 +1,376 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VersionDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VersionDetails{} + +// VersionDetails struct for VersionDetails +type VersionDetails struct { + Cause *VersionDetails `json:"cause,omitempty"` + Version *string `json:"version,omitempty"` + ImageName *string `json:"imageName,omitempty"` + VersionDate *string `json:"versionDate,omitempty"` + Status *string `json:"status,omitempty"` + StableVersion *string `json:"stableVersion,omitempty"` + AllowedUpgradableVersions []string `json:"allowedUpgradableVersions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VersionDetails VersionDetails + +// NewVersionDetails instantiates a new VersionDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVersionDetails() *VersionDetails { + this := VersionDetails{} + return &this +} + +// NewVersionDetailsWithDefaults instantiates a new VersionDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionDetailsWithDefaults() *VersionDetails { + this := VersionDetails{} + return &this +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *VersionDetails) GetCause() VersionDetails { + if o == nil || IsNil(o.Cause) { + var ret VersionDetails + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetCauseOk() (*VersionDetails, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *VersionDetails) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given VersionDetails and assigns it to the Cause field. +func (o *VersionDetails) SetCause(v VersionDetails) { + o.Cause = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *VersionDetails) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *VersionDetails) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *VersionDetails) SetVersion(v string) { + o.Version = &v +} + +// GetImageName returns the ImageName field value if set, zero value otherwise. +func (o *VersionDetails) GetImageName() string { + if o == nil || IsNil(o.ImageName) { + var ret string + return ret + } + return *o.ImageName +} + +// GetImageNameOk returns a tuple with the ImageName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetImageNameOk() (*string, bool) { + if o == nil || IsNil(o.ImageName) { + return nil, false + } + return o.ImageName, true +} + +// HasImageName returns a boolean if a field has been set. +func (o *VersionDetails) HasImageName() bool { + if o != nil && !IsNil(o.ImageName) { + return true + } + + return false +} + +// SetImageName gets a reference to the given string and assigns it to the ImageName field. +func (o *VersionDetails) SetImageName(v string) { + o.ImageName = &v +} + +// GetVersionDate returns the VersionDate field value if set, zero value otherwise. +func (o *VersionDetails) GetVersionDate() string { + if o == nil || IsNil(o.VersionDate) { + var ret string + return ret + } + return *o.VersionDate +} + +// GetVersionDateOk returns a tuple with the VersionDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetVersionDateOk() (*string, bool) { + if o == nil || IsNil(o.VersionDate) { + return nil, false + } + return o.VersionDate, true +} + +// HasVersionDate returns a boolean if a field has been set. +func (o *VersionDetails) HasVersionDate() bool { + if o != nil && !IsNil(o.VersionDate) { + return true + } + + return false +} + +// SetVersionDate gets a reference to the given string and assigns it to the VersionDate field. +func (o *VersionDetails) SetVersionDate(v string) { + o.VersionDate = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VersionDetails) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VersionDetails) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *VersionDetails) SetStatus(v string) { + o.Status = &v +} + +// GetStableVersion returns the StableVersion field value if set, zero value otherwise. +func (o *VersionDetails) GetStableVersion() string { + if o == nil || IsNil(o.StableVersion) { + var ret string + return ret + } + return *o.StableVersion +} + +// GetStableVersionOk returns a tuple with the StableVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetStableVersionOk() (*string, bool) { + if o == nil || IsNil(o.StableVersion) { + return nil, false + } + return o.StableVersion, true +} + +// HasStableVersion returns a boolean if a field has been set. +func (o *VersionDetails) HasStableVersion() bool { + if o != nil && !IsNil(o.StableVersion) { + return true + } + + return false +} + +// SetStableVersion gets a reference to the given string and assigns it to the StableVersion field. +func (o *VersionDetails) SetStableVersion(v string) { + o.StableVersion = &v +} + +// GetAllowedUpgradableVersions returns the AllowedUpgradableVersions field value if set, zero value otherwise. +func (o *VersionDetails) GetAllowedUpgradableVersions() []string { + if o == nil || IsNil(o.AllowedUpgradableVersions) { + var ret []string + return ret + } + return o.AllowedUpgradableVersions +} + +// GetAllowedUpgradableVersionsOk returns a tuple with the AllowedUpgradableVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionDetails) GetAllowedUpgradableVersionsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedUpgradableVersions) { + return nil, false + } + return o.AllowedUpgradableVersions, true +} + +// HasAllowedUpgradableVersions returns a boolean if a field has been set. +func (o *VersionDetails) HasAllowedUpgradableVersions() bool { + if o != nil && !IsNil(o.AllowedUpgradableVersions) { + return true + } + + return false +} + +// SetAllowedUpgradableVersions gets a reference to the given []string and assigns it to the AllowedUpgradableVersions field. +func (o *VersionDetails) SetAllowedUpgradableVersions(v []string) { + o.AllowedUpgradableVersions = v +} + +func (o VersionDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VersionDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.ImageName) { + toSerialize["imageName"] = o.ImageName + } + if !IsNil(o.VersionDate) { + toSerialize["versionDate"] = o.VersionDate + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StableVersion) { + toSerialize["stableVersion"] = o.StableVersion + } + if !IsNil(o.AllowedUpgradableVersions) { + toSerialize["allowedUpgradableVersions"] = o.AllowedUpgradableVersions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VersionDetails) UnmarshalJSON(data []byte) (err error) { + varVersionDetails := _VersionDetails{} + + err = json.Unmarshal(data, &varVersionDetails) + + if err != nil { + return err + } + + *o = VersionDetails(varVersionDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cause") + delete(additionalProperties, "version") + delete(additionalProperties, "imageName") + delete(additionalProperties, "versionDate") + delete(additionalProperties, "status") + delete(additionalProperties, "stableVersion") + delete(additionalProperties, "allowedUpgradableVersions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVersionDetails struct { + value *VersionDetails + isSet bool +} + +func (v NullableVersionDetails) Get() *VersionDetails { + return v.value +} + +func (v *NullableVersionDetails) Set(val *VersionDetails) { + v.value = val + v.isSet = true +} + +func (v NullableVersionDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionDetails(val *VersionDetails) *NullableVersionDetails { + return &NullableVersionDetails{value: val, isSet: true} +} + +func (v NullableVersionDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_devic_ha_request.go b/services/networkedgev1/model_virtual_devic_ha_request.go new file mode 100644 index 00000000..2d26cacc --- /dev/null +++ b/services/networkedgev1/model_virtual_devic_ha_request.go @@ -0,0 +1,788 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the VirtualDevicHARequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDevicHARequest{} + +// VirtualDevicHARequest struct for VirtualDevicHARequest +type VirtualDevicHARequest struct { + AccountNumber *string `json:"accountNumber,omitempty"` + AccountReferenceId *string `json:"accountReferenceId,omitempty"` + // You can only choose a version for the secondary device when adding a secondary device to an existing device. + Version *string `json:"version,omitempty"` + // Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. + AdditionalBandwidth *int32 `json:"additionalBandwidth,omitempty"` + LicenseFileId *string `json:"licenseFileId,omitempty"` + LicenseToken *string `json:"licenseToken,omitempty"` + MetroCode string `json:"metroCode"` + Notifications []VirtualDevicHARequestNotificationsInner `json:"notifications"` + // An array of ACLs + AclDetails []ACLDetails `json:"aclDetails,omitempty"` + SshUsers []SshUserOperationRequest `json:"sshUsers,omitempty"` + // Virtual Device Name + VirtualDeviceName string `json:"virtualDeviceName"` + // Host name prefix for identification. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14 characters; Aruba 2-24 characters. + HostNamePrefix *string `json:"hostNamePrefix,omitempty"` + SiteId *string `json:"siteId,omitempty"` + SystemIpAddress *string `json:"systemIpAddress,omitempty"` + VendorConfig *VendorConfig `json:"vendorConfig,omitempty"` + // You may specify any available interface on the device as the sshInterfaceId. This field is only applicable to self-configured devices. + SshInterfaceId *string `json:"sshInterfaceId,omitempty"` + // License URL. This field is only relevant for Ciso ASAv devices. + SmartLicenseUrl *string `json:"smartLicenseUrl,omitempty"` + // The Id of a previously uploaded license or cloud_init file. + CloudInitFileId *string `json:"cloudInitFileId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDevicHARequest VirtualDevicHARequest + +// NewVirtualDevicHARequest instantiates a new VirtualDevicHARequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDevicHARequest(metroCode string, notifications []VirtualDevicHARequestNotificationsInner, virtualDeviceName string) *VirtualDevicHARequest { + this := VirtualDevicHARequest{} + this.MetroCode = metroCode + this.Notifications = notifications + this.VirtualDeviceName = virtualDeviceName + return &this +} + +// NewVirtualDevicHARequestWithDefaults instantiates a new VirtualDevicHARequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDevicHARequestWithDefaults() *VirtualDevicHARequest { + this := VirtualDevicHARequest{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *VirtualDevicHARequest) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetAccountReferenceId returns the AccountReferenceId field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetAccountReferenceId() string { + if o == nil || IsNil(o.AccountReferenceId) { + var ret string + return ret + } + return *o.AccountReferenceId +} + +// GetAccountReferenceIdOk returns a tuple with the AccountReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetAccountReferenceIdOk() (*string, bool) { + if o == nil || IsNil(o.AccountReferenceId) { + return nil, false + } + return o.AccountReferenceId, true +} + +// HasAccountReferenceId returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasAccountReferenceId() bool { + if o != nil && !IsNil(o.AccountReferenceId) { + return true + } + + return false +} + +// SetAccountReferenceId gets a reference to the given string and assigns it to the AccountReferenceId field. +func (o *VirtualDevicHARequest) SetAccountReferenceId(v string) { + o.AccountReferenceId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *VirtualDevicHARequest) SetVersion(v string) { + o.Version = &v +} + +// GetAdditionalBandwidth returns the AdditionalBandwidth field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetAdditionalBandwidth() int32 { + if o == nil || IsNil(o.AdditionalBandwidth) { + var ret int32 + return ret + } + return *o.AdditionalBandwidth +} + +// GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetAdditionalBandwidthOk() (*int32, bool) { + if o == nil || IsNil(o.AdditionalBandwidth) { + return nil, false + } + return o.AdditionalBandwidth, true +} + +// HasAdditionalBandwidth returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasAdditionalBandwidth() bool { + if o != nil && !IsNil(o.AdditionalBandwidth) { + return true + } + + return false +} + +// SetAdditionalBandwidth gets a reference to the given int32 and assigns it to the AdditionalBandwidth field. +func (o *VirtualDevicHARequest) SetAdditionalBandwidth(v int32) { + o.AdditionalBandwidth = &v +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *VirtualDevicHARequest) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetLicenseToken returns the LicenseToken field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetLicenseToken() string { + if o == nil || IsNil(o.LicenseToken) { + var ret string + return ret + } + return *o.LicenseToken +} + +// GetLicenseTokenOk returns a tuple with the LicenseToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetLicenseTokenOk() (*string, bool) { + if o == nil || IsNil(o.LicenseToken) { + return nil, false + } + return o.LicenseToken, true +} + +// HasLicenseToken returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasLicenseToken() bool { + if o != nil && !IsNil(o.LicenseToken) { + return true + } + + return false +} + +// SetLicenseToken gets a reference to the given string and assigns it to the LicenseToken field. +func (o *VirtualDevicHARequest) SetLicenseToken(v string) { + o.LicenseToken = &v +} + +// GetMetroCode returns the MetroCode field value +func (o *VirtualDevicHARequest) GetMetroCode() string { + if o == nil { + var ret string + return ret + } + + return o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetMetroCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetroCode, true +} + +// SetMetroCode sets field value +func (o *VirtualDevicHARequest) SetMetroCode(v string) { + o.MetroCode = v +} + +// GetNotifications returns the Notifications field value +func (o *VirtualDevicHARequest) GetNotifications() []VirtualDevicHARequestNotificationsInner { + if o == nil { + var ret []VirtualDevicHARequestNotificationsInner + return ret + } + + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetNotificationsOk() ([]VirtualDevicHARequestNotificationsInner, bool) { + if o == nil { + return nil, false + } + return o.Notifications, true +} + +// SetNotifications sets field value +func (o *VirtualDevicHARequest) SetNotifications(v []VirtualDevicHARequestNotificationsInner) { + o.Notifications = v +} + +// GetAclDetails returns the AclDetails field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetAclDetails() []ACLDetails { + if o == nil || IsNil(o.AclDetails) { + var ret []ACLDetails + return ret + } + return o.AclDetails +} + +// GetAclDetailsOk returns a tuple with the AclDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetAclDetailsOk() ([]ACLDetails, bool) { + if o == nil || IsNil(o.AclDetails) { + return nil, false + } + return o.AclDetails, true +} + +// HasAclDetails returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasAclDetails() bool { + if o != nil && !IsNil(o.AclDetails) { + return true + } + + return false +} + +// SetAclDetails gets a reference to the given []ACLDetails and assigns it to the AclDetails field. +func (o *VirtualDevicHARequest) SetAclDetails(v []ACLDetails) { + o.AclDetails = v +} + +// GetSshUsers returns the SshUsers field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetSshUsers() []SshUserOperationRequest { + if o == nil || IsNil(o.SshUsers) { + var ret []SshUserOperationRequest + return ret + } + return o.SshUsers +} + +// GetSshUsersOk returns a tuple with the SshUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetSshUsersOk() ([]SshUserOperationRequest, bool) { + if o == nil || IsNil(o.SshUsers) { + return nil, false + } + return o.SshUsers, true +} + +// HasSshUsers returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasSshUsers() bool { + if o != nil && !IsNil(o.SshUsers) { + return true + } + + return false +} + +// SetSshUsers gets a reference to the given []SshUserOperationRequest and assigns it to the SshUsers field. +func (o *VirtualDevicHARequest) SetSshUsers(v []SshUserOperationRequest) { + o.SshUsers = v +} + +// GetVirtualDeviceName returns the VirtualDeviceName field value +func (o *VirtualDevicHARequest) GetVirtualDeviceName() string { + if o == nil { + var ret string + return ret + } + + return o.VirtualDeviceName +} + +// GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field value +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetVirtualDeviceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VirtualDeviceName, true +} + +// SetVirtualDeviceName sets field value +func (o *VirtualDevicHARequest) SetVirtualDeviceName(v string) { + o.VirtualDeviceName = v +} + +// GetHostNamePrefix returns the HostNamePrefix field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetHostNamePrefix() string { + if o == nil || IsNil(o.HostNamePrefix) { + var ret string + return ret + } + return *o.HostNamePrefix +} + +// GetHostNamePrefixOk returns a tuple with the HostNamePrefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetHostNamePrefixOk() (*string, bool) { + if o == nil || IsNil(o.HostNamePrefix) { + return nil, false + } + return o.HostNamePrefix, true +} + +// HasHostNamePrefix returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasHostNamePrefix() bool { + if o != nil && !IsNil(o.HostNamePrefix) { + return true + } + + return false +} + +// SetHostNamePrefix gets a reference to the given string and assigns it to the HostNamePrefix field. +func (o *VirtualDevicHARequest) SetHostNamePrefix(v string) { + o.HostNamePrefix = &v +} + +// GetSiteId returns the SiteId field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetSiteId() string { + if o == nil || IsNil(o.SiteId) { + var ret string + return ret + } + return *o.SiteId +} + +// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetSiteIdOk() (*string, bool) { + if o == nil || IsNil(o.SiteId) { + return nil, false + } + return o.SiteId, true +} + +// HasSiteId returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasSiteId() bool { + if o != nil && !IsNil(o.SiteId) { + return true + } + + return false +} + +// SetSiteId gets a reference to the given string and assigns it to the SiteId field. +func (o *VirtualDevicHARequest) SetSiteId(v string) { + o.SiteId = &v +} + +// GetSystemIpAddress returns the SystemIpAddress field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetSystemIpAddress() string { + if o == nil || IsNil(o.SystemIpAddress) { + var ret string + return ret + } + return *o.SystemIpAddress +} + +// GetSystemIpAddressOk returns a tuple with the SystemIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetSystemIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SystemIpAddress) { + return nil, false + } + return o.SystemIpAddress, true +} + +// HasSystemIpAddress returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasSystemIpAddress() bool { + if o != nil && !IsNil(o.SystemIpAddress) { + return true + } + + return false +} + +// SetSystemIpAddress gets a reference to the given string and assigns it to the SystemIpAddress field. +func (o *VirtualDevicHARequest) SetSystemIpAddress(v string) { + o.SystemIpAddress = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetVendorConfig() VendorConfig { + if o == nil || IsNil(o.VendorConfig) { + var ret VendorConfig + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetVendorConfigOk() (*VendorConfig, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VendorConfig and assigns it to the VendorConfig field. +func (o *VirtualDevicHARequest) SetVendorConfig(v VendorConfig) { + o.VendorConfig = &v +} + +// GetSshInterfaceId returns the SshInterfaceId field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetSshInterfaceId() string { + if o == nil || IsNil(o.SshInterfaceId) { + var ret string + return ret + } + return *o.SshInterfaceId +} + +// GetSshInterfaceIdOk returns a tuple with the SshInterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetSshInterfaceIdOk() (*string, bool) { + if o == nil || IsNil(o.SshInterfaceId) { + return nil, false + } + return o.SshInterfaceId, true +} + +// HasSshInterfaceId returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasSshInterfaceId() bool { + if o != nil && !IsNil(o.SshInterfaceId) { + return true + } + + return false +} + +// SetSshInterfaceId gets a reference to the given string and assigns it to the SshInterfaceId field. +func (o *VirtualDevicHARequest) SetSshInterfaceId(v string) { + o.SshInterfaceId = &v +} + +// GetSmartLicenseUrl returns the SmartLicenseUrl field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetSmartLicenseUrl() string { + if o == nil || IsNil(o.SmartLicenseUrl) { + var ret string + return ret + } + return *o.SmartLicenseUrl +} + +// GetSmartLicenseUrlOk returns a tuple with the SmartLicenseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetSmartLicenseUrlOk() (*string, bool) { + if o == nil || IsNil(o.SmartLicenseUrl) { + return nil, false + } + return o.SmartLicenseUrl, true +} + +// HasSmartLicenseUrl returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasSmartLicenseUrl() bool { + if o != nil && !IsNil(o.SmartLicenseUrl) { + return true + } + + return false +} + +// SetSmartLicenseUrl gets a reference to the given string and assigns it to the SmartLicenseUrl field. +func (o *VirtualDevicHARequest) SetSmartLicenseUrl(v string) { + o.SmartLicenseUrl = &v +} + +// GetCloudInitFileId returns the CloudInitFileId field value if set, zero value otherwise. +func (o *VirtualDevicHARequest) GetCloudInitFileId() string { + if o == nil || IsNil(o.CloudInitFileId) { + var ret string + return ret + } + return *o.CloudInitFileId +} + +// GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicHARequest) GetCloudInitFileIdOk() (*string, bool) { + if o == nil || IsNil(o.CloudInitFileId) { + return nil, false + } + return o.CloudInitFileId, true +} + +// HasCloudInitFileId returns a boolean if a field has been set. +func (o *VirtualDevicHARequest) HasCloudInitFileId() bool { + if o != nil && !IsNil(o.CloudInitFileId) { + return true + } + + return false +} + +// SetCloudInitFileId gets a reference to the given string and assigns it to the CloudInitFileId field. +func (o *VirtualDevicHARequest) SetCloudInitFileId(v string) { + o.CloudInitFileId = &v +} + +func (o VirtualDevicHARequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDevicHARequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.AccountReferenceId) { + toSerialize["accountReferenceId"] = o.AccountReferenceId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.AdditionalBandwidth) { + toSerialize["additionalBandwidth"] = o.AdditionalBandwidth + } + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.LicenseToken) { + toSerialize["licenseToken"] = o.LicenseToken + } + toSerialize["metroCode"] = o.MetroCode + toSerialize["notifications"] = o.Notifications + if !IsNil(o.AclDetails) { + toSerialize["aclDetails"] = o.AclDetails + } + if !IsNil(o.SshUsers) { + toSerialize["sshUsers"] = o.SshUsers + } + toSerialize["virtualDeviceName"] = o.VirtualDeviceName + if !IsNil(o.HostNamePrefix) { + toSerialize["hostNamePrefix"] = o.HostNamePrefix + } + if !IsNil(o.SiteId) { + toSerialize["siteId"] = o.SiteId + } + if !IsNil(o.SystemIpAddress) { + toSerialize["systemIpAddress"] = o.SystemIpAddress + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + if !IsNil(o.SshInterfaceId) { + toSerialize["sshInterfaceId"] = o.SshInterfaceId + } + if !IsNil(o.SmartLicenseUrl) { + toSerialize["smartLicenseUrl"] = o.SmartLicenseUrl + } + if !IsNil(o.CloudInitFileId) { + toSerialize["cloudInitFileId"] = o.CloudInitFileId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDevicHARequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "metroCode", + "notifications", + "virtualDeviceName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varVirtualDevicHARequest := _VirtualDevicHARequest{} + + err = json.Unmarshal(data, &varVirtualDevicHARequest) + + if err != nil { + return err + } + + *o = VirtualDevicHARequest(varVirtualDevicHARequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "accountReferenceId") + delete(additionalProperties, "version") + delete(additionalProperties, "additionalBandwidth") + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "licenseToken") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "notifications") + delete(additionalProperties, "aclDetails") + delete(additionalProperties, "sshUsers") + delete(additionalProperties, "virtualDeviceName") + delete(additionalProperties, "hostNamePrefix") + delete(additionalProperties, "siteId") + delete(additionalProperties, "systemIpAddress") + delete(additionalProperties, "vendorConfig") + delete(additionalProperties, "sshInterfaceId") + delete(additionalProperties, "smartLicenseUrl") + delete(additionalProperties, "cloudInitFileId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDevicHARequest struct { + value *VirtualDevicHARequest + isSet bool +} + +func (v NullableVirtualDevicHARequest) Get() *VirtualDevicHARequest { + return v.value +} + +func (v *NullableVirtualDevicHARequest) Set(val *VirtualDevicHARequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDevicHARequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDevicHARequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDevicHARequest(val *VirtualDevicHARequest) *NullableVirtualDevicHARequest { + return &NullableVirtualDevicHARequest{value: val, isSet: true} +} + +func (v NullableVirtualDevicHARequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDevicHARequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_devic_ha_request_notifications_inner.go b/services/networkedgev1/model_virtual_devic_ha_request_notifications_inner.go new file mode 100644 index 00000000..71c35478 --- /dev/null +++ b/services/networkedgev1/model_virtual_devic_ha_request_notifications_inner.go @@ -0,0 +1,111 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// VirtualDevicHARequestNotificationsInner the model 'VirtualDevicHARequestNotificationsInner' +type VirtualDevicHARequestNotificationsInner string + +// List of VirtualDevicHARequest_notifications_inner +const ( + VIRTUALDEVICHAREQUESTNOTIFICATIONSINNER_TEST1EXAMPLE_COM VirtualDevicHARequestNotificationsInner = "test1@example.com" + VIRTUALDEVICHAREQUESTNOTIFICATIONSINNER_TEST2EXAMPLE_COM VirtualDevicHARequestNotificationsInner = "test2@example.com" +) + +// All allowed values of VirtualDevicHARequestNotificationsInner enum +var AllowedVirtualDevicHARequestNotificationsInnerEnumValues = []VirtualDevicHARequestNotificationsInner{ + "test1@example.com", + "test2@example.com", +} + +func (v *VirtualDevicHARequestNotificationsInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VirtualDevicHARequestNotificationsInner(value) + for _, existing := range AllowedVirtualDevicHARequestNotificationsInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VirtualDevicHARequestNotificationsInner", value) +} + +// NewVirtualDevicHARequestNotificationsInnerFromValue returns a pointer to a valid VirtualDevicHARequestNotificationsInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVirtualDevicHARequestNotificationsInnerFromValue(v string) (*VirtualDevicHARequestNotificationsInner, error) { + ev := VirtualDevicHARequestNotificationsInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VirtualDevicHARequestNotificationsInner: valid values are %v", v, AllowedVirtualDevicHARequestNotificationsInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VirtualDevicHARequestNotificationsInner) IsValid() bool { + for _, existing := range AllowedVirtualDevicHARequestNotificationsInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to VirtualDevicHARequest_notifications_inner value +func (v VirtualDevicHARequestNotificationsInner) Ptr() *VirtualDevicHARequestNotificationsInner { + return &v +} + +type NullableVirtualDevicHARequestNotificationsInner struct { + value *VirtualDevicHARequestNotificationsInner + isSet bool +} + +func (v NullableVirtualDevicHARequestNotificationsInner) Get() *VirtualDevicHARequestNotificationsInner { + return v.value +} + +func (v *NullableVirtualDevicHARequestNotificationsInner) Set(val *VirtualDevicHARequestNotificationsInner) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDevicHARequestNotificationsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDevicHARequestNotificationsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDevicHARequestNotificationsInner(val *VirtualDevicHARequestNotificationsInner) *NullableVirtualDevicHARequestNotificationsInner { + return &NullableVirtualDevicHARequestNotificationsInner{value: val, isSet: true} +} + +func (v NullableVirtualDevicHARequestNotificationsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDevicHARequestNotificationsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_acl_details.go b/services/networkedgev1/model_virtual_device_acl_details.go new file mode 100644 index 00000000..f6916682 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_acl_details.go @@ -0,0 +1,269 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceACLDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceACLDetails{} + +// VirtualDeviceACLDetails struct for VirtualDeviceACLDetails +type VirtualDeviceACLDetails struct { + // Name of the virtual device associated with this template. + Name *string `json:"name,omitempty"` + // The unique Id of the virtual device associated with this template. + Uuid *string `json:"uuid,omitempty"` + // Interface type, WAN or MGMT. + InterfaceType *string `json:"interfaceType,omitempty"` + // Device ACL status + AclStatus *string `json:"aclStatus,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceACLDetails VirtualDeviceACLDetails + +// NewVirtualDeviceACLDetails instantiates a new VirtualDeviceACLDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceACLDetails() *VirtualDeviceACLDetails { + this := VirtualDeviceACLDetails{} + return &this +} + +// NewVirtualDeviceACLDetailsWithDefaults instantiates a new VirtualDeviceACLDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceACLDetailsWithDefaults() *VirtualDeviceACLDetails { + this := VirtualDeviceACLDetails{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *VirtualDeviceACLDetails) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceACLDetails) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *VirtualDeviceACLDetails) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *VirtualDeviceACLDetails) SetName(v string) { + o.Name = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VirtualDeviceACLDetails) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceACLDetails) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *VirtualDeviceACLDetails) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *VirtualDeviceACLDetails) SetUuid(v string) { + o.Uuid = &v +} + +// GetInterfaceType returns the InterfaceType field value if set, zero value otherwise. +func (o *VirtualDeviceACLDetails) GetInterfaceType() string { + if o == nil || IsNil(o.InterfaceType) { + var ret string + return ret + } + return *o.InterfaceType +} + +// GetInterfaceTypeOk returns a tuple with the InterfaceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceACLDetails) GetInterfaceTypeOk() (*string, bool) { + if o == nil || IsNil(o.InterfaceType) { + return nil, false + } + return o.InterfaceType, true +} + +// HasInterfaceType returns a boolean if a field has been set. +func (o *VirtualDeviceACLDetails) HasInterfaceType() bool { + if o != nil && !IsNil(o.InterfaceType) { + return true + } + + return false +} + +// SetInterfaceType gets a reference to the given string and assigns it to the InterfaceType field. +func (o *VirtualDeviceACLDetails) SetInterfaceType(v string) { + o.InterfaceType = &v +} + +// GetAclStatus returns the AclStatus field value if set, zero value otherwise. +func (o *VirtualDeviceACLDetails) GetAclStatus() string { + if o == nil || IsNil(o.AclStatus) { + var ret string + return ret + } + return *o.AclStatus +} + +// GetAclStatusOk returns a tuple with the AclStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceACLDetails) GetAclStatusOk() (*string, bool) { + if o == nil || IsNil(o.AclStatus) { + return nil, false + } + return o.AclStatus, true +} + +// HasAclStatus returns a boolean if a field has been set. +func (o *VirtualDeviceACLDetails) HasAclStatus() bool { + if o != nil && !IsNil(o.AclStatus) { + return true + } + + return false +} + +// SetAclStatus gets a reference to the given string and assigns it to the AclStatus field. +func (o *VirtualDeviceACLDetails) SetAclStatus(v string) { + o.AclStatus = &v +} + +func (o VirtualDeviceACLDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceACLDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.InterfaceType) { + toSerialize["interfaceType"] = o.InterfaceType + } + if !IsNil(o.AclStatus) { + toSerialize["aclStatus"] = o.AclStatus + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceACLDetails) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceACLDetails := _VirtualDeviceACLDetails{} + + err = json.Unmarshal(data, &varVirtualDeviceACLDetails) + + if err != nil { + return err + } + + *o = VirtualDeviceACLDetails(varVirtualDeviceACLDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "uuid") + delete(additionalProperties, "interfaceType") + delete(additionalProperties, "aclStatus") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceACLDetails struct { + value *VirtualDeviceACLDetails + isSet bool +} + +func (v NullableVirtualDeviceACLDetails) Get() *VirtualDeviceACLDetails { + return v.value +} + +func (v *NullableVirtualDeviceACLDetails) Set(val *VirtualDeviceACLDetails) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceACLDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceACLDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceACLDetails(val *VirtualDeviceACLDetails) *NullableVirtualDeviceACLDetails { + return &NullableVirtualDeviceACLDetails{value: val, isSet: true} +} + +func (v NullableVirtualDeviceACLDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceACLDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_create_response.go b/services/networkedgev1/model_virtual_device_create_response.go new file mode 100644 index 00000000..a4084a25 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_create_response.go @@ -0,0 +1,154 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceCreateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceCreateResponse{} + +// VirtualDeviceCreateResponse struct for VirtualDeviceCreateResponse +type VirtualDeviceCreateResponse struct { + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceCreateResponse VirtualDeviceCreateResponse + +// NewVirtualDeviceCreateResponse instantiates a new VirtualDeviceCreateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceCreateResponse() *VirtualDeviceCreateResponse { + this := VirtualDeviceCreateResponse{} + return &this +} + +// NewVirtualDeviceCreateResponseWithDefaults instantiates a new VirtualDeviceCreateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceCreateResponseWithDefaults() *VirtualDeviceCreateResponse { + this := VirtualDeviceCreateResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VirtualDeviceCreateResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceCreateResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *VirtualDeviceCreateResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *VirtualDeviceCreateResponse) SetUuid(v string) { + o.Uuid = &v +} + +func (o VirtualDeviceCreateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceCreateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceCreateResponse) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceCreateResponse := _VirtualDeviceCreateResponse{} + + err = json.Unmarshal(data, &varVirtualDeviceCreateResponse) + + if err != nil { + return err + } + + *o = VirtualDeviceCreateResponse(varVirtualDeviceCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceCreateResponse struct { + value *VirtualDeviceCreateResponse + isSet bool +} + +func (v NullableVirtualDeviceCreateResponse) Get() *VirtualDeviceCreateResponse { + return v.value +} + +func (v *NullableVirtualDeviceCreateResponse) Set(val *VirtualDeviceCreateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceCreateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceCreateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceCreateResponse(val *VirtualDeviceCreateResponse) *NullableVirtualDeviceCreateResponse { + return &NullableVirtualDeviceCreateResponse{value: val, isSet: true} +} + +func (v NullableVirtualDeviceCreateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceCreateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_create_response_dto.go b/services/networkedgev1/model_virtual_device_create_response_dto.go new file mode 100644 index 00000000..c8ef7951 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_create_response_dto.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceCreateResponseDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceCreateResponseDto{} + +// VirtualDeviceCreateResponseDto struct for VirtualDeviceCreateResponseDto +type VirtualDeviceCreateResponseDto struct { + SecondaryUuid *string `json:"secondaryUuid,omitempty"` + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceCreateResponseDto VirtualDeviceCreateResponseDto + +// NewVirtualDeviceCreateResponseDto instantiates a new VirtualDeviceCreateResponseDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceCreateResponseDto() *VirtualDeviceCreateResponseDto { + this := VirtualDeviceCreateResponseDto{} + return &this +} + +// NewVirtualDeviceCreateResponseDtoWithDefaults instantiates a new VirtualDeviceCreateResponseDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceCreateResponseDtoWithDefaults() *VirtualDeviceCreateResponseDto { + this := VirtualDeviceCreateResponseDto{} + return &this +} + +// GetSecondaryUuid returns the SecondaryUuid field value if set, zero value otherwise. +func (o *VirtualDeviceCreateResponseDto) GetSecondaryUuid() string { + if o == nil || IsNil(o.SecondaryUuid) { + var ret string + return ret + } + return *o.SecondaryUuid +} + +// GetSecondaryUuidOk returns a tuple with the SecondaryUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceCreateResponseDto) GetSecondaryUuidOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryUuid) { + return nil, false + } + return o.SecondaryUuid, true +} + +// HasSecondaryUuid returns a boolean if a field has been set. +func (o *VirtualDeviceCreateResponseDto) HasSecondaryUuid() bool { + if o != nil && !IsNil(o.SecondaryUuid) { + return true + } + + return false +} + +// SetSecondaryUuid gets a reference to the given string and assigns it to the SecondaryUuid field. +func (o *VirtualDeviceCreateResponseDto) SetSecondaryUuid(v string) { + o.SecondaryUuid = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VirtualDeviceCreateResponseDto) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceCreateResponseDto) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *VirtualDeviceCreateResponseDto) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *VirtualDeviceCreateResponseDto) SetUuid(v string) { + o.Uuid = &v +} + +func (o VirtualDeviceCreateResponseDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceCreateResponseDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SecondaryUuid) { + toSerialize["secondaryUuid"] = o.SecondaryUuid + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceCreateResponseDto) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceCreateResponseDto := _VirtualDeviceCreateResponseDto{} + + err = json.Unmarshal(data, &varVirtualDeviceCreateResponseDto) + + if err != nil { + return err + } + + *o = VirtualDeviceCreateResponseDto(varVirtualDeviceCreateResponseDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "secondaryUuid") + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceCreateResponseDto struct { + value *VirtualDeviceCreateResponseDto + isSet bool +} + +func (v NullableVirtualDeviceCreateResponseDto) Get() *VirtualDeviceCreateResponseDto { + return v.value +} + +func (v *NullableVirtualDeviceCreateResponseDto) Set(val *VirtualDeviceCreateResponseDto) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceCreateResponseDto) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceCreateResponseDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceCreateResponseDto(val *VirtualDeviceCreateResponseDto) *NullableVirtualDeviceCreateResponseDto { + return &NullableVirtualDeviceCreateResponseDto{value: val, isSet: true} +} + +func (v NullableVirtualDeviceCreateResponseDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceCreateResponseDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_delete_request.go b/services/networkedgev1/model_virtual_device_delete_request.go new file mode 100644 index 00000000..0d9b12c1 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_delete_request.go @@ -0,0 +1,192 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceDeleteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceDeleteRequest{} + +// VirtualDeviceDeleteRequest struct for VirtualDeviceDeleteRequest +type VirtualDeviceDeleteRequest struct { + // If you do not provide a deactivation key for a Palo Alto BYOL device, you must contact your vendor to release the license. + DeactivationKey *string `json:"deactivationKey,omitempty"` + Secondary *SecondaryDeviceDeleteRequest `json:"secondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceDeleteRequest VirtualDeviceDeleteRequest + +// NewVirtualDeviceDeleteRequest instantiates a new VirtualDeviceDeleteRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceDeleteRequest() *VirtualDeviceDeleteRequest { + this := VirtualDeviceDeleteRequest{} + return &this +} + +// NewVirtualDeviceDeleteRequestWithDefaults instantiates a new VirtualDeviceDeleteRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceDeleteRequestWithDefaults() *VirtualDeviceDeleteRequest { + this := VirtualDeviceDeleteRequest{} + return &this +} + +// GetDeactivationKey returns the DeactivationKey field value if set, zero value otherwise. +func (o *VirtualDeviceDeleteRequest) GetDeactivationKey() string { + if o == nil || IsNil(o.DeactivationKey) { + var ret string + return ret + } + return *o.DeactivationKey +} + +// GetDeactivationKeyOk returns a tuple with the DeactivationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDeleteRequest) GetDeactivationKeyOk() (*string, bool) { + if o == nil || IsNil(o.DeactivationKey) { + return nil, false + } + return o.DeactivationKey, true +} + +// HasDeactivationKey returns a boolean if a field has been set. +func (o *VirtualDeviceDeleteRequest) HasDeactivationKey() bool { + if o != nil && !IsNil(o.DeactivationKey) { + return true + } + + return false +} + +// SetDeactivationKey gets a reference to the given string and assigns it to the DeactivationKey field. +func (o *VirtualDeviceDeleteRequest) SetDeactivationKey(v string) { + o.DeactivationKey = &v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *VirtualDeviceDeleteRequest) GetSecondary() SecondaryDeviceDeleteRequest { + if o == nil || IsNil(o.Secondary) { + var ret SecondaryDeviceDeleteRequest + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDeleteRequest) GetSecondaryOk() (*SecondaryDeviceDeleteRequest, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *VirtualDeviceDeleteRequest) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given SecondaryDeviceDeleteRequest and assigns it to the Secondary field. +func (o *VirtualDeviceDeleteRequest) SetSecondary(v SecondaryDeviceDeleteRequest) { + o.Secondary = &v +} + +func (o VirtualDeviceDeleteRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceDeleteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeactivationKey) { + toSerialize["deactivationKey"] = o.DeactivationKey + } + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceDeleteRequest := _VirtualDeviceDeleteRequest{} + + err = json.Unmarshal(data, &varVirtualDeviceDeleteRequest) + + if err != nil { + return err + } + + *o = VirtualDeviceDeleteRequest(varVirtualDeviceDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deactivationKey") + delete(additionalProperties, "secondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceDeleteRequest struct { + value *VirtualDeviceDeleteRequest + isSet bool +} + +func (v NullableVirtualDeviceDeleteRequest) Get() *VirtualDeviceDeleteRequest { + return v.value +} + +func (v *NullableVirtualDeviceDeleteRequest) Set(val *VirtualDeviceDeleteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceDeleteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceDeleteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceDeleteRequest(val *VirtualDeviceDeleteRequest) *NullableVirtualDeviceDeleteRequest { + return &NullableVirtualDeviceDeleteRequest{value: val, isSet: true} +} + +func (v NullableVirtualDeviceDeleteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceDeleteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_details_response.go b/services/networkedgev1/model_virtual_device_details_response.go new file mode 100644 index 00000000..15395149 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_details_response.go @@ -0,0 +1,2230 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceDetailsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceDetailsResponse{} + +// VirtualDeviceDetailsResponse struct for VirtualDeviceDetailsResponse +type VirtualDeviceDetailsResponse struct { + AccountName *string `json:"accountName,omitempty"` + AccountNumber *string `json:"accountNumber,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + CreatedDate *string `json:"createdDate,omitempty"` + DeviceSerialNo *string `json:"deviceSerialNo,omitempty"` + DeviceTypeCategory *string `json:"deviceTypeCategory,omitempty"` + // The name of a device that is in a location different from this device. + DiverseFromDeviceName *string `json:"diverseFromDeviceName,omitempty"` + // The unique ID of a device that is in a location different from this device. + DiverseFromDeviceUuid *string `json:"diverseFromDeviceUuid,omitempty"` + DeviceTypeCode *string `json:"deviceTypeCode,omitempty"` + DeviceTypeName *string `json:"deviceTypeName,omitempty"` + Expiry *string `json:"expiry,omitempty"` + Region *string `json:"region,omitempty"` + DeviceTypeVendor *string `json:"deviceTypeVendor,omitempty"` + HostName *string `json:"hostName,omitempty"` + Uuid *string `json:"uuid,omitempty"` + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + LicenseFileId *string `json:"licenseFileId,omitempty"` + LicenseName *string `json:"licenseName,omitempty"` + LicenseStatus *string `json:"licenseStatus,omitempty"` + LicenseType *string `json:"licenseType,omitempty"` + MetroCode *string `json:"metroCode,omitempty"` + MetroName *string `json:"metroName,omitempty"` + Name *string `json:"name,omitempty"` + Notifications []string `json:"notifications,omitempty"` + PackageCode *string `json:"packageCode,omitempty"` + PackageName *string `json:"packageName,omitempty"` + Version *string `json:"version,omitempty"` + PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` + RedundancyType *string `json:"redundancyType,omitempty"` + RedundantUuid *string `json:"redundantUuid,omitempty"` + Connectivity *string `json:"connectivity,omitempty"` + SshIpAddress *string `json:"sshIpAddress,omitempty"` + SshIpFqdn *string `json:"sshIpFqdn,omitempty"` + SshIpFqdnStatus *string `json:"sshIpFqdnStatus,omitempty"` + Status *string `json:"status,omitempty"` + Throughput *int32 `json:"throughput,omitempty"` + ThroughputUnit *string `json:"throughputUnit,omitempty"` + Core *CoresDisplayConfig `json:"core,omitempty"` + PricingDetails *PricingSiebelConfig `json:"pricingDetails,omitempty"` + InterfaceCount *int32 `json:"interfaceCount,omitempty"` + DeviceManagementType *string `json:"deviceManagementType,omitempty"` + UserPublicKey *UserPublicKeyConfig `json:"userPublicKey,omitempty"` + ManagementIp *string `json:"managementIp,omitempty"` + ManagementGatewayIp *string `json:"managementGatewayIp,omitempty"` + PublicIp *string `json:"publicIp,omitempty"` + PublicGatewayIp *string `json:"publicGatewayIp,omitempty"` + PrimaryDnsName *string `json:"primaryDnsName,omitempty"` + SecondaryDnsName *string `json:"secondaryDnsName,omitempty"` + TermLength *string `json:"termLength,omitempty"` + AdditionalBandwidth *string `json:"additionalBandwidth,omitempty"` + SiteId *string `json:"siteId,omitempty"` + SystemIpAddress *string `json:"systemIpAddress,omitempty"` + VendorConfig *VendorConfig `json:"vendorConfig,omitempty"` + Interfaces []InterfaceBasicInfoResponse `json:"interfaces,omitempty"` + // The ASN number. + Asn *float32 `json:"asn,omitempty"` + // The name of the channel partner. + ChannelPartner *string `json:"channelPartner,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceDetailsResponse VirtualDeviceDetailsResponse + +// NewVirtualDeviceDetailsResponse instantiates a new VirtualDeviceDetailsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceDetailsResponse() *VirtualDeviceDetailsResponse { + this := VirtualDeviceDetailsResponse{} + return &this +} + +// NewVirtualDeviceDetailsResponseWithDefaults instantiates a new VirtualDeviceDetailsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceDetailsResponseWithDefaults() *VirtualDeviceDetailsResponse { + this := VirtualDeviceDetailsResponse{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *VirtualDeviceDetailsResponse) SetAccountName(v string) { + o.AccountName = &v +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *VirtualDeviceDetailsResponse) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *VirtualDeviceDetailsResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *VirtualDeviceDetailsResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetDeviceSerialNo returns the DeviceSerialNo field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceSerialNo() string { + if o == nil || IsNil(o.DeviceSerialNo) { + var ret string + return ret + } + return *o.DeviceSerialNo +} + +// GetDeviceSerialNoOk returns a tuple with the DeviceSerialNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceSerialNoOk() (*string, bool) { + if o == nil || IsNil(o.DeviceSerialNo) { + return nil, false + } + return o.DeviceSerialNo, true +} + +// HasDeviceSerialNo returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceSerialNo() bool { + if o != nil && !IsNil(o.DeviceSerialNo) { + return true + } + + return false +} + +// SetDeviceSerialNo gets a reference to the given string and assigns it to the DeviceSerialNo field. +func (o *VirtualDeviceDetailsResponse) SetDeviceSerialNo(v string) { + o.DeviceSerialNo = &v +} + +// GetDeviceTypeCategory returns the DeviceTypeCategory field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCategory() string { + if o == nil || IsNil(o.DeviceTypeCategory) { + var ret string + return ret + } + return *o.DeviceTypeCategory +} + +// GetDeviceTypeCategoryOk returns a tuple with the DeviceTypeCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCategoryOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeCategory) { + return nil, false + } + return o.DeviceTypeCategory, true +} + +// HasDeviceTypeCategory returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceTypeCategory() bool { + if o != nil && !IsNil(o.DeviceTypeCategory) { + return true + } + + return false +} + +// SetDeviceTypeCategory gets a reference to the given string and assigns it to the DeviceTypeCategory field. +func (o *VirtualDeviceDetailsResponse) SetDeviceTypeCategory(v string) { + o.DeviceTypeCategory = &v +} + +// GetDiverseFromDeviceName returns the DiverseFromDeviceName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceName() string { + if o == nil || IsNil(o.DiverseFromDeviceName) { + var ret string + return ret + } + return *o.DiverseFromDeviceName +} + +// GetDiverseFromDeviceNameOk returns a tuple with the DiverseFromDeviceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceNameOk() (*string, bool) { + if o == nil || IsNil(o.DiverseFromDeviceName) { + return nil, false + } + return o.DiverseFromDeviceName, true +} + +// HasDiverseFromDeviceName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDiverseFromDeviceName() bool { + if o != nil && !IsNil(o.DiverseFromDeviceName) { + return true + } + + return false +} + +// SetDiverseFromDeviceName gets a reference to the given string and assigns it to the DiverseFromDeviceName field. +func (o *VirtualDeviceDetailsResponse) SetDiverseFromDeviceName(v string) { + o.DiverseFromDeviceName = &v +} + +// GetDiverseFromDeviceUuid returns the DiverseFromDeviceUuid field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceUuid() string { + if o == nil || IsNil(o.DiverseFromDeviceUuid) { + var ret string + return ret + } + return *o.DiverseFromDeviceUuid +} + +// GetDiverseFromDeviceUuidOk returns a tuple with the DiverseFromDeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDiverseFromDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.DiverseFromDeviceUuid) { + return nil, false + } + return o.DiverseFromDeviceUuid, true +} + +// HasDiverseFromDeviceUuid returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDiverseFromDeviceUuid() bool { + if o != nil && !IsNil(o.DiverseFromDeviceUuid) { + return true + } + + return false +} + +// SetDiverseFromDeviceUuid gets a reference to the given string and assigns it to the DiverseFromDeviceUuid field. +func (o *VirtualDeviceDetailsResponse) SetDiverseFromDeviceUuid(v string) { + o.DiverseFromDeviceUuid = &v +} + +// GetDeviceTypeCode returns the DeviceTypeCode field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCode() string { + if o == nil || IsNil(o.DeviceTypeCode) { + var ret string + return ret + } + return *o.DeviceTypeCode +} + +// GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeCodeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeCode) { + return nil, false + } + return o.DeviceTypeCode, true +} + +// HasDeviceTypeCode returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceTypeCode() bool { + if o != nil && !IsNil(o.DeviceTypeCode) { + return true + } + + return false +} + +// SetDeviceTypeCode gets a reference to the given string and assigns it to the DeviceTypeCode field. +func (o *VirtualDeviceDetailsResponse) SetDeviceTypeCode(v string) { + o.DeviceTypeCode = &v +} + +// GetDeviceTypeName returns the DeviceTypeName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeName() string { + if o == nil || IsNil(o.DeviceTypeName) { + var ret string + return ret + } + return *o.DeviceTypeName +} + +// GetDeviceTypeNameOk returns a tuple with the DeviceTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeNameOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeName) { + return nil, false + } + return o.DeviceTypeName, true +} + +// HasDeviceTypeName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceTypeName() bool { + if o != nil && !IsNil(o.DeviceTypeName) { + return true + } + + return false +} + +// SetDeviceTypeName gets a reference to the given string and assigns it to the DeviceTypeName field. +func (o *VirtualDeviceDetailsResponse) SetDeviceTypeName(v string) { + o.DeviceTypeName = &v +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetExpiry() string { + if o == nil || IsNil(o.Expiry) { + var ret string + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetExpiryOk() (*string, bool) { + if o == nil || IsNil(o.Expiry) { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasExpiry() bool { + if o != nil && !IsNil(o.Expiry) { + return true + } + + return false +} + +// SetExpiry gets a reference to the given string and assigns it to the Expiry field. +func (o *VirtualDeviceDetailsResponse) SetExpiry(v string) { + o.Expiry = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *VirtualDeviceDetailsResponse) SetRegion(v string) { + o.Region = &v +} + +// GetDeviceTypeVendor returns the DeviceTypeVendor field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeVendor() string { + if o == nil || IsNil(o.DeviceTypeVendor) { + var ret string + return ret + } + return *o.DeviceTypeVendor +} + +// GetDeviceTypeVendorOk returns a tuple with the DeviceTypeVendor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceTypeVendorOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeVendor) { + return nil, false + } + return o.DeviceTypeVendor, true +} + +// HasDeviceTypeVendor returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceTypeVendor() bool { + if o != nil && !IsNil(o.DeviceTypeVendor) { + return true + } + + return false +} + +// SetDeviceTypeVendor gets a reference to the given string and assigns it to the DeviceTypeVendor field. +func (o *VirtualDeviceDetailsResponse) SetDeviceTypeVendor(v string) { + o.DeviceTypeVendor = &v +} + +// GetHostName returns the HostName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetHostName() string { + if o == nil || IsNil(o.HostName) { + var ret string + return ret + } + return *o.HostName +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetHostNameOk() (*string, bool) { + if o == nil || IsNil(o.HostName) { + return nil, false + } + return o.HostName, true +} + +// HasHostName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasHostName() bool { + if o != nil && !IsNil(o.HostName) { + return true + } + + return false +} + +// SetHostName gets a reference to the given string and assigns it to the HostName field. +func (o *VirtualDeviceDetailsResponse) SetHostName(v string) { + o.HostName = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *VirtualDeviceDetailsResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetLastUpdatedBy returns the LastUpdatedBy field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLastUpdatedBy() string { + if o == nil || IsNil(o.LastUpdatedBy) { + var ret string + return ret + } + return *o.LastUpdatedBy +} + +// GetLastUpdatedByOk returns a tuple with the LastUpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLastUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedBy) { + return nil, false + } + return o.LastUpdatedBy, true +} + +// HasLastUpdatedBy returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLastUpdatedBy() bool { + if o != nil && !IsNil(o.LastUpdatedBy) { + return true + } + + return false +} + +// SetLastUpdatedBy gets a reference to the given string and assigns it to the LastUpdatedBy field. +func (o *VirtualDeviceDetailsResponse) SetLastUpdatedBy(v string) { + o.LastUpdatedBy = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *VirtualDeviceDetailsResponse) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *VirtualDeviceDetailsResponse) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetLicenseName returns the LicenseName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLicenseName() string { + if o == nil || IsNil(o.LicenseName) { + var ret string + return ret + } + return *o.LicenseName +} + +// GetLicenseNameOk returns a tuple with the LicenseName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLicenseNameOk() (*string, bool) { + if o == nil || IsNil(o.LicenseName) { + return nil, false + } + return o.LicenseName, true +} + +// HasLicenseName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLicenseName() bool { + if o != nil && !IsNil(o.LicenseName) { + return true + } + + return false +} + +// SetLicenseName gets a reference to the given string and assigns it to the LicenseName field. +func (o *VirtualDeviceDetailsResponse) SetLicenseName(v string) { + o.LicenseName = &v +} + +// GetLicenseStatus returns the LicenseStatus field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLicenseStatus() string { + if o == nil || IsNil(o.LicenseStatus) { + var ret string + return ret + } + return *o.LicenseStatus +} + +// GetLicenseStatusOk returns a tuple with the LicenseStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLicenseStatusOk() (*string, bool) { + if o == nil || IsNil(o.LicenseStatus) { + return nil, false + } + return o.LicenseStatus, true +} + +// HasLicenseStatus returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLicenseStatus() bool { + if o != nil && !IsNil(o.LicenseStatus) { + return true + } + + return false +} + +// SetLicenseStatus gets a reference to the given string and assigns it to the LicenseStatus field. +func (o *VirtualDeviceDetailsResponse) SetLicenseStatus(v string) { + o.LicenseStatus = &v +} + +// GetLicenseType returns the LicenseType field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetLicenseType() string { + if o == nil || IsNil(o.LicenseType) { + var ret string + return ret + } + return *o.LicenseType +} + +// GetLicenseTypeOk returns a tuple with the LicenseType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetLicenseTypeOk() (*string, bool) { + if o == nil || IsNil(o.LicenseType) { + return nil, false + } + return o.LicenseType, true +} + +// HasLicenseType returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasLicenseType() bool { + if o != nil && !IsNil(o.LicenseType) { + return true + } + + return false +} + +// SetLicenseType gets a reference to the given string and assigns it to the LicenseType field. +func (o *VirtualDeviceDetailsResponse) SetLicenseType(v string) { + o.LicenseType = &v +} + +// GetMetroCode returns the MetroCode field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetMetroCode() string { + if o == nil || IsNil(o.MetroCode) { + var ret string + return ret + } + return *o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetMetroCodeOk() (*string, bool) { + if o == nil || IsNil(o.MetroCode) { + return nil, false + } + return o.MetroCode, true +} + +// HasMetroCode returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasMetroCode() bool { + if o != nil && !IsNil(o.MetroCode) { + return true + } + + return false +} + +// SetMetroCode gets a reference to the given string and assigns it to the MetroCode field. +func (o *VirtualDeviceDetailsResponse) SetMetroCode(v string) { + o.MetroCode = &v +} + +// GetMetroName returns the MetroName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetMetroName() string { + if o == nil || IsNil(o.MetroName) { + var ret string + return ret + } + return *o.MetroName +} + +// GetMetroNameOk returns a tuple with the MetroName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetMetroNameOk() (*string, bool) { + if o == nil || IsNil(o.MetroName) { + return nil, false + } + return o.MetroName, true +} + +// HasMetroName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasMetroName() bool { + if o != nil && !IsNil(o.MetroName) { + return true + } + + return false +} + +// SetMetroName gets a reference to the given string and assigns it to the MetroName field. +func (o *VirtualDeviceDetailsResponse) SetMetroName(v string) { + o.MetroName = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *VirtualDeviceDetailsResponse) SetName(v string) { + o.Name = &v +} + +// GetNotifications returns the Notifications field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetNotifications() []string { + if o == nil || IsNil(o.Notifications) { + var ret []string + return ret + } + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetNotificationsOk() ([]string, bool) { + if o == nil || IsNil(o.Notifications) { + return nil, false + } + return o.Notifications, true +} + +// HasNotifications returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasNotifications() bool { + if o != nil && !IsNil(o.Notifications) { + return true + } + + return false +} + +// SetNotifications gets a reference to the given []string and assigns it to the Notifications field. +func (o *VirtualDeviceDetailsResponse) SetNotifications(v []string) { + o.Notifications = v +} + +// GetPackageCode returns the PackageCode field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPackageCode() string { + if o == nil || IsNil(o.PackageCode) { + var ret string + return ret + } + return *o.PackageCode +} + +// GetPackageCodeOk returns a tuple with the PackageCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPackageCodeOk() (*string, bool) { + if o == nil || IsNil(o.PackageCode) { + return nil, false + } + return o.PackageCode, true +} + +// HasPackageCode returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPackageCode() bool { + if o != nil && !IsNil(o.PackageCode) { + return true + } + + return false +} + +// SetPackageCode gets a reference to the given string and assigns it to the PackageCode field. +func (o *VirtualDeviceDetailsResponse) SetPackageCode(v string) { + o.PackageCode = &v +} + +// GetPackageName returns the PackageName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPackageName() string { + if o == nil || IsNil(o.PackageName) { + var ret string + return ret + } + return *o.PackageName +} + +// GetPackageNameOk returns a tuple with the PackageName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPackageNameOk() (*string, bool) { + if o == nil || IsNil(o.PackageName) { + return nil, false + } + return o.PackageName, true +} + +// HasPackageName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPackageName() bool { + if o != nil && !IsNil(o.PackageName) { + return true + } + + return false +} + +// SetPackageName gets a reference to the given string and assigns it to the PackageName field. +func (o *VirtualDeviceDetailsResponse) SetPackageName(v string) { + o.PackageName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *VirtualDeviceDetailsResponse) SetVersion(v string) { + o.Version = &v +} + +// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPurchaseOrderNumber() string { + if o == nil || IsNil(o.PurchaseOrderNumber) { + var ret string + return ret + } + return *o.PurchaseOrderNumber +} + +// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPurchaseOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.PurchaseOrderNumber) { + return nil, false + } + return o.PurchaseOrderNumber, true +} + +// HasPurchaseOrderNumber returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPurchaseOrderNumber() bool { + if o != nil && !IsNil(o.PurchaseOrderNumber) { + return true + } + + return false +} + +// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field. +func (o *VirtualDeviceDetailsResponse) SetPurchaseOrderNumber(v string) { + o.PurchaseOrderNumber = &v +} + +// GetRedundancyType returns the RedundancyType field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetRedundancyType() string { + if o == nil || IsNil(o.RedundancyType) { + var ret string + return ret + } + return *o.RedundancyType +} + +// GetRedundancyTypeOk returns a tuple with the RedundancyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetRedundancyTypeOk() (*string, bool) { + if o == nil || IsNil(o.RedundancyType) { + return nil, false + } + return o.RedundancyType, true +} + +// HasRedundancyType returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasRedundancyType() bool { + if o != nil && !IsNil(o.RedundancyType) { + return true + } + + return false +} + +// SetRedundancyType gets a reference to the given string and assigns it to the RedundancyType field. +func (o *VirtualDeviceDetailsResponse) SetRedundancyType(v string) { + o.RedundancyType = &v +} + +// GetRedundantUuid returns the RedundantUuid field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetRedundantUuid() string { + if o == nil || IsNil(o.RedundantUuid) { + var ret string + return ret + } + return *o.RedundantUuid +} + +// GetRedundantUuidOk returns a tuple with the RedundantUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetRedundantUuidOk() (*string, bool) { + if o == nil || IsNil(o.RedundantUuid) { + return nil, false + } + return o.RedundantUuid, true +} + +// HasRedundantUuid returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasRedundantUuid() bool { + if o != nil && !IsNil(o.RedundantUuid) { + return true + } + + return false +} + +// SetRedundantUuid gets a reference to the given string and assigns it to the RedundantUuid field. +func (o *VirtualDeviceDetailsResponse) SetRedundantUuid(v string) { + o.RedundantUuid = &v +} + +// GetConnectivity returns the Connectivity field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetConnectivity() string { + if o == nil || IsNil(o.Connectivity) { + var ret string + return ret + } + return *o.Connectivity +} + +// GetConnectivityOk returns a tuple with the Connectivity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetConnectivityOk() (*string, bool) { + if o == nil || IsNil(o.Connectivity) { + return nil, false + } + return o.Connectivity, true +} + +// HasConnectivity returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasConnectivity() bool { + if o != nil && !IsNil(o.Connectivity) { + return true + } + + return false +} + +// SetConnectivity gets a reference to the given string and assigns it to the Connectivity field. +func (o *VirtualDeviceDetailsResponse) SetConnectivity(v string) { + o.Connectivity = &v +} + +// GetSshIpAddress returns the SshIpAddress field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSshIpAddress() string { + if o == nil || IsNil(o.SshIpAddress) { + var ret string + return ret + } + return *o.SshIpAddress +} + +// GetSshIpAddressOk returns a tuple with the SshIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSshIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SshIpAddress) { + return nil, false + } + return o.SshIpAddress, true +} + +// HasSshIpAddress returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSshIpAddress() bool { + if o != nil && !IsNil(o.SshIpAddress) { + return true + } + + return false +} + +// SetSshIpAddress gets a reference to the given string and assigns it to the SshIpAddress field. +func (o *VirtualDeviceDetailsResponse) SetSshIpAddress(v string) { + o.SshIpAddress = &v +} + +// GetSshIpFqdn returns the SshIpFqdn field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSshIpFqdn() string { + if o == nil || IsNil(o.SshIpFqdn) { + var ret string + return ret + } + return *o.SshIpFqdn +} + +// GetSshIpFqdnOk returns a tuple with the SshIpFqdn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnOk() (*string, bool) { + if o == nil || IsNil(o.SshIpFqdn) { + return nil, false + } + return o.SshIpFqdn, true +} + +// HasSshIpFqdn returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSshIpFqdn() bool { + if o != nil && !IsNil(o.SshIpFqdn) { + return true + } + + return false +} + +// SetSshIpFqdn gets a reference to the given string and assigns it to the SshIpFqdn field. +func (o *VirtualDeviceDetailsResponse) SetSshIpFqdn(v string) { + o.SshIpFqdn = &v +} + +// GetSshIpFqdnStatus returns the SshIpFqdnStatus field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnStatus() string { + if o == nil || IsNil(o.SshIpFqdnStatus) { + var ret string + return ret + } + return *o.SshIpFqdnStatus +} + +// GetSshIpFqdnStatusOk returns a tuple with the SshIpFqdnStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSshIpFqdnStatusOk() (*string, bool) { + if o == nil || IsNil(o.SshIpFqdnStatus) { + return nil, false + } + return o.SshIpFqdnStatus, true +} + +// HasSshIpFqdnStatus returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSshIpFqdnStatus() bool { + if o != nil && !IsNil(o.SshIpFqdnStatus) { + return true + } + + return false +} + +// SetSshIpFqdnStatus gets a reference to the given string and assigns it to the SshIpFqdnStatus field. +func (o *VirtualDeviceDetailsResponse) SetSshIpFqdnStatus(v string) { + o.SshIpFqdnStatus = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *VirtualDeviceDetailsResponse) SetStatus(v string) { + o.Status = &v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetThroughput() int32 { + if o == nil || IsNil(o.Throughput) { + var ret int32 + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetThroughputOk() (*int32, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given int32 and assigns it to the Throughput field. +func (o *VirtualDeviceDetailsResponse) SetThroughput(v int32) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *VirtualDeviceDetailsResponse) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetCore() CoresDisplayConfig { + if o == nil || IsNil(o.Core) { + var ret CoresDisplayConfig + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetCoreOk() (*CoresDisplayConfig, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given CoresDisplayConfig and assigns it to the Core field. +func (o *VirtualDeviceDetailsResponse) SetCore(v CoresDisplayConfig) { + o.Core = &v +} + +// GetPricingDetails returns the PricingDetails field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPricingDetails() PricingSiebelConfig { + if o == nil || IsNil(o.PricingDetails) { + var ret PricingSiebelConfig + return ret + } + return *o.PricingDetails +} + +// GetPricingDetailsOk returns a tuple with the PricingDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPricingDetailsOk() (*PricingSiebelConfig, bool) { + if o == nil || IsNil(o.PricingDetails) { + return nil, false + } + return o.PricingDetails, true +} + +// HasPricingDetails returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPricingDetails() bool { + if o != nil && !IsNil(o.PricingDetails) { + return true + } + + return false +} + +// SetPricingDetails gets a reference to the given PricingSiebelConfig and assigns it to the PricingDetails field. +func (o *VirtualDeviceDetailsResponse) SetPricingDetails(v PricingSiebelConfig) { + o.PricingDetails = &v +} + +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetInterfaceCount() int32 { + if o == nil || IsNil(o.InterfaceCount) { + var ret int32 + return ret + } + return *o.InterfaceCount +} + +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.InterfaceCount) { + return nil, false + } + return o.InterfaceCount, true +} + +// HasInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false +} + +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. +func (o *VirtualDeviceDetailsResponse) SetInterfaceCount(v int32) { + o.InterfaceCount = &v +} + +// GetDeviceManagementType returns the DeviceManagementType field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetDeviceManagementType() string { + if o == nil || IsNil(o.DeviceManagementType) { + var ret string + return ret + } + return *o.DeviceManagementType +} + +// GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetDeviceManagementTypeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceManagementType) { + return nil, false + } + return o.DeviceManagementType, true +} + +// HasDeviceManagementType returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasDeviceManagementType() bool { + if o != nil && !IsNil(o.DeviceManagementType) { + return true + } + + return false +} + +// SetDeviceManagementType gets a reference to the given string and assigns it to the DeviceManagementType field. +func (o *VirtualDeviceDetailsResponse) SetDeviceManagementType(v string) { + o.DeviceManagementType = &v +} + +// GetUserPublicKey returns the UserPublicKey field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetUserPublicKey() UserPublicKeyConfig { + if o == nil || IsNil(o.UserPublicKey) { + var ret UserPublicKeyConfig + return ret + } + return *o.UserPublicKey +} + +// GetUserPublicKeyOk returns a tuple with the UserPublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetUserPublicKeyOk() (*UserPublicKeyConfig, bool) { + if o == nil || IsNil(o.UserPublicKey) { + return nil, false + } + return o.UserPublicKey, true +} + +// HasUserPublicKey returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasUserPublicKey() bool { + if o != nil && !IsNil(o.UserPublicKey) { + return true + } + + return false +} + +// SetUserPublicKey gets a reference to the given UserPublicKeyConfig and assigns it to the UserPublicKey field. +func (o *VirtualDeviceDetailsResponse) SetUserPublicKey(v UserPublicKeyConfig) { + o.UserPublicKey = &v +} + +// GetManagementIp returns the ManagementIp field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetManagementIp() string { + if o == nil || IsNil(o.ManagementIp) { + var ret string + return ret + } + return *o.ManagementIp +} + +// GetManagementIpOk returns a tuple with the ManagementIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetManagementIpOk() (*string, bool) { + if o == nil || IsNil(o.ManagementIp) { + return nil, false + } + return o.ManagementIp, true +} + +// HasManagementIp returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasManagementIp() bool { + if o != nil && !IsNil(o.ManagementIp) { + return true + } + + return false +} + +// SetManagementIp gets a reference to the given string and assigns it to the ManagementIp field. +func (o *VirtualDeviceDetailsResponse) SetManagementIp(v string) { + o.ManagementIp = &v +} + +// GetManagementGatewayIp returns the ManagementGatewayIp field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetManagementGatewayIp() string { + if o == nil || IsNil(o.ManagementGatewayIp) { + var ret string + return ret + } + return *o.ManagementGatewayIp +} + +// GetManagementGatewayIpOk returns a tuple with the ManagementGatewayIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetManagementGatewayIpOk() (*string, bool) { + if o == nil || IsNil(o.ManagementGatewayIp) { + return nil, false + } + return o.ManagementGatewayIp, true +} + +// HasManagementGatewayIp returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasManagementGatewayIp() bool { + if o != nil && !IsNil(o.ManagementGatewayIp) { + return true + } + + return false +} + +// SetManagementGatewayIp gets a reference to the given string and assigns it to the ManagementGatewayIp field. +func (o *VirtualDeviceDetailsResponse) SetManagementGatewayIp(v string) { + o.ManagementGatewayIp = &v +} + +// GetPublicIp returns the PublicIp field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPublicIp() string { + if o == nil || IsNil(o.PublicIp) { + var ret string + return ret + } + return *o.PublicIp +} + +// GetPublicIpOk returns a tuple with the PublicIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPublicIpOk() (*string, bool) { + if o == nil || IsNil(o.PublicIp) { + return nil, false + } + return o.PublicIp, true +} + +// HasPublicIp returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPublicIp() bool { + if o != nil && !IsNil(o.PublicIp) { + return true + } + + return false +} + +// SetPublicIp gets a reference to the given string and assigns it to the PublicIp field. +func (o *VirtualDeviceDetailsResponse) SetPublicIp(v string) { + o.PublicIp = &v +} + +// GetPublicGatewayIp returns the PublicGatewayIp field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPublicGatewayIp() string { + if o == nil || IsNil(o.PublicGatewayIp) { + var ret string + return ret + } + return *o.PublicGatewayIp +} + +// GetPublicGatewayIpOk returns a tuple with the PublicGatewayIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPublicGatewayIpOk() (*string, bool) { + if o == nil || IsNil(o.PublicGatewayIp) { + return nil, false + } + return o.PublicGatewayIp, true +} + +// HasPublicGatewayIp returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPublicGatewayIp() bool { + if o != nil && !IsNil(o.PublicGatewayIp) { + return true + } + + return false +} + +// SetPublicGatewayIp gets a reference to the given string and assigns it to the PublicGatewayIp field. +func (o *VirtualDeviceDetailsResponse) SetPublicGatewayIp(v string) { + o.PublicGatewayIp = &v +} + +// GetPrimaryDnsName returns the PrimaryDnsName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetPrimaryDnsName() string { + if o == nil || IsNil(o.PrimaryDnsName) { + var ret string + return ret + } + return *o.PrimaryDnsName +} + +// GetPrimaryDnsNameOk returns a tuple with the PrimaryDnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetPrimaryDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryDnsName) { + return nil, false + } + return o.PrimaryDnsName, true +} + +// HasPrimaryDnsName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasPrimaryDnsName() bool { + if o != nil && !IsNil(o.PrimaryDnsName) { + return true + } + + return false +} + +// SetPrimaryDnsName gets a reference to the given string and assigns it to the PrimaryDnsName field. +func (o *VirtualDeviceDetailsResponse) SetPrimaryDnsName(v string) { + o.PrimaryDnsName = &v +} + +// GetSecondaryDnsName returns the SecondaryDnsName field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSecondaryDnsName() string { + if o == nil || IsNil(o.SecondaryDnsName) { + var ret string + return ret + } + return *o.SecondaryDnsName +} + +// GetSecondaryDnsNameOk returns a tuple with the SecondaryDnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSecondaryDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.SecondaryDnsName) { + return nil, false + } + return o.SecondaryDnsName, true +} + +// HasSecondaryDnsName returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSecondaryDnsName() bool { + if o != nil && !IsNil(o.SecondaryDnsName) { + return true + } + + return false +} + +// SetSecondaryDnsName gets a reference to the given string and assigns it to the SecondaryDnsName field. +func (o *VirtualDeviceDetailsResponse) SetSecondaryDnsName(v string) { + o.SecondaryDnsName = &v +} + +// GetTermLength returns the TermLength field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetTermLength() string { + if o == nil || IsNil(o.TermLength) { + var ret string + return ret + } + return *o.TermLength +} + +// GetTermLengthOk returns a tuple with the TermLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetTermLengthOk() (*string, bool) { + if o == nil || IsNil(o.TermLength) { + return nil, false + } + return o.TermLength, true +} + +// HasTermLength returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasTermLength() bool { + if o != nil && !IsNil(o.TermLength) { + return true + } + + return false +} + +// SetTermLength gets a reference to the given string and assigns it to the TermLength field. +func (o *VirtualDeviceDetailsResponse) SetTermLength(v string) { + o.TermLength = &v +} + +// GetAdditionalBandwidth returns the AdditionalBandwidth field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetAdditionalBandwidth() string { + if o == nil || IsNil(o.AdditionalBandwidth) { + var ret string + return ret + } + return *o.AdditionalBandwidth +} + +// GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetAdditionalBandwidthOk() (*string, bool) { + if o == nil || IsNil(o.AdditionalBandwidth) { + return nil, false + } + return o.AdditionalBandwidth, true +} + +// HasAdditionalBandwidth returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasAdditionalBandwidth() bool { + if o != nil && !IsNil(o.AdditionalBandwidth) { + return true + } + + return false +} + +// SetAdditionalBandwidth gets a reference to the given string and assigns it to the AdditionalBandwidth field. +func (o *VirtualDeviceDetailsResponse) SetAdditionalBandwidth(v string) { + o.AdditionalBandwidth = &v +} + +// GetSiteId returns the SiteId field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSiteId() string { + if o == nil || IsNil(o.SiteId) { + var ret string + return ret + } + return *o.SiteId +} + +// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSiteIdOk() (*string, bool) { + if o == nil || IsNil(o.SiteId) { + return nil, false + } + return o.SiteId, true +} + +// HasSiteId returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSiteId() bool { + if o != nil && !IsNil(o.SiteId) { + return true + } + + return false +} + +// SetSiteId gets a reference to the given string and assigns it to the SiteId field. +func (o *VirtualDeviceDetailsResponse) SetSiteId(v string) { + o.SiteId = &v +} + +// GetSystemIpAddress returns the SystemIpAddress field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetSystemIpAddress() string { + if o == nil || IsNil(o.SystemIpAddress) { + var ret string + return ret + } + return *o.SystemIpAddress +} + +// GetSystemIpAddressOk returns a tuple with the SystemIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetSystemIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SystemIpAddress) { + return nil, false + } + return o.SystemIpAddress, true +} + +// HasSystemIpAddress returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasSystemIpAddress() bool { + if o != nil && !IsNil(o.SystemIpAddress) { + return true + } + + return false +} + +// SetSystemIpAddress gets a reference to the given string and assigns it to the SystemIpAddress field. +func (o *VirtualDeviceDetailsResponse) SetSystemIpAddress(v string) { + o.SystemIpAddress = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetVendorConfig() VendorConfig { + if o == nil || IsNil(o.VendorConfig) { + var ret VendorConfig + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetVendorConfigOk() (*VendorConfig, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VendorConfig and assigns it to the VendorConfig field. +func (o *VirtualDeviceDetailsResponse) SetVendorConfig(v VendorConfig) { + o.VendorConfig = &v +} + +// GetInterfaces returns the Interfaces field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetInterfaces() []InterfaceBasicInfoResponse { + if o == nil || IsNil(o.Interfaces) { + var ret []InterfaceBasicInfoResponse + return ret + } + return o.Interfaces +} + +// GetInterfacesOk returns a tuple with the Interfaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetInterfacesOk() ([]InterfaceBasicInfoResponse, bool) { + if o == nil || IsNil(o.Interfaces) { + return nil, false + } + return o.Interfaces, true +} + +// HasInterfaces returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasInterfaces() bool { + if o != nil && !IsNil(o.Interfaces) { + return true + } + + return false +} + +// SetInterfaces gets a reference to the given []InterfaceBasicInfoResponse and assigns it to the Interfaces field. +func (o *VirtualDeviceDetailsResponse) SetInterfaces(v []InterfaceBasicInfoResponse) { + o.Interfaces = v +} + +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetAsn() float32 { + if o == nil || IsNil(o.Asn) { + var ret float32 + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetAsnOk() (*float32, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given float32 and assigns it to the Asn field. +func (o *VirtualDeviceDetailsResponse) SetAsn(v float32) { + o.Asn = &v +} + +// GetChannelPartner returns the ChannelPartner field value if set, zero value otherwise. +func (o *VirtualDeviceDetailsResponse) GetChannelPartner() string { + if o == nil || IsNil(o.ChannelPartner) { + var ret string + return ret + } + return *o.ChannelPartner +} + +// GetChannelPartnerOk returns a tuple with the ChannelPartner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceDetailsResponse) GetChannelPartnerOk() (*string, bool) { + if o == nil || IsNil(o.ChannelPartner) { + return nil, false + } + return o.ChannelPartner, true +} + +// HasChannelPartner returns a boolean if a field has been set. +func (o *VirtualDeviceDetailsResponse) HasChannelPartner() bool { + if o != nil && !IsNil(o.ChannelPartner) { + return true + } + + return false +} + +// SetChannelPartner gets a reference to the given string and assigns it to the ChannelPartner field. +func (o *VirtualDeviceDetailsResponse) SetChannelPartner(v string) { + o.ChannelPartner = &v +} + +func (o VirtualDeviceDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceDetailsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountName) { + toSerialize["accountName"] = o.AccountName + } + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.DeviceSerialNo) { + toSerialize["deviceSerialNo"] = o.DeviceSerialNo + } + if !IsNil(o.DeviceTypeCategory) { + toSerialize["deviceTypeCategory"] = o.DeviceTypeCategory + } + if !IsNil(o.DiverseFromDeviceName) { + toSerialize["diverseFromDeviceName"] = o.DiverseFromDeviceName + } + if !IsNil(o.DiverseFromDeviceUuid) { + toSerialize["diverseFromDeviceUuid"] = o.DiverseFromDeviceUuid + } + if !IsNil(o.DeviceTypeCode) { + toSerialize["deviceTypeCode"] = o.DeviceTypeCode + } + if !IsNil(o.DeviceTypeName) { + toSerialize["deviceTypeName"] = o.DeviceTypeName + } + if !IsNil(o.Expiry) { + toSerialize["expiry"] = o.Expiry + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.DeviceTypeVendor) { + toSerialize["deviceTypeVendor"] = o.DeviceTypeVendor + } + if !IsNil(o.HostName) { + toSerialize["hostName"] = o.HostName + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.LastUpdatedBy) { + toSerialize["lastUpdatedBy"] = o.LastUpdatedBy + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.LicenseName) { + toSerialize["licenseName"] = o.LicenseName + } + if !IsNil(o.LicenseStatus) { + toSerialize["licenseStatus"] = o.LicenseStatus + } + if !IsNil(o.LicenseType) { + toSerialize["licenseType"] = o.LicenseType + } + if !IsNil(o.MetroCode) { + toSerialize["metroCode"] = o.MetroCode + } + if !IsNil(o.MetroName) { + toSerialize["metroName"] = o.MetroName + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Notifications) { + toSerialize["notifications"] = o.Notifications + } + if !IsNil(o.PackageCode) { + toSerialize["packageCode"] = o.PackageCode + } + if !IsNil(o.PackageName) { + toSerialize["packageName"] = o.PackageName + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.PurchaseOrderNumber) { + toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber + } + if !IsNil(o.RedundancyType) { + toSerialize["redundancyType"] = o.RedundancyType + } + if !IsNil(o.RedundantUuid) { + toSerialize["redundantUuid"] = o.RedundantUuid + } + if !IsNil(o.Connectivity) { + toSerialize["connectivity"] = o.Connectivity + } + if !IsNil(o.SshIpAddress) { + toSerialize["sshIpAddress"] = o.SshIpAddress + } + if !IsNil(o.SshIpFqdn) { + toSerialize["sshIpFqdn"] = o.SshIpFqdn + } + if !IsNil(o.SshIpFqdnStatus) { + toSerialize["sshIpFqdnStatus"] = o.SshIpFqdnStatus + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.PricingDetails) { + toSerialize["pricingDetails"] = o.PricingDetails + } + if !IsNil(o.InterfaceCount) { + toSerialize["interfaceCount"] = o.InterfaceCount + } + if !IsNil(o.DeviceManagementType) { + toSerialize["deviceManagementType"] = o.DeviceManagementType + } + if !IsNil(o.UserPublicKey) { + toSerialize["userPublicKey"] = o.UserPublicKey + } + if !IsNil(o.ManagementIp) { + toSerialize["managementIp"] = o.ManagementIp + } + if !IsNil(o.ManagementGatewayIp) { + toSerialize["managementGatewayIp"] = o.ManagementGatewayIp + } + if !IsNil(o.PublicIp) { + toSerialize["publicIp"] = o.PublicIp + } + if !IsNil(o.PublicGatewayIp) { + toSerialize["publicGatewayIp"] = o.PublicGatewayIp + } + if !IsNil(o.PrimaryDnsName) { + toSerialize["primaryDnsName"] = o.PrimaryDnsName + } + if !IsNil(o.SecondaryDnsName) { + toSerialize["secondaryDnsName"] = o.SecondaryDnsName + } + if !IsNil(o.TermLength) { + toSerialize["termLength"] = o.TermLength + } + if !IsNil(o.AdditionalBandwidth) { + toSerialize["additionalBandwidth"] = o.AdditionalBandwidth + } + if !IsNil(o.SiteId) { + toSerialize["siteId"] = o.SiteId + } + if !IsNil(o.SystemIpAddress) { + toSerialize["systemIpAddress"] = o.SystemIpAddress + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + if !IsNil(o.Interfaces) { + toSerialize["interfaces"] = o.Interfaces + } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.ChannelPartner) { + toSerialize["channelPartner"] = o.ChannelPartner + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceDetailsResponse) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceDetailsResponse := _VirtualDeviceDetailsResponse{} + + err = json.Unmarshal(data, &varVirtualDeviceDetailsResponse) + + if err != nil { + return err + } + + *o = VirtualDeviceDetailsResponse(varVirtualDeviceDetailsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountName") + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "deviceSerialNo") + delete(additionalProperties, "deviceTypeCategory") + delete(additionalProperties, "diverseFromDeviceName") + delete(additionalProperties, "diverseFromDeviceUuid") + delete(additionalProperties, "deviceTypeCode") + delete(additionalProperties, "deviceTypeName") + delete(additionalProperties, "expiry") + delete(additionalProperties, "region") + delete(additionalProperties, "deviceTypeVendor") + delete(additionalProperties, "hostName") + delete(additionalProperties, "uuid") + delete(additionalProperties, "lastUpdatedBy") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "licenseName") + delete(additionalProperties, "licenseStatus") + delete(additionalProperties, "licenseType") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "metroName") + delete(additionalProperties, "name") + delete(additionalProperties, "notifications") + delete(additionalProperties, "packageCode") + delete(additionalProperties, "packageName") + delete(additionalProperties, "version") + delete(additionalProperties, "purchaseOrderNumber") + delete(additionalProperties, "redundancyType") + delete(additionalProperties, "redundantUuid") + delete(additionalProperties, "connectivity") + delete(additionalProperties, "sshIpAddress") + delete(additionalProperties, "sshIpFqdn") + delete(additionalProperties, "sshIpFqdnStatus") + delete(additionalProperties, "status") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + delete(additionalProperties, "core") + delete(additionalProperties, "pricingDetails") + delete(additionalProperties, "interfaceCount") + delete(additionalProperties, "deviceManagementType") + delete(additionalProperties, "userPublicKey") + delete(additionalProperties, "managementIp") + delete(additionalProperties, "managementGatewayIp") + delete(additionalProperties, "publicIp") + delete(additionalProperties, "publicGatewayIp") + delete(additionalProperties, "primaryDnsName") + delete(additionalProperties, "secondaryDnsName") + delete(additionalProperties, "termLength") + delete(additionalProperties, "additionalBandwidth") + delete(additionalProperties, "siteId") + delete(additionalProperties, "systemIpAddress") + delete(additionalProperties, "vendorConfig") + delete(additionalProperties, "interfaces") + delete(additionalProperties, "asn") + delete(additionalProperties, "channelPartner") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceDetailsResponse struct { + value *VirtualDeviceDetailsResponse + isSet bool +} + +func (v NullableVirtualDeviceDetailsResponse) Get() *VirtualDeviceDetailsResponse { + return v.value +} + +func (v *NullableVirtualDeviceDetailsResponse) Set(val *VirtualDeviceDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceDetailsResponse(val *VirtualDeviceDetailsResponse) *NullableVirtualDeviceDetailsResponse { + return &NullableVirtualDeviceDetailsResponse{value: val, isSet: true} +} + +func (v NullableVirtualDeviceDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_internal_patch_request_dto.go b/services/networkedgev1/model_virtual_device_internal_patch_request_dto.go new file mode 100644 index 00000000..51a67b90 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_internal_patch_request_dto.go @@ -0,0 +1,381 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceInternalPatchRequestDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceInternalPatchRequestDto{} + +// VirtualDeviceInternalPatchRequestDto struct for VirtualDeviceInternalPatchRequestDto +type VirtualDeviceInternalPatchRequestDto struct { + // Use this field to resize your device. When you call this API for device resizing, you cannot change other fields simultaneously. + Core *int32 `json:"core,omitempty"` + Notifications []string `json:"notifications,omitempty"` + // Term length in months. Please keep in mind that you cannot downgrade the term length. + TermLength *string `json:"termLength,omitempty"` + // Virtual device name. This should be a minimum of 3 and a maximum of 50 characters. + VirtualDeviceName *string `json:"virtualDeviceName,omitempty"` + // Cluster name. This should be a minimum of 3 and a maximum of 50 characters. + ClusterName *string `json:"clusterName,omitempty"` + // Status of the device. Use this field to update the license status of a device. + Status *string `json:"status,omitempty"` + VendorConfig *VirtualDeviceInternalPatchRequestDtoVendorConfig `json:"vendorConfig,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceInternalPatchRequestDto VirtualDeviceInternalPatchRequestDto + +// NewVirtualDeviceInternalPatchRequestDto instantiates a new VirtualDeviceInternalPatchRequestDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceInternalPatchRequestDto() *VirtualDeviceInternalPatchRequestDto { + this := VirtualDeviceInternalPatchRequestDto{} + return &this +} + +// NewVirtualDeviceInternalPatchRequestDtoWithDefaults instantiates a new VirtualDeviceInternalPatchRequestDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceInternalPatchRequestDtoWithDefaults() *VirtualDeviceInternalPatchRequestDto { + this := VirtualDeviceInternalPatchRequestDto{} + return &this +} + +// GetCore returns the Core field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetCore() int32 { + if o == nil || IsNil(o.Core) { + var ret int32 + return ret + } + return *o.Core +} + +// GetCoreOk returns a tuple with the Core field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetCoreOk() (*int32, bool) { + if o == nil || IsNil(o.Core) { + return nil, false + } + return o.Core, true +} + +// HasCore returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasCore() bool { + if o != nil && !IsNil(o.Core) { + return true + } + + return false +} + +// SetCore gets a reference to the given int32 and assigns it to the Core field. +func (o *VirtualDeviceInternalPatchRequestDto) SetCore(v int32) { + o.Core = &v +} + +// GetNotifications returns the Notifications field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetNotifications() []string { + if o == nil || IsNil(o.Notifications) { + var ret []string + return ret + } + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetNotificationsOk() ([]string, bool) { + if o == nil || IsNil(o.Notifications) { + return nil, false + } + return o.Notifications, true +} + +// HasNotifications returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasNotifications() bool { + if o != nil && !IsNil(o.Notifications) { + return true + } + + return false +} + +// SetNotifications gets a reference to the given []string and assigns it to the Notifications field. +func (o *VirtualDeviceInternalPatchRequestDto) SetNotifications(v []string) { + o.Notifications = v +} + +// GetTermLength returns the TermLength field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetTermLength() string { + if o == nil || IsNil(o.TermLength) { + var ret string + return ret + } + return *o.TermLength +} + +// GetTermLengthOk returns a tuple with the TermLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetTermLengthOk() (*string, bool) { + if o == nil || IsNil(o.TermLength) { + return nil, false + } + return o.TermLength, true +} + +// HasTermLength returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasTermLength() bool { + if o != nil && !IsNil(o.TermLength) { + return true + } + + return false +} + +// SetTermLength gets a reference to the given string and assigns it to the TermLength field. +func (o *VirtualDeviceInternalPatchRequestDto) SetTermLength(v string) { + o.TermLength = &v +} + +// GetVirtualDeviceName returns the VirtualDeviceName field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetVirtualDeviceName() string { + if o == nil || IsNil(o.VirtualDeviceName) { + var ret string + return ret + } + return *o.VirtualDeviceName +} + +// GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetVirtualDeviceNameOk() (*string, bool) { + if o == nil || IsNil(o.VirtualDeviceName) { + return nil, false + } + return o.VirtualDeviceName, true +} + +// HasVirtualDeviceName returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasVirtualDeviceName() bool { + if o != nil && !IsNil(o.VirtualDeviceName) { + return true + } + + return false +} + +// SetVirtualDeviceName gets a reference to the given string and assigns it to the VirtualDeviceName field. +func (o *VirtualDeviceInternalPatchRequestDto) SetVirtualDeviceName(v string) { + o.VirtualDeviceName = &v +} + +// GetClusterName returns the ClusterName field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetClusterName() string { + if o == nil || IsNil(o.ClusterName) { + var ret string + return ret + } + return *o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetClusterNameOk() (*string, bool) { + if o == nil || IsNil(o.ClusterName) { + return nil, false + } + return o.ClusterName, true +} + +// HasClusterName returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasClusterName() bool { + if o != nil && !IsNil(o.ClusterName) { + return true + } + + return false +} + +// SetClusterName gets a reference to the given string and assigns it to the ClusterName field. +func (o *VirtualDeviceInternalPatchRequestDto) SetClusterName(v string) { + o.ClusterName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *VirtualDeviceInternalPatchRequestDto) SetStatus(v string) { + o.Status = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDto) GetVendorConfig() VirtualDeviceInternalPatchRequestDtoVendorConfig { + if o == nil || IsNil(o.VendorConfig) { + var ret VirtualDeviceInternalPatchRequestDtoVendorConfig + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDto) GetVendorConfigOk() (*VirtualDeviceInternalPatchRequestDtoVendorConfig, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDto) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VirtualDeviceInternalPatchRequestDtoVendorConfig and assigns it to the VendorConfig field. +func (o *VirtualDeviceInternalPatchRequestDto) SetVendorConfig(v VirtualDeviceInternalPatchRequestDtoVendorConfig) { + o.VendorConfig = &v +} + +func (o VirtualDeviceInternalPatchRequestDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceInternalPatchRequestDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Core) { + toSerialize["core"] = o.Core + } + if !IsNil(o.Notifications) { + toSerialize["notifications"] = o.Notifications + } + if !IsNil(o.TermLength) { + toSerialize["termLength"] = o.TermLength + } + if !IsNil(o.VirtualDeviceName) { + toSerialize["virtualDeviceName"] = o.VirtualDeviceName + } + if !IsNil(o.ClusterName) { + toSerialize["clusterName"] = o.ClusterName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceInternalPatchRequestDto) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceInternalPatchRequestDto := _VirtualDeviceInternalPatchRequestDto{} + + err = json.Unmarshal(data, &varVirtualDeviceInternalPatchRequestDto) + + if err != nil { + return err + } + + *o = VirtualDeviceInternalPatchRequestDto(varVirtualDeviceInternalPatchRequestDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "core") + delete(additionalProperties, "notifications") + delete(additionalProperties, "termLength") + delete(additionalProperties, "virtualDeviceName") + delete(additionalProperties, "clusterName") + delete(additionalProperties, "status") + delete(additionalProperties, "vendorConfig") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceInternalPatchRequestDto struct { + value *VirtualDeviceInternalPatchRequestDto + isSet bool +} + +func (v NullableVirtualDeviceInternalPatchRequestDto) Get() *VirtualDeviceInternalPatchRequestDto { + return v.value +} + +func (v *NullableVirtualDeviceInternalPatchRequestDto) Set(val *VirtualDeviceInternalPatchRequestDto) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceInternalPatchRequestDto) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceInternalPatchRequestDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceInternalPatchRequestDto(val *VirtualDeviceInternalPatchRequestDto) *NullableVirtualDeviceInternalPatchRequestDto { + return &NullableVirtualDeviceInternalPatchRequestDto{value: val, isSet: true} +} + +func (v NullableVirtualDeviceInternalPatchRequestDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceInternalPatchRequestDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_internal_patch_request_dto_vendor_config.go b/services/networkedgev1/model_virtual_device_internal_patch_request_dto_vendor_config.go new file mode 100644 index 00000000..d0757feb --- /dev/null +++ b/services/networkedgev1/model_virtual_device_internal_patch_request_dto_vendor_config.go @@ -0,0 +1,155 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceInternalPatchRequestDtoVendorConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceInternalPatchRequestDtoVendorConfig{} + +// VirtualDeviceInternalPatchRequestDtoVendorConfig vendor config properties +type VirtualDeviceInternalPatchRequestDtoVendorConfig struct { + // Disable device password. + DisablePassword *bool `json:"disablePassword,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceInternalPatchRequestDtoVendorConfig VirtualDeviceInternalPatchRequestDtoVendorConfig + +// NewVirtualDeviceInternalPatchRequestDtoVendorConfig instantiates a new VirtualDeviceInternalPatchRequestDtoVendorConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceInternalPatchRequestDtoVendorConfig() *VirtualDeviceInternalPatchRequestDtoVendorConfig { + this := VirtualDeviceInternalPatchRequestDtoVendorConfig{} + return &this +} + +// NewVirtualDeviceInternalPatchRequestDtoVendorConfigWithDefaults instantiates a new VirtualDeviceInternalPatchRequestDtoVendorConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceInternalPatchRequestDtoVendorConfigWithDefaults() *VirtualDeviceInternalPatchRequestDtoVendorConfig { + this := VirtualDeviceInternalPatchRequestDtoVendorConfig{} + return &this +} + +// GetDisablePassword returns the DisablePassword field value if set, zero value otherwise. +func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) GetDisablePassword() bool { + if o == nil || IsNil(o.DisablePassword) { + var ret bool + return ret + } + return *o.DisablePassword +} + +// GetDisablePasswordOk returns a tuple with the DisablePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) GetDisablePasswordOk() (*bool, bool) { + if o == nil || IsNil(o.DisablePassword) { + return nil, false + } + return o.DisablePassword, true +} + +// HasDisablePassword returns a boolean if a field has been set. +func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) HasDisablePassword() bool { + if o != nil && !IsNil(o.DisablePassword) { + return true + } + + return false +} + +// SetDisablePassword gets a reference to the given bool and assigns it to the DisablePassword field. +func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) SetDisablePassword(v bool) { + o.DisablePassword = &v +} + +func (o VirtualDeviceInternalPatchRequestDtoVendorConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceInternalPatchRequestDtoVendorConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisablePassword) { + toSerialize["disablePassword"] = o.DisablePassword + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceInternalPatchRequestDtoVendorConfig) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceInternalPatchRequestDtoVendorConfig := _VirtualDeviceInternalPatchRequestDtoVendorConfig{} + + err = json.Unmarshal(data, &varVirtualDeviceInternalPatchRequestDtoVendorConfig) + + if err != nil { + return err + } + + *o = VirtualDeviceInternalPatchRequestDtoVendorConfig(varVirtualDeviceInternalPatchRequestDtoVendorConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "disablePassword") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceInternalPatchRequestDtoVendorConfig struct { + value *VirtualDeviceInternalPatchRequestDtoVendorConfig + isSet bool +} + +func (v NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) Get() *VirtualDeviceInternalPatchRequestDtoVendorConfig { + return v.value +} + +func (v *NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) Set(val *VirtualDeviceInternalPatchRequestDtoVendorConfig) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceInternalPatchRequestDtoVendorConfig(val *VirtualDeviceInternalPatchRequestDtoVendorConfig) *NullableVirtualDeviceInternalPatchRequestDtoVendorConfig { + return &NullableVirtualDeviceInternalPatchRequestDtoVendorConfig{value: val, isSet: true} +} + +func (v NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceInternalPatchRequestDtoVendorConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_page_response.go b/services/networkedgev1/model_virtual_device_page_response.go new file mode 100644 index 00000000..ed7aa5d9 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_page_response.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDevicePageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDevicePageResponse{} + +// VirtualDevicePageResponse struct for VirtualDevicePageResponse +type VirtualDevicePageResponse struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []VirtualDeviceDetailsResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDevicePageResponse VirtualDevicePageResponse + +// NewVirtualDevicePageResponse instantiates a new VirtualDevicePageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDevicePageResponse() *VirtualDevicePageResponse { + this := VirtualDevicePageResponse{} + return &this +} + +// NewVirtualDevicePageResponseWithDefaults instantiates a new VirtualDevicePageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDevicePageResponseWithDefaults() *VirtualDevicePageResponse { + this := VirtualDevicePageResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *VirtualDevicePageResponse) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicePageResponse) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *VirtualDevicePageResponse) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *VirtualDevicePageResponse) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *VirtualDevicePageResponse) GetData() []VirtualDeviceDetailsResponse { + if o == nil || IsNil(o.Data) { + var ret []VirtualDeviceDetailsResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDevicePageResponse) GetDataOk() ([]VirtualDeviceDetailsResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *VirtualDevicePageResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []VirtualDeviceDetailsResponse and assigns it to the Data field. +func (o *VirtualDevicePageResponse) SetData(v []VirtualDeviceDetailsResponse) { + o.Data = v +} + +func (o VirtualDevicePageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDevicePageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDevicePageResponse) UnmarshalJSON(data []byte) (err error) { + varVirtualDevicePageResponse := _VirtualDevicePageResponse{} + + err = json.Unmarshal(data, &varVirtualDevicePageResponse) + + if err != nil { + return err + } + + *o = VirtualDevicePageResponse(varVirtualDevicePageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDevicePageResponse struct { + value *VirtualDevicePageResponse + isSet bool +} + +func (v NullableVirtualDevicePageResponse) Get() *VirtualDevicePageResponse { + return v.value +} + +func (v *NullableVirtualDevicePageResponse) Set(val *VirtualDevicePageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDevicePageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDevicePageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDevicePageResponse(val *VirtualDevicePageResponse) *NullableVirtualDevicePageResponse { + return &NullableVirtualDevicePageResponse{value: val, isSet: true} +} + +func (v NullableVirtualDevicePageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDevicePageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_request.go b/services/networkedgev1/model_virtual_device_request.go new file mode 100644 index 00000000..08a09c21 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_request.go @@ -0,0 +1,1577 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the VirtualDeviceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceRequest{} + +// VirtualDeviceRequest struct for VirtualDeviceRequest +type VirtualDeviceRequest struct { + // Account number. Either an account number or accountReferenceId is required. + AccountNumber *string `json:"accountNumber,omitempty"` + // AccountReferenceId. This is a temporary ID that can be used to create a device when the account status is still pending, not active. Either an account number or accountReferenceId is required. + AccountReferenceId *string `json:"accountReferenceId,omitempty"` + // Version. + Version string `json:"version"` + // Virtual device type (device type code) + DeviceTypeCode string `json:"deviceTypeCode"` + // Host name prefix for identification. Only a-z, A-Z, 0-9, and hyphen(-) are allowed. It should start with a letter and end with a letter or digit. The length should be between 2-30 characters. Exceptions - FTDv 2-14 characters; Aruba 2-24 characters. + HostNamePrefix *string `json:"hostNamePrefix,omitempty"` + // To create a device, you must accept the order terms. Call Get Order Terms to review the details. If you are creating an Equinix-Configured device, read your vendor's terms by calling Get Vendor Terms. + AgreeOrderTerms bool `json:"agreeOrderTerms"` + // License type. One of SUB (Subscription) or BYOL (Bring Your Own License) + LicenseMode string `json:"licenseMode"` + // This field is required for Fortinet devices. Select \"flex\" to enter a token and \"classic\" if you want to upload a license file. The actual token or license is not required at the time of device creation for Fortinet devices. + LicenseCategory *string `json:"licenseCategory,omitempty"` + // For Juniper devices you need to provide a licenseFileId if you want to BYOL (Bring Your Own License). You get a licenseFileId when you upload a license file by calling license upload API (Upload a license file before creating a virtual device). For Cisco devices, you do not need to provide a licenseFileId at the time of device creation. Once the device is provisioned, you can get the deviceSerialNo by calling Get virtual device {uuid} API. With the deviceSerialNo you can generate a license file on Cisco site. Afterward, you can upload the license file by calling license upload API (Upload a license file after creating a virtual device). + LicenseFileId *string `json:"licenseFileId,omitempty"` + // In case you want to BYOL (Bring Your Own License) for a Palo Alto device, you must provide a license token. This field must have 8 alphanumeric characters. + LicenseToken *string `json:"licenseToken,omitempty"` + // Term length in months. + Termlength *string `json:"termlength,omitempty"` + // Metro code + MetroCode string `json:"metroCode"` + // Software package code + PackageCode *string `json:"packageCode,omitempty"` + // An array of sshUsernames and passwords + SshUsers []SshUsers `json:"sshUsers,omitempty"` + // Device throughput. This is required for Juniper devices. + Throughput *int32 `json:"throughput,omitempty"` + // Throughput unit. This is required for Juniper devices. + ThroughputUnit *string `json:"throughputUnit,omitempty"` + // Virtual device name for identification. This should be minimum 3 and maximum 50 characters long. + VirtualDeviceName string `json:"virtualDeviceName"` + OrderingContact *string `json:"orderingContact,omitempty"` + // Email addresses for notification. We need a minimum of 1 and no more than 5 email addresses. + Notifications []string `json:"notifications"` + // An array of ACLs + AclDetails []ACLDetails `json:"aclDetails,omitempty"` + // Secondary additional bandwidth to be configured (in Mbps for HA). Default bandwidth provided is 15 Mbps. + AdditionalBandwidth *int32 `json:"additionalBandwidth,omitempty"` + // Whether the device is SELF-CONFIGURED or EQUINIX-CONFIGURED + DeviceManagementType string `json:"deviceManagementType"` + Core int32 `json:"core"` + InterfaceCount *int32 `json:"interfaceCount,omitempty"` + SiteId *string `json:"siteId,omitempty"` + SystemIpAddress *string `json:"systemIpAddress,omitempty"` + VendorConfig *VendorConfig `json:"vendorConfig,omitempty"` + UserPublicKey *UserPublicKeyRequest `json:"userPublicKey,omitempty"` + // If you are creating a CSRSDWAN, you may specify the ipType, either DHCP or Static. If you do not specify a value, Equinix will default to Static. + IpType *string `json:"ipType,omitempty"` + // You may specify any available interface on the device as the sshInterfaceId. This field is only applicable to self-configured devices. + SshInterfaceId *string `json:"sshInterfaceId,omitempty"` + // License URL. This field is only relevant for Ciso ASAv devices. + SmartLicenseUrl *string `json:"smartLicenseUrl,omitempty"` + // Unique ID of an existing device. Use this field to let Equinix know if you want your new device to be in a different location from any existing virtual device. This field is only meaningful for single devices. + DiverseFromDeviceUuid *string `json:"diverseFromDeviceUuid,omitempty"` + ClusterDetails *ClusterConfig `json:"clusterDetails,omitempty"` + // This field is mandatory if you are using this API to add a secondary device to an existing primary device. + PrimaryDeviceUuid *string `json:"primaryDeviceUuid,omitempty"` + // Specifies the connectivity on the device. You can have INTERNET-ACCESS, PRIVATE, or INTERNET-ACCESS-WITH-PRVT-MGMT. Private devices don't have ACLs or bandwidth. + Connectivity *string `json:"connectivity,omitempty"` + // The name of the channel partner. + ChannelPartner *string `json:"channelPartner,omitempty"` + // The Id of a previously uploaded license or cloud_init file. + CloudInitFileId *string `json:"cloudInitFileId,omitempty"` + // Purchase Order information will be included in your order confirmation email. + PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` + // Enter a short name/number to identify this order on the invoice. + OrderReference *string `json:"orderReference,omitempty"` + Secondary *VirtualDevicHARequest `json:"secondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceRequest VirtualDeviceRequest + +// NewVirtualDeviceRequest instantiates a new VirtualDeviceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceRequest(version string, deviceTypeCode string, agreeOrderTerms bool, licenseMode string, metroCode string, virtualDeviceName string, notifications []string, deviceManagementType string, core int32) *VirtualDeviceRequest { + this := VirtualDeviceRequest{} + this.Version = version + this.DeviceTypeCode = deviceTypeCode + this.AgreeOrderTerms = agreeOrderTerms + this.LicenseMode = licenseMode + this.MetroCode = metroCode + this.VirtualDeviceName = virtualDeviceName + this.Notifications = notifications + this.DeviceManagementType = deviceManagementType + this.Core = core + return &this +} + +// NewVirtualDeviceRequestWithDefaults instantiates a new VirtualDeviceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceRequestWithDefaults() *VirtualDeviceRequest { + this := VirtualDeviceRequest{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *VirtualDeviceRequest) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetAccountReferenceId returns the AccountReferenceId field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetAccountReferenceId() string { + if o == nil || IsNil(o.AccountReferenceId) { + var ret string + return ret + } + return *o.AccountReferenceId +} + +// GetAccountReferenceIdOk returns a tuple with the AccountReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetAccountReferenceIdOk() (*string, bool) { + if o == nil || IsNil(o.AccountReferenceId) { + return nil, false + } + return o.AccountReferenceId, true +} + +// HasAccountReferenceId returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasAccountReferenceId() bool { + if o != nil && !IsNil(o.AccountReferenceId) { + return true + } + + return false +} + +// SetAccountReferenceId gets a reference to the given string and assigns it to the AccountReferenceId field. +func (o *VirtualDeviceRequest) SetAccountReferenceId(v string) { + o.AccountReferenceId = &v +} + +// GetVersion returns the Version field value +func (o *VirtualDeviceRequest) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *VirtualDeviceRequest) SetVersion(v string) { + o.Version = v +} + +// GetDeviceTypeCode returns the DeviceTypeCode field value +func (o *VirtualDeviceRequest) GetDeviceTypeCode() string { + if o == nil { + var ret string + return ret + } + + return o.DeviceTypeCode +} + +// GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetDeviceTypeCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeviceTypeCode, true +} + +// SetDeviceTypeCode sets field value +func (o *VirtualDeviceRequest) SetDeviceTypeCode(v string) { + o.DeviceTypeCode = v +} + +// GetHostNamePrefix returns the HostNamePrefix field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetHostNamePrefix() string { + if o == nil || IsNil(o.HostNamePrefix) { + var ret string + return ret + } + return *o.HostNamePrefix +} + +// GetHostNamePrefixOk returns a tuple with the HostNamePrefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetHostNamePrefixOk() (*string, bool) { + if o == nil || IsNil(o.HostNamePrefix) { + return nil, false + } + return o.HostNamePrefix, true +} + +// HasHostNamePrefix returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasHostNamePrefix() bool { + if o != nil && !IsNil(o.HostNamePrefix) { + return true + } + + return false +} + +// SetHostNamePrefix gets a reference to the given string and assigns it to the HostNamePrefix field. +func (o *VirtualDeviceRequest) SetHostNamePrefix(v string) { + o.HostNamePrefix = &v +} + +// GetAgreeOrderTerms returns the AgreeOrderTerms field value +func (o *VirtualDeviceRequest) GetAgreeOrderTerms() bool { + if o == nil { + var ret bool + return ret + } + + return o.AgreeOrderTerms +} + +// GetAgreeOrderTermsOk returns a tuple with the AgreeOrderTerms field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetAgreeOrderTermsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AgreeOrderTerms, true +} + +// SetAgreeOrderTerms sets field value +func (o *VirtualDeviceRequest) SetAgreeOrderTerms(v bool) { + o.AgreeOrderTerms = v +} + +// GetLicenseMode returns the LicenseMode field value +func (o *VirtualDeviceRequest) GetLicenseMode() string { + if o == nil { + var ret string + return ret + } + + return o.LicenseMode +} + +// GetLicenseModeOk returns a tuple with the LicenseMode field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetLicenseModeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LicenseMode, true +} + +// SetLicenseMode sets field value +func (o *VirtualDeviceRequest) SetLicenseMode(v string) { + o.LicenseMode = v +} + +// GetLicenseCategory returns the LicenseCategory field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetLicenseCategory() string { + if o == nil || IsNil(o.LicenseCategory) { + var ret string + return ret + } + return *o.LicenseCategory +} + +// GetLicenseCategoryOk returns a tuple with the LicenseCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetLicenseCategoryOk() (*string, bool) { + if o == nil || IsNil(o.LicenseCategory) { + return nil, false + } + return o.LicenseCategory, true +} + +// HasLicenseCategory returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasLicenseCategory() bool { + if o != nil && !IsNil(o.LicenseCategory) { + return true + } + + return false +} + +// SetLicenseCategory gets a reference to the given string and assigns it to the LicenseCategory field. +func (o *VirtualDeviceRequest) SetLicenseCategory(v string) { + o.LicenseCategory = &v +} + +// GetLicenseFileId returns the LicenseFileId field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetLicenseFileId() string { + if o == nil || IsNil(o.LicenseFileId) { + var ret string + return ret + } + return *o.LicenseFileId +} + +// GetLicenseFileIdOk returns a tuple with the LicenseFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetLicenseFileIdOk() (*string, bool) { + if o == nil || IsNil(o.LicenseFileId) { + return nil, false + } + return o.LicenseFileId, true +} + +// HasLicenseFileId returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasLicenseFileId() bool { + if o != nil && !IsNil(o.LicenseFileId) { + return true + } + + return false +} + +// SetLicenseFileId gets a reference to the given string and assigns it to the LicenseFileId field. +func (o *VirtualDeviceRequest) SetLicenseFileId(v string) { + o.LicenseFileId = &v +} + +// GetLicenseToken returns the LicenseToken field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetLicenseToken() string { + if o == nil || IsNil(o.LicenseToken) { + var ret string + return ret + } + return *o.LicenseToken +} + +// GetLicenseTokenOk returns a tuple with the LicenseToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetLicenseTokenOk() (*string, bool) { + if o == nil || IsNil(o.LicenseToken) { + return nil, false + } + return o.LicenseToken, true +} + +// HasLicenseToken returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasLicenseToken() bool { + if o != nil && !IsNil(o.LicenseToken) { + return true + } + + return false +} + +// SetLicenseToken gets a reference to the given string and assigns it to the LicenseToken field. +func (o *VirtualDeviceRequest) SetLicenseToken(v string) { + o.LicenseToken = &v +} + +// GetTermlength returns the Termlength field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetTermlength() string { + if o == nil || IsNil(o.Termlength) { + var ret string + return ret + } + return *o.Termlength +} + +// GetTermlengthOk returns a tuple with the Termlength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetTermlengthOk() (*string, bool) { + if o == nil || IsNil(o.Termlength) { + return nil, false + } + return o.Termlength, true +} + +// HasTermlength returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasTermlength() bool { + if o != nil && !IsNil(o.Termlength) { + return true + } + + return false +} + +// SetTermlength gets a reference to the given string and assigns it to the Termlength field. +func (o *VirtualDeviceRequest) SetTermlength(v string) { + o.Termlength = &v +} + +// GetMetroCode returns the MetroCode field value +func (o *VirtualDeviceRequest) GetMetroCode() string { + if o == nil { + var ret string + return ret + } + + return o.MetroCode +} + +// GetMetroCodeOk returns a tuple with the MetroCode field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetMetroCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetroCode, true +} + +// SetMetroCode sets field value +func (o *VirtualDeviceRequest) SetMetroCode(v string) { + o.MetroCode = v +} + +// GetPackageCode returns the PackageCode field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetPackageCode() string { + if o == nil || IsNil(o.PackageCode) { + var ret string + return ret + } + return *o.PackageCode +} + +// GetPackageCodeOk returns a tuple with the PackageCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetPackageCodeOk() (*string, bool) { + if o == nil || IsNil(o.PackageCode) { + return nil, false + } + return o.PackageCode, true +} + +// HasPackageCode returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasPackageCode() bool { + if o != nil && !IsNil(o.PackageCode) { + return true + } + + return false +} + +// SetPackageCode gets a reference to the given string and assigns it to the PackageCode field. +func (o *VirtualDeviceRequest) SetPackageCode(v string) { + o.PackageCode = &v +} + +// GetSshUsers returns the SshUsers field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSshUsers() []SshUsers { + if o == nil || IsNil(o.SshUsers) { + var ret []SshUsers + return ret + } + return o.SshUsers +} + +// GetSshUsersOk returns a tuple with the SshUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSshUsersOk() ([]SshUsers, bool) { + if o == nil || IsNil(o.SshUsers) { + return nil, false + } + return o.SshUsers, true +} + +// HasSshUsers returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSshUsers() bool { + if o != nil && !IsNil(o.SshUsers) { + return true + } + + return false +} + +// SetSshUsers gets a reference to the given []SshUsers and assigns it to the SshUsers field. +func (o *VirtualDeviceRequest) SetSshUsers(v []SshUsers) { + o.SshUsers = v +} + +// GetThroughput returns the Throughput field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetThroughput() int32 { + if o == nil || IsNil(o.Throughput) { + var ret int32 + return ret + } + return *o.Throughput +} + +// GetThroughputOk returns a tuple with the Throughput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetThroughputOk() (*int32, bool) { + if o == nil || IsNil(o.Throughput) { + return nil, false + } + return o.Throughput, true +} + +// HasThroughput returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasThroughput() bool { + if o != nil && !IsNil(o.Throughput) { + return true + } + + return false +} + +// SetThroughput gets a reference to the given int32 and assigns it to the Throughput field. +func (o *VirtualDeviceRequest) SetThroughput(v int32) { + o.Throughput = &v +} + +// GetThroughputUnit returns the ThroughputUnit field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetThroughputUnit() string { + if o == nil || IsNil(o.ThroughputUnit) { + var ret string + return ret + } + return *o.ThroughputUnit +} + +// GetThroughputUnitOk returns a tuple with the ThroughputUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetThroughputUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThroughputUnit) { + return nil, false + } + return o.ThroughputUnit, true +} + +// HasThroughputUnit returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasThroughputUnit() bool { + if o != nil && !IsNil(o.ThroughputUnit) { + return true + } + + return false +} + +// SetThroughputUnit gets a reference to the given string and assigns it to the ThroughputUnit field. +func (o *VirtualDeviceRequest) SetThroughputUnit(v string) { + o.ThroughputUnit = &v +} + +// GetVirtualDeviceName returns the VirtualDeviceName field value +func (o *VirtualDeviceRequest) GetVirtualDeviceName() string { + if o == nil { + var ret string + return ret + } + + return o.VirtualDeviceName +} + +// GetVirtualDeviceNameOk returns a tuple with the VirtualDeviceName field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetVirtualDeviceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VirtualDeviceName, true +} + +// SetVirtualDeviceName sets field value +func (o *VirtualDeviceRequest) SetVirtualDeviceName(v string) { + o.VirtualDeviceName = v +} + +// GetOrderingContact returns the OrderingContact field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetOrderingContact() string { + if o == nil || IsNil(o.OrderingContact) { + var ret string + return ret + } + return *o.OrderingContact +} + +// GetOrderingContactOk returns a tuple with the OrderingContact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetOrderingContactOk() (*string, bool) { + if o == nil || IsNil(o.OrderingContact) { + return nil, false + } + return o.OrderingContact, true +} + +// HasOrderingContact returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasOrderingContact() bool { + if o != nil && !IsNil(o.OrderingContact) { + return true + } + + return false +} + +// SetOrderingContact gets a reference to the given string and assigns it to the OrderingContact field. +func (o *VirtualDeviceRequest) SetOrderingContact(v string) { + o.OrderingContact = &v +} + +// GetNotifications returns the Notifications field value +func (o *VirtualDeviceRequest) GetNotifications() []string { + if o == nil { + var ret []string + return ret + } + + return o.Notifications +} + +// GetNotificationsOk returns a tuple with the Notifications field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetNotificationsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Notifications, true +} + +// SetNotifications sets field value +func (o *VirtualDeviceRequest) SetNotifications(v []string) { + o.Notifications = v +} + +// GetAclDetails returns the AclDetails field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetAclDetails() []ACLDetails { + if o == nil || IsNil(o.AclDetails) { + var ret []ACLDetails + return ret + } + return o.AclDetails +} + +// GetAclDetailsOk returns a tuple with the AclDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetAclDetailsOk() ([]ACLDetails, bool) { + if o == nil || IsNil(o.AclDetails) { + return nil, false + } + return o.AclDetails, true +} + +// HasAclDetails returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasAclDetails() bool { + if o != nil && !IsNil(o.AclDetails) { + return true + } + + return false +} + +// SetAclDetails gets a reference to the given []ACLDetails and assigns it to the AclDetails field. +func (o *VirtualDeviceRequest) SetAclDetails(v []ACLDetails) { + o.AclDetails = v +} + +// GetAdditionalBandwidth returns the AdditionalBandwidth field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetAdditionalBandwidth() int32 { + if o == nil || IsNil(o.AdditionalBandwidth) { + var ret int32 + return ret + } + return *o.AdditionalBandwidth +} + +// GetAdditionalBandwidthOk returns a tuple with the AdditionalBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetAdditionalBandwidthOk() (*int32, bool) { + if o == nil || IsNil(o.AdditionalBandwidth) { + return nil, false + } + return o.AdditionalBandwidth, true +} + +// HasAdditionalBandwidth returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasAdditionalBandwidth() bool { + if o != nil && !IsNil(o.AdditionalBandwidth) { + return true + } + + return false +} + +// SetAdditionalBandwidth gets a reference to the given int32 and assigns it to the AdditionalBandwidth field. +func (o *VirtualDeviceRequest) SetAdditionalBandwidth(v int32) { + o.AdditionalBandwidth = &v +} + +// GetDeviceManagementType returns the DeviceManagementType field value +func (o *VirtualDeviceRequest) GetDeviceManagementType() string { + if o == nil { + var ret string + return ret + } + + return o.DeviceManagementType +} + +// GetDeviceManagementTypeOk returns a tuple with the DeviceManagementType field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetDeviceManagementTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeviceManagementType, true +} + +// SetDeviceManagementType sets field value +func (o *VirtualDeviceRequest) SetDeviceManagementType(v string) { + o.DeviceManagementType = v +} + +// GetCore returns the Core field value +func (o *VirtualDeviceRequest) GetCore() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Core +} + +// GetCoreOk returns a tuple with the Core field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetCoreOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Core, true +} + +// SetCore sets field value +func (o *VirtualDeviceRequest) SetCore(v int32) { + o.Core = v +} + +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetInterfaceCount() int32 { + if o == nil || IsNil(o.InterfaceCount) { + var ret int32 + return ret + } + return *o.InterfaceCount +} + +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.InterfaceCount) { + return nil, false + } + return o.InterfaceCount, true +} + +// HasInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false +} + +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. +func (o *VirtualDeviceRequest) SetInterfaceCount(v int32) { + o.InterfaceCount = &v +} + +// GetSiteId returns the SiteId field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSiteId() string { + if o == nil || IsNil(o.SiteId) { + var ret string + return ret + } + return *o.SiteId +} + +// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSiteIdOk() (*string, bool) { + if o == nil || IsNil(o.SiteId) { + return nil, false + } + return o.SiteId, true +} + +// HasSiteId returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSiteId() bool { + if o != nil && !IsNil(o.SiteId) { + return true + } + + return false +} + +// SetSiteId gets a reference to the given string and assigns it to the SiteId field. +func (o *VirtualDeviceRequest) SetSiteId(v string) { + o.SiteId = &v +} + +// GetSystemIpAddress returns the SystemIpAddress field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSystemIpAddress() string { + if o == nil || IsNil(o.SystemIpAddress) { + var ret string + return ret + } + return *o.SystemIpAddress +} + +// GetSystemIpAddressOk returns a tuple with the SystemIpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSystemIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.SystemIpAddress) { + return nil, false + } + return o.SystemIpAddress, true +} + +// HasSystemIpAddress returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSystemIpAddress() bool { + if o != nil && !IsNil(o.SystemIpAddress) { + return true + } + + return false +} + +// SetSystemIpAddress gets a reference to the given string and assigns it to the SystemIpAddress field. +func (o *VirtualDeviceRequest) SetSystemIpAddress(v string) { + o.SystemIpAddress = &v +} + +// GetVendorConfig returns the VendorConfig field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetVendorConfig() VendorConfig { + if o == nil || IsNil(o.VendorConfig) { + var ret VendorConfig + return ret + } + return *o.VendorConfig +} + +// GetVendorConfigOk returns a tuple with the VendorConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetVendorConfigOk() (*VendorConfig, bool) { + if o == nil || IsNil(o.VendorConfig) { + return nil, false + } + return o.VendorConfig, true +} + +// HasVendorConfig returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasVendorConfig() bool { + if o != nil && !IsNil(o.VendorConfig) { + return true + } + + return false +} + +// SetVendorConfig gets a reference to the given VendorConfig and assigns it to the VendorConfig field. +func (o *VirtualDeviceRequest) SetVendorConfig(v VendorConfig) { + o.VendorConfig = &v +} + +// GetUserPublicKey returns the UserPublicKey field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetUserPublicKey() UserPublicKeyRequest { + if o == nil || IsNil(o.UserPublicKey) { + var ret UserPublicKeyRequest + return ret + } + return *o.UserPublicKey +} + +// GetUserPublicKeyOk returns a tuple with the UserPublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetUserPublicKeyOk() (*UserPublicKeyRequest, bool) { + if o == nil || IsNil(o.UserPublicKey) { + return nil, false + } + return o.UserPublicKey, true +} + +// HasUserPublicKey returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasUserPublicKey() bool { + if o != nil && !IsNil(o.UserPublicKey) { + return true + } + + return false +} + +// SetUserPublicKey gets a reference to the given UserPublicKeyRequest and assigns it to the UserPublicKey field. +func (o *VirtualDeviceRequest) SetUserPublicKey(v UserPublicKeyRequest) { + o.UserPublicKey = &v +} + +// GetIpType returns the IpType field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetIpType() string { + if o == nil || IsNil(o.IpType) { + var ret string + return ret + } + return *o.IpType +} + +// GetIpTypeOk returns a tuple with the IpType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetIpTypeOk() (*string, bool) { + if o == nil || IsNil(o.IpType) { + return nil, false + } + return o.IpType, true +} + +// HasIpType returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasIpType() bool { + if o != nil && !IsNil(o.IpType) { + return true + } + + return false +} + +// SetIpType gets a reference to the given string and assigns it to the IpType field. +func (o *VirtualDeviceRequest) SetIpType(v string) { + o.IpType = &v +} + +// GetSshInterfaceId returns the SshInterfaceId field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSshInterfaceId() string { + if o == nil || IsNil(o.SshInterfaceId) { + var ret string + return ret + } + return *o.SshInterfaceId +} + +// GetSshInterfaceIdOk returns a tuple with the SshInterfaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSshInterfaceIdOk() (*string, bool) { + if o == nil || IsNil(o.SshInterfaceId) { + return nil, false + } + return o.SshInterfaceId, true +} + +// HasSshInterfaceId returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSshInterfaceId() bool { + if o != nil && !IsNil(o.SshInterfaceId) { + return true + } + + return false +} + +// SetSshInterfaceId gets a reference to the given string and assigns it to the SshInterfaceId field. +func (o *VirtualDeviceRequest) SetSshInterfaceId(v string) { + o.SshInterfaceId = &v +} + +// GetSmartLicenseUrl returns the SmartLicenseUrl field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSmartLicenseUrl() string { + if o == nil || IsNil(o.SmartLicenseUrl) { + var ret string + return ret + } + return *o.SmartLicenseUrl +} + +// GetSmartLicenseUrlOk returns a tuple with the SmartLicenseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSmartLicenseUrlOk() (*string, bool) { + if o == nil || IsNil(o.SmartLicenseUrl) { + return nil, false + } + return o.SmartLicenseUrl, true +} + +// HasSmartLicenseUrl returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSmartLicenseUrl() bool { + if o != nil && !IsNil(o.SmartLicenseUrl) { + return true + } + + return false +} + +// SetSmartLicenseUrl gets a reference to the given string and assigns it to the SmartLicenseUrl field. +func (o *VirtualDeviceRequest) SetSmartLicenseUrl(v string) { + o.SmartLicenseUrl = &v +} + +// GetDiverseFromDeviceUuid returns the DiverseFromDeviceUuid field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetDiverseFromDeviceUuid() string { + if o == nil || IsNil(o.DiverseFromDeviceUuid) { + var ret string + return ret + } + return *o.DiverseFromDeviceUuid +} + +// GetDiverseFromDeviceUuidOk returns a tuple with the DiverseFromDeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetDiverseFromDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.DiverseFromDeviceUuid) { + return nil, false + } + return o.DiverseFromDeviceUuid, true +} + +// HasDiverseFromDeviceUuid returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasDiverseFromDeviceUuid() bool { + if o != nil && !IsNil(o.DiverseFromDeviceUuid) { + return true + } + + return false +} + +// SetDiverseFromDeviceUuid gets a reference to the given string and assigns it to the DiverseFromDeviceUuid field. +func (o *VirtualDeviceRequest) SetDiverseFromDeviceUuid(v string) { + o.DiverseFromDeviceUuid = &v +} + +// GetClusterDetails returns the ClusterDetails field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetClusterDetails() ClusterConfig { + if o == nil || IsNil(o.ClusterDetails) { + var ret ClusterConfig + return ret + } + return *o.ClusterDetails +} + +// GetClusterDetailsOk returns a tuple with the ClusterDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetClusterDetailsOk() (*ClusterConfig, bool) { + if o == nil || IsNil(o.ClusterDetails) { + return nil, false + } + return o.ClusterDetails, true +} + +// HasClusterDetails returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasClusterDetails() bool { + if o != nil && !IsNil(o.ClusterDetails) { + return true + } + + return false +} + +// SetClusterDetails gets a reference to the given ClusterConfig and assigns it to the ClusterDetails field. +func (o *VirtualDeviceRequest) SetClusterDetails(v ClusterConfig) { + o.ClusterDetails = &v +} + +// GetPrimaryDeviceUuid returns the PrimaryDeviceUuid field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetPrimaryDeviceUuid() string { + if o == nil || IsNil(o.PrimaryDeviceUuid) { + var ret string + return ret + } + return *o.PrimaryDeviceUuid +} + +// GetPrimaryDeviceUuidOk returns a tuple with the PrimaryDeviceUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetPrimaryDeviceUuidOk() (*string, bool) { + if o == nil || IsNil(o.PrimaryDeviceUuid) { + return nil, false + } + return o.PrimaryDeviceUuid, true +} + +// HasPrimaryDeviceUuid returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasPrimaryDeviceUuid() bool { + if o != nil && !IsNil(o.PrimaryDeviceUuid) { + return true + } + + return false +} + +// SetPrimaryDeviceUuid gets a reference to the given string and assigns it to the PrimaryDeviceUuid field. +func (o *VirtualDeviceRequest) SetPrimaryDeviceUuid(v string) { + o.PrimaryDeviceUuid = &v +} + +// GetConnectivity returns the Connectivity field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetConnectivity() string { + if o == nil || IsNil(o.Connectivity) { + var ret string + return ret + } + return *o.Connectivity +} + +// GetConnectivityOk returns a tuple with the Connectivity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetConnectivityOk() (*string, bool) { + if o == nil || IsNil(o.Connectivity) { + return nil, false + } + return o.Connectivity, true +} + +// HasConnectivity returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasConnectivity() bool { + if o != nil && !IsNil(o.Connectivity) { + return true + } + + return false +} + +// SetConnectivity gets a reference to the given string and assigns it to the Connectivity field. +func (o *VirtualDeviceRequest) SetConnectivity(v string) { + o.Connectivity = &v +} + +// GetChannelPartner returns the ChannelPartner field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetChannelPartner() string { + if o == nil || IsNil(o.ChannelPartner) { + var ret string + return ret + } + return *o.ChannelPartner +} + +// GetChannelPartnerOk returns a tuple with the ChannelPartner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetChannelPartnerOk() (*string, bool) { + if o == nil || IsNil(o.ChannelPartner) { + return nil, false + } + return o.ChannelPartner, true +} + +// HasChannelPartner returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasChannelPartner() bool { + if o != nil && !IsNil(o.ChannelPartner) { + return true + } + + return false +} + +// SetChannelPartner gets a reference to the given string and assigns it to the ChannelPartner field. +func (o *VirtualDeviceRequest) SetChannelPartner(v string) { + o.ChannelPartner = &v +} + +// GetCloudInitFileId returns the CloudInitFileId field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetCloudInitFileId() string { + if o == nil || IsNil(o.CloudInitFileId) { + var ret string + return ret + } + return *o.CloudInitFileId +} + +// GetCloudInitFileIdOk returns a tuple with the CloudInitFileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetCloudInitFileIdOk() (*string, bool) { + if o == nil || IsNil(o.CloudInitFileId) { + return nil, false + } + return o.CloudInitFileId, true +} + +// HasCloudInitFileId returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasCloudInitFileId() bool { + if o != nil && !IsNil(o.CloudInitFileId) { + return true + } + + return false +} + +// SetCloudInitFileId gets a reference to the given string and assigns it to the CloudInitFileId field. +func (o *VirtualDeviceRequest) SetCloudInitFileId(v string) { + o.CloudInitFileId = &v +} + +// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetPurchaseOrderNumber() string { + if o == nil || IsNil(o.PurchaseOrderNumber) { + var ret string + return ret + } + return *o.PurchaseOrderNumber +} + +// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetPurchaseOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.PurchaseOrderNumber) { + return nil, false + } + return o.PurchaseOrderNumber, true +} + +// HasPurchaseOrderNumber returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasPurchaseOrderNumber() bool { + if o != nil && !IsNil(o.PurchaseOrderNumber) { + return true + } + + return false +} + +// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field. +func (o *VirtualDeviceRequest) SetPurchaseOrderNumber(v string) { + o.PurchaseOrderNumber = &v +} + +// GetOrderReference returns the OrderReference field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetOrderReference() string { + if o == nil || IsNil(o.OrderReference) { + var ret string + return ret + } + return *o.OrderReference +} + +// GetOrderReferenceOk returns a tuple with the OrderReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetOrderReferenceOk() (*string, bool) { + if o == nil || IsNil(o.OrderReference) { + return nil, false + } + return o.OrderReference, true +} + +// HasOrderReference returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasOrderReference() bool { + if o != nil && !IsNil(o.OrderReference) { + return true + } + + return false +} + +// SetOrderReference gets a reference to the given string and assigns it to the OrderReference field. +func (o *VirtualDeviceRequest) SetOrderReference(v string) { + o.OrderReference = &v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *VirtualDeviceRequest) GetSecondary() VirtualDevicHARequest { + if o == nil || IsNil(o.Secondary) { + var ret VirtualDevicHARequest + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceRequest) GetSecondaryOk() (*VirtualDevicHARequest, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *VirtualDeviceRequest) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given VirtualDevicHARequest and assigns it to the Secondary field. +func (o *VirtualDeviceRequest) SetSecondary(v VirtualDevicHARequest) { + o.Secondary = &v +} + +func (o VirtualDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.AccountReferenceId) { + toSerialize["accountReferenceId"] = o.AccountReferenceId + } + toSerialize["version"] = o.Version + toSerialize["deviceTypeCode"] = o.DeviceTypeCode + if !IsNil(o.HostNamePrefix) { + toSerialize["hostNamePrefix"] = o.HostNamePrefix + } + toSerialize["agreeOrderTerms"] = o.AgreeOrderTerms + toSerialize["licenseMode"] = o.LicenseMode + if !IsNil(o.LicenseCategory) { + toSerialize["licenseCategory"] = o.LicenseCategory + } + if !IsNil(o.LicenseFileId) { + toSerialize["licenseFileId"] = o.LicenseFileId + } + if !IsNil(o.LicenseToken) { + toSerialize["licenseToken"] = o.LicenseToken + } + if !IsNil(o.Termlength) { + toSerialize["termlength"] = o.Termlength + } + toSerialize["metroCode"] = o.MetroCode + if !IsNil(o.PackageCode) { + toSerialize["packageCode"] = o.PackageCode + } + if !IsNil(o.SshUsers) { + toSerialize["sshUsers"] = o.SshUsers + } + if !IsNil(o.Throughput) { + toSerialize["throughput"] = o.Throughput + } + if !IsNil(o.ThroughputUnit) { + toSerialize["throughputUnit"] = o.ThroughputUnit + } + toSerialize["virtualDeviceName"] = o.VirtualDeviceName + if !IsNil(o.OrderingContact) { + toSerialize["orderingContact"] = o.OrderingContact + } + toSerialize["notifications"] = o.Notifications + if !IsNil(o.AclDetails) { + toSerialize["aclDetails"] = o.AclDetails + } + if !IsNil(o.AdditionalBandwidth) { + toSerialize["additionalBandwidth"] = o.AdditionalBandwidth + } + toSerialize["deviceManagementType"] = o.DeviceManagementType + toSerialize["core"] = o.Core + if !IsNil(o.InterfaceCount) { + toSerialize["interfaceCount"] = o.InterfaceCount + } + if !IsNil(o.SiteId) { + toSerialize["siteId"] = o.SiteId + } + if !IsNil(o.SystemIpAddress) { + toSerialize["systemIpAddress"] = o.SystemIpAddress + } + if !IsNil(o.VendorConfig) { + toSerialize["vendorConfig"] = o.VendorConfig + } + if !IsNil(o.UserPublicKey) { + toSerialize["userPublicKey"] = o.UserPublicKey + } + if !IsNil(o.IpType) { + toSerialize["ipType"] = o.IpType + } + if !IsNil(o.SshInterfaceId) { + toSerialize["sshInterfaceId"] = o.SshInterfaceId + } + if !IsNil(o.SmartLicenseUrl) { + toSerialize["smartLicenseUrl"] = o.SmartLicenseUrl + } + if !IsNil(o.DiverseFromDeviceUuid) { + toSerialize["diverseFromDeviceUuid"] = o.DiverseFromDeviceUuid + } + if !IsNil(o.ClusterDetails) { + toSerialize["clusterDetails"] = o.ClusterDetails + } + if !IsNil(o.PrimaryDeviceUuid) { + toSerialize["primaryDeviceUuid"] = o.PrimaryDeviceUuid + } + if !IsNil(o.Connectivity) { + toSerialize["connectivity"] = o.Connectivity + } + if !IsNil(o.ChannelPartner) { + toSerialize["channelPartner"] = o.ChannelPartner + } + if !IsNil(o.CloudInitFileId) { + toSerialize["cloudInitFileId"] = o.CloudInitFileId + } + if !IsNil(o.PurchaseOrderNumber) { + toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber + } + if !IsNil(o.OrderReference) { + toSerialize["orderReference"] = o.OrderReference + } + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "version", + "deviceTypeCode", + "agreeOrderTerms", + "licenseMode", + "metroCode", + "virtualDeviceName", + "notifications", + "deviceManagementType", + "core", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varVirtualDeviceRequest := _VirtualDeviceRequest{} + + err = json.Unmarshal(data, &varVirtualDeviceRequest) + + if err != nil { + return err + } + + *o = VirtualDeviceRequest(varVirtualDeviceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "accountReferenceId") + delete(additionalProperties, "version") + delete(additionalProperties, "deviceTypeCode") + delete(additionalProperties, "hostNamePrefix") + delete(additionalProperties, "agreeOrderTerms") + delete(additionalProperties, "licenseMode") + delete(additionalProperties, "licenseCategory") + delete(additionalProperties, "licenseFileId") + delete(additionalProperties, "licenseToken") + delete(additionalProperties, "termlength") + delete(additionalProperties, "metroCode") + delete(additionalProperties, "packageCode") + delete(additionalProperties, "sshUsers") + delete(additionalProperties, "throughput") + delete(additionalProperties, "throughputUnit") + delete(additionalProperties, "virtualDeviceName") + delete(additionalProperties, "orderingContact") + delete(additionalProperties, "notifications") + delete(additionalProperties, "aclDetails") + delete(additionalProperties, "additionalBandwidth") + delete(additionalProperties, "deviceManagementType") + delete(additionalProperties, "core") + delete(additionalProperties, "interfaceCount") + delete(additionalProperties, "siteId") + delete(additionalProperties, "systemIpAddress") + delete(additionalProperties, "vendorConfig") + delete(additionalProperties, "userPublicKey") + delete(additionalProperties, "ipType") + delete(additionalProperties, "sshInterfaceId") + delete(additionalProperties, "smartLicenseUrl") + delete(additionalProperties, "diverseFromDeviceUuid") + delete(additionalProperties, "clusterDetails") + delete(additionalProperties, "primaryDeviceUuid") + delete(additionalProperties, "connectivity") + delete(additionalProperties, "channelPartner") + delete(additionalProperties, "cloudInitFileId") + delete(additionalProperties, "purchaseOrderNumber") + delete(additionalProperties, "orderReference") + delete(additionalProperties, "secondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceRequest struct { + value *VirtualDeviceRequest + isSet bool +} + +func (v NullableVirtualDeviceRequest) Get() *VirtualDeviceRequest { + return v.value +} + +func (v *NullableVirtualDeviceRequest) Set(val *VirtualDeviceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceRequest(val *VirtualDeviceRequest) *NullableVirtualDeviceRequest { + return &NullableVirtualDeviceRequest{value: val, isSet: true} +} + +func (v NullableVirtualDeviceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_type.go b/services/networkedgev1/model_virtual_device_type.go new file mode 100644 index 00000000..e416a835 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_type.go @@ -0,0 +1,572 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceType{} + +// VirtualDeviceType struct for VirtualDeviceType +type VirtualDeviceType struct { + // The type of the device. + DeviceTypeCode *string `json:"deviceTypeCode,omitempty"` + // The name of the device. + Name *string `json:"name,omitempty"` + // The description of the device. + Description *string `json:"description,omitempty"` + // The vendor of the device. + Vendor *string `json:"vendor,omitempty"` + // The type of the virtual device, whether router or firewall. + Category *string `json:"category,omitempty"` + // The maximum available number of interfaces. + MaxInterfaceCount *int32 `json:"maxInterfaceCount,omitempty"` + // The default number of interfaces. + DefaultInterfaceCount *int32 `json:"defaultInterfaceCount,omitempty"` + // The maximum number of available interfaces in case you are clustering. + ClusterMaxInterfaceCount *int32 `json:"clusterMaxInterfaceCount,omitempty"` + // The default number of available interfaces in case you are clustering. + ClusterDefaultInterfaceCount *int32 `json:"clusterDefaultInterfaceCount,omitempty"` + // An array of metros where the device is available. + AvailableMetros []Metro `json:"availableMetros,omitempty"` + // An array of available software packages + SoftwarePackages []SoftwarePackage `json:"softwarePackages,omitempty"` + DeviceManagementTypes *VirtualDeviceTypeDeviceManagementTypes `json:"deviceManagementTypes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceType VirtualDeviceType + +// NewVirtualDeviceType instantiates a new VirtualDeviceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceType() *VirtualDeviceType { + this := VirtualDeviceType{} + return &this +} + +// NewVirtualDeviceTypeWithDefaults instantiates a new VirtualDeviceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceTypeWithDefaults() *VirtualDeviceType { + this := VirtualDeviceType{} + return &this +} + +// GetDeviceTypeCode returns the DeviceTypeCode field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetDeviceTypeCode() string { + if o == nil || IsNil(o.DeviceTypeCode) { + var ret string + return ret + } + return *o.DeviceTypeCode +} + +// GetDeviceTypeCodeOk returns a tuple with the DeviceTypeCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetDeviceTypeCodeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceTypeCode) { + return nil, false + } + return o.DeviceTypeCode, true +} + +// HasDeviceTypeCode returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasDeviceTypeCode() bool { + if o != nil && !IsNil(o.DeviceTypeCode) { + return true + } + + return false +} + +// SetDeviceTypeCode gets a reference to the given string and assigns it to the DeviceTypeCode field. +func (o *VirtualDeviceType) SetDeviceTypeCode(v string) { + o.DeviceTypeCode = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *VirtualDeviceType) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *VirtualDeviceType) SetDescription(v string) { + o.Description = &v +} + +// GetVendor returns the Vendor field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetVendor() string { + if o == nil || IsNil(o.Vendor) { + var ret string + return ret + } + return *o.Vendor +} + +// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetVendorOk() (*string, bool) { + if o == nil || IsNil(o.Vendor) { + return nil, false + } + return o.Vendor, true +} + +// HasVendor returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasVendor() bool { + if o != nil && !IsNil(o.Vendor) { + return true + } + + return false +} + +// SetVendor gets a reference to the given string and assigns it to the Vendor field. +func (o *VirtualDeviceType) SetVendor(v string) { + o.Vendor = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *VirtualDeviceType) SetCategory(v string) { + o.Category = &v +} + +// GetMaxInterfaceCount returns the MaxInterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetMaxInterfaceCount() int32 { + if o == nil || IsNil(o.MaxInterfaceCount) { + var ret int32 + return ret + } + return *o.MaxInterfaceCount +} + +// GetMaxInterfaceCountOk returns a tuple with the MaxInterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetMaxInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.MaxInterfaceCount) { + return nil, false + } + return o.MaxInterfaceCount, true +} + +// HasMaxInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasMaxInterfaceCount() bool { + if o != nil && !IsNil(o.MaxInterfaceCount) { + return true + } + + return false +} + +// SetMaxInterfaceCount gets a reference to the given int32 and assigns it to the MaxInterfaceCount field. +func (o *VirtualDeviceType) SetMaxInterfaceCount(v int32) { + o.MaxInterfaceCount = &v +} + +// GetDefaultInterfaceCount returns the DefaultInterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetDefaultInterfaceCount() int32 { + if o == nil || IsNil(o.DefaultInterfaceCount) { + var ret int32 + return ret + } + return *o.DefaultInterfaceCount +} + +// GetDefaultInterfaceCountOk returns a tuple with the DefaultInterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetDefaultInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.DefaultInterfaceCount) { + return nil, false + } + return o.DefaultInterfaceCount, true +} + +// HasDefaultInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasDefaultInterfaceCount() bool { + if o != nil && !IsNil(o.DefaultInterfaceCount) { + return true + } + + return false +} + +// SetDefaultInterfaceCount gets a reference to the given int32 and assigns it to the DefaultInterfaceCount field. +func (o *VirtualDeviceType) SetDefaultInterfaceCount(v int32) { + o.DefaultInterfaceCount = &v +} + +// GetClusterMaxInterfaceCount returns the ClusterMaxInterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetClusterMaxInterfaceCount() int32 { + if o == nil || IsNil(o.ClusterMaxInterfaceCount) { + var ret int32 + return ret + } + return *o.ClusterMaxInterfaceCount +} + +// GetClusterMaxInterfaceCountOk returns a tuple with the ClusterMaxInterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetClusterMaxInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.ClusterMaxInterfaceCount) { + return nil, false + } + return o.ClusterMaxInterfaceCount, true +} + +// HasClusterMaxInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasClusterMaxInterfaceCount() bool { + if o != nil && !IsNil(o.ClusterMaxInterfaceCount) { + return true + } + + return false +} + +// SetClusterMaxInterfaceCount gets a reference to the given int32 and assigns it to the ClusterMaxInterfaceCount field. +func (o *VirtualDeviceType) SetClusterMaxInterfaceCount(v int32) { + o.ClusterMaxInterfaceCount = &v +} + +// GetClusterDefaultInterfaceCount returns the ClusterDefaultInterfaceCount field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetClusterDefaultInterfaceCount() int32 { + if o == nil || IsNil(o.ClusterDefaultInterfaceCount) { + var ret int32 + return ret + } + return *o.ClusterDefaultInterfaceCount +} + +// GetClusterDefaultInterfaceCountOk returns a tuple with the ClusterDefaultInterfaceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetClusterDefaultInterfaceCountOk() (*int32, bool) { + if o == nil || IsNil(o.ClusterDefaultInterfaceCount) { + return nil, false + } + return o.ClusterDefaultInterfaceCount, true +} + +// HasClusterDefaultInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasClusterDefaultInterfaceCount() bool { + if o != nil && !IsNil(o.ClusterDefaultInterfaceCount) { + return true + } + + return false +} + +// SetClusterDefaultInterfaceCount gets a reference to the given int32 and assigns it to the ClusterDefaultInterfaceCount field. +func (o *VirtualDeviceType) SetClusterDefaultInterfaceCount(v int32) { + o.ClusterDefaultInterfaceCount = &v +} + +// GetAvailableMetros returns the AvailableMetros field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetAvailableMetros() []Metro { + if o == nil || IsNil(o.AvailableMetros) { + var ret []Metro + return ret + } + return o.AvailableMetros +} + +// GetAvailableMetrosOk returns a tuple with the AvailableMetros field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetAvailableMetrosOk() ([]Metro, bool) { + if o == nil || IsNil(o.AvailableMetros) { + return nil, false + } + return o.AvailableMetros, true +} + +// HasAvailableMetros returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasAvailableMetros() bool { + if o != nil && !IsNil(o.AvailableMetros) { + return true + } + + return false +} + +// SetAvailableMetros gets a reference to the given []Metro and assigns it to the AvailableMetros field. +func (o *VirtualDeviceType) SetAvailableMetros(v []Metro) { + o.AvailableMetros = v +} + +// GetSoftwarePackages returns the SoftwarePackages field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetSoftwarePackages() []SoftwarePackage { + if o == nil || IsNil(o.SoftwarePackages) { + var ret []SoftwarePackage + return ret + } + return o.SoftwarePackages +} + +// GetSoftwarePackagesOk returns a tuple with the SoftwarePackages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetSoftwarePackagesOk() ([]SoftwarePackage, bool) { + if o == nil || IsNil(o.SoftwarePackages) { + return nil, false + } + return o.SoftwarePackages, true +} + +// HasSoftwarePackages returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasSoftwarePackages() bool { + if o != nil && !IsNil(o.SoftwarePackages) { + return true + } + + return false +} + +// SetSoftwarePackages gets a reference to the given []SoftwarePackage and assigns it to the SoftwarePackages field. +func (o *VirtualDeviceType) SetSoftwarePackages(v []SoftwarePackage) { + o.SoftwarePackages = v +} + +// GetDeviceManagementTypes returns the DeviceManagementTypes field value if set, zero value otherwise. +func (o *VirtualDeviceType) GetDeviceManagementTypes() VirtualDeviceTypeDeviceManagementTypes { + if o == nil || IsNil(o.DeviceManagementTypes) { + var ret VirtualDeviceTypeDeviceManagementTypes + return ret + } + return *o.DeviceManagementTypes +} + +// GetDeviceManagementTypesOk returns a tuple with the DeviceManagementTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceType) GetDeviceManagementTypesOk() (*VirtualDeviceTypeDeviceManagementTypes, bool) { + if o == nil || IsNil(o.DeviceManagementTypes) { + return nil, false + } + return o.DeviceManagementTypes, true +} + +// HasDeviceManagementTypes returns a boolean if a field has been set. +func (o *VirtualDeviceType) HasDeviceManagementTypes() bool { + if o != nil && !IsNil(o.DeviceManagementTypes) { + return true + } + + return false +} + +// SetDeviceManagementTypes gets a reference to the given VirtualDeviceTypeDeviceManagementTypes and assigns it to the DeviceManagementTypes field. +func (o *VirtualDeviceType) SetDeviceManagementTypes(v VirtualDeviceTypeDeviceManagementTypes) { + o.DeviceManagementTypes = &v +} + +func (o VirtualDeviceType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceTypeCode) { + toSerialize["deviceTypeCode"] = o.DeviceTypeCode + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Vendor) { + toSerialize["vendor"] = o.Vendor + } + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.MaxInterfaceCount) { + toSerialize["maxInterfaceCount"] = o.MaxInterfaceCount + } + if !IsNil(o.DefaultInterfaceCount) { + toSerialize["defaultInterfaceCount"] = o.DefaultInterfaceCount + } + if !IsNil(o.ClusterMaxInterfaceCount) { + toSerialize["clusterMaxInterfaceCount"] = o.ClusterMaxInterfaceCount + } + if !IsNil(o.ClusterDefaultInterfaceCount) { + toSerialize["clusterDefaultInterfaceCount"] = o.ClusterDefaultInterfaceCount + } + if !IsNil(o.AvailableMetros) { + toSerialize["availableMetros"] = o.AvailableMetros + } + if !IsNil(o.SoftwarePackages) { + toSerialize["softwarePackages"] = o.SoftwarePackages + } + if !IsNil(o.DeviceManagementTypes) { + toSerialize["deviceManagementTypes"] = o.DeviceManagementTypes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceType) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceType := _VirtualDeviceType{} + + err = json.Unmarshal(data, &varVirtualDeviceType) + + if err != nil { + return err + } + + *o = VirtualDeviceType(varVirtualDeviceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deviceTypeCode") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "vendor") + delete(additionalProperties, "category") + delete(additionalProperties, "maxInterfaceCount") + delete(additionalProperties, "defaultInterfaceCount") + delete(additionalProperties, "clusterMaxInterfaceCount") + delete(additionalProperties, "clusterDefaultInterfaceCount") + delete(additionalProperties, "availableMetros") + delete(additionalProperties, "softwarePackages") + delete(additionalProperties, "deviceManagementTypes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceType struct { + value *VirtualDeviceType + isSet bool +} + +func (v NullableVirtualDeviceType) Get() *VirtualDeviceType { + return v.value +} + +func (v *NullableVirtualDeviceType) Set(val *VirtualDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceType(val *VirtualDeviceType) *NullableVirtualDeviceType { + return &NullableVirtualDeviceType{value: val, isSet: true} +} + +func (v NullableVirtualDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_virtual_device_type_device_management_types.go b/services/networkedgev1/model_virtual_device_type_device_management_types.go new file mode 100644 index 00000000..88e69bb1 --- /dev/null +++ b/services/networkedgev1/model_virtual_device_type_device_management_types.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceTypeDeviceManagementTypes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceTypeDeviceManagementTypes{} + +// VirtualDeviceTypeDeviceManagementTypes struct for VirtualDeviceTypeDeviceManagementTypes +type VirtualDeviceTypeDeviceManagementTypes struct { + EQUINIX_CONFIGURED *EquinixConfiguredConfig `json:"EQUINIX-CONFIGURED,omitempty"` + SELF_CONFIGURED *SelfConfiguredConfig `json:"SELF-CONFIGURED,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceTypeDeviceManagementTypes VirtualDeviceTypeDeviceManagementTypes + +// NewVirtualDeviceTypeDeviceManagementTypes instantiates a new VirtualDeviceTypeDeviceManagementTypes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceTypeDeviceManagementTypes() *VirtualDeviceTypeDeviceManagementTypes { + this := VirtualDeviceTypeDeviceManagementTypes{} + return &this +} + +// NewVirtualDeviceTypeDeviceManagementTypesWithDefaults instantiates a new VirtualDeviceTypeDeviceManagementTypes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceTypeDeviceManagementTypesWithDefaults() *VirtualDeviceTypeDeviceManagementTypes { + this := VirtualDeviceTypeDeviceManagementTypes{} + return &this +} + +// GetEQUINIX_CONFIGURED returns the EQUINIX_CONFIGURED field value if set, zero value otherwise. +func (o *VirtualDeviceTypeDeviceManagementTypes) GetEQUINIX_CONFIGURED() EquinixConfiguredConfig { + if o == nil || IsNil(o.EQUINIX_CONFIGURED) { + var ret EquinixConfiguredConfig + return ret + } + return *o.EQUINIX_CONFIGURED +} + +// GetEQUINIX_CONFIGUREDOk returns a tuple with the EQUINIX_CONFIGURED field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceTypeDeviceManagementTypes) GetEQUINIX_CONFIGUREDOk() (*EquinixConfiguredConfig, bool) { + if o == nil || IsNil(o.EQUINIX_CONFIGURED) { + return nil, false + } + return o.EQUINIX_CONFIGURED, true +} + +// HasEQUINIX_CONFIGURED returns a boolean if a field has been set. +func (o *VirtualDeviceTypeDeviceManagementTypes) HasEQUINIX_CONFIGURED() bool { + if o != nil && !IsNil(o.EQUINIX_CONFIGURED) { + return true + } + + return false +} + +// SetEQUINIX_CONFIGURED gets a reference to the given EquinixConfiguredConfig and assigns it to the EQUINIX_CONFIGURED field. +func (o *VirtualDeviceTypeDeviceManagementTypes) SetEQUINIX_CONFIGURED(v EquinixConfiguredConfig) { + o.EQUINIX_CONFIGURED = &v +} + +// GetSELF_CONFIGURED returns the SELF_CONFIGURED field value if set, zero value otherwise. +func (o *VirtualDeviceTypeDeviceManagementTypes) GetSELF_CONFIGURED() SelfConfiguredConfig { + if o == nil || IsNil(o.SELF_CONFIGURED) { + var ret SelfConfiguredConfig + return ret + } + return *o.SELF_CONFIGURED +} + +// GetSELF_CONFIGUREDOk returns a tuple with the SELF_CONFIGURED field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceTypeDeviceManagementTypes) GetSELF_CONFIGUREDOk() (*SelfConfiguredConfig, bool) { + if o == nil || IsNil(o.SELF_CONFIGURED) { + return nil, false + } + return o.SELF_CONFIGURED, true +} + +// HasSELF_CONFIGURED returns a boolean if a field has been set. +func (o *VirtualDeviceTypeDeviceManagementTypes) HasSELF_CONFIGURED() bool { + if o != nil && !IsNil(o.SELF_CONFIGURED) { + return true + } + + return false +} + +// SetSELF_CONFIGURED gets a reference to the given SelfConfiguredConfig and assigns it to the SELF_CONFIGURED field. +func (o *VirtualDeviceTypeDeviceManagementTypes) SetSELF_CONFIGURED(v SelfConfiguredConfig) { + o.SELF_CONFIGURED = &v +} + +func (o VirtualDeviceTypeDeviceManagementTypes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceTypeDeviceManagementTypes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EQUINIX_CONFIGURED) { + toSerialize["EQUINIX-CONFIGURED"] = o.EQUINIX_CONFIGURED + } + if !IsNil(o.SELF_CONFIGURED) { + toSerialize["SELF-CONFIGURED"] = o.SELF_CONFIGURED + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceTypeDeviceManagementTypes) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceTypeDeviceManagementTypes := _VirtualDeviceTypeDeviceManagementTypes{} + + err = json.Unmarshal(data, &varVirtualDeviceTypeDeviceManagementTypes) + + if err != nil { + return err + } + + *o = VirtualDeviceTypeDeviceManagementTypes(varVirtualDeviceTypeDeviceManagementTypes) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "EQUINIX-CONFIGURED") + delete(additionalProperties, "SELF-CONFIGURED") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceTypeDeviceManagementTypes struct { + value *VirtualDeviceTypeDeviceManagementTypes + isSet bool +} + +func (v NullableVirtualDeviceTypeDeviceManagementTypes) Get() *VirtualDeviceTypeDeviceManagementTypes { + return v.value +} + +func (v *NullableVirtualDeviceTypeDeviceManagementTypes) Set(val *VirtualDeviceTypeDeviceManagementTypes) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceTypeDeviceManagementTypes) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceTypeDeviceManagementTypes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceTypeDeviceManagementTypes(val *VirtualDeviceTypeDeviceManagementTypes) *NullableVirtualDeviceTypeDeviceManagementTypes { + return &NullableVirtualDeviceTypeDeviceManagementTypes{value: val, isSet: true} +} + +func (v NullableVirtualDeviceTypeDeviceManagementTypes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceTypeDeviceManagementTypes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vpn.go b/services/networkedgev1/model_vpn.go new file mode 100644 index 00000000..e8876bf5 --- /dev/null +++ b/services/networkedgev1/model_vpn.go @@ -0,0 +1,487 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the Vpn type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Vpn{} + +// Vpn struct for Vpn +type Vpn struct { + SiteName string `json:"siteName"` + // The unique Id of the primary device. + VirtualDeviceUuid string `json:"virtualDeviceUuid"` + ConfigName *string `json:"configName,omitempty"` + PeerIp string `json:"peerIp"` + PeerSharedKey string `json:"peerSharedKey"` + // Remote Customer ASN - Customer side + RemoteAsn int64 `json:"remoteAsn"` + // Remote Customer IP Address - Customer side + RemoteIpAddress string `json:"remoteIpAddress"` + // BGP Password + Password string `json:"password"` + // Local ASN - Equinix side + LocalAsn *int64 `json:"localAsn,omitempty"` + // Local Tunnel IP Address in CIDR format + TunnelIp string `json:"tunnelIp"` + Secondary *VpnRequest `json:"secondary,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Vpn Vpn + +// NewVpn instantiates a new Vpn object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVpn(siteName string, virtualDeviceUuid string, peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string) *Vpn { + this := Vpn{} + this.SiteName = siteName + this.VirtualDeviceUuid = virtualDeviceUuid + this.PeerIp = peerIp + this.PeerSharedKey = peerSharedKey + this.RemoteAsn = remoteAsn + this.RemoteIpAddress = remoteIpAddress + this.Password = password + this.TunnelIp = tunnelIp + return &this +} + +// NewVpnWithDefaults instantiates a new Vpn object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVpnWithDefaults() *Vpn { + this := Vpn{} + return &this +} + +// GetSiteName returns the SiteName field value +func (o *Vpn) GetSiteName() string { + if o == nil { + var ret string + return ret + } + + return o.SiteName +} + +// GetSiteNameOk returns a tuple with the SiteName field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetSiteNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteName, true +} + +// SetSiteName sets field value +func (o *Vpn) SetSiteName(v string) { + o.SiteName = v +} + +// GetVirtualDeviceUuid returns the VirtualDeviceUuid field value +func (o *Vpn) GetVirtualDeviceUuid() string { + if o == nil { + var ret string + return ret + } + + return o.VirtualDeviceUuid +} + +// GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetVirtualDeviceUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VirtualDeviceUuid, true +} + +// SetVirtualDeviceUuid sets field value +func (o *Vpn) SetVirtualDeviceUuid(v string) { + o.VirtualDeviceUuid = v +} + +// GetConfigName returns the ConfigName field value if set, zero value otherwise. +func (o *Vpn) GetConfigName() string { + if o == nil || IsNil(o.ConfigName) { + var ret string + return ret + } + return *o.ConfigName +} + +// GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Vpn) GetConfigNameOk() (*string, bool) { + if o == nil || IsNil(o.ConfigName) { + return nil, false + } + return o.ConfigName, true +} + +// HasConfigName returns a boolean if a field has been set. +func (o *Vpn) HasConfigName() bool { + if o != nil && !IsNil(o.ConfigName) { + return true + } + + return false +} + +// SetConfigName gets a reference to the given string and assigns it to the ConfigName field. +func (o *Vpn) SetConfigName(v string) { + o.ConfigName = &v +} + +// GetPeerIp returns the PeerIp field value +func (o *Vpn) GetPeerIp() string { + if o == nil { + var ret string + return ret + } + + return o.PeerIp +} + +// GetPeerIpOk returns a tuple with the PeerIp field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetPeerIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerIp, true +} + +// SetPeerIp sets field value +func (o *Vpn) SetPeerIp(v string) { + o.PeerIp = v +} + +// GetPeerSharedKey returns the PeerSharedKey field value +func (o *Vpn) GetPeerSharedKey() string { + if o == nil { + var ret string + return ret + } + + return o.PeerSharedKey +} + +// GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetPeerSharedKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerSharedKey, true +} + +// SetPeerSharedKey sets field value +func (o *Vpn) SetPeerSharedKey(v string) { + o.PeerSharedKey = v +} + +// GetRemoteAsn returns the RemoteAsn field value +func (o *Vpn) GetRemoteAsn() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetRemoteAsnOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RemoteAsn, true +} + +// SetRemoteAsn sets field value +func (o *Vpn) SetRemoteAsn(v int64) { + o.RemoteAsn = v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value +func (o *Vpn) GetRemoteIpAddress() string { + if o == nil { + var ret string + return ret + } + + return o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetRemoteIpAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RemoteIpAddress, true +} + +// SetRemoteIpAddress sets field value +func (o *Vpn) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = v +} + +// GetPassword returns the Password field value +func (o *Vpn) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *Vpn) SetPassword(v string) { + o.Password = v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *Vpn) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Vpn) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *Vpn) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *Vpn) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetTunnelIp returns the TunnelIp field value +func (o *Vpn) GetTunnelIp() string { + if o == nil { + var ret string + return ret + } + + return o.TunnelIp +} + +// GetTunnelIpOk returns a tuple with the TunnelIp field value +// and a boolean to check if the value has been set. +func (o *Vpn) GetTunnelIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TunnelIp, true +} + +// SetTunnelIp sets field value +func (o *Vpn) SetTunnelIp(v string) { + o.TunnelIp = v +} + +// GetSecondary returns the Secondary field value if set, zero value otherwise. +func (o *Vpn) GetSecondary() VpnRequest { + if o == nil || IsNil(o.Secondary) { + var ret VpnRequest + return ret + } + return *o.Secondary +} + +// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Vpn) GetSecondaryOk() (*VpnRequest, bool) { + if o == nil || IsNil(o.Secondary) { + return nil, false + } + return o.Secondary, true +} + +// HasSecondary returns a boolean if a field has been set. +func (o *Vpn) HasSecondary() bool { + if o != nil && !IsNil(o.Secondary) { + return true + } + + return false +} + +// SetSecondary gets a reference to the given VpnRequest and assigns it to the Secondary field. +func (o *Vpn) SetSecondary(v VpnRequest) { + o.Secondary = &v +} + +func (o Vpn) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Vpn) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["siteName"] = o.SiteName + toSerialize["virtualDeviceUuid"] = o.VirtualDeviceUuid + if !IsNil(o.ConfigName) { + toSerialize["configName"] = o.ConfigName + } + toSerialize["peerIp"] = o.PeerIp + toSerialize["peerSharedKey"] = o.PeerSharedKey + toSerialize["remoteAsn"] = o.RemoteAsn + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + toSerialize["password"] = o.Password + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + toSerialize["tunnelIp"] = o.TunnelIp + if !IsNil(o.Secondary) { + toSerialize["secondary"] = o.Secondary + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Vpn) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "siteName", + "virtualDeviceUuid", + "peerIp", + "peerSharedKey", + "remoteAsn", + "remoteIpAddress", + "password", + "tunnelIp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varVpn := _Vpn{} + + err = json.Unmarshal(data, &varVpn) + + if err != nil { + return err + } + + *o = Vpn(varVpn) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "siteName") + delete(additionalProperties, "virtualDeviceUuid") + delete(additionalProperties, "configName") + delete(additionalProperties, "peerIp") + delete(additionalProperties, "peerSharedKey") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + delete(additionalProperties, "password") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "tunnelIp") + delete(additionalProperties, "secondary") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVpn struct { + value *Vpn + isSet bool +} + +func (v NullableVpn) Get() *Vpn { + return v.value +} + +func (v *NullableVpn) Set(val *Vpn) { + v.value = val + v.isSet = true +} + +func (v NullableVpn) IsSet() bool { + return v.isSet +} + +func (v *NullableVpn) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpn(val *Vpn) *NullableVpn { + return &NullableVpn{value: val, isSet: true} +} + +func (v NullableVpn) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpn) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vpn_request.go b/services/networkedgev1/model_vpn_request.go new file mode 100644 index 00000000..eb577036 --- /dev/null +++ b/services/networkedgev1/model_vpn_request.go @@ -0,0 +1,391 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the VpnRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VpnRequest{} + +// VpnRequest struct for VpnRequest +type VpnRequest struct { + ConfigName *string `json:"configName,omitempty"` + PeerIp string `json:"peerIp"` + PeerSharedKey string `json:"peerSharedKey"` + // Remote Customer ASN - Customer side + RemoteAsn int64 `json:"remoteAsn"` + // Remote Customer IP Address - Customer side + RemoteIpAddress string `json:"remoteIpAddress"` + // BGP Password + Password string `json:"password"` + // Local ASN - Equinix side + LocalAsn *int64 `json:"localAsn,omitempty"` + // Local Tunnel IP Address in CIDR format + TunnelIp string `json:"tunnelIp"` + AdditionalProperties map[string]interface{} +} + +type _VpnRequest VpnRequest + +// NewVpnRequest instantiates a new VpnRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVpnRequest(peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string) *VpnRequest { + this := VpnRequest{} + this.PeerIp = peerIp + this.PeerSharedKey = peerSharedKey + this.RemoteAsn = remoteAsn + this.RemoteIpAddress = remoteIpAddress + this.Password = password + this.TunnelIp = tunnelIp + return &this +} + +// NewVpnRequestWithDefaults instantiates a new VpnRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVpnRequestWithDefaults() *VpnRequest { + this := VpnRequest{} + return &this +} + +// GetConfigName returns the ConfigName field value if set, zero value otherwise. +func (o *VpnRequest) GetConfigName() string { + if o == nil || IsNil(o.ConfigName) { + var ret string + return ret + } + return *o.ConfigName +} + +// GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetConfigNameOk() (*string, bool) { + if o == nil || IsNil(o.ConfigName) { + return nil, false + } + return o.ConfigName, true +} + +// HasConfigName returns a boolean if a field has been set. +func (o *VpnRequest) HasConfigName() bool { + if o != nil && !IsNil(o.ConfigName) { + return true + } + + return false +} + +// SetConfigName gets a reference to the given string and assigns it to the ConfigName field. +func (o *VpnRequest) SetConfigName(v string) { + o.ConfigName = &v +} + +// GetPeerIp returns the PeerIp field value +func (o *VpnRequest) GetPeerIp() string { + if o == nil { + var ret string + return ret + } + + return o.PeerIp +} + +// GetPeerIpOk returns a tuple with the PeerIp field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetPeerIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerIp, true +} + +// SetPeerIp sets field value +func (o *VpnRequest) SetPeerIp(v string) { + o.PeerIp = v +} + +// GetPeerSharedKey returns the PeerSharedKey field value +func (o *VpnRequest) GetPeerSharedKey() string { + if o == nil { + var ret string + return ret + } + + return o.PeerSharedKey +} + +// GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetPeerSharedKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerSharedKey, true +} + +// SetPeerSharedKey sets field value +func (o *VpnRequest) SetPeerSharedKey(v string) { + o.PeerSharedKey = v +} + +// GetRemoteAsn returns the RemoteAsn field value +func (o *VpnRequest) GetRemoteAsn() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetRemoteAsnOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RemoteAsn, true +} + +// SetRemoteAsn sets field value +func (o *VpnRequest) SetRemoteAsn(v int64) { + o.RemoteAsn = v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value +func (o *VpnRequest) GetRemoteIpAddress() string { + if o == nil { + var ret string + return ret + } + + return o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetRemoteIpAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RemoteIpAddress, true +} + +// SetRemoteIpAddress sets field value +func (o *VpnRequest) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = v +} + +// GetPassword returns the Password field value +func (o *VpnRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *VpnRequest) SetPassword(v string) { + o.Password = v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *VpnRequest) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *VpnRequest) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *VpnRequest) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetTunnelIp returns the TunnelIp field value +func (o *VpnRequest) GetTunnelIp() string { + if o == nil { + var ret string + return ret + } + + return o.TunnelIp +} + +// GetTunnelIpOk returns a tuple with the TunnelIp field value +// and a boolean to check if the value has been set. +func (o *VpnRequest) GetTunnelIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TunnelIp, true +} + +// SetTunnelIp sets field value +func (o *VpnRequest) SetTunnelIp(v string) { + o.TunnelIp = v +} + +func (o VpnRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VpnRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigName) { + toSerialize["configName"] = o.ConfigName + } + toSerialize["peerIp"] = o.PeerIp + toSerialize["peerSharedKey"] = o.PeerSharedKey + toSerialize["remoteAsn"] = o.RemoteAsn + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + toSerialize["password"] = o.Password + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + toSerialize["tunnelIp"] = o.TunnelIp + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VpnRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "peerIp", + "peerSharedKey", + "remoteAsn", + "remoteIpAddress", + "password", + "tunnelIp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varVpnRequest := _VpnRequest{} + + err = json.Unmarshal(data, &varVpnRequest) + + if err != nil { + return err + } + + *o = VpnRequest(varVpnRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "configName") + delete(additionalProperties, "peerIp") + delete(additionalProperties, "peerSharedKey") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + delete(additionalProperties, "password") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "tunnelIp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVpnRequest struct { + value *VpnRequest + isSet bool +} + +func (v NullableVpnRequest) Get() *VpnRequest { + return v.value +} + +func (v *NullableVpnRequest) Set(val *VpnRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVpnRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnRequest(val *VpnRequest) *NullableVpnRequest { + return &NullableVpnRequest{value: val, isSet: true} +} + +func (v NullableVpnRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vpn_response.go b/services/networkedgev1/model_vpn_response.go new file mode 100644 index 00000000..15b16b29 --- /dev/null +++ b/services/networkedgev1/model_vpn_response.go @@ -0,0 +1,1596 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "fmt" +) + +// checks if the VpnResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VpnResponse{} + +// VpnResponse struct for VpnResponse +type VpnResponse struct { + SiteName string `json:"siteName"` + Uuid *string `json:"uuid,omitempty"` + VirtualDeviceUuid string `json:"virtualDeviceUuid"` + ConfigName *string `json:"configName,omitempty"` + Status *string `json:"status,omitempty"` + PeerIp string `json:"peerIp"` + PeerSharedKey string `json:"peerSharedKey"` + // Remote Customer ASN - Customer side + RemoteAsn int64 `json:"remoteAsn"` + // Remote Customer IP Address - Customer side + RemoteIpAddress string `json:"remoteIpAddress"` + // BGP Password + Password string `json:"password"` + // Local ASN - Equinix side + LocalAsn *int64 `json:"localAsn,omitempty"` + // Local Tunnel IP Address in CIDR format + TunnelIp string `json:"tunnelIp"` + BgpState *string `json:"bgpState,omitempty"` + InboundBytes *string `json:"inboundBytes,omitempty"` + InboundPackets *string `json:"inboundPackets,omitempty"` + OutboundBytes *string `json:"outboundBytes,omitempty"` + OutboundPackets *string `json:"outboundPackets,omitempty"` + TunnelStatus *string `json:"tunnelStatus,omitempty"` + CustOrgId *int64 `json:"custOrgId,omitempty"` + CreatedDate *string `json:"createdDate,omitempty"` + CreatedByFirstName *string `json:"createdByFirstName,omitempty"` + CreatedByLastName *string `json:"createdByLastName,omitempty"` + CreatedByEmail *string `json:"createdByEmail,omitempty"` + CreatedByUserKey *int64 `json:"createdByUserKey,omitempty"` + CreatedByAccountUcmId *int64 `json:"createdByAccountUcmId,omitempty"` + CreatedByUserName *string `json:"createdByUserName,omitempty"` + CreatedByCustOrgId *int64 `json:"createdByCustOrgId,omitempty"` + CreatedByCustOrgName *string `json:"createdByCustOrgName,omitempty"` + CreatedByUserStatus *string `json:"createdByUserStatus,omitempty"` + CreatedByCompanyName *string `json:"createdByCompanyName,omitempty"` + LastUpdatedDate *string `json:"lastUpdatedDate,omitempty"` + UpdatedByFirstName *string `json:"updatedByFirstName,omitempty"` + UpdatedByLastName *string `json:"updatedByLastName,omitempty"` + UpdatedByEmail *string `json:"updatedByEmail,omitempty"` + UpdatedByUserKey *int64 `json:"updatedByUserKey,omitempty"` + UpdatedByAccountUcmId *int64 `json:"updatedByAccountUcmId,omitempty"` + UpdatedByUserName *string `json:"updatedByUserName,omitempty"` + UpdatedByCustOrgId *int64 `json:"updatedByCustOrgId,omitempty"` + UpdatedByCustOrgName *string `json:"updatedByCustOrgName,omitempty"` + UpdatedByUserStatus *string `json:"updatedByUserStatus,omitempty"` + UpdatedByCompanyName *string `json:"updatedByCompanyName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VpnResponse VpnResponse + +// NewVpnResponse instantiates a new VpnResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVpnResponse(siteName string, virtualDeviceUuid string, peerIp string, peerSharedKey string, remoteAsn int64, remoteIpAddress string, password string, tunnelIp string) *VpnResponse { + this := VpnResponse{} + this.SiteName = siteName + this.VirtualDeviceUuid = virtualDeviceUuid + this.PeerIp = peerIp + this.PeerSharedKey = peerSharedKey + this.RemoteAsn = remoteAsn + this.RemoteIpAddress = remoteIpAddress + this.Password = password + this.TunnelIp = tunnelIp + return &this +} + +// NewVpnResponseWithDefaults instantiates a new VpnResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVpnResponseWithDefaults() *VpnResponse { + this := VpnResponse{} + return &this +} + +// GetSiteName returns the SiteName field value +func (o *VpnResponse) GetSiteName() string { + if o == nil { + var ret string + return ret + } + + return o.SiteName +} + +// GetSiteNameOk returns a tuple with the SiteName field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetSiteNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteName, true +} + +// SetSiteName sets field value +func (o *VpnResponse) SetSiteName(v string) { + o.SiteName = v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VpnResponse) GetUuid() string { + if o == nil || IsNil(o.Uuid) { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUuidOk() (*string, bool) { + if o == nil || IsNil(o.Uuid) { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *VpnResponse) HasUuid() bool { + if o != nil && !IsNil(o.Uuid) { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *VpnResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetVirtualDeviceUuid returns the VirtualDeviceUuid field value +func (o *VpnResponse) GetVirtualDeviceUuid() string { + if o == nil { + var ret string + return ret + } + + return o.VirtualDeviceUuid +} + +// GetVirtualDeviceUuidOk returns a tuple with the VirtualDeviceUuid field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetVirtualDeviceUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VirtualDeviceUuid, true +} + +// SetVirtualDeviceUuid sets field value +func (o *VpnResponse) SetVirtualDeviceUuid(v string) { + o.VirtualDeviceUuid = v +} + +// GetConfigName returns the ConfigName field value if set, zero value otherwise. +func (o *VpnResponse) GetConfigName() string { + if o == nil || IsNil(o.ConfigName) { + var ret string + return ret + } + return *o.ConfigName +} + +// GetConfigNameOk returns a tuple with the ConfigName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetConfigNameOk() (*string, bool) { + if o == nil || IsNil(o.ConfigName) { + return nil, false + } + return o.ConfigName, true +} + +// HasConfigName returns a boolean if a field has been set. +func (o *VpnResponse) HasConfigName() bool { + if o != nil && !IsNil(o.ConfigName) { + return true + } + + return false +} + +// SetConfigName gets a reference to the given string and assigns it to the ConfigName field. +func (o *VpnResponse) SetConfigName(v string) { + o.ConfigName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VpnResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VpnResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *VpnResponse) SetStatus(v string) { + o.Status = &v +} + +// GetPeerIp returns the PeerIp field value +func (o *VpnResponse) GetPeerIp() string { + if o == nil { + var ret string + return ret + } + + return o.PeerIp +} + +// GetPeerIpOk returns a tuple with the PeerIp field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetPeerIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerIp, true +} + +// SetPeerIp sets field value +func (o *VpnResponse) SetPeerIp(v string) { + o.PeerIp = v +} + +// GetPeerSharedKey returns the PeerSharedKey field value +func (o *VpnResponse) GetPeerSharedKey() string { + if o == nil { + var ret string + return ret + } + + return o.PeerSharedKey +} + +// GetPeerSharedKeyOk returns a tuple with the PeerSharedKey field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetPeerSharedKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PeerSharedKey, true +} + +// SetPeerSharedKey sets field value +func (o *VpnResponse) SetPeerSharedKey(v string) { + o.PeerSharedKey = v +} + +// GetRemoteAsn returns the RemoteAsn field value +func (o *VpnResponse) GetRemoteAsn() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RemoteAsn +} + +// GetRemoteAsnOk returns a tuple with the RemoteAsn field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetRemoteAsnOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RemoteAsn, true +} + +// SetRemoteAsn sets field value +func (o *VpnResponse) SetRemoteAsn(v int64) { + o.RemoteAsn = v +} + +// GetRemoteIpAddress returns the RemoteIpAddress field value +func (o *VpnResponse) GetRemoteIpAddress() string { + if o == nil { + var ret string + return ret + } + + return o.RemoteIpAddress +} + +// GetRemoteIpAddressOk returns a tuple with the RemoteIpAddress field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetRemoteIpAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RemoteIpAddress, true +} + +// SetRemoteIpAddress sets field value +func (o *VpnResponse) SetRemoteIpAddress(v string) { + o.RemoteIpAddress = v +} + +// GetPassword returns the Password field value +func (o *VpnResponse) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *VpnResponse) SetPassword(v string) { + o.Password = v +} + +// GetLocalAsn returns the LocalAsn field value if set, zero value otherwise. +func (o *VpnResponse) GetLocalAsn() int64 { + if o == nil || IsNil(o.LocalAsn) { + var ret int64 + return ret + } + return *o.LocalAsn +} + +// GetLocalAsnOk returns a tuple with the LocalAsn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetLocalAsnOk() (*int64, bool) { + if o == nil || IsNil(o.LocalAsn) { + return nil, false + } + return o.LocalAsn, true +} + +// HasLocalAsn returns a boolean if a field has been set. +func (o *VpnResponse) HasLocalAsn() bool { + if o != nil && !IsNil(o.LocalAsn) { + return true + } + + return false +} + +// SetLocalAsn gets a reference to the given int64 and assigns it to the LocalAsn field. +func (o *VpnResponse) SetLocalAsn(v int64) { + o.LocalAsn = &v +} + +// GetTunnelIp returns the TunnelIp field value +func (o *VpnResponse) GetTunnelIp() string { + if o == nil { + var ret string + return ret + } + + return o.TunnelIp +} + +// GetTunnelIpOk returns a tuple with the TunnelIp field value +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetTunnelIpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TunnelIp, true +} + +// SetTunnelIp sets field value +func (o *VpnResponse) SetTunnelIp(v string) { + o.TunnelIp = v +} + +// GetBgpState returns the BgpState field value if set, zero value otherwise. +func (o *VpnResponse) GetBgpState() string { + if o == nil || IsNil(o.BgpState) { + var ret string + return ret + } + return *o.BgpState +} + +// GetBgpStateOk returns a tuple with the BgpState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetBgpStateOk() (*string, bool) { + if o == nil || IsNil(o.BgpState) { + return nil, false + } + return o.BgpState, true +} + +// HasBgpState returns a boolean if a field has been set. +func (o *VpnResponse) HasBgpState() bool { + if o != nil && !IsNil(o.BgpState) { + return true + } + + return false +} + +// SetBgpState gets a reference to the given string and assigns it to the BgpState field. +func (o *VpnResponse) SetBgpState(v string) { + o.BgpState = &v +} + +// GetInboundBytes returns the InboundBytes field value if set, zero value otherwise. +func (o *VpnResponse) GetInboundBytes() string { + if o == nil || IsNil(o.InboundBytes) { + var ret string + return ret + } + return *o.InboundBytes +} + +// GetInboundBytesOk returns a tuple with the InboundBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetInboundBytesOk() (*string, bool) { + if o == nil || IsNil(o.InboundBytes) { + return nil, false + } + return o.InboundBytes, true +} + +// HasInboundBytes returns a boolean if a field has been set. +func (o *VpnResponse) HasInboundBytes() bool { + if o != nil && !IsNil(o.InboundBytes) { + return true + } + + return false +} + +// SetInboundBytes gets a reference to the given string and assigns it to the InboundBytes field. +func (o *VpnResponse) SetInboundBytes(v string) { + o.InboundBytes = &v +} + +// GetInboundPackets returns the InboundPackets field value if set, zero value otherwise. +func (o *VpnResponse) GetInboundPackets() string { + if o == nil || IsNil(o.InboundPackets) { + var ret string + return ret + } + return *o.InboundPackets +} + +// GetInboundPacketsOk returns a tuple with the InboundPackets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetInboundPacketsOk() (*string, bool) { + if o == nil || IsNil(o.InboundPackets) { + return nil, false + } + return o.InboundPackets, true +} + +// HasInboundPackets returns a boolean if a field has been set. +func (o *VpnResponse) HasInboundPackets() bool { + if o != nil && !IsNil(o.InboundPackets) { + return true + } + + return false +} + +// SetInboundPackets gets a reference to the given string and assigns it to the InboundPackets field. +func (o *VpnResponse) SetInboundPackets(v string) { + o.InboundPackets = &v +} + +// GetOutboundBytes returns the OutboundBytes field value if set, zero value otherwise. +func (o *VpnResponse) GetOutboundBytes() string { + if o == nil || IsNil(o.OutboundBytes) { + var ret string + return ret + } + return *o.OutboundBytes +} + +// GetOutboundBytesOk returns a tuple with the OutboundBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetOutboundBytesOk() (*string, bool) { + if o == nil || IsNil(o.OutboundBytes) { + return nil, false + } + return o.OutboundBytes, true +} + +// HasOutboundBytes returns a boolean if a field has been set. +func (o *VpnResponse) HasOutboundBytes() bool { + if o != nil && !IsNil(o.OutboundBytes) { + return true + } + + return false +} + +// SetOutboundBytes gets a reference to the given string and assigns it to the OutboundBytes field. +func (o *VpnResponse) SetOutboundBytes(v string) { + o.OutboundBytes = &v +} + +// GetOutboundPackets returns the OutboundPackets field value if set, zero value otherwise. +func (o *VpnResponse) GetOutboundPackets() string { + if o == nil || IsNil(o.OutboundPackets) { + var ret string + return ret + } + return *o.OutboundPackets +} + +// GetOutboundPacketsOk returns a tuple with the OutboundPackets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetOutboundPacketsOk() (*string, bool) { + if o == nil || IsNil(o.OutboundPackets) { + return nil, false + } + return o.OutboundPackets, true +} + +// HasOutboundPackets returns a boolean if a field has been set. +func (o *VpnResponse) HasOutboundPackets() bool { + if o != nil && !IsNil(o.OutboundPackets) { + return true + } + + return false +} + +// SetOutboundPackets gets a reference to the given string and assigns it to the OutboundPackets field. +func (o *VpnResponse) SetOutboundPackets(v string) { + o.OutboundPackets = &v +} + +// GetTunnelStatus returns the TunnelStatus field value if set, zero value otherwise. +func (o *VpnResponse) GetTunnelStatus() string { + if o == nil || IsNil(o.TunnelStatus) { + var ret string + return ret + } + return *o.TunnelStatus +} + +// GetTunnelStatusOk returns a tuple with the TunnelStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetTunnelStatusOk() (*string, bool) { + if o == nil || IsNil(o.TunnelStatus) { + return nil, false + } + return o.TunnelStatus, true +} + +// HasTunnelStatus returns a boolean if a field has been set. +func (o *VpnResponse) HasTunnelStatus() bool { + if o != nil && !IsNil(o.TunnelStatus) { + return true + } + + return false +} + +// SetTunnelStatus gets a reference to the given string and assigns it to the TunnelStatus field. +func (o *VpnResponse) SetTunnelStatus(v string) { + o.TunnelStatus = &v +} + +// GetCustOrgId returns the CustOrgId field value if set, zero value otherwise. +func (o *VpnResponse) GetCustOrgId() int64 { + if o == nil || IsNil(o.CustOrgId) { + var ret int64 + return ret + } + return *o.CustOrgId +} + +// GetCustOrgIdOk returns a tuple with the CustOrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCustOrgIdOk() (*int64, bool) { + if o == nil || IsNil(o.CustOrgId) { + return nil, false + } + return o.CustOrgId, true +} + +// HasCustOrgId returns a boolean if a field has been set. +func (o *VpnResponse) HasCustOrgId() bool { + if o != nil && !IsNil(o.CustOrgId) { + return true + } + + return false +} + +// SetCustOrgId gets a reference to the given int64 and assigns it to the CustOrgId field. +func (o *VpnResponse) SetCustOrgId(v int64) { + o.CustOrgId = &v +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedDate() string { + if o == nil || IsNil(o.CreatedDate) { + var ret string + return ret + } + return *o.CreatedDate +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return o.CreatedDate, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given string and assigns it to the CreatedDate field. +func (o *VpnResponse) SetCreatedDate(v string) { + o.CreatedDate = &v +} + +// GetCreatedByFirstName returns the CreatedByFirstName field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByFirstName() string { + if o == nil || IsNil(o.CreatedByFirstName) { + var ret string + return ret + } + return *o.CreatedByFirstName +} + +// GetCreatedByFirstNameOk returns a tuple with the CreatedByFirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByFirstName) { + return nil, false + } + return o.CreatedByFirstName, true +} + +// HasCreatedByFirstName returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByFirstName() bool { + if o != nil && !IsNil(o.CreatedByFirstName) { + return true + } + + return false +} + +// SetCreatedByFirstName gets a reference to the given string and assigns it to the CreatedByFirstName field. +func (o *VpnResponse) SetCreatedByFirstName(v string) { + o.CreatedByFirstName = &v +} + +// GetCreatedByLastName returns the CreatedByLastName field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByLastName() string { + if o == nil || IsNil(o.CreatedByLastName) { + var ret string + return ret + } + return *o.CreatedByLastName +} + +// GetCreatedByLastNameOk returns a tuple with the CreatedByLastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByLastNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByLastName) { + return nil, false + } + return o.CreatedByLastName, true +} + +// HasCreatedByLastName returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByLastName() bool { + if o != nil && !IsNil(o.CreatedByLastName) { + return true + } + + return false +} + +// SetCreatedByLastName gets a reference to the given string and assigns it to the CreatedByLastName field. +func (o *VpnResponse) SetCreatedByLastName(v string) { + o.CreatedByLastName = &v +} + +// GetCreatedByEmail returns the CreatedByEmail field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByEmail() string { + if o == nil || IsNil(o.CreatedByEmail) { + var ret string + return ret + } + return *o.CreatedByEmail +} + +// GetCreatedByEmailOk returns a tuple with the CreatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByEmail) { + return nil, false + } + return o.CreatedByEmail, true +} + +// HasCreatedByEmail returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByEmail() bool { + if o != nil && !IsNil(o.CreatedByEmail) { + return true + } + + return false +} + +// SetCreatedByEmail gets a reference to the given string and assigns it to the CreatedByEmail field. +func (o *VpnResponse) SetCreatedByEmail(v string) { + o.CreatedByEmail = &v +} + +// GetCreatedByUserKey returns the CreatedByUserKey field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByUserKey() int64 { + if o == nil || IsNil(o.CreatedByUserKey) { + var ret int64 + return ret + } + return *o.CreatedByUserKey +} + +// GetCreatedByUserKeyOk returns a tuple with the CreatedByUserKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByUserKeyOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedByUserKey) { + return nil, false + } + return o.CreatedByUserKey, true +} + +// HasCreatedByUserKey returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByUserKey() bool { + if o != nil && !IsNil(o.CreatedByUserKey) { + return true + } + + return false +} + +// SetCreatedByUserKey gets a reference to the given int64 and assigns it to the CreatedByUserKey field. +func (o *VpnResponse) SetCreatedByUserKey(v int64) { + o.CreatedByUserKey = &v +} + +// GetCreatedByAccountUcmId returns the CreatedByAccountUcmId field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByAccountUcmId() int64 { + if o == nil || IsNil(o.CreatedByAccountUcmId) { + var ret int64 + return ret + } + return *o.CreatedByAccountUcmId +} + +// GetCreatedByAccountUcmIdOk returns a tuple with the CreatedByAccountUcmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByAccountUcmIdOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedByAccountUcmId) { + return nil, false + } + return o.CreatedByAccountUcmId, true +} + +// HasCreatedByAccountUcmId returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByAccountUcmId() bool { + if o != nil && !IsNil(o.CreatedByAccountUcmId) { + return true + } + + return false +} + +// SetCreatedByAccountUcmId gets a reference to the given int64 and assigns it to the CreatedByAccountUcmId field. +func (o *VpnResponse) SetCreatedByAccountUcmId(v int64) { + o.CreatedByAccountUcmId = &v +} + +// GetCreatedByUserName returns the CreatedByUserName field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByUserName() string { + if o == nil || IsNil(o.CreatedByUserName) { + var ret string + return ret + } + return *o.CreatedByUserName +} + +// GetCreatedByUserNameOk returns a tuple with the CreatedByUserName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByUserNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserName) { + return nil, false + } + return o.CreatedByUserName, true +} + +// HasCreatedByUserName returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByUserName() bool { + if o != nil && !IsNil(o.CreatedByUserName) { + return true + } + + return false +} + +// SetCreatedByUserName gets a reference to the given string and assigns it to the CreatedByUserName field. +func (o *VpnResponse) SetCreatedByUserName(v string) { + o.CreatedByUserName = &v +} + +// GetCreatedByCustOrgId returns the CreatedByCustOrgId field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByCustOrgId() int64 { + if o == nil || IsNil(o.CreatedByCustOrgId) { + var ret int64 + return ret + } + return *o.CreatedByCustOrgId +} + +// GetCreatedByCustOrgIdOk returns a tuple with the CreatedByCustOrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByCustOrgIdOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedByCustOrgId) { + return nil, false + } + return o.CreatedByCustOrgId, true +} + +// HasCreatedByCustOrgId returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByCustOrgId() bool { + if o != nil && !IsNil(o.CreatedByCustOrgId) { + return true + } + + return false +} + +// SetCreatedByCustOrgId gets a reference to the given int64 and assigns it to the CreatedByCustOrgId field. +func (o *VpnResponse) SetCreatedByCustOrgId(v int64) { + o.CreatedByCustOrgId = &v +} + +// GetCreatedByCustOrgName returns the CreatedByCustOrgName field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByCustOrgName() string { + if o == nil || IsNil(o.CreatedByCustOrgName) { + var ret string + return ret + } + return *o.CreatedByCustOrgName +} + +// GetCreatedByCustOrgNameOk returns a tuple with the CreatedByCustOrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByCustOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByCustOrgName) { + return nil, false + } + return o.CreatedByCustOrgName, true +} + +// HasCreatedByCustOrgName returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByCustOrgName() bool { + if o != nil && !IsNil(o.CreatedByCustOrgName) { + return true + } + + return false +} + +// SetCreatedByCustOrgName gets a reference to the given string and assigns it to the CreatedByCustOrgName field. +func (o *VpnResponse) SetCreatedByCustOrgName(v string) { + o.CreatedByCustOrgName = &v +} + +// GetCreatedByUserStatus returns the CreatedByUserStatus field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByUserStatus() string { + if o == nil || IsNil(o.CreatedByUserStatus) { + var ret string + return ret + } + return *o.CreatedByUserStatus +} + +// GetCreatedByUserStatusOk returns a tuple with the CreatedByUserStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByUserStatusOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserStatus) { + return nil, false + } + return o.CreatedByUserStatus, true +} + +// HasCreatedByUserStatus returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByUserStatus() bool { + if o != nil && !IsNil(o.CreatedByUserStatus) { + return true + } + + return false +} + +// SetCreatedByUserStatus gets a reference to the given string and assigns it to the CreatedByUserStatus field. +func (o *VpnResponse) SetCreatedByUserStatus(v string) { + o.CreatedByUserStatus = &v +} + +// GetCreatedByCompanyName returns the CreatedByCompanyName field value if set, zero value otherwise. +func (o *VpnResponse) GetCreatedByCompanyName() string { + if o == nil || IsNil(o.CreatedByCompanyName) { + var ret string + return ret + } + return *o.CreatedByCompanyName +} + +// GetCreatedByCompanyNameOk returns a tuple with the CreatedByCompanyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetCreatedByCompanyNameOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByCompanyName) { + return nil, false + } + return o.CreatedByCompanyName, true +} + +// HasCreatedByCompanyName returns a boolean if a field has been set. +func (o *VpnResponse) HasCreatedByCompanyName() bool { + if o != nil && !IsNil(o.CreatedByCompanyName) { + return true + } + + return false +} + +// SetCreatedByCompanyName gets a reference to the given string and assigns it to the CreatedByCompanyName field. +func (o *VpnResponse) SetCreatedByCompanyName(v string) { + o.CreatedByCompanyName = &v +} + +// GetLastUpdatedDate returns the LastUpdatedDate field value if set, zero value otherwise. +func (o *VpnResponse) GetLastUpdatedDate() string { + if o == nil || IsNil(o.LastUpdatedDate) { + var ret string + return ret + } + return *o.LastUpdatedDate +} + +// GetLastUpdatedDateOk returns a tuple with the LastUpdatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetLastUpdatedDateOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedDate) { + return nil, false + } + return o.LastUpdatedDate, true +} + +// HasLastUpdatedDate returns a boolean if a field has been set. +func (o *VpnResponse) HasLastUpdatedDate() bool { + if o != nil && !IsNil(o.LastUpdatedDate) { + return true + } + + return false +} + +// SetLastUpdatedDate gets a reference to the given string and assigns it to the LastUpdatedDate field. +func (o *VpnResponse) SetLastUpdatedDate(v string) { + o.LastUpdatedDate = &v +} + +// GetUpdatedByFirstName returns the UpdatedByFirstName field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByFirstName() string { + if o == nil || IsNil(o.UpdatedByFirstName) { + var ret string + return ret + } + return *o.UpdatedByFirstName +} + +// GetUpdatedByFirstNameOk returns a tuple with the UpdatedByFirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByFirstName) { + return nil, false + } + return o.UpdatedByFirstName, true +} + +// HasUpdatedByFirstName returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByFirstName() bool { + if o != nil && !IsNil(o.UpdatedByFirstName) { + return true + } + + return false +} + +// SetUpdatedByFirstName gets a reference to the given string and assigns it to the UpdatedByFirstName field. +func (o *VpnResponse) SetUpdatedByFirstName(v string) { + o.UpdatedByFirstName = &v +} + +// GetUpdatedByLastName returns the UpdatedByLastName field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByLastName() string { + if o == nil || IsNil(o.UpdatedByLastName) { + var ret string + return ret + } + return *o.UpdatedByLastName +} + +// GetUpdatedByLastNameOk returns a tuple with the UpdatedByLastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByLastNameOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByLastName) { + return nil, false + } + return o.UpdatedByLastName, true +} + +// HasUpdatedByLastName returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByLastName() bool { + if o != nil && !IsNil(o.UpdatedByLastName) { + return true + } + + return false +} + +// SetUpdatedByLastName gets a reference to the given string and assigns it to the UpdatedByLastName field. +func (o *VpnResponse) SetUpdatedByLastName(v string) { + o.UpdatedByLastName = &v +} + +// GetUpdatedByEmail returns the UpdatedByEmail field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByEmail() string { + if o == nil || IsNil(o.UpdatedByEmail) { + var ret string + return ret + } + return *o.UpdatedByEmail +} + +// GetUpdatedByEmailOk returns a tuple with the UpdatedByEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByEmailOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByEmail) { + return nil, false + } + return o.UpdatedByEmail, true +} + +// HasUpdatedByEmail returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByEmail() bool { + if o != nil && !IsNil(o.UpdatedByEmail) { + return true + } + + return false +} + +// SetUpdatedByEmail gets a reference to the given string and assigns it to the UpdatedByEmail field. +func (o *VpnResponse) SetUpdatedByEmail(v string) { + o.UpdatedByEmail = &v +} + +// GetUpdatedByUserKey returns the UpdatedByUserKey field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByUserKey() int64 { + if o == nil || IsNil(o.UpdatedByUserKey) { + var ret int64 + return ret + } + return *o.UpdatedByUserKey +} + +// GetUpdatedByUserKeyOk returns a tuple with the UpdatedByUserKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByUserKeyOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedByUserKey) { + return nil, false + } + return o.UpdatedByUserKey, true +} + +// HasUpdatedByUserKey returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByUserKey() bool { + if o != nil && !IsNil(o.UpdatedByUserKey) { + return true + } + + return false +} + +// SetUpdatedByUserKey gets a reference to the given int64 and assigns it to the UpdatedByUserKey field. +func (o *VpnResponse) SetUpdatedByUserKey(v int64) { + o.UpdatedByUserKey = &v +} + +// GetUpdatedByAccountUcmId returns the UpdatedByAccountUcmId field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByAccountUcmId() int64 { + if o == nil || IsNil(o.UpdatedByAccountUcmId) { + var ret int64 + return ret + } + return *o.UpdatedByAccountUcmId +} + +// GetUpdatedByAccountUcmIdOk returns a tuple with the UpdatedByAccountUcmId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByAccountUcmIdOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedByAccountUcmId) { + return nil, false + } + return o.UpdatedByAccountUcmId, true +} + +// HasUpdatedByAccountUcmId returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByAccountUcmId() bool { + if o != nil && !IsNil(o.UpdatedByAccountUcmId) { + return true + } + + return false +} + +// SetUpdatedByAccountUcmId gets a reference to the given int64 and assigns it to the UpdatedByAccountUcmId field. +func (o *VpnResponse) SetUpdatedByAccountUcmId(v int64) { + o.UpdatedByAccountUcmId = &v +} + +// GetUpdatedByUserName returns the UpdatedByUserName field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByUserName() string { + if o == nil || IsNil(o.UpdatedByUserName) { + var ret string + return ret + } + return *o.UpdatedByUserName +} + +// GetUpdatedByUserNameOk returns a tuple with the UpdatedByUserName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByUserNameOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByUserName) { + return nil, false + } + return o.UpdatedByUserName, true +} + +// HasUpdatedByUserName returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByUserName() bool { + if o != nil && !IsNil(o.UpdatedByUserName) { + return true + } + + return false +} + +// SetUpdatedByUserName gets a reference to the given string and assigns it to the UpdatedByUserName field. +func (o *VpnResponse) SetUpdatedByUserName(v string) { + o.UpdatedByUserName = &v +} + +// GetUpdatedByCustOrgId returns the UpdatedByCustOrgId field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByCustOrgId() int64 { + if o == nil || IsNil(o.UpdatedByCustOrgId) { + var ret int64 + return ret + } + return *o.UpdatedByCustOrgId +} + +// GetUpdatedByCustOrgIdOk returns a tuple with the UpdatedByCustOrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByCustOrgIdOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedByCustOrgId) { + return nil, false + } + return o.UpdatedByCustOrgId, true +} + +// HasUpdatedByCustOrgId returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByCustOrgId() bool { + if o != nil && !IsNil(o.UpdatedByCustOrgId) { + return true + } + + return false +} + +// SetUpdatedByCustOrgId gets a reference to the given int64 and assigns it to the UpdatedByCustOrgId field. +func (o *VpnResponse) SetUpdatedByCustOrgId(v int64) { + o.UpdatedByCustOrgId = &v +} + +// GetUpdatedByCustOrgName returns the UpdatedByCustOrgName field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByCustOrgName() string { + if o == nil || IsNil(o.UpdatedByCustOrgName) { + var ret string + return ret + } + return *o.UpdatedByCustOrgName +} + +// GetUpdatedByCustOrgNameOk returns a tuple with the UpdatedByCustOrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByCustOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByCustOrgName) { + return nil, false + } + return o.UpdatedByCustOrgName, true +} + +// HasUpdatedByCustOrgName returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByCustOrgName() bool { + if o != nil && !IsNil(o.UpdatedByCustOrgName) { + return true + } + + return false +} + +// SetUpdatedByCustOrgName gets a reference to the given string and assigns it to the UpdatedByCustOrgName field. +func (o *VpnResponse) SetUpdatedByCustOrgName(v string) { + o.UpdatedByCustOrgName = &v +} + +// GetUpdatedByUserStatus returns the UpdatedByUserStatus field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByUserStatus() string { + if o == nil || IsNil(o.UpdatedByUserStatus) { + var ret string + return ret + } + return *o.UpdatedByUserStatus +} + +// GetUpdatedByUserStatusOk returns a tuple with the UpdatedByUserStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByUserStatusOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByUserStatus) { + return nil, false + } + return o.UpdatedByUserStatus, true +} + +// HasUpdatedByUserStatus returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByUserStatus() bool { + if o != nil && !IsNil(o.UpdatedByUserStatus) { + return true + } + + return false +} + +// SetUpdatedByUserStatus gets a reference to the given string and assigns it to the UpdatedByUserStatus field. +func (o *VpnResponse) SetUpdatedByUserStatus(v string) { + o.UpdatedByUserStatus = &v +} + +// GetUpdatedByCompanyName returns the UpdatedByCompanyName field value if set, zero value otherwise. +func (o *VpnResponse) GetUpdatedByCompanyName() string { + if o == nil || IsNil(o.UpdatedByCompanyName) { + var ret string + return ret + } + return *o.UpdatedByCompanyName +} + +// GetUpdatedByCompanyNameOk returns a tuple with the UpdatedByCompanyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponse) GetUpdatedByCompanyNameOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedByCompanyName) { + return nil, false + } + return o.UpdatedByCompanyName, true +} + +// HasUpdatedByCompanyName returns a boolean if a field has been set. +func (o *VpnResponse) HasUpdatedByCompanyName() bool { + if o != nil && !IsNil(o.UpdatedByCompanyName) { + return true + } + + return false +} + +// SetUpdatedByCompanyName gets a reference to the given string and assigns it to the UpdatedByCompanyName field. +func (o *VpnResponse) SetUpdatedByCompanyName(v string) { + o.UpdatedByCompanyName = &v +} + +func (o VpnResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VpnResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["siteName"] = o.SiteName + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + toSerialize["virtualDeviceUuid"] = o.VirtualDeviceUuid + if !IsNil(o.ConfigName) { + toSerialize["configName"] = o.ConfigName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + toSerialize["peerIp"] = o.PeerIp + toSerialize["peerSharedKey"] = o.PeerSharedKey + toSerialize["remoteAsn"] = o.RemoteAsn + toSerialize["remoteIpAddress"] = o.RemoteIpAddress + toSerialize["password"] = o.Password + if !IsNil(o.LocalAsn) { + toSerialize["localAsn"] = o.LocalAsn + } + toSerialize["tunnelIp"] = o.TunnelIp + if !IsNil(o.BgpState) { + toSerialize["bgpState"] = o.BgpState + } + if !IsNil(o.InboundBytes) { + toSerialize["inboundBytes"] = o.InboundBytes + } + if !IsNil(o.InboundPackets) { + toSerialize["inboundPackets"] = o.InboundPackets + } + if !IsNil(o.OutboundBytes) { + toSerialize["outboundBytes"] = o.OutboundBytes + } + if !IsNil(o.OutboundPackets) { + toSerialize["outboundPackets"] = o.OutboundPackets + } + if !IsNil(o.TunnelStatus) { + toSerialize["tunnelStatus"] = o.TunnelStatus + } + if !IsNil(o.CustOrgId) { + toSerialize["custOrgId"] = o.CustOrgId + } + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedByFirstName) { + toSerialize["createdByFirstName"] = o.CreatedByFirstName + } + if !IsNil(o.CreatedByLastName) { + toSerialize["createdByLastName"] = o.CreatedByLastName + } + if !IsNil(o.CreatedByEmail) { + toSerialize["createdByEmail"] = o.CreatedByEmail + } + if !IsNil(o.CreatedByUserKey) { + toSerialize["createdByUserKey"] = o.CreatedByUserKey + } + if !IsNil(o.CreatedByAccountUcmId) { + toSerialize["createdByAccountUcmId"] = o.CreatedByAccountUcmId + } + if !IsNil(o.CreatedByUserName) { + toSerialize["createdByUserName"] = o.CreatedByUserName + } + if !IsNil(o.CreatedByCustOrgId) { + toSerialize["createdByCustOrgId"] = o.CreatedByCustOrgId + } + if !IsNil(o.CreatedByCustOrgName) { + toSerialize["createdByCustOrgName"] = o.CreatedByCustOrgName + } + if !IsNil(o.CreatedByUserStatus) { + toSerialize["createdByUserStatus"] = o.CreatedByUserStatus + } + if !IsNil(o.CreatedByCompanyName) { + toSerialize["createdByCompanyName"] = o.CreatedByCompanyName + } + if !IsNil(o.LastUpdatedDate) { + toSerialize["lastUpdatedDate"] = o.LastUpdatedDate + } + if !IsNil(o.UpdatedByFirstName) { + toSerialize["updatedByFirstName"] = o.UpdatedByFirstName + } + if !IsNil(o.UpdatedByLastName) { + toSerialize["updatedByLastName"] = o.UpdatedByLastName + } + if !IsNil(o.UpdatedByEmail) { + toSerialize["updatedByEmail"] = o.UpdatedByEmail + } + if !IsNil(o.UpdatedByUserKey) { + toSerialize["updatedByUserKey"] = o.UpdatedByUserKey + } + if !IsNil(o.UpdatedByAccountUcmId) { + toSerialize["updatedByAccountUcmId"] = o.UpdatedByAccountUcmId + } + if !IsNil(o.UpdatedByUserName) { + toSerialize["updatedByUserName"] = o.UpdatedByUserName + } + if !IsNil(o.UpdatedByCustOrgId) { + toSerialize["updatedByCustOrgId"] = o.UpdatedByCustOrgId + } + if !IsNil(o.UpdatedByCustOrgName) { + toSerialize["updatedByCustOrgName"] = o.UpdatedByCustOrgName + } + if !IsNil(o.UpdatedByUserStatus) { + toSerialize["updatedByUserStatus"] = o.UpdatedByUserStatus + } + if !IsNil(o.UpdatedByCompanyName) { + toSerialize["updatedByCompanyName"] = o.UpdatedByCompanyName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VpnResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "siteName", + "virtualDeviceUuid", + "peerIp", + "peerSharedKey", + "remoteAsn", + "remoteIpAddress", + "password", + "tunnelIp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varVpnResponse := _VpnResponse{} + + err = json.Unmarshal(data, &varVpnResponse) + + if err != nil { + return err + } + + *o = VpnResponse(varVpnResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "siteName") + delete(additionalProperties, "uuid") + delete(additionalProperties, "virtualDeviceUuid") + delete(additionalProperties, "configName") + delete(additionalProperties, "status") + delete(additionalProperties, "peerIp") + delete(additionalProperties, "peerSharedKey") + delete(additionalProperties, "remoteAsn") + delete(additionalProperties, "remoteIpAddress") + delete(additionalProperties, "password") + delete(additionalProperties, "localAsn") + delete(additionalProperties, "tunnelIp") + delete(additionalProperties, "bgpState") + delete(additionalProperties, "inboundBytes") + delete(additionalProperties, "inboundPackets") + delete(additionalProperties, "outboundBytes") + delete(additionalProperties, "outboundPackets") + delete(additionalProperties, "tunnelStatus") + delete(additionalProperties, "custOrgId") + delete(additionalProperties, "createdDate") + delete(additionalProperties, "createdByFirstName") + delete(additionalProperties, "createdByLastName") + delete(additionalProperties, "createdByEmail") + delete(additionalProperties, "createdByUserKey") + delete(additionalProperties, "createdByAccountUcmId") + delete(additionalProperties, "createdByUserName") + delete(additionalProperties, "createdByCustOrgId") + delete(additionalProperties, "createdByCustOrgName") + delete(additionalProperties, "createdByUserStatus") + delete(additionalProperties, "createdByCompanyName") + delete(additionalProperties, "lastUpdatedDate") + delete(additionalProperties, "updatedByFirstName") + delete(additionalProperties, "updatedByLastName") + delete(additionalProperties, "updatedByEmail") + delete(additionalProperties, "updatedByUserKey") + delete(additionalProperties, "updatedByAccountUcmId") + delete(additionalProperties, "updatedByUserName") + delete(additionalProperties, "updatedByCustOrgId") + delete(additionalProperties, "updatedByCustOrgName") + delete(additionalProperties, "updatedByUserStatus") + delete(additionalProperties, "updatedByCompanyName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVpnResponse struct { + value *VpnResponse + isSet bool +} + +func (v NullableVpnResponse) Get() *VpnResponse { + return v.value +} + +func (v *NullableVpnResponse) Set(val *VpnResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVpnResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnResponse(val *VpnResponse) *NullableVpnResponse { + return &NullableVpnResponse{value: val, isSet: true} +} + +func (v NullableVpnResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/model_vpn_response_dto.go b/services/networkedgev1/model_vpn_response_dto.go new file mode 100644 index 00000000..8fa35be4 --- /dev/null +++ b/services/networkedgev1/model_vpn_response_dto.go @@ -0,0 +1,191 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" +) + +// checks if the VpnResponseDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VpnResponseDto{} + +// VpnResponseDto struct for VpnResponseDto +type VpnResponseDto struct { + Pagination *PaginationResponseDto `json:"pagination,omitempty"` + Data []VpnResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VpnResponseDto VpnResponseDto + +// NewVpnResponseDto instantiates a new VpnResponseDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVpnResponseDto() *VpnResponseDto { + this := VpnResponseDto{} + return &this +} + +// NewVpnResponseDtoWithDefaults instantiates a new VpnResponseDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVpnResponseDtoWithDefaults() *VpnResponseDto { + this := VpnResponseDto{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *VpnResponseDto) GetPagination() PaginationResponseDto { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponseDto + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponseDto) GetPaginationOk() (*PaginationResponseDto, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *VpnResponseDto) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponseDto and assigns it to the Pagination field. +func (o *VpnResponseDto) SetPagination(v PaginationResponseDto) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *VpnResponseDto) GetData() []VpnResponse { + if o == nil || IsNil(o.Data) { + var ret []VpnResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VpnResponseDto) GetDataOk() ([]VpnResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *VpnResponseDto) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []VpnResponse and assigns it to the Data field. +func (o *VpnResponseDto) SetData(v []VpnResponse) { + o.Data = v +} + +func (o VpnResponseDto) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VpnResponseDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VpnResponseDto) UnmarshalJSON(data []byte) (err error) { + varVpnResponseDto := _VpnResponseDto{} + + err = json.Unmarshal(data, &varVpnResponseDto) + + if err != nil { + return err + } + + *o = VpnResponseDto(varVpnResponseDto) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "pagination") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVpnResponseDto struct { + value *VpnResponseDto + isSet bool +} + +func (v NullableVpnResponseDto) Get() *VpnResponseDto { + return v.value +} + +func (v *NullableVpnResponseDto) Set(val *VpnResponseDto) { + v.value = val + v.isSet = true +} + +func (v NullableVpnResponseDto) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnResponseDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnResponseDto(val *VpnResponseDto) *NullableVpnResponseDto { + return &NullableVpnResponseDto{value: val, isSet: true} +} + +func (v NullableVpnResponseDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnResponseDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/networkedgev1/response.go b/services/networkedgev1/response.go new file mode 100644 index 00000000..4b16db7c --- /dev/null +++ b/services/networkedgev1/response.go @@ -0,0 +1,48 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/networkedgev1/test/api_acl_template_test.go b/services/networkedgev1/test/api_acl_template_test.go new file mode 100644 index 00000000..f5958665 --- /dev/null +++ b/services/networkedgev1/test/api_acl_template_test.go @@ -0,0 +1,122 @@ +/* +Network Edge APIs + +Testing ACLTemplateApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_ACLTemplateApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ACLTemplateApiService CreateDeviceACLTemplateUsingPost", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ACLTemplateApi.CreateDeviceACLTemplateUsingPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService DeletedeviceACLUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.ACLTemplateApi.DeletedeviceACLUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService GetDeviceACLTemplateUsingGET1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ACLTemplateApi.GetDeviceACLTemplateUsingGET1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService GetDeviceTemplatebyUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.ACLTemplateApi.GetDeviceTemplatebyUuid(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService GetDeviceTemplatesbyUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + + resp, httpRes, err := apiClient.ACLTemplateApi.GetDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService PatchDeviceTemplatesbyUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + + httpRes, err := apiClient.ACLTemplateApi.PatchDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService PostDeviceTemplatesbyUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + + httpRes, err := apiClient.ACLTemplateApi.PostDeviceTemplatesbyUuid(context.Background(), virtualDeviceUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService SendDnsLookupPOST1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ACLTemplateApi.SendDnsLookupPOST1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test ACLTemplateApiService UpdateDeviceACLTemplateUsingPUT", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.ACLTemplateApi.UpdateDeviceACLTemplateUsingPUT(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_bgp_test.go b/services/networkedgev1/test/api_bgp_test.go new file mode 100644 index 00000000..ee9ab051 --- /dev/null +++ b/services/networkedgev1/test/api_bgp_test.go @@ -0,0 +1,68 @@ +/* +Network Edge APIs + +Testing BGPApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_BGPApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BGPApiService AddBgpConfigurationUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BGPApi.AddBgpConfigurationUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test BGPApiService GetBgpConfigurationUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.BGPApi.GetBgpConfigurationUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test BGPApiService GetBgpConfigurationsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BGPApi.GetBgpConfigurationsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test BGPApiService UpdateBgpConfigurationUsingPUT", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.BGPApi.UpdateBgpConfigurationUsingPUT(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_device_backup_restore_test.go b/services/networkedgev1/test/api_device_backup_restore_test.go new file mode 100644 index 00000000..8b8aa64d --- /dev/null +++ b/services/networkedgev1/test/api_device_backup_restore_test.go @@ -0,0 +1,113 @@ +/* +Network Edge APIs + +Testing DeviceBackupRestoreApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_DeviceBackupRestoreApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DeviceBackupRestoreApiService CheckDetailsOfBackupsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.DeviceBackupRestoreApi.CheckDetailsOfBackupsUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService CreateDeviceBackupUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeviceBackupRestoreApi.CreateDeviceBackupUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService DeleteDeviceBackupUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.DeviceBackupRestoreApi.DeleteDeviceBackupUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService DownloadDetailsOfBackupsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.DeviceBackupRestoreApi.DownloadDetailsOfBackupsUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService GetDetailsOfBackupsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.DeviceBackupRestoreApi.GetDetailsOfBackupsUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService GetDeviceBackupsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeviceBackupRestoreApi.GetDeviceBackupsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService RestoreDeviceBackupUsingPATCH", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.DeviceBackupRestoreApi.RestoreDeviceBackupUsingPATCH(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceBackupRestoreApiService UpdateDeviceBackupUsingPATCH", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.DeviceBackupRestoreApi.UpdateDeviceBackupUsingPATCH(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_device_link_test.go b/services/networkedgev1/test/api_device_link_test.go new file mode 100644 index 00000000..df5c7e3d --- /dev/null +++ b/services/networkedgev1/test/api_device_link_test.go @@ -0,0 +1,78 @@ +/* +Network Edge APIs + +Testing DeviceLinkApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_DeviceLinkApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DeviceLinkApiService CreateLinkGroupUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeviceLinkApi.CreateLinkGroupUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceLinkApiService DeleteLinkGroupUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.DeviceLinkApi.DeleteLinkGroupUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceLinkApiService GetLinkGroupByUUIDUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.DeviceLinkApi.GetLinkGroupByUUIDUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceLinkApiService GetLinkGroupsUsingGET1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeviceLinkApi.GetLinkGroupsUsingGET1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test DeviceLinkApiService UpdateLinkGroupUsingPATCH", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.DeviceLinkApi.UpdateLinkGroupUsingPATCH(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_device_rma_test.go b/services/networkedgev1/test/api_device_rma_test.go new file mode 100644 index 00000000..ac1e91a5 --- /dev/null +++ b/services/networkedgev1/test/api_device_rma_test.go @@ -0,0 +1,35 @@ +/* +Network Edge APIs + +Testing DeviceRMAApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_DeviceRMAApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DeviceRMAApiService PostDeviceRMAUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + + httpRes, err := apiClient.DeviceRMAApi.PostDeviceRMAUsingPOST(context.Background(), virtualDeviceUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_layer2_connections_service_profiles_test.go b/services/networkedgev1/test/api_layer2_connections_service_profiles_test.go new file mode 100644 index 00000000..5842f7e1 --- /dev/null +++ b/services/networkedgev1/test/api_layer2_connections_service_profiles_test.go @@ -0,0 +1,112 @@ +/* +Network Edge APIs + +Testing Layer2ConnectionsServiceProfilesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_Layer2ConnectionsServiceProfilesApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService CreateConnectionUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.CreateConnectionUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService DeleteConnectionUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.DeleteConnectionUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService GetConnectionByUuidUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetConnectionByUuidUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService GetConnectionsByGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetConnectionsByGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService GetProfileByIdUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetProfileByIdUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService GetProfilesByMetroUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.GetProfilesByMetroUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService PerformUserActionUsingPATCH", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.PerformUserActionUsingPATCH(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test Layer2ConnectionsServiceProfilesApiService ValidateAuthorizationKeyUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.Layer2ConnectionsServiceProfilesApi.ValidateAuthorizationKeyUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_licensing_test.go b/services/networkedgev1/test/api_licensing_test.go new file mode 100644 index 00000000..27fc1b17 --- /dev/null +++ b/services/networkedgev1/test/api_licensing_test.go @@ -0,0 +1,58 @@ +/* +Network Edge APIs + +Testing LicensingApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_LicensingApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LicensingApiService UpdateLicenseUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.LicensingApi.UpdateLicenseUsingPOST(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test LicensingApiService UploadLicenseForDeviceUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.LicensingApi.UploadLicenseForDeviceUsingPOST(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test LicensingApiService UploadLicenseUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LicensingApi.UploadLicenseUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_setup_test.go b/services/networkedgev1/test/api_setup_test.go new file mode 100644 index 00000000..dc268f9d --- /dev/null +++ b/services/networkedgev1/test/api_setup_test.go @@ -0,0 +1,166 @@ +/* +Network Edge APIs + +Testing SetupApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_SetupApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SetupApiService GetAccountsWithStatusUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var metro string + + resp, httpRes, err := apiClient.SetupApi.GetAccountsWithStatusUsingGET(context.Background(), metro).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetAgreementStatusUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetAgreementStatusUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetAllowedInterfacesUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var deviceType string + + resp, httpRes, err := apiClient.SetupApi.GetAllowedInterfacesUsingGET(context.Background(), deviceType).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetMetrosUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetMetrosUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetNotificationsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetNotificationsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetOrderSummaryUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.SetupApi.GetOrderSummaryUsingGET(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetOrderTermsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetOrderTermsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetPublicKeysUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetPublicKeysUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetVendorTermsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetVendorTermsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService GetVirtualDevicesUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.GetVirtualDevicesUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService PostPublicKeyUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.SetupApi.PostPublicKeyUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService RetrievePriceUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.RetrievePriceUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService SendAgreementUsingPOST1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.SendAgreementUsingPOST1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SetupApiService UploadFileUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SetupApi.UploadFileUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_ssh_user_test.go b/services/networkedgev1/test/api_ssh_user_test.go new file mode 100644 index 00000000..0813a4f3 --- /dev/null +++ b/services/networkedgev1/test/api_ssh_user_test.go @@ -0,0 +1,101 @@ +/* +Network Edge APIs + +Testing SSHUserApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_SSHUserApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SSHUserApiService AssociateDeviceUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var sshUserUuid string + var deviceUuid string + + httpRes, err := apiClient.SSHUserApi.AssociateDeviceUsingPOST(context.Background(), sshUserUuid, deviceUuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService CreateSshUserUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SSHUserApi.CreateSshUserUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService DissociateDeviceUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var sshUserUuid string + var deviceUuid string + + resp, httpRes, err := apiClient.SSHUserApi.DissociateDeviceUsingDELETE(context.Background(), sshUserUuid, deviceUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService GetSshUserUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.SSHUserApi.GetSshUserUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService GetSshUsersUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SSHUserApi.GetSshUsersUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService IsSshUserAvailableForCreationUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.SSHUserApi.IsSshUserAvailableForCreationUsingGET(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test SSHUserApiService UpdateSshUserUsingPUT", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.SSHUserApi.UpdateSshUserUsingPUT(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_virtual_device_test.go b/services/networkedgev1/test/api_virtual_device_test.go new file mode 100644 index 00000000..ae9c1a62 --- /dev/null +++ b/services/networkedgev1/test/api_virtual_device_test.go @@ -0,0 +1,171 @@ +/* +Network Edge APIs + +Testing VirtualDeviceApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_VirtualDeviceApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test VirtualDeviceApiService CreateVirtualDeviceUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualDeviceApi.CreateVirtualDeviceUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService DeleteVRouterUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VirtualDeviceApi.DeleteVRouterUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetDeviceReloadUsingGET1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUUID string + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetDeviceReloadUsingGET1(context.Background(), virtualDeviceUUID).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetDeviceUpgradeUsingGET1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetDeviceUpgradeUsingGET1(context.Background(), virtualDeviceUuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetInterfaceStatisticsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUuid string + var interfaceId string + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetInterfaceStatisticsUsingGET(context.Background(), virtualDeviceUuid, interfaceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetVirtualDeviceInterfacesUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetVirtualDeviceInterfacesUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetVirtualDeviceUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetVirtualDeviceUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService GetVirtualDevicesUsingGET1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualDeviceApi.GetVirtualDevicesUsingGET1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService PingDeviceUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VirtualDeviceApi.PingDeviceUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService PostDeviceReloadUsingPOST1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var virtualDeviceUUID string + + httpRes, err := apiClient.VirtualDeviceApi.PostDeviceReloadUsingPOST1(context.Background(), virtualDeviceUUID).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService UpdateAdditionalBandwidth", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VirtualDeviceApi.UpdateAdditionalBandwidth(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService UpdateVirtualDeviceUsingPATCH1", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VirtualDeviceApi.UpdateVirtualDeviceUsingPATCH1(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VirtualDeviceApiService UpdateVirtualDeviceUsingPUT", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VirtualDeviceApi.UpdateVirtualDeviceUsingPUT(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/test/api_vpn_test.go b/services/networkedgev1/test/api_vpn_test.go new file mode 100644 index 00000000..15940983 --- /dev/null +++ b/services/networkedgev1/test/api_vpn_test.go @@ -0,0 +1,77 @@ +/* +Network Edge APIs + +Testing VPNApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package networkedgev1 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/networkedgev1" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_networkedgev1_VPNApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test VPNApiService CreateVpnUsingPOST", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VPNApi.CreateVpnUsingPOST(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VPNApiService GetVpnByUuidUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + resp, httpRes, err := apiClient.VPNApi.GetVpnByUuidUsingGET(context.Background(), uuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VPNApiService GetVpnsUsingGET", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VPNApi.GetVpnsUsingGET(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VPNApiService RemoveVpnConfigurationUsingDELETE", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VPNApi.RemoveVpnConfigurationUsingDELETE(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test VPNApiService UpdateVpnConfigurationUsingPut", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var uuid string + + httpRes, err := apiClient.VPNApi.UpdateVpnConfigurationUsingPut(context.Background(), uuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/networkedgev1/utils.go b/services/networkedgev1/utils.go new file mode 100644 index 00000000..860e79e7 --- /dev/null +++ b/services/networkedgev1/utils.go @@ -0,0 +1,348 @@ +/* +Network Edge APIs + +Network Edge (NE) is a platform that allows customers to deploy and run virtual network services and appliances such as routers, load balancers, and firewalls on a generic device instead of additional dedicated hardware, CapEx and colo space. The Network Edge REST APIs allow you to interact with the Equinix Platform to programmatically create a virtual device and add services. Details on specific use cases can be found in the documentation available on the developer portal. + +API version: 1.0 +Contact: api-support@equinix.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package networkedgev1 + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +}