From 798278a9426068cf924e7a557092e315c61267ac Mon Sep 17 00:00:00 2001 From: Ashish Mathew Date: Fri, 26 Apr 2024 11:31:31 -0700 Subject: [PATCH] update go client; fix acceptance tests (#98) --- go.mod | 2 +- go.sum | 4 +- internal/acctest/acctest.go | 2 +- .../service/ipam/model_ipamsvc_ip_space.go | 2 +- internal/service/ipam/model_ipamsvc_server.go | 2 +- .../anycast/model_anycast_config.go | 72 ++++-- .../anycast/model_anycast_config_ref.go | 32 ++- .../anycast/model_anycast_config_response.go | 31 ++- .../anycast/model_anycast_version.go | 34 ++- .../anycast/model_bgp_config.go | 38 ++- .../anycast/model_bgp_neighbor.go | 42 +++- .../anycast/model_buf_field_mask.go | 31 ++- .../model_get_anycast_config_list_response.go | 31 ++- .../anycast/model_onprem_host.go | 44 +++- .../anycast/model_onprem_host_ref.go | 38 ++- .../anycast/model_onprem_host_response.go | 31 ++- .../anycast/model_ospf_config.go | 46 +++- .../anycast/model_ospfv3_config.go | 41 +++- .../anycast/model_service_config.go | 31 ++- .../anycast/model_service_config_object.go | 37 ++- .../model_service_status_update_request.go | 43 +++- .../bloxone-go-client/dfp/README.md | 18 +- .../bloxone-go-client/dfp/api_accounts.go | 4 +- .../dfp/{api_dfp.go => api_infra_services.go} | 212 ++++++++-------- .../bloxone-go-client/dfp/client.go | 6 +- .../bloxone-go-client/dfp/model_dfp.go | 122 ++++------ ...l_dfp_create_or_update_dfp_400_response.go | 124 ---------- .../dfp/model_dfp_create_or_update_payload.go | 114 +++------ .../model_dfp_create_or_update_response.go | 31 ++- .../bloxone-go-client/dfp/model_dfp_host.go | 34 ++- .../dfp/model_dfp_list_dfp_500_response.go | 124 ---------- .../model_dfp_list_dfp_500_response_error.go | 196 --------------- .../dfp/model_dfp_list_response.go | 31 ++- .../dfp/model_dfp_read_dfp_404_response.go | 124 ---------- .../model_dfp_read_dfp_404_response_error.go | 196 --------------- .../dfp/model_dfp_read_response.go | 31 ++- ...eate_or_update_dfp_service_400_response.go | 153 ++++++++++++ ...r_update_dfp_service_400_response_error.go | 227 ++++++++++++++++++ ...eate_or_update_dfp_service_404_response.go | 153 ++++++++++++ ...r_update_dfp_service_404_response_error.go | 227 ++++++++++++++++++ ...services_list_dfp_services_500_response.go | 153 ++++++++++++ ...s_list_dfp_services_500_response_error.go} | 105 +++++--- .../dfp/model_net_addr_policy_assignment.go | 32 ++- .../bloxone-go-client/dfp/model_resolver.go | 34 ++- .../dfp/model_types_config_check_request.go | 33 ++- .../dfp/model_types_config_check_response.go | 31 ++- .../dfp/model_types_config_check_result.go | 34 ++- .../bloxone-go-client/dnsconfig/model_acl.go | 24 +- .../dnsconfig/model_acl_item.go | 26 +- .../dnsconfig/model_auth_nsg.go | 27 ++- .../dnsconfig/model_auth_zone.go | 61 ++++- .../dnsconfig/model_auth_zone_config.go | 34 ++- .../model_auth_zone_external_provider.go | 33 ++- .../dnsconfig/model_auth_zone_inheritance.go | 35 +++ .../dnsconfig/model_bulk_copy_error.go | 33 ++- .../dnsconfig/model_bulk_copy_response.go | 34 ++- .../dnsconfig/model_bulk_copy_view.go | 26 +- .../dnsconfig/model_cache_flush.go | 36 ++- .../dnsconfig/model_convert_domain_name.go | 32 ++- .../model_convert_domain_name_response.go | 31 ++- .../model_convert_r_name_response.go | 31 ++- .../dnsconfig/model_copy_auth_zone.go | 28 ++- .../model_copy_auth_zone_response.go | 31 ++- .../dnsconfig/model_copy_forward_zone.go | 28 ++- .../model_copy_forward_zone_response.go | 31 ++- .../dnsconfig/model_copy_response.go | 33 ++- .../dnsconfig/model_create_acl_response.go | 31 ++- .../model_create_auth_nsg_response.go | 31 ++- .../model_create_auth_zone_response.go | 31 ++- .../model_create_delegation_response.go | 31 ++- .../model_create_forward_nsg_response.go | 31 ++- .../model_create_forward_zone_response.go | 31 ++- .../dnsconfig/model_create_lbdn_response.go | 31 ++- .../dnsconfig/model_create_server_response.go | 31 ++- .../dnsconfig/model_create_view_response.go | 31 ++- .../dnsconfig/model_custom_root_ns_block.go | 32 ++- .../dnsconfig/model_delegation.go | 39 ++- .../dnsconfig/model_delegation_server.go | 22 +- .../dnsconfig/model_display_view.go | 33 ++- .../model_dnssec_validation_block.go | 32 +++ .../dnsconfig/model_dtc_config.go | 31 ++- .../dnsconfig/model_dtc_policy.go | 32 ++- .../dnsconfig/model_ecs_block.go | 35 ++- .../dnsconfig/model_ecs_zone.go | 22 +- .../dnsconfig/model_external_primary.go | 26 +- .../dnsconfig/model_external_secondary.go | 27 ++- .../dnsconfig/model_forward_nsg.go | 28 ++- .../dnsconfig/model_forward_zone.go | 48 +++- .../dnsconfig/model_forward_zone_config.go | 34 ++- .../dnsconfig/model_forwarder.go | 22 +- .../dnsconfig/model_forwarders_block.go | 31 +++ .../dnsconfig/model_global.go | 62 ++++- .../bloxone-go-client/dnsconfig/model_host.go | 49 +++- .../dnsconfig/model_host_associated_server.go | 32 ++- .../dnsconfig/model_host_inheritance.go | 31 ++- .../model_inheritance2_assigned_host.go | 33 ++- .../model_inheritance2_inherited_bool.go | 34 ++- .../model_inheritance2_inherited_string.go | 34 ++- .../model_inheritance2_inherited_u_int32.go | 34 ++- .../dnsconfig/model_inherited_acl_items.go | 34 ++- .../model_inherited_custom_root_ns_block.go | 36 ++- ...model_inherited_dnssec_validation_block.go | 36 ++- .../dnsconfig/model_inherited_dtc_config.go | 31 ++- .../dnsconfig/model_inherited_ecs_block.go | 36 ++- .../model_inherited_forwarders_block.go | 36 ++- .../model_inherited_kerberos_keys.go | 34 ++- .../model_inherited_sort_list_items.go | 34 ++- .../model_inherited_zone_authority.go | 52 +++- ...l_inherited_zone_authority_m_name_block.go | 36 ++- .../dnsconfig/model_internal_secondary.go | 20 +- .../dnsconfig/model_kerberos_key.go | 25 +- .../bloxone-go-client/dnsconfig/model_lbdn.go | 29 ++- .../dnsconfig/model_list_acl_response.go | 31 ++- .../dnsconfig/model_list_auth_nsg_response.go | 31 ++- .../model_list_auth_zone_response.go | 31 ++- .../model_list_delegation_response.go | 31 ++- .../model_list_forward_nsg_response.go | 31 ++- .../model_list_forward_zone_response.go | 31 ++- .../dnsconfig/model_list_host_response.go | 31 ++- .../dnsconfig/model_list_lbdn_response.go | 31 ++- .../dnsconfig/model_list_server_response.go | 31 ++- .../dnsconfig/model_list_view_response.go | 31 ++- .../dnsconfig/model_read_acl_response.go | 31 ++- .../dnsconfig/model_read_auth_nsg_response.go | 31 ++- .../model_read_auth_zone_response.go | 31 ++- .../model_read_delegation_response.go | 31 ++- .../model_read_forward_nsg_response.go | 31 ++- .../model_read_forward_zone_response.go | 31 ++- .../dnsconfig/model_read_global_response.go | 31 ++- .../dnsconfig/model_read_host_response.go | 31 ++- .../dnsconfig/model_read_lbdn_response.go | 31 ++- .../dnsconfig/model_read_server_response.go | 31 ++- .../dnsconfig/model_read_view_response.go | 31 ++- .../dnsconfig/model_root_ns.go | 22 +- .../dnsconfig/model_server.go | 68 +++++- .../dnsconfig/model_server_inheritance.go | 57 +++++ .../dnsconfig/model_sort_list_item.go | 23 +- .../dnsconfig/model_trust_anchor.go | 24 +- .../dnsconfig/model_tsig_key.go | 36 ++- .../dnsconfig/model_ttl_inheritance.go | 31 ++- .../dnsconfig/model_update_acl_response.go | 31 ++- .../model_update_auth_nsg_response.go | 31 ++- .../model_update_auth_zone_response.go | 31 ++- .../model_update_delegation_response.go | 31 ++- .../model_update_forward_nsg_response.go | 31 ++- .../model_update_forward_zone_response.go | 31 ++- .../dnsconfig/model_update_global_response.go | 31 ++- .../dnsconfig/model_update_host_response.go | 31 ++- .../dnsconfig/model_update_lbdn_response.go | 31 ++- .../dnsconfig/model_update_server_response.go | 31 ++- .../dnsconfig/model_update_view_response.go | 31 ++- .../bloxone-go-client/dnsconfig/model_view.go | 65 ++++- .../dnsconfig/model_view_inheritance.go | 54 +++++ .../dnsconfig/model_warning.go | 32 ++- .../dnsconfig/model_zone_authority.go | 40 ++- .../model_zone_authority_m_name_block.go | 33 ++- .../dnsdata/model_create_record_response.go | 31 ++- .../model_inheritance2_inherited_u_int32.go | 34 ++- .../dnsdata/model_list_record_response.go | 31 ++- .../dnsdata/model_protobuf_field_mask.go | 31 ++- .../dnsdata/model_read_record_response.go | 31 ++- .../bloxone-go-client/dnsdata/model_record.go | 45 +++- .../dnsdata/model_record_inheritance.go | 31 ++- .../model_soa_serial_increment_request.go | 33 ++- .../model_soa_serial_increment_response.go | 31 ++- .../dnsdata/model_update_record_response.go | 31 ++- .../bloxone-go-client/fw/model_access_code.go | 39 ++- .../fw/model_access_code_create_response.go | 31 ++- .../fw/model_access_code_delete_request.go | 31 ++- .../fw/model_access_code_multi_response.go | 31 ++- .../fw/model_access_code_read_response.go | 31 ++- .../fw/model_access_code_rule.go | 43 +++- .../fw/model_access_code_update_response.go | 31 ++- ...s_codes_create_access_code_400_response.go | 31 ++- ...s_create_access_code_400_response_error.go | 37 ++- ...s_codes_create_access_code_404_response.go | 31 ++- ...s_create_access_code_404_response_error.go | 37 ++- ...s_codes_create_access_code_409_response.go | 31 ++- ...s_create_access_code_409_response_error.go | 37 ++- ..._codes_delete_access_codes_400_response.go | 31 ++- ..._delete_access_codes_400_response_error.go | 37 ++- ...delete_single_access_codes_400_response.go | 31 ++- ..._single_access_codes_400_response_error.go | 37 ++- ...ss_codes_list_access_codes_500_response.go | 31 ++- ...es_list_access_codes_500_response_error.go | 37 ++- ...ess_codes_read_access_code_404_response.go | 31 ++- ...des_read_access_code_404_response_error.go | 37 ++- .../fw/model_app_approval.go | 34 ++- .../fw/model_app_approval_multi_response.go | 31 ++- .../fw/model_app_approval_removal_request.go | 31 ++- .../fw/model_app_approvals_replace_request.go | 34 ++- .../fw/model_app_approvals_update_request.go | 37 ++- .../fw/model_application_criterion.go | 36 ++- .../fw/model_application_filter.go | 39 ++- ...odel_application_filter_create_response.go | 31 ++- ...model_application_filter_multi_response.go | 31 ++- .../model_application_filter_read_response.go | 31 ++- ...odel_application_filter_update_response.go | 31 ++- ...delete_application_filters_400_response.go | 31 ++- ..._application_filters_400_response_error.go | 37 ++- ...odel_application_filters_delete_request.go | 31 ++- ...single_application_filters_400_response.go | 31 ++- ..._application_filters_400_response_error.go | 37 ++- ...items_insert_or_update_response_success.go | 34 ++- .../fw/model_category_filter.go | 38 ++- .../model_category_filter_create_response.go | 31 ++- .../model_category_filter_multi_response.go | 31 ++- .../fw/model_category_filter_read_response.go | 31 ++- .../model_category_filter_update_response.go | 31 ++- ...ers_create_category_filter_400_response.go | 31 ++- ...eate_category_filter_400_response_error.go | 37 ++- ...ers_create_category_filter_409_response.go | 31 ++- ...eate_category_filter_409_response_error.go | 37 ++- ...rs_delete_category_filters_400_response.go | 31 ++- ...ete_category_filters_400_response_error.go | 37 ++- .../model_category_filters_delete_request.go | 31 ++- ...lters_read_category_filter_404_response.go | 31 ++- ...read_category_filter_404_response_error.go | 37 ++- .../fw/model_content_category.go | 33 ++- .../model_content_category_multi_response.go | 31 ++- ...ts_create_internal_domains_400_response.go | 31 ++- ...ate_internal_domains_400_response_error.go | 37 ++- ...ts_create_internal_domains_409_response.go | 31 ++- ...ate_internal_domains_409_response_error.go | 37 ++- ...ts_delete_internal_domains_400_response.go | 31 ++- ...ete_internal_domains_400_response_error.go | 37 ++- ...ts_delete_internal_domains_404_response.go | 31 ++- ...ete_internal_domains_404_response_error.go | 37 ++- ...te_single_internal_domains_400_response.go | 31 ++- ...gle_internal_domains_400_response_error.go | 37 ++- ...mains_items_partial_update_400_response.go | 31 ++- ...items_partial_update_400_response_error.go | 37 ++- ...mains_items_partial_update_404_response.go | 31 ++- ...items_partial_update_404_response_error.go | 37 ++- ...ists_read_internal_domains_404_response.go | 31 ++- ...ead_internal_domains_404_response_error.go | 37 ++- ...ts_update_internal_domains_400_response.go | 31 ++- ...ate_internal_domains_400_response_error.go | 37 ++- ...ts_update_internal_domains_404_response.go | 31 ++- ...ate_internal_domains_404_response_error.go | 37 ++- .../fw/model_internal_domains.go | 38 ++- .../model_internal_domains_create_response.go | 31 ++- .../model_internal_domains_delete_request.go | 31 ++- .../fw/model_internal_domains_items.go | 31 +++ .../model_internal_domains_multi_response.go | 31 ++- .../model_internal_domains_read_response.go | 31 ++- .../model_internal_domains_update_response.go | 31 ++- .../fw/model_item_structs.go | 32 ++- .../fw/model_list_po_p_regions_response.go | 34 ++- .../fw/model_list_severity_levels.go | 34 ++- .../fw/model_multi_list_update.go | 30 +++ .../bloxone-go-client/fw/model_named_list.go | 43 +++- .../fw/model_named_list_create_response.go | 31 ++- .../fw/model_named_list_csv_list_response.go | 31 ++- ...ms_delete_named_list_items_400_response.go | 31 ++- ...ete_named_list_items_400_response_error.go | 37 ++- .../model_named_list_items_delete_request.go | 33 ++- ...r_replace_named_list_items_400_response.go | 31 ++- ...ace_named_list_items_400_response_error.go | 37 ++- ...model_named_list_items_insert_or_update.go | 33 ++- ...ed_list_items_insert_or_update_response.go | 31 ++- ..._list_items_partial_update_400_response.go | 31 ++- ...items_partial_update_400_response_error.go | 37 ++- .../model_named_list_items_partial_update.go | 31 +++ .../fw/model_named_list_read.go | 41 +++- .../model_named_list_read_multi_response.go | 31 ++- .../fw/model_named_list_read_response.go | 31 ++- .../fw/model_named_list_update_response.go | 31 ++- ...ed_lists_create_named_list_409_response.go | 31 ++- ...ts_create_named_list_409_response_error.go | 37 ++- ...d_lists_delete_named_lists_400_response.go | 31 ++- ...s_delete_named_lists_400_response_error.go | 37 ++- ...d_lists_delete_named_lists_404_response.go | 31 ++- ...s_delete_named_lists_404_response_error.go | 37 ++- .../fw/model_named_lists_delete_request.go | 31 ++- ..._delete_single_named_lists_404_response.go | 31 ++- ...e_single_named_lists_404_response_error.go | 37 ++- ...ed_lists_multi_list_update_404_response.go | 31 ++- ...ts_multi_list_update_404_response_error.go | 37 ++- ..._update_named_list_partial_400_response.go | 31 ++- ...e_named_list_partial_400_response_error.go | 37 ++- ..._update_named_list_partial_404_response.go | 31 ++- ...e_named_list_partial_404_response_error.go | 37 ++- ..._update_named_list_partial_405_response.go | 31 ++- ...e_named_list_partial_405_response_error.go | 37 ++- .../fw/model_net_addr_dfp_assignment.go | 39 ++- .../fw/model_network_list.go | 37 ++- .../fw/model_network_list_create_response.go | 31 ++- .../fw/model_network_list_multi_response.go | 31 ++- .../fw/model_network_list_read_response.go | 31 ++- .../fw/model_network_list_update_response.go | 31 ++- ..._lists_create_network_list_409_response.go | 31 ++- ..._create_network_list_409_response_error.go | 37 ++- ...lists_delete_network_lists_400_response.go | 31 ++- ...delete_network_lists_400_response_error.go | 37 ++- ...lists_delete_network_lists_404_response.go | 31 ++- ...delete_network_lists_404_response_error.go | 37 ++- .../fw/model_network_lists_delete_request.go | 31 ++- .../bloxone-go-client/fw/model_po_p_region.go | 34 ++- ...p_regions_read_po_p_region_404_response.go | 31 ++- ...ons_read_po_p_region_404_response_error.go | 37 ++- .../fw/model_protobuf_field_mask.go | 31 ++- .../fw/model_read_po_p_region_response.go | 31 ++- ...ies_create_security_policy_400_response.go | 31 ++- ...eate_security_policy_400_response_error.go | 37 ++- ...ies_create_security_policy_409_response.go | 31 ++- ...eate_security_policy_409_response_error.go | 37 ++- ...icies_read_security_policy_404_response.go | 31 ++- ...read_security_policy_404_response_error.go | 37 ++- .../fw/model_security_policy.go | 51 +++- .../model_security_policy_create_response.go | 31 ++- .../model_security_policy_delete_request.go | 31 ++- .../model_security_policy_multi_response.go | 31 ++- .../fw/model_security_policy_read_response.go | 31 ++- .../fw/model_security_policy_rule.go | 37 ++- ...del_security_policy_rule_multi_response.go | 31 ++- .../model_security_policy_update_response.go | 31 ++- .../bloxone-go-client/fw/model_threat_feed.go | 36 ++- .../fw/model_threat_feed_multi_response.go | 31 ++- .../inframgmt/model_api_page_info.go | 33 ++- .../inframgmt/model_applications.go | 31 ++- .../inframgmt/model_applications_response.go | 31 ++- .../inframgmt/model_assign_tags_request.go | 37 ++- .../inframgmt/model_create_host_response.go | 31 ++- .../model_create_service_response.go | 31 ++- .../inframgmt/model_detail_host.go | 55 ++++- .../model_detail_host_service_config.go | 36 ++- .../inframgmt/model_detail_location.go | 35 ++- .../inframgmt/model_detail_service.go | 46 +++- .../inframgmt/model_detail_service_host.go | 38 ++- .../model_detail_service_host_config.go | 37 ++- .../inframgmt/model_disconnect_request.go | 31 ++- .../inframgmt/model_get_host_response.go | 31 ++- .../inframgmt/model_get_service_response.go | 31 ++- .../bloxone-go-client/inframgmt/model_host.go | 43 +++- .../model_list_detail_hosts_response.go | 34 ++- .../model_list_detail_services_response.go | 34 ++- .../inframgmt/model_list_host_response.go | 34 ++- .../inframgmt/model_list_service_response.go | 34 ++- .../inframgmt/model_pool_info.go | 33 ++- .../inframgmt/model_replace_host_request.go | 32 ++- .../inframgmt/model_service.go | 31 ++- .../inframgmt/model_service_host_config.go | 37 ++- .../inframgmt/model_short_service_status.go | 33 ++- .../inframgmt/model_unassign_tags_request.go | 34 ++- .../inframgmt/model_update_host_response.go | 31 ++- .../model_update_service_response.go | 31 ++- .../infraprovision/model_api_page_info.go | 33 ++- .../model_approve_csr_request.go | 31 ++- .../model_create_join_token_response.go | 34 ++- .../infraprovision/model_csr.go | 54 ++++- .../model_delete_join_tokens_request.go | 31 ++- .../infraprovision/model_deny_csr_request.go | 31 ++- .../infraprovision/model_join_token.go | 42 +++- .../model_list_csrs_response.go | 34 ++- .../model_list_join_token_response.go | 34 ++- .../model_read_join_token_response.go | 31 ++- .../model_revoke_cert_request.go | 35 ++- .../infraprovision/model_types_inet_value.go | 31 ++- .../infraprovision/model_types_json_value.go | 31 ++- .../model_update_join_token_response.go | 31 ++- .../ipam/model_access_filter.go | 22 +- .../bloxone-go-client/ipam/model_address.go | 39 ++- .../ipam/model_address_block.go | 73 +++++- .../bloxone-go-client/ipam/model_asm.go | 43 +++- .../ipam/model_asm_config.go | 42 +++- .../ipam/model_asm_enable_block.go | 33 ++- .../ipam/model_asm_growth_block.go | 32 ++- .../ipam/model_bulk_copy_error.go | 33 ++- .../ipam/model_bulk_copy_ip_space.go | 24 +- .../ipam/model_bulk_copy_ip_space_response.go | 34 ++- .../ipam/model_copy_address_block.go | 26 +- .../ipam/model_copy_address_block_response.go | 31 ++- .../ipam/model_copy_ip_space.go | 24 +- .../ipam/model_copy_ip_space_response.go | 31 ++- .../ipam/model_copy_response.go | 33 ++- .../ipam/model_copy_subnet.go | 26 +- .../ipam/model_copy_subnet_response.go | 31 ++- .../model_create_address_block_response.go | 31 ++- .../ipam/model_create_address_response.go | 31 ++- .../ipam/model_create_asm_response.go | 31 ++- .../model_create_fixed_address_response.go | 31 ++- .../ipam/model_create_ha_group_response.go | 31 ++- .../model_create_hardware_filter_response.go | 31 ++- .../ipam/model_create_ip_space_response.go | 31 ++- .../ipam/model_create_ipam_host_response.go | 31 ++- .../model_create_leases_command_response.go | 31 ++- ...model_create_next_available_ab_response.go | 31 ++- ...model_create_next_available_ip_response.go | 31 ++- ...l_create_next_available_subnet_response.go | 31 ++- .../ipam/model_create_option_code_response.go | 31 ++- .../model_create_option_filter_response.go | 31 ++- .../model_create_option_group_response.go | 31 ++- .../model_create_option_space_response.go | 31 ++- .../ipam/model_create_range_response.go | 31 ++- .../ipam/model_create_server_response.go | 31 ++- .../ipam/model_create_subnet_response.go | 31 ++- .../ipam/model_ddns_block.go | 43 +++- .../ipam/model_ddns_hostname_block.go | 32 ++- .../ipam/model_ddns_update_block.go | 32 ++- .../bloxone-go-client/ipam/model_ddns_zone.go | 27 ++- .../ipam/model_dhcp_config.go | 41 +++- .../bloxone-go-client/ipam/model_dhcp_info.go | 42 +++- .../ipam/model_dhcp_inheritance.go | 43 ++++ .../ipam/model_dhcp_options_inheritance.go | 31 ++- .../ipam/model_dhcp_packet_stats.go | 36 ++- .../ipam/model_dhcp_utilization.go | 34 ++- .../ipam/model_dhcp_utilization_threshold.go | 22 +- .../bloxone-go-client/ipam/model_dns_usage.go | 40 ++- .../ipam/model_exclusion_range.go | 22 +- .../bloxone-go-client/ipam/model_filter.go | 37 ++- .../ipam/model_fixed_address.go | 39 ++- .../ipam/model_fixed_address_inheritance.go | 32 +++ .../bloxone-go-client/ipam/model_global.go | 63 +++++ .../bloxone-go-client/ipam/model_ha_group.go | 30 ++- .../ipam/model_ha_group_heartbeats.go | 32 ++- .../ipam/model_ha_group_host.go | 25 +- .../ipam/model_hardware_filter.go | 31 ++- .../bloxone-go-client/ipam/model_host.go | 43 +++- .../ipam/model_host_address.go | 33 ++- .../ipam/model_host_associated_server.go | 32 ++- .../ipam/model_host_associations_response.go | 34 ++- .../bloxone-go-client/ipam/model_host_name.go | 23 +- .../ipam/model_hostname_rewrite_block.go | 31 +++ .../ipam/model_ignore_item.go | 21 +- .../ipam/model_inheritance_assigned_host.go | 33 ++- .../ipam/model_inheritance_inherited_bool.go | 34 ++- .../ipam/model_inheritance_inherited_float.go | 34 ++- .../model_inheritance_inherited_identifier.go | 34 ++- .../model_inheritance_inherited_string.go | 34 ++- .../model_inheritance_inherited_u_int32.go | 34 ++- .../ipam/model_inherited_asm_config.go | 49 +++- .../ipam/model_inherited_asm_enable_block.go | 36 ++- .../ipam/model_inherited_asm_growth_block.go | 36 ++- .../ipam/model_inherited_ddns_block.go | 36 ++- .../model_inherited_ddns_hostname_block.go | 36 ++- .../ipam/model_inherited_ddns_update_block.go | 36 ++- .../ipam/model_inherited_dhcp_config.go | 39 +++ ...model_inherited_dhcp_config_filter_list.go | 34 ++- ..._inherited_dhcp_config_ignore_item_list.go | 34 ++- .../ipam/model_inherited_dhcp_option.go | 36 ++- .../ipam/model_inherited_dhcp_option_item.go | 32 ++- .../ipam/model_inherited_dhcp_option_list.go | 32 ++- .../model_inherited_hostname_rewrite_block.go | 36 ++- .../bloxone-go-client/ipam/model_ip_space.go | 48 +++- .../ipam/model_ip_space_inheritance.go | 45 ++++ .../bloxone-go-client/ipam/model_ipam_host.go | 28 ++- .../ipam/model_kerberos_key.go | 25 +- .../ipam/model_lease_address.go | 32 ++- .../ipam/model_lease_range.go | 31 ++- .../ipam/model_lease_subnet.go | 31 ++- .../ipam/model_leases_command.go | 23 +- .../ipam/model_list_address_block_response.go | 31 ++- .../ipam/model_list_address_response.go | 31 ++- .../ipam/model_list_asm_response.go | 31 ++- .../ipam/model_list_dns_usage_response.go | 31 ++- .../ipam/model_list_filter_response.go | 31 ++- .../ipam/model_list_fixed_address_response.go | 31 ++- .../ipam/model_list_ha_group_response.go | 31 ++- .../model_list_hardware_filter_response.go | 31 ++- .../ipam/model_list_host_response.go | 31 ++- .../ipam/model_list_ip_space_response.go | 31 ++- .../ipam/model_list_ipam_host_response.go | 31 ++- .../ipam/model_list_option_code_response.go | 31 ++- .../ipam/model_list_option_filter_response.go | 31 ++- .../ipam/model_list_option_group_response.go | 31 ++- .../ipam/model_list_option_space_response.go | 31 ++- .../ipam/model_list_range_response.go | 31 ++- .../ipam/model_list_server_response.go | 31 ++- .../ipam/model_list_subnet_response.go | 31 ++- .../bloxone-go-client/ipam/model_name.go | 21 +- .../ipam/model_nameserver.go | 38 ++- .../ipam/model_next_available_ab_response.go | 31 ++- .../ipam/model_next_available_ip_response.go | 31 ++- .../model_next_available_subnet_response.go | 31 ++- .../ipam/model_option_code.go | 29 ++- .../ipam/model_option_filter.go | 32 ++- .../ipam/model_option_filter_rule.go | 23 +- .../ipam/model_option_filter_rule_list.go | 32 ++- .../ipam/model_option_group.go | 27 ++- .../ipam/model_option_item.go | 34 ++- .../ipam/model_option_space.go | 26 +- .../bloxone-go-client/ipam/model_range.go | 45 +++- .../ipam/model_read_address_block_response.go | 31 ++- .../ipam/model_read_address_response.go | 31 ++- .../ipam/model_read_asm_response.go | 31 ++- .../ipam/model_read_dns_usage_response.go | 31 ++- .../ipam/model_read_fixed_address_response.go | 31 ++- .../ipam/model_read_global_response.go | 31 ++- .../ipam/model_read_ha_group_response.go | 31 ++- .../model_read_hardware_filter_response.go | 31 ++- .../ipam/model_read_host_response.go | 31 ++- .../ipam/model_read_ip_space_response.go | 31 ++- .../ipam/model_read_ipam_host_response.go | 31 ++- .../ipam/model_read_option_code_response.go | 31 ++- .../ipam/model_read_option_filter_response.go | 31 ++- .../ipam/model_read_option_group_response.go | 31 ++- .../ipam/model_read_option_space_response.go | 31 ++- .../ipam/model_read_range_response.go | 31 ++- .../ipam/model_read_server_response.go | 31 ++- .../ipam/model_read_subnet_response.go | 31 ++- .../bloxone-go-client/ipam/model_server.go | 54 ++++- .../ipam/model_server_inheritance.go | 43 ++++ .../bloxone-go-client/ipam/model_subnet.go | 78 +++++- .../bloxone-go-client/ipam/model_tsig_key.go | 25 +- .../model_update_address_block_response.go | 31 ++- .../ipam/model_update_address_response.go | 31 ++- .../model_update_fixed_address_response.go | 31 ++- .../ipam/model_update_global_response.go | 31 ++- .../ipam/model_update_ha_group_response.go | 31 ++- .../model_update_hardware_filter_response.go | 31 ++- .../ipam/model_update_host_response.go | 31 ++- .../ipam/model_update_ip_space_response.go | 31 ++- .../ipam/model_update_ipam_host_response.go | 31 ++- .../ipam/model_update_option_code_response.go | 31 ++- .../model_update_option_filter_response.go | 31 ++- .../model_update_option_group_response.go | 31 ++- .../model_update_option_space_response.go | 31 ++- .../ipam/model_update_range_response.go | 31 ++- .../ipam/model_update_server_response.go | 31 ++- .../ipam/model_update_subnet_response.go | 31 ++- .../ipam/model_utilization.go | 38 ++- .../ipam/model_utilization_threshold.go | 22 +- .../ipam/model_utilization_v6.go | 43 +++- .../keys/model_create_tsig_key_response.go | 31 ++- .../keys/model_ddiupload_response.go | 32 ++- .../keys/model_generate_tsig_response.go | 31 ++- .../keys/model_generate_tsig_result.go | 31 ++- .../keys/model_kerberos_key.go | 38 ++- .../keys/model_kerberos_keys.go | 31 ++- .../keys/model_list_kerberos_key_response.go | 31 ++- .../keys/model_list_tsig_key_response.go | 31 ++- .../keys/model_protobuf_field_mask.go | 31 ++- .../keys/model_read_kerberos_key_response.go | 31 ++- .../keys/model_read_tsig_key_response.go | 31 ++- .../bloxone-go-client/keys/model_tsig_key.go | 28 ++- .../model_update_kerberos_key_response.go | 31 ++- .../keys/model_update_tsig_key_response.go | 31 ++- .../keys/model_upload_request.go | 26 +- vendor/modules.txt | 2 +- 540 files changed, 17559 insertions(+), 1993 deletions(-) rename vendor/github.com/infobloxopen/bloxone-go-client/dfp/{api_dfp.go => api_infra_services.go} (59%) delete mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response.go delete mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response.go delete mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response_error.go delete mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response.go delete mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response_error.go create mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response.go create mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go create mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response.go create mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go create mode 100644 vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response.go rename vendor/github.com/infobloxopen/bloxone-go-client/dfp/{model_dfp_create_or_update_dfp_400_response_error.go => model_infra_services_list_dfp_services_500_response_error.go} (53%) diff --git a/go.mod b/go.mod index 220fad43..e0f1ea29 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 github.com/hashicorp/terraform-plugin-testing v1.5.1 - github.com/infobloxopen/bloxone-go-client v0.0.0-20240423210930-d8559759c1a6 + github.com/infobloxopen/bloxone-go-client v0.0.0-20240426160014-afd451b8d00d golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f ) diff --git a/go.sum b/go.sum index a8ca9dd0..408a6fb2 100644 --- a/go.sum +++ b/go.sum @@ -113,8 +113,8 @@ github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/infobloxopen/bloxone-go-client v0.0.0-20240423210930-d8559759c1a6 h1:H3i7Tfx5z6ZuSlr+HR6Gm0DuE1/M6Nmk7yH5ZImVA8k= -github.com/infobloxopen/bloxone-go-client v0.0.0-20240423210930-d8559759c1a6/go.mod h1:vLxTz6q3NB16FVjsDAyhx3kuQycdmUtbvD5dYUVPjkI= +github.com/infobloxopen/bloxone-go-client v0.0.0-20240426160014-afd451b8d00d h1:p/R6oZNWjNAM2Iy7dXJA0+2c8zkSrw1by4n5a8GsZzA= +github.com/infobloxopen/bloxone-go-client v0.0.0-20240426160014-afd451b8d00d/go.mod h1:vLxTz6q3NB16FVjsDAyhx3kuQycdmUtbvD5dYUVPjkI= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= diff --git a/internal/acctest/acctest.go b/internal/acctest/acctest.go index b917d292..a306346d 100644 --- a/internal/acctest/acctest.go +++ b/internal/acctest/acctest.go @@ -60,7 +60,7 @@ func PreCheck(t *testing.T) { } BloxOneClient = bloxoneclient.NewAPIClient( - option.WithClientName("teraform-acceptance-tests"), + option.WithClientName("terraform-acceptance-tests"), option.WithCSPUrl(cspURL), option.WithAPIKey(apiKey), ) diff --git a/internal/service/ipam/model_ipamsvc_ip_space.go b/internal/service/ipam/model_ipamsvc_ip_space.go index 14720d94..c39b9b2c 100644 --- a/internal/service/ipam/model_ipamsvc_ip_space.go +++ b/internal/service/ipam/model_ipamsvc_ip_space.go @@ -203,7 +203,7 @@ var IpamsvcIPSpaceResourceSchemaAttributes = map[string]schema.Attribute{ "abandoned_reclaim_time_v6": types.Int64Value(3600), "allow_unknown": types.BoolValue(true), "allow_unknown_v6": types.BoolValue(true), - "echo_client_id": types.BoolValue(false), + "echo_client_id": types.BoolValue(true), "filters": types.ListNull(types.StringType), "filters_v6": types.ListNull(types.StringType), "ignore_client_uid": types.BoolValue(false), diff --git a/internal/service/ipam/model_ipamsvc_server.go b/internal/service/ipam/model_ipamsvc_server.go index 62edc3e2..d489d7df 100644 --- a/internal/service/ipam/model_ipamsvc_server.go +++ b/internal/service/ipam/model_ipamsvc_server.go @@ -216,7 +216,7 @@ var IpamsvcServerResourceSchemaAttributes = map[string]schema.Attribute{ "abandoned_reclaim_time_v6": types.Int64Value(3600), "allow_unknown": types.BoolValue(true), "allow_unknown_v6": types.BoolValue(true), - "echo_client_id": types.BoolValue(false), + "echo_client_id": types.BoolValue(true), "filters": types.ListNull(types.StringType), "filters_v6": types.ListNull(types.StringType), "ignore_client_uid": types.BoolValue(true), diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config.go index 0ba0b789..75b18d10 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config.go @@ -20,21 +20,24 @@ var _ MappedNullable = &AnycastConfig{} // AnycastConfig struct for AnycastConfig type AnycastConfig struct { - AccountId *int64 `json:"account_id,omitempty"` - AnycastIpAddress *string `json:"anycast_ip_address,omitempty"` - AnycastIpv6Address *string `json:"anycast_ipv6_address,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Description *string `json:"description,omitempty"` - Fields *BufFieldMask `json:"fields,omitempty"` - Id *int64 `json:"id,omitempty"` - IsConfigured *bool `json:"is_configured,omitempty"` - Name *string `json:"name,omitempty"` - OnpremHosts []OnpremHostRef `json:"onprem_hosts,omitempty"` - RuntimeStatus *string `json:"runtime_status,omitempty"` - Service *string `json:"service,omitempty"` - Tags map[string]interface{} `json:"tags,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} + AccountId *int64 `json:"account_id,omitempty"` + AnycastIpAddress *string `json:"anycast_ip_address,omitempty"` + AnycastIpv6Address *string `json:"anycast_ipv6_address,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + Fields *BufFieldMask `json:"fields,omitempty"` + Id *int64 `json:"id,omitempty"` + IsConfigured *bool `json:"is_configured,omitempty"` + Name *string `json:"name,omitempty"` + OnpremHosts []OnpremHostRef `json:"onprem_hosts,omitempty"` + RuntimeStatus *string `json:"runtime_status,omitempty"` + Service *string `json:"service,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AnycastConfig AnycastConfig // NewAnycastConfig instantiates a new AnycastConfig object // This constructor will assign default values to properties that have it defined, @@ -553,9 +556,48 @@ func (o AnycastConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AnycastConfig) UnmarshalJSON(data []byte) (err error) { + varAnycastConfig := _AnycastConfig{} + + err = json.Unmarshal(data, &varAnycastConfig) + + if err != nil { + return err + } + + *o = AnycastConfig(varAnycastConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "account_id") + delete(additionalProperties, "anycast_ip_address") + delete(additionalProperties, "anycast_ipv6_address") + delete(additionalProperties, "created_at") + delete(additionalProperties, "description") + delete(additionalProperties, "fields") + delete(additionalProperties, "id") + delete(additionalProperties, "is_configured") + delete(additionalProperties, "name") + delete(additionalProperties, "onprem_hosts") + delete(additionalProperties, "runtime_status") + delete(additionalProperties, "service") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAnycastConfig struct { value *AnycastConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_ref.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_ref.go index b3e91710..19ec2df8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_ref.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_ref.go @@ -21,9 +21,12 @@ var _ MappedNullable = &AnycastConfigRef{} type AnycastConfigRef struct { AnycastConfigName *string `json:"anycast_config_name,omitempty"` // Routing protocols enabled for this anycast configuration, on a particular host. Valid protocol names are \"BGP\", \"OSPF\"/\"OSPFv2\", \"OSPFv3\". - RoutingProtocols []string `json:"routing_protocols,omitempty"` + RoutingProtocols []string `json:"routing_protocols,omitempty"` + AdditionalProperties map[string]interface{} } +type _AnycastConfigRef AnycastConfigRef + // NewAnycastConfigRef instantiates a new AnycastConfigRef object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -121,9 +124,36 @@ func (o AnycastConfigRef) ToMap() (map[string]interface{}, error) { if !IsNil(o.RoutingProtocols) { toSerialize["routing_protocols"] = o.RoutingProtocols } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AnycastConfigRef) UnmarshalJSON(data []byte) (err error) { + varAnycastConfigRef := _AnycastConfigRef{} + + err = json.Unmarshal(data, &varAnycastConfigRef) + + if err != nil { + return err + } + + *o = AnycastConfigRef(varAnycastConfigRef) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "anycast_config_name") + delete(additionalProperties, "routing_protocols") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAnycastConfigRef struct { value *AnycastConfigRef isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_response.go index 85fb93f7..b7c6cf98 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_config_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AnycastConfigResponse{} // AnycastConfigResponse struct for AnycastConfigResponse type AnycastConfigResponse struct { - Results *AnycastConfig `json:"results,omitempty"` + Results *AnycastConfig `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AnycastConfigResponse AnycastConfigResponse + // NewAnycastConfigResponse instantiates a new AnycastConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AnycastConfigResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AnycastConfigResponse) UnmarshalJSON(data []byte) (err error) { + varAnycastConfigResponse := _AnycastConfigResponse{} + + err = json.Unmarshal(data, &varAnycastConfigResponse) + + if err != nil { + return err + } + + *o = AnycastConfigResponse(varAnycastConfigResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAnycastConfigResponse struct { value *AnycastConfigResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_version.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_version.go index 9fdedb5a..9ffe9008 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_version.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_anycast_version.go @@ -19,10 +19,13 @@ var _ MappedNullable = &AnycastVersion{} // AnycastVersion struct for AnycastVersion type AnycastVersion struct { - AccountId *int64 `json:"account_id,omitempty"` - Version *string `json:"version,omitempty"` + AccountId *int64 `json:"account_id,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } +type _AnycastVersion AnycastVersion + // NewAnycastVersion instantiates a new AnycastVersion object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o AnycastVersion) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AnycastVersion) UnmarshalJSON(data []byte) (err error) { + varAnycastVersion := _AnycastVersion{} + + err = json.Unmarshal(data, &varAnycastVersion) + + if err != nil { + return err + } + + *o = AnycastVersion(varAnycastVersion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "account_id") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAnycastVersion struct { value *AnycastVersion isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_config.go index d11070e9..b03d9cf8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_config.go @@ -28,9 +28,12 @@ type BgpConfig struct { LinkDetect *bool `json:"link_detect,omitempty"` Neighbors []BgpNeighbor `json:"neighbors,omitempty"` // Any predefined BGP configuration, with embedded new lines; the preamble will be prepended to the generated BGP configuration. - Preamble *string `json:"preamble,omitempty"` + Preamble *string `json:"preamble,omitempty"` + AdditionalProperties map[string]interface{} } +type _BgpConfig BgpConfig + // NewBgpConfig instantiates a new BgpConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -338,9 +341,42 @@ func (o BgpConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Preamble) { toSerialize["preamble"] = o.Preamble } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BgpConfig) UnmarshalJSON(data []byte) (err error) { + varBgpConfig := _BgpConfig{} + + err = json.Unmarshal(data, &varBgpConfig) + + if err != nil { + return err + } + + *o = BgpConfig(varBgpConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_text") + delete(additionalProperties, "fields") + delete(additionalProperties, "holddown_secs") + delete(additionalProperties, "keep_alive_secs") + delete(additionalProperties, "link_detect") + delete(additionalProperties, "neighbors") + delete(additionalProperties, "preamble") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBgpConfig struct { value *BgpConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_neighbor.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_neighbor.go index f9104529..ecbf8fc1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_neighbor.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_bgp_neighbor.go @@ -23,12 +23,15 @@ type BgpNeighbor struct { // Examples: ASDOT ASPLAIN INTEGER VALID/INVALID 0.1 1 1 Valid 1 1 1 Valid 65535 65535 65535 Valid 0.65535 65535 65535 Valid 1.0 65536 65536 Valid 1.1 65537 65537 Valid 1.65535 131071 131071 Valid 65535.0 4294901760 4294901760 Valid 65535.1 4294901761 4294901761 Valid 65535.65535 4294967295 4294967295 Valid 0.65536 Invalid 65535.655536 Invalid 65536.0 Invalid 65536.65535 Invalid 4294967296 Invalid AsnText *string `json:"asn_text,omitempty"` // IPv4 address of the BGP neighbor - IpAddress *string `json:"ip_address,omitempty"` - MaxHopCount *int64 `json:"max_hop_count,omitempty"` - Multihop *bool `json:"multihop,omitempty"` - Password *string `json:"password,omitempty"` + IpAddress *string `json:"ip_address,omitempty"` + MaxHopCount *int64 `json:"max_hop_count,omitempty"` + Multihop *bool `json:"multihop,omitempty"` + Password *string `json:"password,omitempty"` + AdditionalProperties map[string]interface{} } +type _BgpNeighbor BgpNeighbor + // NewBgpNeighbor instantiates a new BgpNeighbor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -266,9 +269,40 @@ func (o BgpNeighbor) ToMap() (map[string]interface{}, error) { if !IsNil(o.Password) { toSerialize["password"] = o.Password } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BgpNeighbor) UnmarshalJSON(data []byte) (err error) { + varBgpNeighbor := _BgpNeighbor{} + + err = json.Unmarshal(data, &varBgpNeighbor) + + if err != nil { + return err + } + + *o = BgpNeighbor(varBgpNeighbor) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_text") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "max_hop_count") + delete(additionalProperties, "multihop") + delete(additionalProperties, "password") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBgpNeighbor struct { value *BgpNeighbor isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_buf_field_mask.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_buf_field_mask.go index 4194f46b..03c10611 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_buf_field_mask.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_buf_field_mask.go @@ -20,9 +20,12 @@ var _ MappedNullable = &BufFieldMask{} // BufFieldMask paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, the existing repeated values in the target resource will be overwritten by the new values. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then the existing sub-message in the target resource is overwritten. Given the target message: f { b { d : 1 x : 2 } c : 1 } And an update message: f { b { d : 10 } } then if the field mask is: paths: \"f.b\" then the result will be: f { b { d : 10 } c : 1 } However, if the update mask was: paths: \"f.b.d\" then the result would be: f { b { d : 10 x : 2 } c : 1 } In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of the all the API methods, which have any FieldMask type field in the request, should verify the included field paths, and return `INVALID_ARGUMENT` error if any path is duplicated or unmappable. type BufFieldMask struct { // The set of field mask paths. - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty"` + AdditionalProperties map[string]interface{} } +type _BufFieldMask BufFieldMask + // NewBufFieldMask instantiates a new BufFieldMask object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o BufFieldMask) ToMap() (map[string]interface{}, error) { if !IsNil(o.Paths) { toSerialize["paths"] = o.Paths } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BufFieldMask) UnmarshalJSON(data []byte) (err error) { + varBufFieldMask := _BufFieldMask{} + + err = json.Unmarshal(data, &varBufFieldMask) + + if err != nil { + return err + } + + *o = BufFieldMask(varBufFieldMask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "paths") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBufFieldMask struct { value *BufFieldMask isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_get_anycast_config_list_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_get_anycast_config_list_response.go index b08f85d6..d7364f2f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_get_anycast_config_list_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_get_anycast_config_list_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &GetAnycastConfigListResponse{} // GetAnycastConfigListResponse struct for GetAnycastConfigListResponse type GetAnycastConfigListResponse struct { - Results []AnycastConfig `json:"results,omitempty"` + Results []AnycastConfig `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _GetAnycastConfigListResponse GetAnycastConfigListResponse + // NewGetAnycastConfigListResponse instantiates a new GetAnycastConfigListResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o GetAnycastConfigListResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *GetAnycastConfigListResponse) UnmarshalJSON(data []byte) (err error) { + varGetAnycastConfigListResponse := _GetAnycastConfigListResponse{} + + err = json.Unmarshal(data, &varGetAnycastConfigListResponse) + + if err != nil { + return err + } + + *o = GetAnycastConfigListResponse(varGetAnycastConfigListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGetAnycastConfigListResponse struct { value *GetAnycastConfigListResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host.go index 9b475919..86c63127 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host.go @@ -29,11 +29,14 @@ type OnpremHost struct { // IPv4 address of the on-prem host IpAddress *string `json:"ip_address,omitempty"` // IPv6 address of the on-prem host - Ipv6Address *string `json:"ipv6_address,omitempty"` - Name *string `json:"name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Ipv6Address *string `json:"ipv6_address,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _OnpremHost OnpremHost + // NewOnpremHost instantiates a new OnpremHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -411,9 +414,44 @@ func (o OnpremHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OnpremHost) UnmarshalJSON(data []byte) (err error) { + varOnpremHost := _OnpremHost{} + + err = json.Unmarshal(data, &varOnpremHost) + + if err != nil { + return err + } + + *o = OnpremHost(varOnpremHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "anycast_config_refs") + delete(additionalProperties, "config_bgp") + delete(additionalProperties, "config_ospf") + delete(additionalProperties, "config_ospfv3") + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "ipv6_address") + delete(additionalProperties, "name") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOnpremHost struct { value *OnpremHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_ref.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_ref.go index e971dcc4..47d9fb6c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_ref.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_ref.go @@ -26,10 +26,13 @@ type OnpremHostRef struct { Ipv6Address *string `json:"ipv6_address,omitempty"` Name *string `json:"name,omitempty"` // Unique 32-character string identifier assigned to the host - Ophid *string `json:"ophid,omitempty"` - RuntimeStatus *string `json:"runtime_status,omitempty"` + Ophid *string `json:"ophid,omitempty"` + RuntimeStatus *string `json:"runtime_status,omitempty"` + AdditionalProperties map[string]interface{} } +type _OnpremHostRef OnpremHostRef + // NewOnpremHostRef instantiates a new OnpremHostRef object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -267,9 +270,40 @@ func (o OnpremHostRef) ToMap() (map[string]interface{}, error) { if !IsNil(o.RuntimeStatus) { toSerialize["runtime_status"] = o.RuntimeStatus } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OnpremHostRef) UnmarshalJSON(data []byte) (err error) { + varOnpremHostRef := _OnpremHostRef{} + + err = json.Unmarshal(data, &varOnpremHostRef) + + if err != nil { + return err + } + + *o = OnpremHostRef(varOnpremHostRef) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "ipv6_address") + delete(additionalProperties, "name") + delete(additionalProperties, "ophid") + delete(additionalProperties, "runtime_status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOnpremHostRef struct { value *OnpremHostRef isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_response.go index 1059947b..1b7814be 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_onprem_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &OnpremHostResponse{} // OnpremHostResponse struct for OnpremHostResponse type OnpremHostResponse struct { - Results *OnpremHost `json:"results,omitempty"` + Results *OnpremHost `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _OnpremHostResponse OnpremHostResponse + // NewOnpremHostResponse instantiates a new OnpremHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o OnpremHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OnpremHostResponse) UnmarshalJSON(data []byte) (err error) { + varOnpremHostResponse := _OnpremHostResponse{} + + err = json.Unmarshal(data, &varOnpremHostResponse) + + if err != nil { + return err + } + + *o = OnpremHostResponse(varOnpremHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOnpremHostResponse struct { value *OnpremHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospf_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospf_config.go index 2c6b5030..a66f7807 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospf_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospf_config.go @@ -31,11 +31,14 @@ type OspfConfig struct { // Name of the interface that is configured with external IP address of the host Interface *string `json:"interface,omitempty"` // Any predefined OSPF configuration, with embedded new lines; the preamble will be prepended to the generated BGP configuration. - Preamble *string `json:"preamble,omitempty"` - RetransmitInterval *int64 `json:"retransmit_interval,omitempty"` - TransmitDelay *int64 `json:"transmit_delay,omitempty"` + Preamble *string `json:"preamble,omitempty"` + RetransmitInterval *int64 `json:"retransmit_interval,omitempty"` + TransmitDelay *int64 `json:"transmit_delay,omitempty"` + AdditionalProperties map[string]interface{} } +type _OspfConfig OspfConfig + // NewOspfConfig instantiates a new OspfConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -483,9 +486,46 @@ func (o OspfConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.TransmitDelay) { toSerialize["transmit_delay"] = o.TransmitDelay } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OspfConfig) UnmarshalJSON(data []byte) (err error) { + varOspfConfig := _OspfConfig{} + + err = json.Unmarshal(data, &varOspfConfig) + + if err != nil { + return err + } + + *o = OspfConfig(varOspfConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "area") + delete(additionalProperties, "area_type") + delete(additionalProperties, "authentication_key") + delete(additionalProperties, "authentication_key_id") + delete(additionalProperties, "authentication_type") + delete(additionalProperties, "cost") + delete(additionalProperties, "dead_interval") + delete(additionalProperties, "hello_interval") + delete(additionalProperties, "interface") + delete(additionalProperties, "preamble") + delete(additionalProperties, "retransmit_interval") + delete(additionalProperties, "transmit_delay") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOspfConfig struct { value *OspfConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospfv3_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospfv3_config.go index 11ee0bdf..77e084ba 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospfv3_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_ospfv3_config.go @@ -25,11 +25,14 @@ type Ospfv3Config struct { DeadInterval *int64 `json:"dead_interval,omitempty"` HelloInterval *int64 `json:"hello_interval,omitempty"` // Name of the interface that is configured with external IP address of the host - Interface *string `json:"interface,omitempty"` - RetransmitInterval *int64 `json:"retransmit_interval,omitempty"` - TransmitDelay *int64 `json:"transmit_delay,omitempty"` + Interface *string `json:"interface,omitempty"` + RetransmitInterval *int64 `json:"retransmit_interval,omitempty"` + TransmitDelay *int64 `json:"transmit_delay,omitempty"` + AdditionalProperties map[string]interface{} } +type _Ospfv3Config Ospfv3Config + // NewOspfv3Config instantiates a new Ospfv3Config object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -302,9 +305,41 @@ func (o Ospfv3Config) ToMap() (map[string]interface{}, error) { if !IsNil(o.TransmitDelay) { toSerialize["transmit_delay"] = o.TransmitDelay } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Ospfv3Config) UnmarshalJSON(data []byte) (err error) { + varOspfv3Config := _Ospfv3Config{} + + err = json.Unmarshal(data, &varOspfv3Config) + + if err != nil { + return err + } + + *o = Ospfv3Config(varOspfv3Config) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "area") + delete(additionalProperties, "cost") + delete(additionalProperties, "dead_interval") + delete(additionalProperties, "hello_interval") + delete(additionalProperties, "interface") + delete(additionalProperties, "retransmit_interval") + delete(additionalProperties, "transmit_delay") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOspfv3Config struct { value *Ospfv3Config isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config.go index 50f68a08..bda5f3fd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ServiceConfig{} // ServiceConfig struct for ServiceConfig type ServiceConfig struct { - Config *ServiceConfigObject `json:"config,omitempty"` + Config *ServiceConfigObject `json:"config,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServiceConfig ServiceConfig + // NewServiceConfig instantiates a new ServiceConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ServiceConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Config) { toSerialize["config"] = o.Config } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServiceConfig) UnmarshalJSON(data []byte) (err error) { + varServiceConfig := _ServiceConfig{} + + err = json.Unmarshal(data, &varServiceConfig) + + if err != nil { + return err + } + + *o = ServiceConfig(varServiceConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServiceConfig struct { value *ServiceConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config_object.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config_object.go index 47a098fb..dd1e451b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config_object.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_config_object.go @@ -19,11 +19,14 @@ var _ MappedNullable = &ServiceConfigObject{} // ServiceConfigObject struct for ServiceConfigObject type ServiceConfigObject struct { - ConfigBody *string `json:"configBody,omitempty"` - Ophid *string `json:"ophid,omitempty"` - Version *string `json:"version,omitempty"` + ConfigBody *string `json:"configBody,omitempty"` + Ophid *string `json:"ophid,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServiceConfigObject ServiceConfigObject + // NewServiceConfigObject instantiates a new ServiceConfigObject object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o ServiceConfigObject) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServiceConfigObject) UnmarshalJSON(data []byte) (err error) { + varServiceConfigObject := _ServiceConfigObject{} + + err = json.Unmarshal(data, &varServiceConfigObject) + + if err != nil { + return err + } + + *o = ServiceConfigObject(varServiceConfigObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "configBody") + delete(additionalProperties, "ophid") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServiceConfigObject struct { value *ServiceConfigObject isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_status_update_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_status_update_request.go index 526e80bf..04a8df46 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_status_update_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/anycast/model_service_status_update_request.go @@ -19,13 +19,16 @@ var _ MappedNullable = &ServiceStatusUpdateRequest{} // ServiceStatusUpdateRequest struct for ServiceStatusUpdateRequest type ServiceStatusUpdateRequest struct { - AppName *string `json:"appName,omitempty"` - Message *string `json:"message,omitempty"` - Ophid *string `json:"ophid,omitempty"` - StatusCode *ServiceStatusCode `json:"statusCode,omitempty"` - Version *string `json:"version,omitempty"` + AppName *string `json:"appName,omitempty"` + Message *string `json:"message,omitempty"` + Ophid *string `json:"ophid,omitempty"` + StatusCode *ServiceStatusCode `json:"statusCode,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServiceStatusUpdateRequest ServiceStatusUpdateRequest + // NewServiceStatusUpdateRequest instantiates a new ServiceStatusUpdateRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -232,9 +235,39 @@ func (o ServiceStatusUpdateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServiceStatusUpdateRequest) UnmarshalJSON(data []byte) (err error) { + varServiceStatusUpdateRequest := _ServiceStatusUpdateRequest{} + + err = json.Unmarshal(data, &varServiceStatusUpdateRequest) + + if err != nil { + return err + } + + *o = ServiceStatusUpdateRequest(varServiceStatusUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "appName") + delete(additionalProperties, "message") + delete(additionalProperties, "ophid") + delete(additionalProperties, "statusCode") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServiceStatusUpdateRequest struct { value *ServiceStatusUpdateRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/README.md b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/README.md index 4b37f0ca..5d264532 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/README.md +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/README.md @@ -92,26 +92,26 @@ All URIs are relative to *https://csp.infoblox.com/api/atcdfp/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AccountsAPI* | [**CheckConfig**](docs/AccountsAPI.md#checkconfig) | **Post** /config/check | Check Config. -*DfpAPI* | [**CreateOrUpdateDfp**](docs/DfpAPI.md#createorupdatedfp) | **Put** /dfps/{id} | Update DNS Forwarding Proxy resolvers. -*DfpAPI* | [**ListDfp**](docs/DfpAPI.md#listdfp) | **Get** /dfp_services | List DNS Forwarding Proxies. -*DfpAPI* | [**ReadDfp**](docs/DfpAPI.md#readdfp) | **Get** /dfps/{id} | Read DNS Forwarding Proxy. +*InfraServicesAPI* | [**CreateOrUpdateDfpService**](docs/InfraServicesAPI.md#createorupdatedfpservice) | **Put** /dfp_services/{payload.service_id} | Update DNS Forwarding Proxy services. +*InfraServicesAPI* | [**ListDfpServices**](docs/InfraServicesAPI.md#listdfpservices) | **Get** /dfp_services | List DNS Forwarding Proxy services. +*InfraServicesAPI* | [**ReadDfpService**](docs/InfraServicesAPI.md#readdfpservice) | **Get** /dfp_services/{service_id} | Read DNS Forwarding Proxy services. ## Documentation For Models - [DNSProtocol](docs/DNSProtocol.md) - [Dfp](docs/Dfp.md) - - [DfpCreateOrUpdateDfp400Response](docs/DfpCreateOrUpdateDfp400Response.md) - - [DfpCreateOrUpdateDfp400ResponseError](docs/DfpCreateOrUpdateDfp400ResponseError.md) - [DfpCreateOrUpdatePayload](docs/DfpCreateOrUpdatePayload.md) - [DfpCreateOrUpdateResponse](docs/DfpCreateOrUpdateResponse.md) - [DfpHost](docs/DfpHost.md) - - [DfpListDfp500Response](docs/DfpListDfp500Response.md) - - [DfpListDfp500ResponseError](docs/DfpListDfp500ResponseError.md) - [DfpListResponse](docs/DfpListResponse.md) - - [DfpReadDfp404Response](docs/DfpReadDfp404Response.md) - - [DfpReadDfp404ResponseError](docs/DfpReadDfp404ResponseError.md) - [DfpReadResponse](docs/DfpReadResponse.md) + - [InfraServicesCreateOrUpdateDfpService400Response](docs/InfraServicesCreateOrUpdateDfpService400Response.md) + - [InfraServicesCreateOrUpdateDfpService400ResponseError](docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md) + - [InfraServicesCreateOrUpdateDfpService404Response](docs/InfraServicesCreateOrUpdateDfpService404Response.md) + - [InfraServicesCreateOrUpdateDfpService404ResponseError](docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md) + - [InfraServicesListDfpServices500Response](docs/InfraServicesListDfpServices500Response.md) + - [InfraServicesListDfpServices500ResponseError](docs/InfraServicesListDfpServices500ResponseError.md) - [NetAddrPolicyAssignment](docs/NetAddrPolicyAssignment.md) - [Resolver](docs/Resolver.md) - [TypesConfigCheckRequest](docs/TypesConfigCheckRequest.md) diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_accounts.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_accounts.go index 532545b9..4513ce27 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_accounts.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_accounts.go @@ -24,7 +24,7 @@ type AccountsAPI interface { /* CheckConfig Check Config. - Use this method to check config + Use this method to check configuration @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return AccountsAPICheckConfigRequest @@ -57,7 +57,7 @@ func (r AccountsAPICheckConfigRequest) Execute() (*TypesConfigCheckResponse, *ht /* CheckConfig Check Config. -Use this method to check config +Use this method to check configuration @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return AccountsAPICheckConfigRequest diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_dfp.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_infra_services.go similarity index 59% rename from vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_dfp.go rename to vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_infra_services.go index 9510b392..1953ddab 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_dfp.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/api_infra_services.go @@ -21,105 +21,95 @@ import ( "github.com/infobloxopen/bloxone-go-client/internal" ) -type DfpAPI interface { +type InfraServicesAPI interface { /* - CreateOrUpdateDfp Update DNS Forwarding Proxy resolvers. + CreateOrUpdateDfpService Update DNS Forwarding Proxy services. - Use this method to update resolvers for the specified DNS Forwarding Proxy. + Use this method to update resolvers for the specified DNS Forwarding Proxy Service. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. There is a possibility to set default resolver(s) depending on the license class. DNS forwarding proxy would fallback to the default resolvers when BloxOne Cloud is unreachable. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPICreateOrUpdateDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param payloadServiceId The DNS Forwarding Proxy Service ID object identifier. + @return InfraServicesAPICreateOrUpdateDfpServiceRequest */ - CreateOrUpdateDfp(ctx context.Context, id int32) DfpAPICreateOrUpdateDfpRequest + CreateOrUpdateDfpService(ctx context.Context, payloadServiceId string) InfraServicesAPICreateOrUpdateDfpServiceRequest - // CreateOrUpdateDfpExecute executes the request + // CreateOrUpdateDfpServiceExecute executes the request // @return DfpCreateOrUpdateResponse - CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) + CreateOrUpdateDfpServiceExecute(r InfraServicesAPICreateOrUpdateDfpServiceRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) /* - ListDfp List DNS Forwarding Proxies. - - Use this method to retrieve information on all DNS Forwarding Proxy objects for the account. + ListDfpServices List DNS Forwarding Proxy services. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. + Use this method to retrieve information on all DNS Forwarding Proxy services. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return DfpAPIListDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return InfraServicesAPIListDfpServicesRequest */ - ListDfp(ctx context.Context) DfpAPIListDfpRequest + ListDfpServices(ctx context.Context) InfraServicesAPIListDfpServicesRequest - // ListDfpExecute executes the request + // ListDfpServicesExecute executes the request // @return DfpListResponse - ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse, *http.Response, error) + ListDfpServicesExecute(r InfraServicesAPIListDfpServicesRequest) (*DfpListResponse, *http.Response, error) /* - ReadDfp Read DNS Forwarding Proxy. - - Use this method to retrieve information on the specified DNS Forwarding Proxy object. + ReadDfpService Read DNS Forwarding Proxy services. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. + Use this method to retrieve information on the specified DNS Forwarding Proxy service. - Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPIReadDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId The On-Prem Application Service identifier. For internal Use only + @return InfraServicesAPIReadDfpServiceRequest */ - ReadDfp(ctx context.Context, id int32) DfpAPIReadDfpRequest + ReadDfpService(ctx context.Context, serviceId string) InfraServicesAPIReadDfpServiceRequest - // ReadDfpExecute executes the request + // ReadDfpServiceExecute executes the request // @return DfpReadResponse - ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse, *http.Response, error) + ReadDfpServiceExecute(r InfraServicesAPIReadDfpServiceRequest) (*DfpReadResponse, *http.Response, error) } -// DfpAPIService DfpAPI service -type DfpAPIService internal.Service +// InfraServicesAPIService InfraServicesAPI service +type InfraServicesAPIService internal.Service -type DfpAPICreateOrUpdateDfpRequest struct { - ctx context.Context - ApiService DfpAPI - id int32 - body *DfpCreateOrUpdatePayload +type InfraServicesAPICreateOrUpdateDfpServiceRequest struct { + ctx context.Context + ApiService InfraServicesAPI + payloadServiceId string + body *DfpCreateOrUpdatePayload } // The DNS Forwarding Proxy object. -func (r DfpAPICreateOrUpdateDfpRequest) Body(body DfpCreateOrUpdatePayload) DfpAPICreateOrUpdateDfpRequest { +func (r InfraServicesAPICreateOrUpdateDfpServiceRequest) Body(body DfpCreateOrUpdatePayload) InfraServicesAPICreateOrUpdateDfpServiceRequest { r.body = &body return r } -func (r DfpAPICreateOrUpdateDfpRequest) Execute() (*DfpCreateOrUpdateResponse, *http.Response, error) { - return r.ApiService.CreateOrUpdateDfpExecute(r) +func (r InfraServicesAPICreateOrUpdateDfpServiceRequest) Execute() (*DfpCreateOrUpdateResponse, *http.Response, error) { + return r.ApiService.CreateOrUpdateDfpServiceExecute(r) } /* -CreateOrUpdateDfp Update DNS Forwarding Proxy resolvers. +CreateOrUpdateDfpService Update DNS Forwarding Proxy services. -Use this method to update resolvers for the specified DNS Forwarding Proxy. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. There is a possibility to set default resolver(s) depending on the license class. DNS forwarding proxy would fallback to the default resolvers when BloxOne Cloud is unreachable. +Use this method to update resolvers for the specified DNS Forwarding Proxy Service. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPICreateOrUpdateDfpRequest + @param payloadServiceId The DNS Forwarding Proxy Service ID object identifier. + @return InfraServicesAPICreateOrUpdateDfpServiceRequest */ -func (a *DfpAPIService) CreateOrUpdateDfp(ctx context.Context, id int32) DfpAPICreateOrUpdateDfpRequest { - return DfpAPICreateOrUpdateDfpRequest{ - ApiService: a, - ctx: ctx, - id: id, +func (a *InfraServicesAPIService) CreateOrUpdateDfpService(ctx context.Context, payloadServiceId string) InfraServicesAPICreateOrUpdateDfpServiceRequest { + return InfraServicesAPICreateOrUpdateDfpServiceRequest{ + ApiService: a, + ctx: ctx, + payloadServiceId: payloadServiceId, } } // Execute executes the request // // @return DfpCreateOrUpdateResponse -func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) { +func (a *InfraServicesAPIService) CreateOrUpdateDfpServiceExecute(r InfraServicesAPICreateOrUpdateDfpServiceRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -127,13 +117,13 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques localVarReturnValue *DfpCreateOrUpdateResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.CreateOrUpdateDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.CreateOrUpdateDfpService") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } - localVarPath := localBasePath + "/dfps/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/dfp_services/{payload.service_id}" + localVarPath = strings.Replace(localVarPath, "{"+"payload.service_id"+"}", url.PathEscape(internal.ParameterValueToString(r.payloadServiceId, "payloadServiceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -181,7 +171,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 400 { - var v DfpCreateOrUpdateDfp400Response + var v InfraServicesCreateOrUpdateDfpService400Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -191,7 +181,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { - var v DfpReadDfp404Response + var v InfraServicesCreateOrUpdateDfpService404Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -201,7 +191,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -220,9 +210,9 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, nil } -type DfpAPIListDfpRequest struct { +type InfraServicesAPIListDfpServicesRequest struct { ctx context.Context - ApiService DfpAPI + ApiService InfraServicesAPI filter *string fields *string offset *int32 @@ -230,52 +220,50 @@ type DfpAPIListDfpRequest struct { pageToken *string } -// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | ------ | --------------------------- | | name | string | !=, ==, ~, !~, >, <, <=, >= | | site_id | string | !=, ==, ~, !~, >, <, <=, >= | | ophid | string | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((name=='dfp1')or(ophid~'oph'))and(default_security_policy!='true')\" ``` -func (r DfpAPIListDfpRequest) Filter(filter string) DfpAPIListDfpRequest { +// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | -------- | --------------------------- | | service_name | string | !=, ==, ~, !~, >, <, <=, >= | | internal_domain_lists | [int32] | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((service_name=='dfp1')or(policy_id~'oph'))and(default_security_policy!='true')\" ``` +func (r InfraServicesAPIListDfpServicesRequest) Filter(filter string) InfraServicesAPIListDfpServicesRequest { r.filter = &filter return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r DfpAPIListDfpRequest) Fields(fields string) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Fields(fields string) InfraServicesAPIListDfpServicesRequest { r.fields = &fields return r } // The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. -func (r DfpAPIListDfpRequest) Offset(offset int32) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Offset(offset int32) InfraServicesAPIListDfpServicesRequest { r.offset = &offset return r } // The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. -func (r DfpAPIListDfpRequest) Limit(limit int32) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Limit(limit int32) InfraServicesAPIListDfpServicesRequest { r.limit = &limit return r } // The service-defined string used to identify a page of resources. A null value indicates the first page. -func (r DfpAPIListDfpRequest) PageToken(pageToken string) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) PageToken(pageToken string) InfraServicesAPIListDfpServicesRequest { r.pageToken = &pageToken return r } -func (r DfpAPIListDfpRequest) Execute() (*DfpListResponse, *http.Response, error) { - return r.ApiService.ListDfpExecute(r) +func (r InfraServicesAPIListDfpServicesRequest) Execute() (*DfpListResponse, *http.Response, error) { + return r.ApiService.ListDfpServicesExecute(r) } /* -ListDfp List DNS Forwarding Proxies. +ListDfpServices List DNS Forwarding Proxy services. -Use this method to retrieve information on all DNS Forwarding Proxy objects for the account. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. +Use this method to retrieve information on all DNS Forwarding Proxy services. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return DfpAPIListDfpRequest + @return InfraServicesAPIListDfpServicesRequest */ -func (a *DfpAPIService) ListDfp(ctx context.Context) DfpAPIListDfpRequest { - return DfpAPIListDfpRequest{ +func (a *InfraServicesAPIService) ListDfpServices(ctx context.Context) InfraServicesAPIListDfpServicesRequest { + return InfraServicesAPIListDfpServicesRequest{ ApiService: a, ctx: ctx, } @@ -284,7 +272,7 @@ func (a *DfpAPIService) ListDfp(ctx context.Context) DfpAPIListDfpRequest { // Execute executes the request // // @return DfpListResponse -func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse, *http.Response, error) { +func (a *InfraServicesAPIService) ListDfpServicesExecute(r InfraServicesAPIListDfpServicesRequest) (*DfpListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -292,7 +280,7 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse localVarReturnValue *DfpListResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.ListDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.ListDfpServices") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } @@ -355,7 +343,7 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -374,62 +362,58 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse return localVarReturnValue, localVarHTTPResponse, nil } -type DfpAPIReadDfpRequest struct { +type InfraServicesAPIReadDfpServiceRequest struct { ctx context.Context - ApiService DfpAPI - id int32 + ApiService InfraServicesAPI + serviceId string + id *int32 fields *string name *string - serviceId *string +} + +// The DNS Forwarding Proxy object identifier. +func (r InfraServicesAPIReadDfpServiceRequest) Id(id int32) InfraServicesAPIReadDfpServiceRequest { + r.id = &id + return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r DfpAPIReadDfpRequest) Fields(fields string) DfpAPIReadDfpRequest { +func (r InfraServicesAPIReadDfpServiceRequest) Fields(fields string) InfraServicesAPIReadDfpServiceRequest { r.fields = &fields return r } // The name of the DNS Forwarding Proxy. Used only if the 'id' field is empty. -func (r DfpAPIReadDfpRequest) Name(name string) DfpAPIReadDfpRequest { +func (r InfraServicesAPIReadDfpServiceRequest) Name(name string) InfraServicesAPIReadDfpServiceRequest { r.name = &name return r } -// The On-Prem Application Service identifier. For internal Use only. -func (r DfpAPIReadDfpRequest) ServiceId(serviceId string) DfpAPIReadDfpRequest { - r.serviceId = &serviceId - return r -} - -func (r DfpAPIReadDfpRequest) Execute() (*DfpReadResponse, *http.Response, error) { - return r.ApiService.ReadDfpExecute(r) +func (r InfraServicesAPIReadDfpServiceRequest) Execute() (*DfpReadResponse, *http.Response, error) { + return r.ApiService.ReadDfpServiceExecute(r) } /* -ReadDfp Read DNS Forwarding Proxy. +ReadDfpService Read DNS Forwarding Proxy services. -Use this method to retrieve information on the specified DNS Forwarding Proxy object. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. - -Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). +Use this method to retrieve information on the specified DNS Forwarding Proxy service. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPIReadDfpRequest + @param serviceId The On-Prem Application Service identifier. For internal Use only + @return InfraServicesAPIReadDfpServiceRequest */ -func (a *DfpAPIService) ReadDfp(ctx context.Context, id int32) DfpAPIReadDfpRequest { - return DfpAPIReadDfpRequest{ +func (a *InfraServicesAPIService) ReadDfpService(ctx context.Context, serviceId string) InfraServicesAPIReadDfpServiceRequest { + return InfraServicesAPIReadDfpServiceRequest{ ApiService: a, ctx: ctx, - id: id, + serviceId: serviceId, } } // Execute executes the request // // @return DfpReadResponse -func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse, *http.Response, error) { +func (a *InfraServicesAPIService) ReadDfpServiceExecute(r InfraServicesAPIReadDfpServiceRequest) (*DfpReadResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -437,27 +421,27 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse localVarReturnValue *DfpReadResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.ReadDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.ReadDfpService") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } - localVarPath := localBasePath + "/dfps/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/dfp_services/{service_id}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(internal.ParameterValueToString(r.serviceId, "serviceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.id != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + } if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } if r.name != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") } - if r.serviceId != nil { - internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "service_id", r.serviceId, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -495,7 +479,7 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 404 { - var v DfpReadDfp404Response + var v InfraServicesCreateOrUpdateDfpService404Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -505,7 +489,7 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/client.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/client.go index b6ea815e..aaff02a9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/client.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/client.go @@ -23,8 +23,8 @@ type APIClient struct { *internal.APIClient // API Services - AccountsAPI AccountsAPI - DfpAPI DfpAPI + AccountsAPI AccountsAPI + InfraServicesAPI InfraServicesAPI } // NewAPIClient creates a new API client. @@ -46,7 +46,7 @@ func NewAPIClient(options ...option.ClientOption) *APIClient { // API Services c.AccountsAPI = (*AccountsAPIService)(&c.Common) - c.DfpAPI = (*DfpAPIService)(&c.Common) + c.InfraServicesAPI = (*InfraServicesAPIService)(&c.Common) return c } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp.go index 185609d2..5a9754a7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp.go @@ -22,8 +22,6 @@ var _ MappedNullable = &Dfp{} type Dfp struct { // The time when this DNS Forwarding Proxy object was created. CreatedTime *time.Time `json:"created_time,omitempty"` - // The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - DefaultResolvers []string `json:"default_resolvers,omitempty"` // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as ELB IPs. ElbIpList []string `json:"elb_ip_list,omitempty"` ForwardingPolicy *string `json:"forwarding_policy,omitempty"` @@ -42,9 +40,7 @@ type Dfp struct { // The identifier of the security policy with which the DNS Forwarding Proxy is associated. PolicyId *int32 `json:"policy_id,omitempty"` // Point of Presence (PoP) region - PopRegionId *int32 `json:"pop_region_id,omitempty"` - // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - Resolvers []string `json:"resolvers,omitempty"` + PopRegionId *int32 `json:"pop_region_id,omitempty"` ResolversAll []Resolver `json:"resolvers_all,omitempty"` // The On-Prem Application Service identifier. For internal Use only ServiceId *string `json:"service_id,omitempty"` @@ -53,9 +49,12 @@ type Dfp struct { // The DNS Forwarding Proxy site identifier that is appended to DNS queries originating from this DNS Forwarding Proxy and subsequently used for policy lookup purposes. SiteId *string `json:"site_id,omitempty"` // The time when this DNS Forwarding Proxy object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _Dfp Dfp + // NewDfp instantiates a new Dfp object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -105,38 +104,6 @@ func (o *Dfp) SetCreatedTime(v time.Time) { o.CreatedTime = &v } -// GetDefaultResolvers returns the DefaultResolvers field value if set, zero value otherwise. -func (o *Dfp) GetDefaultResolvers() []string { - if o == nil || IsNil(o.DefaultResolvers) { - var ret []string - return ret - } - return o.DefaultResolvers -} - -// GetDefaultResolversOk returns a tuple with the DefaultResolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Dfp) GetDefaultResolversOk() ([]string, bool) { - if o == nil || IsNil(o.DefaultResolvers) { - return nil, false - } - return o.DefaultResolvers, true -} - -// HasDefaultResolvers returns a boolean if a field has been set. -func (o *Dfp) HasDefaultResolvers() bool { - if o != nil && !IsNil(o.DefaultResolvers) { - return true - } - - return false -} - -// SetDefaultResolvers gets a reference to the given []string and assigns it to the DefaultResolvers field. -func (o *Dfp) SetDefaultResolvers(v []string) { - o.DefaultResolvers = v -} - // GetElbIpList returns the ElbIpList field value if set, zero value otherwise. func (o *Dfp) GetElbIpList() []string { if o == nil || IsNil(o.ElbIpList) { @@ -457,38 +424,6 @@ func (o *Dfp) SetPopRegionId(v int32) { o.PopRegionId = &v } -// GetResolvers returns the Resolvers field value if set, zero value otherwise. -func (o *Dfp) GetResolvers() []string { - if o == nil || IsNil(o.Resolvers) { - var ret []string - return ret - } - return o.Resolvers -} - -// GetResolversOk returns a tuple with the Resolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Dfp) GetResolversOk() ([]string, bool) { - if o == nil || IsNil(o.Resolvers) { - return nil, false - } - return o.Resolvers, true -} - -// HasResolvers returns a boolean if a field has been set. -func (o *Dfp) HasResolvers() bool { - if o != nil && !IsNil(o.Resolvers) { - return true - } - - return false -} - -// SetResolvers gets a reference to the given []string and assigns it to the Resolvers field. -func (o *Dfp) SetResolvers(v []string) { - o.Resolvers = v -} - // GetResolversAll returns the ResolversAll field value if set, zero value otherwise. func (o *Dfp) GetResolversAll() []Resolver { if o == nil || IsNil(o.ResolversAll) { @@ -662,9 +597,6 @@ func (o Dfp) ToMap() (map[string]interface{}, error) { if !IsNil(o.CreatedTime) { toSerialize["created_time"] = o.CreatedTime } - if !IsNil(o.DefaultResolvers) { - toSerialize["default_resolvers"] = o.DefaultResolvers - } if !IsNil(o.ElbIpList) { toSerialize["elb_ip_list"] = o.ElbIpList } @@ -695,9 +627,6 @@ func (o Dfp) ToMap() (map[string]interface{}, error) { if !IsNil(o.PopRegionId) { toSerialize["pop_region_id"] = o.PopRegionId } - if !IsNil(o.Resolvers) { - toSerialize["resolvers"] = o.Resolvers - } if !IsNil(o.ResolversAll) { toSerialize["resolvers_all"] = o.ResolversAll } @@ -713,9 +642,50 @@ func (o Dfp) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Dfp) UnmarshalJSON(data []byte) (err error) { + varDfp := _Dfp{} + + err = json.Unmarshal(data, &varDfp) + + if err != nil { + return err + } + + *o = Dfp(varDfp) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_time") + delete(additionalProperties, "elb_ip_list") + delete(additionalProperties, "forwarding_policy") + delete(additionalProperties, "host") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_domain_lists") + delete(additionalProperties, "name") + delete(additionalProperties, "net_addr_policy_ids") + delete(additionalProperties, "ophid") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "pop_region_id") + delete(additionalProperties, "resolvers_all") + delete(additionalProperties, "service_id") + delete(additionalProperties, "service_name") + delete(additionalProperties, "site_id") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfp struct { value *Dfp isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response.go deleted file mode 100644 index 1ddd55e1..00000000 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -DFP API - -BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package dfp - -import ( - "encoding/json" -) - -// checks if the DfpCreateOrUpdateDfp400Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpCreateOrUpdateDfp400Response{} - -// DfpCreateOrUpdateDfp400Response struct for DfpCreateOrUpdateDfp400Response -type DfpCreateOrUpdateDfp400Response struct { - Error *DfpCreateOrUpdateDfp400ResponseError `json:"error,omitempty"` -} - -// NewDfpCreateOrUpdateDfp400Response instantiates a new DfpCreateOrUpdateDfp400Response object -// This constructor will assign default values to properties that have it defined, -// 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 NewDfpCreateOrUpdateDfp400Response() *DfpCreateOrUpdateDfp400Response { - this := DfpCreateOrUpdateDfp400Response{} - return &this -} - -// NewDfpCreateOrUpdateDfp400ResponseWithDefaults instantiates a new DfpCreateOrUpdateDfp400Response object -// This 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 NewDfpCreateOrUpdateDfp400ResponseWithDefaults() *DfpCreateOrUpdateDfp400Response { - this := DfpCreateOrUpdateDfp400Response{} - return &this -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400Response) GetError() DfpCreateOrUpdateDfp400ResponseError { - if o == nil || IsNil(o.Error) { - var ret DfpCreateOrUpdateDfp400ResponseError - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdateDfp400Response) GetErrorOk() (*DfpCreateOrUpdateDfp400ResponseError, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400Response) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given DfpCreateOrUpdateDfp400ResponseError and assigns it to the Error field. -func (o *DfpCreateOrUpdateDfp400Response) SetError(v DfpCreateOrUpdateDfp400ResponseError) { - o.Error = &v -} - -func (o DfpCreateOrUpdateDfp400Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DfpCreateOrUpdateDfp400Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableDfpCreateOrUpdateDfp400Response struct { - value *DfpCreateOrUpdateDfp400Response - isSet bool -} - -func (v NullableDfpCreateOrUpdateDfp400Response) Get() *DfpCreateOrUpdateDfp400Response { - return v.value -} - -func (v *NullableDfpCreateOrUpdateDfp400Response) Set(val *DfpCreateOrUpdateDfp400Response) { - v.value = val - v.isSet = true -} - -func (v NullableDfpCreateOrUpdateDfp400Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDfpCreateOrUpdateDfp400Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDfpCreateOrUpdateDfp400Response(val *DfpCreateOrUpdateDfp400Response) *NullableDfpCreateOrUpdateDfp400Response { - return &NullableDfpCreateOrUpdateDfp400Response{value: val, isSet: true} -} - -func (v NullableDfpCreateOrUpdateDfp400Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDfpCreateOrUpdateDfp400Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_payload.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_payload.go index e2e01797..fbba5c36 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_payload.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_payload.go @@ -19,8 +19,6 @@ var _ MappedNullable = &DfpCreateOrUpdatePayload{} // DfpCreateOrUpdatePayload DNS Forwarding Proxy object. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). type DfpCreateOrUpdatePayload struct { - // The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - DefaultResolvers []string `json:"default_resolvers,omitempty"` // The type of DNS resolver as Forwarding Policy. It can hold values as ib_cloud_first, external_first or external_only The default value is ib_cloud_first. If empty string is sent then ib_cloud_first will be considered. ForwardingPolicy *string `json:"forwarding_policy,omitempty"` // host information. For internal Use only. @@ -33,8 +31,6 @@ type DfpCreateOrUpdatePayload struct { Name *string `json:"name,omitempty"` // Point of Presence (PoP) region PopRegionId *int32 `json:"pop_region_id,omitempty"` - // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - Resolvers []string `json:"resolvers,omitempty"` // The DNS forwarding proxy additional resolvers used for fallback and local resolution. This field replaces resolvers and default_resolvers fields which are deprecated. Either deprecated fields or new field can be used, both can not be used at same time. ResolversAll []Resolver `json:"resolvers_all,omitempty"` // The DNS Forwarding Proxy Service ID object identifier. @@ -42,9 +38,12 @@ type DfpCreateOrUpdatePayload struct { // The name of the DNS Forwarding Proxy Service. ServiceName *string `json:"service_name,omitempty"` // The DNS Forwarding Proxy site identifier that is appended to DNS queries originating from this DNS Forwarding Proxy and subsequently used for policy lookup purposes. - SiteId *string `json:"site_id,omitempty"` + SiteId *string `json:"site_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _DfpCreateOrUpdatePayload DfpCreateOrUpdatePayload + // NewDfpCreateOrUpdatePayload instantiates a new DfpCreateOrUpdatePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -62,38 +61,6 @@ func NewDfpCreateOrUpdatePayloadWithDefaults() *DfpCreateOrUpdatePayload { return &this } -// GetDefaultResolvers returns the DefaultResolvers field value if set, zero value otherwise. -func (o *DfpCreateOrUpdatePayload) GetDefaultResolvers() []string { - if o == nil || IsNil(o.DefaultResolvers) { - var ret []string - return ret - } - return o.DefaultResolvers -} - -// GetDefaultResolversOk returns a tuple with the DefaultResolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdatePayload) GetDefaultResolversOk() ([]string, bool) { - if o == nil || IsNil(o.DefaultResolvers) { - return nil, false - } - return o.DefaultResolvers, true -} - -// HasDefaultResolvers returns a boolean if a field has been set. -func (o *DfpCreateOrUpdatePayload) HasDefaultResolvers() bool { - if o != nil && !IsNil(o.DefaultResolvers) { - return true - } - - return false -} - -// SetDefaultResolvers gets a reference to the given []string and assigns it to the DefaultResolvers field. -func (o *DfpCreateOrUpdatePayload) SetDefaultResolvers(v []string) { - o.DefaultResolvers = v -} - // GetForwardingPolicy returns the ForwardingPolicy field value if set, zero value otherwise. func (o *DfpCreateOrUpdatePayload) GetForwardingPolicy() string { if o == nil || IsNil(o.ForwardingPolicy) { @@ -286,38 +253,6 @@ func (o *DfpCreateOrUpdatePayload) SetPopRegionId(v int32) { o.PopRegionId = &v } -// GetResolvers returns the Resolvers field value if set, zero value otherwise. -func (o *DfpCreateOrUpdatePayload) GetResolvers() []string { - if o == nil || IsNil(o.Resolvers) { - var ret []string - return ret - } - return o.Resolvers -} - -// GetResolversOk returns a tuple with the Resolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdatePayload) GetResolversOk() ([]string, bool) { - if o == nil || IsNil(o.Resolvers) { - return nil, false - } - return o.Resolvers, true -} - -// HasResolvers returns a boolean if a field has been set. -func (o *DfpCreateOrUpdatePayload) HasResolvers() bool { - if o != nil && !IsNil(o.Resolvers) { - return true - } - - return false -} - -// SetResolvers gets a reference to the given []string and assigns it to the Resolvers field. -func (o *DfpCreateOrUpdatePayload) SetResolvers(v []string) { - o.Resolvers = v -} - // GetResolversAll returns the ResolversAll field value if set, zero value otherwise. func (o *DfpCreateOrUpdatePayload) GetResolversAll() []Resolver { if o == nil || IsNil(o.ResolversAll) { @@ -456,9 +391,6 @@ func (o DfpCreateOrUpdatePayload) MarshalJSON() ([]byte, error) { func (o DfpCreateOrUpdatePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DefaultResolvers) { - toSerialize["default_resolvers"] = o.DefaultResolvers - } if !IsNil(o.ForwardingPolicy) { toSerialize["forwarding_policy"] = o.ForwardingPolicy } @@ -477,9 +409,6 @@ func (o DfpCreateOrUpdatePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.PopRegionId) { toSerialize["pop_region_id"] = o.PopRegionId } - if !IsNil(o.Resolvers) { - toSerialize["resolvers"] = o.Resolvers - } if !IsNil(o.ResolversAll) { toSerialize["resolvers_all"] = o.ResolversAll } @@ -492,9 +421,44 @@ func (o DfpCreateOrUpdatePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteId) { toSerialize["site_id"] = o.SiteId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DfpCreateOrUpdatePayload) UnmarshalJSON(data []byte) (err error) { + varDfpCreateOrUpdatePayload := _DfpCreateOrUpdatePayload{} + + err = json.Unmarshal(data, &varDfpCreateOrUpdatePayload) + + if err != nil { + return err + } + + *o = DfpCreateOrUpdatePayload(varDfpCreateOrUpdatePayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "forwarding_policy") + delete(additionalProperties, "host") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_domain_lists") + delete(additionalProperties, "name") + delete(additionalProperties, "pop_region_id") + delete(additionalProperties, "resolvers_all") + delete(additionalProperties, "service_id") + delete(additionalProperties, "service_name") + delete(additionalProperties, "site_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfpCreateOrUpdatePayload struct { value *DfpCreateOrUpdatePayload isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_response.go index 4be45612..f3630e8a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &DfpCreateOrUpdateResponse{} // DfpCreateOrUpdateResponse The DNS Forwarding Proxy update response. type DfpCreateOrUpdateResponse struct { - Results *Dfp `json:"results,omitempty"` + Results *Dfp `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _DfpCreateOrUpdateResponse DfpCreateOrUpdateResponse + // NewDfpCreateOrUpdateResponse instantiates a new DfpCreateOrUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o DfpCreateOrUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DfpCreateOrUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varDfpCreateOrUpdateResponse := _DfpCreateOrUpdateResponse{} + + err = json.Unmarshal(data, &varDfpCreateOrUpdateResponse) + + if err != nil { + return err + } + + *o = DfpCreateOrUpdateResponse(varDfpCreateOrUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfpCreateOrUpdateResponse struct { value *DfpCreateOrUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_host.go index b817c72a..f5097d97 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_host.go @@ -26,9 +26,12 @@ type DfpHost struct { // The On-Prem Host identifier. Ophid *string `json:"ophid,omitempty"` // The DNS Forwarding Proxy site identifier that is appended to DNS queries originating from this DNS Forwarding Proxy and subsequently used for policy lookup purposes. - SiteId *string `json:"site_id,omitempty"` + SiteId *string `json:"site_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _DfpHost DfpHost + // NewDfpHost instantiates a new DfpHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o DfpHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteId) { toSerialize["site_id"] = o.SiteId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DfpHost) UnmarshalJSON(data []byte) (err error) { + varDfpHost := _DfpHost{} + + err = json.Unmarshal(data, &varDfpHost) + + if err != nil { + return err + } + + *o = DfpHost(varDfpHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "legacy_host_id") + delete(additionalProperties, "name") + delete(additionalProperties, "ophid") + delete(additionalProperties, "site_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfpHost struct { value *DfpHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response.go deleted file mode 100644 index fdaab0d9..00000000 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -DFP API - -BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package dfp - -import ( - "encoding/json" -) - -// checks if the DfpListDfp500Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpListDfp500Response{} - -// DfpListDfp500Response struct for DfpListDfp500Response -type DfpListDfp500Response struct { - Error *DfpListDfp500ResponseError `json:"error,omitempty"` -} - -// NewDfpListDfp500Response instantiates a new DfpListDfp500Response object -// This constructor will assign default values to properties that have it defined, -// 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 NewDfpListDfp500Response() *DfpListDfp500Response { - this := DfpListDfp500Response{} - return &this -} - -// NewDfpListDfp500ResponseWithDefaults instantiates a new DfpListDfp500Response object -// This 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 NewDfpListDfp500ResponseWithDefaults() *DfpListDfp500Response { - this := DfpListDfp500Response{} - return &this -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *DfpListDfp500Response) GetError() DfpListDfp500ResponseError { - if o == nil || IsNil(o.Error) { - var ret DfpListDfp500ResponseError - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpListDfp500Response) GetErrorOk() (*DfpListDfp500ResponseError, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *DfpListDfp500Response) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given DfpListDfp500ResponseError and assigns it to the Error field. -func (o *DfpListDfp500Response) SetError(v DfpListDfp500ResponseError) { - o.Error = &v -} - -func (o DfpListDfp500Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DfpListDfp500Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableDfpListDfp500Response struct { - value *DfpListDfp500Response - isSet bool -} - -func (v NullableDfpListDfp500Response) Get() *DfpListDfp500Response { - return v.value -} - -func (v *NullableDfpListDfp500Response) Set(val *DfpListDfp500Response) { - v.value = val - v.isSet = true -} - -func (v NullableDfpListDfp500Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDfpListDfp500Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDfpListDfp500Response(val *DfpListDfp500Response) *NullableDfpListDfp500Response { - return &NullableDfpListDfp500Response{value: val, isSet: true} -} - -func (v NullableDfpListDfp500Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDfpListDfp500Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response_error.go deleted file mode 100644 index 7951d490..00000000 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_dfp_500_response_error.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -DFP API - -BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package dfp - -import ( - "encoding/json" -) - -// checks if the DfpListDfp500ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpListDfp500ResponseError{} - -// DfpListDfp500ResponseError struct for DfpListDfp500ResponseError -type DfpListDfp500ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` -} - -// NewDfpListDfp500ResponseError instantiates a new DfpListDfp500ResponseError object -// This constructor will assign default values to properties that have it defined, -// 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 NewDfpListDfp500ResponseError() *DfpListDfp500ResponseError { - this := DfpListDfp500ResponseError{} - return &this -} - -// NewDfpListDfp500ResponseErrorWithDefaults instantiates a new DfpListDfp500ResponseError object -// This 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 NewDfpListDfp500ResponseErrorWithDefaults() *DfpListDfp500ResponseError { - this := DfpListDfp500ResponseError{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) SetCode(v string) { - o.Code = &v -} - -// GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) SetMessage(v string) { - o.Message = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) 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 *DfpListDfp500ResponseError) SetStatus(v string) { - o.Status = &v -} - -func (o DfpListDfp500ResponseError) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DfpListDfp500ResponseError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Code) { - toSerialize["code"] = o.Code - } - if !IsNil(o.Message) { - toSerialize["message"] = o.Message - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableDfpListDfp500ResponseError struct { - value *DfpListDfp500ResponseError - isSet bool -} - -func (v NullableDfpListDfp500ResponseError) Get() *DfpListDfp500ResponseError { - return v.value -} - -func (v *NullableDfpListDfp500ResponseError) Set(val *DfpListDfp500ResponseError) { - v.value = val - v.isSet = true -} - -func (v NullableDfpListDfp500ResponseError) IsSet() bool { - return v.isSet -} - -func (v *NullableDfpListDfp500ResponseError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDfpListDfp500ResponseError(val *DfpListDfp500ResponseError) *NullableDfpListDfp500ResponseError { - return &NullableDfpListDfp500ResponseError{value: val, isSet: true} -} - -func (v NullableDfpListDfp500ResponseError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDfpListDfp500ResponseError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_response.go index a3d71d1d..97b9ae0d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_list_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &DfpListResponse{} // DfpListResponse The DNS Forwarding Proxy list response. type DfpListResponse struct { // The list of DNS Forwarding Proxy objects. - Results []Dfp `json:"results,omitempty"` + Results []Dfp `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _DfpListResponse DfpListResponse + // NewDfpListResponse instantiates a new DfpListResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o DfpListResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DfpListResponse) UnmarshalJSON(data []byte) (err error) { + varDfpListResponse := _DfpListResponse{} + + err = json.Unmarshal(data, &varDfpListResponse) + + if err != nil { + return err + } + + *o = DfpListResponse(varDfpListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfpListResponse struct { value *DfpListResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response.go deleted file mode 100644 index 77f6485d..00000000 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -DFP API - -BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package dfp - -import ( - "encoding/json" -) - -// checks if the DfpReadDfp404Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpReadDfp404Response{} - -// DfpReadDfp404Response struct for DfpReadDfp404Response -type DfpReadDfp404Response struct { - Error *DfpReadDfp404ResponseError `json:"error,omitempty"` -} - -// NewDfpReadDfp404Response instantiates a new DfpReadDfp404Response object -// This constructor will assign default values to properties that have it defined, -// 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 NewDfpReadDfp404Response() *DfpReadDfp404Response { - this := DfpReadDfp404Response{} - return &this -} - -// NewDfpReadDfp404ResponseWithDefaults instantiates a new DfpReadDfp404Response object -// This 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 NewDfpReadDfp404ResponseWithDefaults() *DfpReadDfp404Response { - this := DfpReadDfp404Response{} - return &this -} - -// GetError returns the Error field value if set, zero value otherwise. -func (o *DfpReadDfp404Response) GetError() DfpReadDfp404ResponseError { - if o == nil || IsNil(o.Error) { - var ret DfpReadDfp404ResponseError - return ret - } - return *o.Error -} - -// GetErrorOk returns a tuple with the Error field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpReadDfp404Response) GetErrorOk() (*DfpReadDfp404ResponseError, bool) { - if o == nil || IsNil(o.Error) { - return nil, false - } - return o.Error, true -} - -// HasError returns a boolean if a field has been set. -func (o *DfpReadDfp404Response) HasError() bool { - if o != nil && !IsNil(o.Error) { - return true - } - - return false -} - -// SetError gets a reference to the given DfpReadDfp404ResponseError and assigns it to the Error field. -func (o *DfpReadDfp404Response) SetError(v DfpReadDfp404ResponseError) { - o.Error = &v -} - -func (o DfpReadDfp404Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DfpReadDfp404Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Error) { - toSerialize["error"] = o.Error - } - return toSerialize, nil -} - -type NullableDfpReadDfp404Response struct { - value *DfpReadDfp404Response - isSet bool -} - -func (v NullableDfpReadDfp404Response) Get() *DfpReadDfp404Response { - return v.value -} - -func (v *NullableDfpReadDfp404Response) Set(val *DfpReadDfp404Response) { - v.value = val - v.isSet = true -} - -func (v NullableDfpReadDfp404Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDfpReadDfp404Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDfpReadDfp404Response(val *DfpReadDfp404Response) *NullableDfpReadDfp404Response { - return &NullableDfpReadDfp404Response{value: val, isSet: true} -} - -func (v NullableDfpReadDfp404Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDfpReadDfp404Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response_error.go deleted file mode 100644 index e30c9f63..00000000 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_dfp_404_response_error.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -DFP API - -BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package dfp - -import ( - "encoding/json" -) - -// checks if the DfpReadDfp404ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpReadDfp404ResponseError{} - -// DfpReadDfp404ResponseError struct for DfpReadDfp404ResponseError -type DfpReadDfp404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` -} - -// NewDfpReadDfp404ResponseError instantiates a new DfpReadDfp404ResponseError object -// This constructor will assign default values to properties that have it defined, -// 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 NewDfpReadDfp404ResponseError() *DfpReadDfp404ResponseError { - this := DfpReadDfp404ResponseError{} - return &this -} - -// NewDfpReadDfp404ResponseErrorWithDefaults instantiates a new DfpReadDfp404ResponseError object -// This 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 NewDfpReadDfp404ResponseErrorWithDefaults() *DfpReadDfp404ResponseError { - this := DfpReadDfp404ResponseError{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) SetCode(v string) { - o.Code = &v -} - -// GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) SetMessage(v string) { - o.Message = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) 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 *DfpReadDfp404ResponseError) SetStatus(v string) { - o.Status = &v -} - -func (o DfpReadDfp404ResponseError) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DfpReadDfp404ResponseError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Code) { - toSerialize["code"] = o.Code - } - if !IsNil(o.Message) { - toSerialize["message"] = o.Message - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableDfpReadDfp404ResponseError struct { - value *DfpReadDfp404ResponseError - isSet bool -} - -func (v NullableDfpReadDfp404ResponseError) Get() *DfpReadDfp404ResponseError { - return v.value -} - -func (v *NullableDfpReadDfp404ResponseError) Set(val *DfpReadDfp404ResponseError) { - v.value = val - v.isSet = true -} - -func (v NullableDfpReadDfp404ResponseError) IsSet() bool { - return v.isSet -} - -func (v *NullableDfpReadDfp404ResponseError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDfpReadDfp404ResponseError(val *DfpReadDfp404ResponseError) *NullableDfpReadDfp404ResponseError { - return &NullableDfpReadDfp404ResponseError{value: val, isSet: true} -} - -func (v NullableDfpReadDfp404ResponseError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDfpReadDfp404ResponseError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_response.go index eef8600b..cf7ee883 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &DfpReadResponse{} // DfpReadResponse The DNS Forwarding Proxy read response. type DfpReadResponse struct { - Results *Dfp `json:"results,omitempty"` + Results *Dfp `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _DfpReadResponse DfpReadResponse + // NewDfpReadResponse instantiates a new DfpReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o DfpReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DfpReadResponse) UnmarshalJSON(data []byte) (err error) { + varDfpReadResponse := _DfpReadResponse{} + + err = json.Unmarshal(data, &varDfpReadResponse) + + if err != nil { + return err + } + + *o = DfpReadResponse(varDfpReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDfpReadResponse struct { value *DfpReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response.go new file mode 100644 index 00000000..2842aa1a --- /dev/null +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response.go @@ -0,0 +1,153 @@ +/* +DFP API + +BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package dfp + +import ( + "encoding/json" +) + +// checks if the InfraServicesCreateOrUpdateDfpService400Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService400Response{} + +// InfraServicesCreateOrUpdateDfpService400Response struct for InfraServicesCreateOrUpdateDfpService400Response +type InfraServicesCreateOrUpdateDfpService400Response struct { + Error *InfraServicesCreateOrUpdateDfpService400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InfraServicesCreateOrUpdateDfpService400Response InfraServicesCreateOrUpdateDfpService400Response + +// NewInfraServicesCreateOrUpdateDfpService400Response instantiates a new InfraServicesCreateOrUpdateDfpService400Response object +// This constructor will assign default values to properties that have it defined, +// 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 NewInfraServicesCreateOrUpdateDfpService400Response() *InfraServicesCreateOrUpdateDfpService400Response { + this := InfraServicesCreateOrUpdateDfpService400Response{} + return &this +} + +// NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400Response object +// This 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 NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService400Response { + this := InfraServicesCreateOrUpdateDfpService400Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService400Response) GetError() InfraServicesCreateOrUpdateDfpService400ResponseError { + if o == nil || IsNil(o.Error) { + var ret InfraServicesCreateOrUpdateDfpService400ResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InfraServicesCreateOrUpdateDfpService400Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService400ResponseError, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *InfraServicesCreateOrUpdateDfpService400Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given InfraServicesCreateOrUpdateDfpService400ResponseError and assigns it to the Error field. +func (o *InfraServicesCreateOrUpdateDfpService400Response) SetError(v InfraServicesCreateOrUpdateDfpService400ResponseError) { + o.Error = &v +} + +func (o InfraServicesCreateOrUpdateDfpService400Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfraServicesCreateOrUpdateDfpService400Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfraServicesCreateOrUpdateDfpService400Response) UnmarshalJSON(data []byte) (err error) { + varInfraServicesCreateOrUpdateDfpService400Response := _InfraServicesCreateOrUpdateDfpService400Response{} + + err = json.Unmarshal(data, &varInfraServicesCreateOrUpdateDfpService400Response) + + if err != nil { + return err + } + + *o = InfraServicesCreateOrUpdateDfpService400Response(varInfraServicesCreateOrUpdateDfpService400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesCreateOrUpdateDfpService400Response struct { + value *InfraServicesCreateOrUpdateDfpService400Response + isSet bool +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) Get() *InfraServicesCreateOrUpdateDfpService400Response { + return v.value +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) Set(val *InfraServicesCreateOrUpdateDfpService400Response) { + v.value = val + v.isSet = true +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfraServicesCreateOrUpdateDfpService400Response(val *InfraServicesCreateOrUpdateDfpService400Response) *NullableInfraServicesCreateOrUpdateDfpService400Response { + return &NullableInfraServicesCreateOrUpdateDfpService400Response{value: val, isSet: true} +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go new file mode 100644 index 00000000..be4f50a5 --- /dev/null +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go @@ -0,0 +1,227 @@ +/* +DFP API + +BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package dfp + +import ( + "encoding/json" +) + +// checks if the InfraServicesCreateOrUpdateDfpService400ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService400ResponseError{} + +// InfraServicesCreateOrUpdateDfpService400ResponseError struct for InfraServicesCreateOrUpdateDfpService400ResponseError +type InfraServicesCreateOrUpdateDfpService400ResponseError struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InfraServicesCreateOrUpdateDfpService400ResponseError InfraServicesCreateOrUpdateDfpService400ResponseError + +// NewInfraServicesCreateOrUpdateDfpService400ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object +// This constructor will assign default values to properties that have it defined, +// 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 NewInfraServicesCreateOrUpdateDfpService400ResponseError() *InfraServicesCreateOrUpdateDfpService400ResponseError { + this := InfraServicesCreateOrUpdateDfpService400ResponseError{} + return &this +} + +// NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object +// This 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 NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService400ResponseError { + this := InfraServicesCreateOrUpdateDfpService400ResponseError{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) SetCode(v string) { + o.Code = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *InfraServicesCreateOrUpdateDfpService400ResponseError) SetStatus(v string) { + o.Status = &v +} + +func (o InfraServicesCreateOrUpdateDfpService400ResponseError) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfraServicesCreateOrUpdateDfpService400ResponseError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInfraServicesCreateOrUpdateDfpService400ResponseError := _InfraServicesCreateOrUpdateDfpService400ResponseError{} + + err = json.Unmarshal(data, &varInfraServicesCreateOrUpdateDfpService400ResponseError) + + if err != nil { + return err + } + + *o = InfraServicesCreateOrUpdateDfpService400ResponseError(varInfraServicesCreateOrUpdateDfpService400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesCreateOrUpdateDfpService400ResponseError struct { + value *InfraServicesCreateOrUpdateDfpService400ResponseError + isSet bool +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Get() *InfraServicesCreateOrUpdateDfpService400ResponseError { + return v.value +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Set(val *InfraServicesCreateOrUpdateDfpService400ResponseError) { + v.value = val + v.isSet = true +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfraServicesCreateOrUpdateDfpService400ResponseError(val *InfraServicesCreateOrUpdateDfpService400ResponseError) *NullableInfraServicesCreateOrUpdateDfpService400ResponseError { + return &NullableInfraServicesCreateOrUpdateDfpService400ResponseError{value: val, isSet: true} +} + +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response.go new file mode 100644 index 00000000..709bd78c --- /dev/null +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response.go @@ -0,0 +1,153 @@ +/* +DFP API + +BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package dfp + +import ( + "encoding/json" +) + +// checks if the InfraServicesCreateOrUpdateDfpService404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService404Response{} + +// InfraServicesCreateOrUpdateDfpService404Response struct for InfraServicesCreateOrUpdateDfpService404Response +type InfraServicesCreateOrUpdateDfpService404Response struct { + Error *InfraServicesCreateOrUpdateDfpService404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InfraServicesCreateOrUpdateDfpService404Response InfraServicesCreateOrUpdateDfpService404Response + +// NewInfraServicesCreateOrUpdateDfpService404Response instantiates a new InfraServicesCreateOrUpdateDfpService404Response object +// This constructor will assign default values to properties that have it defined, +// 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 NewInfraServicesCreateOrUpdateDfpService404Response() *InfraServicesCreateOrUpdateDfpService404Response { + this := InfraServicesCreateOrUpdateDfpService404Response{} + return &this +} + +// NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404Response object +// This 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 NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService404Response { + this := InfraServicesCreateOrUpdateDfpService404Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService404Response) GetError() InfraServicesCreateOrUpdateDfpService404ResponseError { + if o == nil || IsNil(o.Error) { + var ret InfraServicesCreateOrUpdateDfpService404ResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InfraServicesCreateOrUpdateDfpService404Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService404ResponseError, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *InfraServicesCreateOrUpdateDfpService404Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given InfraServicesCreateOrUpdateDfpService404ResponseError and assigns it to the Error field. +func (o *InfraServicesCreateOrUpdateDfpService404Response) SetError(v InfraServicesCreateOrUpdateDfpService404ResponseError) { + o.Error = &v +} + +func (o InfraServicesCreateOrUpdateDfpService404Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfraServicesCreateOrUpdateDfpService404Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfraServicesCreateOrUpdateDfpService404Response) UnmarshalJSON(data []byte) (err error) { + varInfraServicesCreateOrUpdateDfpService404Response := _InfraServicesCreateOrUpdateDfpService404Response{} + + err = json.Unmarshal(data, &varInfraServicesCreateOrUpdateDfpService404Response) + + if err != nil { + return err + } + + *o = InfraServicesCreateOrUpdateDfpService404Response(varInfraServicesCreateOrUpdateDfpService404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesCreateOrUpdateDfpService404Response struct { + value *InfraServicesCreateOrUpdateDfpService404Response + isSet bool +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) Get() *InfraServicesCreateOrUpdateDfpService404Response { + return v.value +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) Set(val *InfraServicesCreateOrUpdateDfpService404Response) { + v.value = val + v.isSet = true +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfraServicesCreateOrUpdateDfpService404Response(val *InfraServicesCreateOrUpdateDfpService404Response) *NullableInfraServicesCreateOrUpdateDfpService404Response { + return &NullableInfraServicesCreateOrUpdateDfpService404Response{value: val, isSet: true} +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go new file mode 100644 index 00000000..17779f1f --- /dev/null +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go @@ -0,0 +1,227 @@ +/* +DFP API + +BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package dfp + +import ( + "encoding/json" +) + +// checks if the InfraServicesCreateOrUpdateDfpService404ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService404ResponseError{} + +// InfraServicesCreateOrUpdateDfpService404ResponseError struct for InfraServicesCreateOrUpdateDfpService404ResponseError +type InfraServicesCreateOrUpdateDfpService404ResponseError struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InfraServicesCreateOrUpdateDfpService404ResponseError InfraServicesCreateOrUpdateDfpService404ResponseError + +// NewInfraServicesCreateOrUpdateDfpService404ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object +// This constructor will assign default values to properties that have it defined, +// 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 NewInfraServicesCreateOrUpdateDfpService404ResponseError() *InfraServicesCreateOrUpdateDfpService404ResponseError { + this := InfraServicesCreateOrUpdateDfpService404ResponseError{} + return &this +} + +// NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object +// This 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 NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService404ResponseError { + this := InfraServicesCreateOrUpdateDfpService404ResponseError{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) SetCode(v string) { + o.Code = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *InfraServicesCreateOrUpdateDfpService404ResponseError) SetStatus(v string) { + o.Status = &v +} + +func (o InfraServicesCreateOrUpdateDfpService404ResponseError) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfraServicesCreateOrUpdateDfpService404ResponseError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) UnmarshalJSON(data []byte) (err error) { + varInfraServicesCreateOrUpdateDfpService404ResponseError := _InfraServicesCreateOrUpdateDfpService404ResponseError{} + + err = json.Unmarshal(data, &varInfraServicesCreateOrUpdateDfpService404ResponseError) + + if err != nil { + return err + } + + *o = InfraServicesCreateOrUpdateDfpService404ResponseError(varInfraServicesCreateOrUpdateDfpService404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesCreateOrUpdateDfpService404ResponseError struct { + value *InfraServicesCreateOrUpdateDfpService404ResponseError + isSet bool +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Get() *InfraServicesCreateOrUpdateDfpService404ResponseError { + return v.value +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Set(val *InfraServicesCreateOrUpdateDfpService404ResponseError) { + v.value = val + v.isSet = true +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfraServicesCreateOrUpdateDfpService404ResponseError(val *InfraServicesCreateOrUpdateDfpService404ResponseError) *NullableInfraServicesCreateOrUpdateDfpService404ResponseError { + return &NullableInfraServicesCreateOrUpdateDfpService404ResponseError{value: val, isSet: true} +} + +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response.go new file mode 100644 index 00000000..f1482c3e --- /dev/null +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response.go @@ -0,0 +1,153 @@ +/* +DFP API + +BloxOne Cloud is a SaaS offering designed to provide protection to devices on and off-premises, including roaming, remote, and branch offices. It provides visibility into infected and compromised devices, prevents DNS-based data exfiltration, and automatically stops device communications with command-and-control servers (C&Cs) and botnets, in addition to providing recursive DNS services in the cloud. You can access the services by deploying the BloxOne Endpoint agent or the DNS forwarding proxy. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. By implementing the DNS forwarding proxy, you can rest assured that BloxOne Cloud effectively enforces DNS client-based security policies at your remote sites. On-premises devices that send DNS queries reveal their actual client IP addresses (instead of their NAT IP address), which allows BloxOne Cloud to apply the security policies applicable to the respective endpoints and identify infected clients. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package dfp + +import ( + "encoding/json" +) + +// checks if the InfraServicesListDfpServices500Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesListDfpServices500Response{} + +// InfraServicesListDfpServices500Response struct for InfraServicesListDfpServices500Response +type InfraServicesListDfpServices500Response struct { + Error *InfraServicesListDfpServices500ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InfraServicesListDfpServices500Response InfraServicesListDfpServices500Response + +// NewInfraServicesListDfpServices500Response instantiates a new InfraServicesListDfpServices500Response object +// This constructor will assign default values to properties that have it defined, +// 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 NewInfraServicesListDfpServices500Response() *InfraServicesListDfpServices500Response { + this := InfraServicesListDfpServices500Response{} + return &this +} + +// NewInfraServicesListDfpServices500ResponseWithDefaults instantiates a new InfraServicesListDfpServices500Response object +// This 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 NewInfraServicesListDfpServices500ResponseWithDefaults() *InfraServicesListDfpServices500Response { + this := InfraServicesListDfpServices500Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *InfraServicesListDfpServices500Response) GetError() InfraServicesListDfpServices500ResponseError { + if o == nil || IsNil(o.Error) { + var ret InfraServicesListDfpServices500ResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InfraServicesListDfpServices500Response) GetErrorOk() (*InfraServicesListDfpServices500ResponseError, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *InfraServicesListDfpServices500Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given InfraServicesListDfpServices500ResponseError and assigns it to the Error field. +func (o *InfraServicesListDfpServices500Response) SetError(v InfraServicesListDfpServices500ResponseError) { + o.Error = &v +} + +func (o InfraServicesListDfpServices500Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfraServicesListDfpServices500Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfraServicesListDfpServices500Response) UnmarshalJSON(data []byte) (err error) { + varInfraServicesListDfpServices500Response := _InfraServicesListDfpServices500Response{} + + err = json.Unmarshal(data, &varInfraServicesListDfpServices500Response) + + if err != nil { + return err + } + + *o = InfraServicesListDfpServices500Response(varInfraServicesListDfpServices500Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesListDfpServices500Response struct { + value *InfraServicesListDfpServices500Response + isSet bool +} + +func (v NullableInfraServicesListDfpServices500Response) Get() *InfraServicesListDfpServices500Response { + return v.value +} + +func (v *NullableInfraServicesListDfpServices500Response) Set(val *InfraServicesListDfpServices500Response) { + v.value = val + v.isSet = true +} + +func (v NullableInfraServicesListDfpServices500Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInfraServicesListDfpServices500Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfraServicesListDfpServices500Response(val *InfraServicesListDfpServices500Response) *NullableInfraServicesListDfpServices500Response { + return &NullableInfraServicesListDfpServices500Response{value: val, isSet: true} +} + +func (v NullableInfraServicesListDfpServices500Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfraServicesListDfpServices500Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response_error.go similarity index 53% rename from vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response_error.go rename to vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response_error.go index f9c08822..7437dcb7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_dfp_create_or_update_dfp_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_infra_services_list_dfp_services_500_response_error.go @@ -14,35 +14,38 @@ import ( "encoding/json" ) -// checks if the DfpCreateOrUpdateDfp400ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpCreateOrUpdateDfp400ResponseError{} +// checks if the InfraServicesListDfpServices500ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesListDfpServices500ResponseError{} -// DfpCreateOrUpdateDfp400ResponseError struct for DfpCreateOrUpdateDfp400ResponseError -type DfpCreateOrUpdateDfp400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` +// InfraServicesListDfpServices500ResponseError struct for InfraServicesListDfpServices500ResponseError +type InfraServicesListDfpServices500ResponseError struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } -// NewDfpCreateOrUpdateDfp400ResponseError instantiates a new DfpCreateOrUpdateDfp400ResponseError object +type _InfraServicesListDfpServices500ResponseError InfraServicesListDfpServices500ResponseError + +// NewInfraServicesListDfpServices500ResponseError instantiates a new InfraServicesListDfpServices500ResponseError object // This constructor will assign default values to properties that have it defined, // 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 NewDfpCreateOrUpdateDfp400ResponseError() *DfpCreateOrUpdateDfp400ResponseError { - this := DfpCreateOrUpdateDfp400ResponseError{} +func NewInfraServicesListDfpServices500ResponseError() *InfraServicesListDfpServices500ResponseError { + this := InfraServicesListDfpServices500ResponseError{} return &this } -// NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults instantiates a new DfpCreateOrUpdateDfp400ResponseError object +// NewInfraServicesListDfpServices500ResponseErrorWithDefaults instantiates a new InfraServicesListDfpServices500ResponseError object // This 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 NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults() *DfpCreateOrUpdateDfp400ResponseError { - this := DfpCreateOrUpdateDfp400ResponseError{} +func NewInfraServicesListDfpServices500ResponseErrorWithDefaults() *InfraServicesListDfpServices500ResponseError { + this := InfraServicesListDfpServices500ResponseError{} return &this } // GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetCode() string { +func (o *InfraServicesListDfpServices500ResponseError) GetCode() string { if o == nil || IsNil(o.Code) { var ret string return ret @@ -52,7 +55,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetCode() string { // 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 *DfpCreateOrUpdateDfp400ResponseError) GetCodeOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetCodeOk() (*string, bool) { if o == nil || IsNil(o.Code) { return nil, false } @@ -60,7 +63,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasCode() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasCode() bool { if o != nil && !IsNil(o.Code) { return true } @@ -69,12 +72,12 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetCode(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetCode(v string) { o.Code = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessage() string { +func (o *InfraServicesListDfpServices500ResponseError) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -84,7 +87,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessage() string { // 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 *DfpCreateOrUpdateDfp400ResponseError) GetMessageOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -92,7 +95,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasMessage() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -101,12 +104,12 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetMessage(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetMessage(v string) { o.Message = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatus() string { +func (o *InfraServicesListDfpServices500ResponseError) GetStatus() string { if o == nil || IsNil(o.Status) { var ret string return ret @@ -116,7 +119,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatus() string { // 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 *DfpCreateOrUpdateDfp400ResponseError) GetStatusOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetStatusOk() (*string, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -124,7 +127,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatusOk() (*string, bool) { } // HasStatus returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasStatus() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasStatus() bool { if o != nil && !IsNil(o.Status) { return true } @@ -133,11 +136,11 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasStatus() bool { } // SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetStatus(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetStatus(v string) { o.Status = &v } -func (o DfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { +func (o InfraServicesListDfpServices500ResponseError) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -145,7 +148,7 @@ func (o DfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpCreateOrUpdateDfp400ResponseError) ToMap() (map[string]interface{}, error) { +func (o InfraServicesListDfpServices500ResponseError) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Code) { toSerialize["code"] = o.Code @@ -156,41 +159,69 @@ func (o DfpCreateOrUpdateDfp400ResponseError) ToMap() (map[string]interface{}, e if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } -type NullableDfpCreateOrUpdateDfp400ResponseError struct { - value *DfpCreateOrUpdateDfp400ResponseError +func (o *InfraServicesListDfpServices500ResponseError) UnmarshalJSON(data []byte) (err error) { + varInfraServicesListDfpServices500ResponseError := _InfraServicesListDfpServices500ResponseError{} + + err = json.Unmarshal(data, &varInfraServicesListDfpServices500ResponseError) + + if err != nil { + return err + } + + *o = InfraServicesListDfpServices500ResponseError(varInfraServicesListDfpServices500ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfraServicesListDfpServices500ResponseError struct { + value *InfraServicesListDfpServices500ResponseError isSet bool } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) Get() *DfpCreateOrUpdateDfp400ResponseError { +func (v NullableInfraServicesListDfpServices500ResponseError) Get() *InfraServicesListDfpServices500ResponseError { return v.value } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) Set(val *DfpCreateOrUpdateDfp400ResponseError) { +func (v *NullableInfraServicesListDfpServices500ResponseError) Set(val *InfraServicesListDfpServices500ResponseError) { v.value = val v.isSet = true } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) IsSet() bool { +func (v NullableInfraServicesListDfpServices500ResponseError) IsSet() bool { return v.isSet } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) Unset() { +func (v *NullableInfraServicesListDfpServices500ResponseError) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpCreateOrUpdateDfp400ResponseError(val *DfpCreateOrUpdateDfp400ResponseError) *NullableDfpCreateOrUpdateDfp400ResponseError { - return &NullableDfpCreateOrUpdateDfp400ResponseError{value: val, isSet: true} +func NewNullableInfraServicesListDfpServices500ResponseError(val *InfraServicesListDfpServices500ResponseError) *NullableInfraServicesListDfpServices500ResponseError { + return &NullableInfraServicesListDfpServices500ResponseError{value: val, isSet: true} } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesListDfpServices500ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesListDfpServices500ResponseError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_net_addr_policy_assignment.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_net_addr_policy_assignment.go index 145c29fb..032a26a2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_net_addr_policy_assignment.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_net_addr_policy_assignment.go @@ -22,9 +22,12 @@ type NetAddrPolicyAssignment struct { // network address in IPv4 CIDR (address/bitmask length) string format AddrNet *string `json:"addr_net,omitempty"` // Identifier of the security policy associated with this address block - PolicyId *int32 `json:"policy_id,omitempty"` + PolicyId *int32 `json:"policy_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetAddrPolicyAssignment NetAddrPolicyAssignment + // NewNetAddrPolicyAssignment instantiates a new NetAddrPolicyAssignment object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o NetAddrPolicyAssignment) ToMap() (map[string]interface{}, error) { if !IsNil(o.PolicyId) { toSerialize["policy_id"] = o.PolicyId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetAddrPolicyAssignment) UnmarshalJSON(data []byte) (err error) { + varNetAddrPolicyAssignment := _NetAddrPolicyAssignment{} + + err = json.Unmarshal(data, &varNetAddrPolicyAssignment) + + if err != nil { + return err + } + + *o = NetAddrPolicyAssignment(varNetAddrPolicyAssignment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "addr_net") + delete(additionalProperties, "policy_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetAddrPolicyAssignment struct { value *NetAddrPolicyAssignment isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_resolver.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_resolver.go index 8920c2f4..3c09fbf6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_resolver.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_resolver.go @@ -26,9 +26,12 @@ type Resolver struct { // Mark it true to set internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers IsLocal *bool `json:"is_local,omitempty"` // The list of DNS resolver communication protocols. - Protocols []DNSProtocol `json:"protocols,omitempty"` + Protocols []DNSProtocol `json:"protocols,omitempty"` + AdditionalProperties map[string]interface{} } +type _Resolver Resolver + // NewResolver instantiates a new Resolver object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o Resolver) ToMap() (map[string]interface{}, error) { if !IsNil(o.Protocols) { toSerialize["protocols"] = o.Protocols } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Resolver) UnmarshalJSON(data []byte) (err error) { + varResolver := _Resolver{} + + err = json.Unmarshal(data, &varResolver) + + if err != nil { + return err + } + + *o = Resolver(varResolver) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "is_fallback") + delete(additionalProperties, "is_local") + delete(additionalProperties, "protocols") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableResolver struct { value *Resolver isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_request.go index 154f1fff..7497c061 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_request.go @@ -22,9 +22,12 @@ type TypesConfigCheckRequest struct { AccountId *int32 `json:"account_id,omitempty"` ConfigCheckType *string `json:"config_check_type,omitempty"` // Caller sets to false if wants to suppress notification. - Notify *bool `json:"notify,omitempty"` + Notify *bool `json:"notify,omitempty"` + AdditionalProperties map[string]interface{} } +type _TypesConfigCheckRequest TypesConfigCheckRequest + // NewTypesConfigCheckRequest instantiates a new TypesConfigCheckRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -157,9 +160,37 @@ func (o TypesConfigCheckRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Notify) { toSerialize["notify"] = o.Notify } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TypesConfigCheckRequest) UnmarshalJSON(data []byte) (err error) { + varTypesConfigCheckRequest := _TypesConfigCheckRequest{} + + err = json.Unmarshal(data, &varTypesConfigCheckRequest) + + if err != nil { + return err + } + + *o = TypesConfigCheckRequest(varTypesConfigCheckRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "account_id") + delete(additionalProperties, "config_check_type") + delete(additionalProperties, "notify") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTypesConfigCheckRequest struct { value *TypesConfigCheckRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_response.go index 6bc4fcfe..01627e32 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &TypesConfigCheckResponse{} // TypesConfigCheckResponse The Config Check response. type TypesConfigCheckResponse struct { // The list of check result. - Results []TypesConfigCheckResult `json:"results,omitempty"` + Results []TypesConfigCheckResult `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _TypesConfigCheckResponse TypesConfigCheckResponse + // NewTypesConfigCheckResponse instantiates a new TypesConfigCheckResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o TypesConfigCheckResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TypesConfigCheckResponse) UnmarshalJSON(data []byte) (err error) { + varTypesConfigCheckResponse := _TypesConfigCheckResponse{} + + err = json.Unmarshal(data, &varTypesConfigCheckResponse) + + if err != nil { + return err + } + + *o = TypesConfigCheckResponse(varTypesConfigCheckResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTypesConfigCheckResponse struct { value *TypesConfigCheckResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_result.go b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_result.go index 128306ba..1e03c829 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_result.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dfp/model_types_config_check_result.go @@ -26,9 +26,12 @@ type TypesConfigCheckResult struct { // URI of the resource that was checked. ResourceUri *string `json:"resource_uri,omitempty"` // The check result. - ResultCode *string `json:"result_code,omitempty"` + ResultCode *string `json:"result_code,omitempty"` + AdditionalProperties map[string]interface{} } +type _TypesConfigCheckResult TypesConfigCheckResult + // NewTypesConfigCheckResult instantiates a new TypesConfigCheckResult object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o TypesConfigCheckResult) ToMap() (map[string]interface{}, error) { if !IsNil(o.ResultCode) { toSerialize["result_code"] = o.ResultCode } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TypesConfigCheckResult) UnmarshalJSON(data []byte) (err error) { + varTypesConfigCheckResult := _TypesConfigCheckResult{} + + err = json.Unmarshal(data, &varTypesConfigCheckResult) + + if err != nil { + return err + } + + *o = TypesConfigCheckResult(varTypesConfigCheckResult) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "additional_info") + delete(additionalProperties, "config_check_type") + delete(additionalProperties, "resource_uri") + delete(additionalProperties, "result_code") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTypesConfigCheckResult struct { value *TypesConfigCheckResult isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl.go index db848c81..5ea760ef 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -30,7 +29,8 @@ type ACL struct { // ACL object name. Name string `json:"name"` // Tagging specifics. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} } type _ACL ACL @@ -228,6 +228,11 @@ func (o ACL) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -255,9 +260,7 @@ func (o *ACL) UnmarshalJSON(data []byte) (err error) { varACL := _ACL{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varACL) + err = json.Unmarshal(data, &varACL) if err != nil { return err @@ -265,6 +268,17 @@ func (o *ACL) UnmarshalJSON(data []byte) (err error) { *o = ACL(varACL) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "id") + delete(additionalProperties, "list") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl_item.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl_item.go index 8dd91bee..64d14ea1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl_item.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_acl_item.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -28,8 +27,9 @@ type ACLItem struct { // Optional. Data for _ip_ _element_. Must be empty if _element_ is not _ip_. Address *string `json:"address,omitempty"` // Type of element. Allowed values: * _any_, * _ip_, * _acl_, * _tsig_key_. - Element string `json:"element"` - TsigKey *TSIGKey `json:"tsig_key,omitempty"` + Element string `json:"element"` + TsigKey *TSIGKey `json:"tsig_key,omitempty"` + AdditionalProperties map[string]interface{} } type _ACLItem ACLItem @@ -218,6 +218,11 @@ func (o ACLItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.TsigKey) { toSerialize["tsig_key"] = o.TsigKey } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -246,9 +251,7 @@ func (o *ACLItem) UnmarshalJSON(data []byte) (err error) { varACLItem := _ACLItem{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varACLItem) + err = json.Unmarshal(data, &varACLItem) if err != nil { return err @@ -256,6 +259,17 @@ func (o *ACLItem) UnmarshalJSON(data []byte) (err error) { *o = ACLItem(varACLItem) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access") + delete(additionalProperties, "acl") + delete(additionalProperties, "address") + delete(additionalProperties, "element") + delete(additionalProperties, "tsig_key") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_nsg.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_nsg.go index b25e627e..05396175 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_nsg.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_nsg.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -36,7 +35,8 @@ type AuthNSG struct { // The resource identifier. Nsgs []string `json:"nsgs,omitempty"` // Tagging specifics. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} } type _AuthNSG AuthNSG @@ -339,6 +339,11 @@ func (o AuthNSG) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -366,9 +371,7 @@ func (o *AuthNSG) UnmarshalJSON(data []byte) (err error) { varAuthNSG := _AuthNSG{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAuthNSG) + err = json.Unmarshal(data, &varAuthNSG) if err != nil { return err @@ -376,6 +379,20 @@ func (o *AuthNSG) UnmarshalJSON(data []byte) (err error) { *o = AuthNSG(varAuthNSG) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "external_primaries") + delete(additionalProperties, "external_secondaries") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_secondaries") + delete(additionalProperties, "name") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone.go index cfb7b94e..d55342cb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone.go @@ -74,10 +74,13 @@ type AuthZone struct { // The resource identifier. View *string `json:"view,omitempty"` // The list of an auth zone warnings. - Warnings []Warning `json:"warnings,omitempty"` - ZoneAuthority *ZoneAuthority `json:"zone_authority,omitempty"` + Warnings []Warning `json:"warnings,omitempty"` + ZoneAuthority *ZoneAuthority `json:"zone_authority,omitempty"` + AdditionalProperties map[string]interface{} } +type _AuthZone AuthZone + // NewAuthZone instantiates a new AuthZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1120,9 +1123,63 @@ func (o AuthZone) ToMap() (map[string]interface{}, error) { if !IsNil(o.ZoneAuthority) { toSerialize["zone_authority"] = o.ZoneAuthority } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AuthZone) UnmarshalJSON(data []byte) (err error) { + varAuthZone := _AuthZone{} + + err = json.Unmarshal(data, &varAuthZone) + + if err != nil { + return err + } + + *o = AuthZone(varAuthZone) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "disabled") + delete(additionalProperties, "external_primaries") + delete(additionalProperties, "external_providers") + delete(additionalProperties, "external_secondaries") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_assigned_hosts") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "initial_soa_serial") + delete(additionalProperties, "internal_secondaries") + delete(additionalProperties, "mapped_subnet") + delete(additionalProperties, "mapping") + delete(additionalProperties, "notify") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "parent") + delete(additionalProperties, "primary_type") + delete(additionalProperties, "protocol_fqdn") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "tags") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "view") + delete(additionalProperties, "warnings") + delete(additionalProperties, "zone_authority") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAuthZone struct { value *AuthZone isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_config.go index 93dc51a0..85718b18 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_config.go @@ -26,9 +26,12 @@ type AuthZoneConfig struct { // Optional. BloxOne DDI hosts acting as internal secondaries. Order is not significant. InternalSecondaries []InternalSecondary `json:"internal_secondaries,omitempty"` // The resource identifier. - Nsgs []string `json:"nsgs,omitempty"` + Nsgs []string `json:"nsgs,omitempty"` + AdditionalProperties map[string]interface{} } +type _AuthZoneConfig AuthZoneConfig + // NewAuthZoneConfig instantiates a new AuthZoneConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o AuthZoneConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Nsgs) { toSerialize["nsgs"] = o.Nsgs } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AuthZoneConfig) UnmarshalJSON(data []byte) (err error) { + varAuthZoneConfig := _AuthZoneConfig{} + + err = json.Unmarshal(data, &varAuthZoneConfig) + + if err != nil { + return err + } + + *o = AuthZoneConfig(varAuthZoneConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "external_primaries") + delete(additionalProperties, "external_secondaries") + delete(additionalProperties, "internal_secondaries") + delete(additionalProperties, "nsgs") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAuthZoneConfig struct { value *AuthZoneConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_external_provider.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_external_provider.go index 71a4c917..b0d359e1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_external_provider.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_external_provider.go @@ -24,9 +24,12 @@ type AuthZoneExternalProvider struct { // The name of the external provider. Name *string `json:"name,omitempty"` // Defines the type of external provider. Allowed values: * _bloxone_ddi_: host type is BloxOne DDI, * _microsoft_azure_: host type is Microsoft Azure, * _amazon_web_service_: host type is Amazon Web Services, * _microsoft_active_directory_: host type is Microsoft Active Directory, * _google_cloud_platform_: host type is Google Cloud Platform. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _AuthZoneExternalProvider AuthZoneExternalProvider + // NewAuthZoneExternalProvider instantiates a new AuthZoneExternalProvider object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o AuthZoneExternalProvider) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AuthZoneExternalProvider) UnmarshalJSON(data []byte) (err error) { + varAuthZoneExternalProvider := _AuthZoneExternalProvider{} + + err = json.Unmarshal(data, &varAuthZoneExternalProvider) + + if err != nil { + return err + } + + *o = AuthZoneExternalProvider(varAuthZoneExternalProvider) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAuthZoneExternalProvider struct { value *AuthZoneExternalProvider isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_inheritance.go index f8d95dc5..d4394675 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_auth_zone_inheritance.go @@ -26,8 +26,11 @@ type AuthZoneInheritance struct { UpdateAcl *InheritedACLItems `json:"update_acl,omitempty"` UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` ZoneAuthority *InheritedZoneAuthority `json:"zone_authority,omitempty"` + AdditionalProperties map[string]interface{} } +type _AuthZoneInheritance AuthZoneInheritance + // NewAuthZoneInheritance instantiates a new AuthZoneInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -300,9 +303,41 @@ func (o AuthZoneInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.ZoneAuthority) { toSerialize["zone_authority"] = o.ZoneAuthority } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AuthZoneInheritance) UnmarshalJSON(data []byte) (err error) { + varAuthZoneInheritance := _AuthZoneInheritance{} + + err = json.Unmarshal(data, &varAuthZoneInheritance) + + if err != nil { + return err + } + + *o = AuthZoneInheritance(varAuthZoneInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "zone_authority") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAuthZoneInheritance struct { value *AuthZoneInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_error.go index b0e33608..3e7edb01 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_error.go @@ -24,9 +24,12 @@ type BulkCopyError struct { // The resource identifier. Id *string `json:"id,omitempty"` // The reason why the copy failed. - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} } +type _BulkCopyError BulkCopyError + // NewBulkCopyError instantiates a new BulkCopyError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o BulkCopyError) ToMap() (map[string]interface{}, error) { if !IsNil(o.Message) { toSerialize["message"] = o.Message } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BulkCopyError) UnmarshalJSON(data []byte) (err error) { + varBulkCopyError := _BulkCopyError{} + + err = json.Unmarshal(data, &varBulkCopyError) + + if err != nil { + return err + } + + *o = BulkCopyError(varBulkCopyError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBulkCopyError struct { value *BulkCopyError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_response.go index e8bc2121..517743a1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &BulkCopyResponse{} // BulkCopyResponse struct for BulkCopyResponse type BulkCopyResponse struct { - Errors []BulkCopyError `json:"errors,omitempty"` - Results []CopyResponse `json:"results,omitempty"` + Errors []BulkCopyError `json:"errors,omitempty"` + Results []CopyResponse `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _BulkCopyResponse BulkCopyResponse + // NewBulkCopyResponse instantiates a new BulkCopyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o BulkCopyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BulkCopyResponse) UnmarshalJSON(data []byte) (err error) { + varBulkCopyResponse := _BulkCopyResponse{} + + err = json.Unmarshal(data, &varBulkCopyResponse) + + if err != nil { + return err + } + + *o = BulkCopyResponse(varBulkCopyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errors") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBulkCopyResponse struct { value *BulkCopyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_view.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_view.go index 3d731936..8a17578a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_view.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_bulk_copy_view.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -31,7 +30,8 @@ type BulkCopyView struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - Target string `json:"target"` + Target string `json:"target"` + AdditionalProperties map[string]interface{} } type _BulkCopyView BulkCopyView @@ -290,6 +290,11 @@ func (o BulkCopyView) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["target"] = o.Target + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -318,9 +323,7 @@ func (o *BulkCopyView) UnmarshalJSON(data []byte) (err error) { varBulkCopyView := _BulkCopyView{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBulkCopyView) + err = json.Unmarshal(data, &varBulkCopyView) if err != nil { return err @@ -328,6 +331,19 @@ func (o *BulkCopyView) UnmarshalJSON(data []byte) (err error) { *o = BulkCopyView(varBulkCopyView) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "auth_zone_config") + delete(additionalProperties, "forward_zone_config") + delete(additionalProperties, "recursive") + delete(additionalProperties, "resources") + delete(additionalProperties, "secondary_zone_config") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "target") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_cache_flush.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_cache_flush.go index 33e95450..a27b22d4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_cache_flush.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_cache_flush.go @@ -30,9 +30,12 @@ type CacheFlush struct { // Optional. The time in seconds the command is valid for. Command is executed on the onprem host only if it takes less than this time for the command to be transmitted to the host. Otherwise the onprem host discards this command. Defaults to 120 (2 min). Ttl *int64 `json:"ttl,omitempty"` // Optional, If provided, flushes the server's cache for a view. - ViewName *string `json:"view_name,omitempty"` + ViewName *string `json:"view_name,omitempty"` + AdditionalProperties map[string]interface{} } +type _CacheFlush CacheFlush + // NewCacheFlush instantiates a new CacheFlush object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -270,9 +273,40 @@ func (o CacheFlush) ToMap() (map[string]interface{}, error) { if !IsNil(o.ViewName) { toSerialize["view_name"] = o.ViewName } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CacheFlush) UnmarshalJSON(data []byte) (err error) { + varCacheFlush := _CacheFlush{} + + err = json.Unmarshal(data, &varCacheFlush) + + if err != nil { + return err + } + + *o = CacheFlush(varCacheFlush) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "flush_subdomains") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "ophid") + delete(additionalProperties, "service_id") + delete(additionalProperties, "ttl") + delete(additionalProperties, "view_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCacheFlush struct { value *CacheFlush isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name.go index b12c0b25..c6b99ba3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name.go @@ -22,9 +22,12 @@ type ConvertDomainName struct { // IDN domain name representation. Idn *string `json:"idn,omitempty"` // punycode domain name representation. - Punycode *string `json:"punycode,omitempty"` + Punycode *string `json:"punycode,omitempty"` + AdditionalProperties map[string]interface{} } +type _ConvertDomainName ConvertDomainName + // NewConvertDomainName instantiates a new ConvertDomainName object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o ConvertDomainName) ToMap() (map[string]interface{}, error) { if !IsNil(o.Punycode) { toSerialize["punycode"] = o.Punycode } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ConvertDomainName) UnmarshalJSON(data []byte) (err error) { + varConvertDomainName := _ConvertDomainName{} + + err = json.Unmarshal(data, &varConvertDomainName) + + if err != nil { + return err + } + + *o = ConvertDomainName(varConvertDomainName) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "idn") + delete(additionalProperties, "punycode") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableConvertDomainName struct { value *ConvertDomainName isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name_response.go index 0f58ebce..f0faade7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_domain_name_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ConvertDomainNameResponse{} // ConvertDomainNameResponse The ConvertDomainName object convert response format. type ConvertDomainNameResponse struct { - Result *ConvertDomainName `json:"result,omitempty"` + Result *ConvertDomainName `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ConvertDomainNameResponse ConvertDomainNameResponse + // NewConvertDomainNameResponse instantiates a new ConvertDomainNameResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ConvertDomainNameResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ConvertDomainNameResponse) UnmarshalJSON(data []byte) (err error) { + varConvertDomainNameResponse := _ConvertDomainNameResponse{} + + err = json.Unmarshal(data, &varConvertDomainNameResponse) + + if err != nil { + return err + } + + *o = ConvertDomainNameResponse(varConvertDomainNameResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableConvertDomainNameResponse struct { value *ConvertDomainNameResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_r_name_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_r_name_response.go index b12b84e1..341c7c33 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_r_name_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_convert_r_name_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ConvertRNameResponse{} // ConvertRNameResponse struct for ConvertRNameResponse type ConvertRNameResponse struct { // The SOA RNAME field converted from the provided email address. - Rname *string `json:"rname,omitempty"` + Rname *string `json:"rname,omitempty"` + AdditionalProperties map[string]interface{} } +type _ConvertRNameResponse ConvertRNameResponse + // NewConvertRNameResponse instantiates a new ConvertRNameResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ConvertRNameResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Rname) { toSerialize["rname"] = o.Rname } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ConvertRNameResponse) UnmarshalJSON(data []byte) (err error) { + varConvertRNameResponse := _ConvertRNameResponse{} + + err = json.Unmarshal(data, &varConvertRNameResponse) + + if err != nil { + return err + } + + *o = ConvertRNameResponse(varConvertRNameResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "rname") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableConvertRNameResponse struct { value *ConvertRNameResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone.go index d4401499..10e7d1fc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -38,7 +37,8 @@ type CopyAuthZone struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - TargetView string `json:"target_view"` + TargetView string `json:"target_view"` + AdditionalProperties map[string]interface{} } type _CopyAuthZone CopyAuthZone @@ -376,6 +376,11 @@ func (o CopyAuthZone) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["target_view"] = o.TargetView + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -403,9 +408,7 @@ func (o *CopyAuthZone) UnmarshalJSON(data []byte) (err error) { varCopyAuthZone := _CopyAuthZone{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCopyAuthZone) + err = json.Unmarshal(data, &varCopyAuthZone) if err != nil { return err @@ -413,6 +416,21 @@ func (o *CopyAuthZone) UnmarshalJSON(data []byte) (err error) { *o = CopyAuthZone(varCopyAuthZone) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "external_primaries") + delete(additionalProperties, "external_secondaries") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_secondaries") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "recursive") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "target_view") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone_response.go index a1ae238d..421d8974 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_auth_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CopyAuthZoneResponse{} // CopyAuthZoneResponse The Authoritative Zone object copy response format. type CopyAuthZoneResponse struct { - Result *CopyResponse `json:"result,omitempty"` + Result *CopyResponse `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyAuthZoneResponse CopyAuthZoneResponse + // NewCopyAuthZoneResponse instantiates a new CopyAuthZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CopyAuthZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyAuthZoneResponse) UnmarshalJSON(data []byte) (err error) { + varCopyAuthZoneResponse := _CopyAuthZoneResponse{} + + err = json.Unmarshal(data, &varCopyAuthZoneResponse) + + if err != nil { + return err + } + + *o = CopyAuthZoneResponse(varCopyAuthZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyAuthZoneResponse struct { value *CopyAuthZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone.go index f788d26c..464aaa2c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -38,7 +37,8 @@ type CopyForwardZone struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - TargetView string `json:"target_view"` + TargetView string `json:"target_view"` + AdditionalProperties map[string]interface{} } type _CopyForwardZone CopyForwardZone @@ -376,6 +376,11 @@ func (o CopyForwardZone) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["target_view"] = o.TargetView + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -403,9 +408,7 @@ func (o *CopyForwardZone) UnmarshalJSON(data []byte) (err error) { varCopyForwardZone := _CopyForwardZone{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCopyForwardZone) + err = json.Unmarshal(data, &varCopyForwardZone) if err != nil { return err @@ -413,6 +416,21 @@ func (o *CopyForwardZone) UnmarshalJSON(data []byte) (err error) { *o = CopyForwardZone(varCopyForwardZone) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "external_forwarders") + delete(additionalProperties, "hosts") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_forwarders") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "recursive") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "target_view") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone_response.go index 61b1ec63..dd7a0db4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_forward_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CopyForwardZoneResponse{} // CopyForwardZoneResponse The __ForwardZone__ object copy response format. type CopyForwardZoneResponse struct { - Result *CopyResponse `json:"result,omitempty"` + Result *CopyResponse `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyForwardZoneResponse CopyForwardZoneResponse + // NewCopyForwardZoneResponse instantiates a new CopyForwardZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CopyForwardZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyForwardZoneResponse) UnmarshalJSON(data []byte) (err error) { + varCopyForwardZoneResponse := _CopyForwardZoneResponse{} + + err = json.Unmarshal(data, &varCopyForwardZoneResponse) + + if err != nil { + return err + } + + *o = CopyForwardZoneResponse(varCopyForwardZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyForwardZoneResponse struct { value *CopyForwardZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_response.go index 72bdf337..65c748ad 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_copy_response.go @@ -24,9 +24,12 @@ type CopyResponse struct { // The resource identifier. Id *string `json:"id,omitempty"` // An Unique Id to identify copy operation. - JobId *string `json:"job_id,omitempty"` + JobId *string `json:"job_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyResponse CopyResponse + // NewCopyResponse instantiates a new CopyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o CopyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.JobId) { toSerialize["job_id"] = o.JobId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyResponse) UnmarshalJSON(data []byte) (err error) { + varCopyResponse := _CopyResponse{} + + err = json.Unmarshal(data, &varCopyResponse) + + if err != nil { + return err + } + + *o = CopyResponse(varCopyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "job_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyResponse struct { value *CopyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_acl_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_acl_response.go index 8609180a..0913b9e9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_acl_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_acl_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateACLResponse{} // CreateACLResponse The ACL object create response format. type CreateACLResponse struct { - Result *ACL `json:"result,omitempty"` + Result *ACL `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateACLResponse CreateACLResponse + // NewCreateACLResponse instantiates a new CreateACLResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateACLResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateACLResponse) UnmarshalJSON(data []byte) (err error) { + varCreateACLResponse := _CreateACLResponse{} + + err = json.Unmarshal(data, &varCreateACLResponse) + + if err != nil { + return err + } + + *o = CreateACLResponse(varCreateACLResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateACLResponse struct { value *CreateACLResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_nsg_response.go index 84c3b5c1..268ddc19 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateAuthNSGResponse{} // CreateAuthNSGResponse The AuthNSG object create response format. type CreateAuthNSGResponse struct { - Result *AuthNSG `json:"result,omitempty"` + Result *AuthNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateAuthNSGResponse CreateAuthNSGResponse + // NewCreateAuthNSGResponse instantiates a new CreateAuthNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateAuthNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateAuthNSGResponse) UnmarshalJSON(data []byte) (err error) { + varCreateAuthNSGResponse := _CreateAuthNSGResponse{} + + err = json.Unmarshal(data, &varCreateAuthNSGResponse) + + if err != nil { + return err + } + + *o = CreateAuthNSGResponse(varCreateAuthNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateAuthNSGResponse struct { value *CreateAuthNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_zone_response.go index 63312686..ab0baff3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_auth_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateAuthZoneResponse{} // CreateAuthZoneResponse The Authoritative Zone object create response format. type CreateAuthZoneResponse struct { - Result *AuthZone `json:"result,omitempty"` + Result *AuthZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateAuthZoneResponse CreateAuthZoneResponse + // NewCreateAuthZoneResponse instantiates a new CreateAuthZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateAuthZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateAuthZoneResponse) UnmarshalJSON(data []byte) (err error) { + varCreateAuthZoneResponse := _CreateAuthZoneResponse{} + + err = json.Unmarshal(data, &varCreateAuthZoneResponse) + + if err != nil { + return err + } + + *o = CreateAuthZoneResponse(varCreateAuthZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateAuthZoneResponse struct { value *CreateAuthZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_delegation_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_delegation_response.go index 3c3dc48a..104c8381 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_delegation_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_delegation_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateDelegationResponse{} // CreateDelegationResponse The Delegation object create response format. type CreateDelegationResponse struct { - Result *Delegation `json:"result,omitempty"` + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateDelegationResponse CreateDelegationResponse + // NewCreateDelegationResponse instantiates a new CreateDelegationResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateDelegationResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varCreateDelegationResponse := _CreateDelegationResponse{} + + err = json.Unmarshal(data, &varCreateDelegationResponse) + + if err != nil { + return err + } + + *o = CreateDelegationResponse(varCreateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateDelegationResponse struct { value *CreateDelegationResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_nsg_response.go index 18629742..08c90873 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateForwardNSGResponse{} // CreateForwardNSGResponse The ForwardNSG object create response format. type CreateForwardNSGResponse struct { - Result *ForwardNSG `json:"result,omitempty"` + Result *ForwardNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateForwardNSGResponse CreateForwardNSGResponse + // NewCreateForwardNSGResponse instantiates a new CreateForwardNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateForwardNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateForwardNSGResponse) UnmarshalJSON(data []byte) (err error) { + varCreateForwardNSGResponse := _CreateForwardNSGResponse{} + + err = json.Unmarshal(data, &varCreateForwardNSGResponse) + + if err != nil { + return err + } + + *o = CreateForwardNSGResponse(varCreateForwardNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateForwardNSGResponse struct { value *CreateForwardNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_zone_response.go index 3f7df3a9..deaa144e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_forward_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateForwardZoneResponse{} // CreateForwardZoneResponse The Forward Zone object create response format. type CreateForwardZoneResponse struct { - Result *ForwardZone `json:"result,omitempty"` + Result *ForwardZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateForwardZoneResponse CreateForwardZoneResponse + // NewCreateForwardZoneResponse instantiates a new CreateForwardZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateForwardZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateForwardZoneResponse) UnmarshalJSON(data []byte) (err error) { + varCreateForwardZoneResponse := _CreateForwardZoneResponse{} + + err = json.Unmarshal(data, &varCreateForwardZoneResponse) + + if err != nil { + return err + } + + *o = CreateForwardZoneResponse(varCreateForwardZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateForwardZoneResponse struct { value *CreateForwardZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_lbdn_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_lbdn_response.go index 55ebb090..c9c2f22e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_lbdn_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_lbdn_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateLBDNResponse{} // CreateLBDNResponse The __LBDN__ object create response format. type CreateLBDNResponse struct { - Result *LBDN `json:"result,omitempty"` + Result *LBDN `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateLBDNResponse CreateLBDNResponse + // NewCreateLBDNResponse instantiates a new CreateLBDNResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateLBDNResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateLBDNResponse) UnmarshalJSON(data []byte) (err error) { + varCreateLBDNResponse := _CreateLBDNResponse{} + + err = json.Unmarshal(data, &varCreateLBDNResponse) + + if err != nil { + return err + } + + *o = CreateLBDNResponse(varCreateLBDNResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateLBDNResponse struct { value *CreateLBDNResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_server_response.go index 544ae49a..f90d7b0b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateServerResponse{} // CreateServerResponse The Server object create response format. type CreateServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateServerResponse CreateServerResponse + // NewCreateServerResponse instantiates a new CreateServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateServerResponse) UnmarshalJSON(data []byte) (err error) { + varCreateServerResponse := _CreateServerResponse{} + + err = json.Unmarshal(data, &varCreateServerResponse) + + if err != nil { + return err + } + + *o = CreateServerResponse(varCreateServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateServerResponse struct { value *CreateServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_view_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_view_response.go index c47fce90..89824a42 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_view_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_create_view_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateViewResponse{} // CreateViewResponse The View object create response format. type CreateViewResponse struct { - Result *View `json:"result,omitempty"` + Result *View `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateViewResponse CreateViewResponse + // NewCreateViewResponse instantiates a new CreateViewResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateViewResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateViewResponse) UnmarshalJSON(data []byte) (err error) { + varCreateViewResponse := _CreateViewResponse{} + + err = json.Unmarshal(data, &varCreateViewResponse) + + if err != nil { + return err + } + + *o = CreateViewResponse(varCreateViewResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateViewResponse struct { value *CreateViewResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_custom_root_ns_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_custom_root_ns_block.go index e5513db3..2c0c4bdb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_custom_root_ns_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_custom_root_ns_block.go @@ -22,9 +22,12 @@ type CustomRootNSBlock struct { // Optional. Field config for _custom_root_ns_ field. CustomRootNs []RootNS `json:"custom_root_ns,omitempty"` // Optional. Field config for _custom_root_ns_enabled_ field. - CustomRootNsEnabled *bool `json:"custom_root_ns_enabled,omitempty"` + CustomRootNsEnabled *bool `json:"custom_root_ns_enabled,omitempty"` + AdditionalProperties map[string]interface{} } +type _CustomRootNSBlock CustomRootNSBlock + // NewCustomRootNSBlock instantiates a new CustomRootNSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o CustomRootNSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomRootNsEnabled) { toSerialize["custom_root_ns_enabled"] = o.CustomRootNsEnabled } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CustomRootNSBlock) UnmarshalJSON(data []byte) (err error) { + varCustomRootNSBlock := _CustomRootNSBlock{} + + err = json.Unmarshal(data, &varCustomRootNSBlock) + + if err != nil { + return err + } + + *o = CustomRootNSBlock(varCustomRootNSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "custom_root_ns") + delete(additionalProperties, "custom_root_ns_enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCustomRootNSBlock struct { value *CustomRootNSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation.go index 21c82715..29e4c324 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation.go @@ -36,9 +36,12 @@ type Delegation struct { // Tagging specifics. Tags map[string]interface{} `json:"tags,omitempty"` // The resource identifier. - View *string `json:"view,omitempty"` + View *string `json:"view,omitempty"` + AdditionalProperties map[string]interface{} } +type _Delegation Delegation + // NewDelegation instantiates a new Delegation object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -381,9 +384,43 @@ func (o Delegation) ToMap() (map[string]interface{}, error) { if !IsNil(o.View) { toSerialize["view"] = o.View } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Delegation) UnmarshalJSON(data []byte) (err error) { + varDelegation := _Delegation{} + + err = json.Unmarshal(data, &varDelegation) + + if err != nil { + return err + } + + *o = Delegation(varDelegation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "delegation_servers") + delete(additionalProperties, "disabled") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "id") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol_fqdn") + delete(additionalProperties, "tags") + delete(additionalProperties, "view") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDelegation struct { value *Delegation isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation_server.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation_server.go index 556a3c20..aad3ce64 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation_server.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_delegation_server.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type DelegationServer struct { // Required. FQDN of nameserver. Fqdn string `json:"fqdn"` // FQDN of nameserver in punycode. - ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + AdditionalProperties map[string]interface{} } type _DelegationServer DelegationServer @@ -154,6 +154,11 @@ func (o DelegationServer) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProtocolFqdn) { toSerialize["protocol_fqdn"] = o.ProtocolFqdn } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -181,9 +186,7 @@ func (o *DelegationServer) UnmarshalJSON(data []byte) (err error) { varDelegationServer := _DelegationServer{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varDelegationServer) + err = json.Unmarshal(data, &varDelegationServer) if err != nil { return err @@ -191,6 +194,15 @@ func (o *DelegationServer) UnmarshalJSON(data []byte) (err error) { *o = DelegationServer(varDelegationServer) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "protocol_fqdn") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_display_view.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_display_view.go index c5ed52c6..bcc8e086 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_display_view.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_display_view.go @@ -24,9 +24,12 @@ type DisplayView struct { // DNS view name. Name *string `json:"name,omitempty"` // The resource identifier. - View *string `json:"view,omitempty"` + View *string `json:"view,omitempty"` + AdditionalProperties map[string]interface{} } +type _DisplayView DisplayView + // NewDisplayView instantiates a new DisplayView object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o DisplayView) ToMap() (map[string]interface{}, error) { if !IsNil(o.View) { toSerialize["view"] = o.View } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DisplayView) UnmarshalJSON(data []byte) (err error) { + varDisplayView := _DisplayView{} + + err = json.Unmarshal(data, &varDisplayView) + + if err != nil { + return err + } + + *o = DisplayView(varDisplayView) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "name") + delete(additionalProperties, "view") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDisplayView struct { value *DisplayView isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dnssec_validation_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dnssec_validation_block.go index 00181805..bbdaf6b9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dnssec_validation_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dnssec_validation_block.go @@ -27,8 +27,11 @@ type DNSSECValidationBlock struct { DnssecTrustAnchors []TrustAnchor `json:"dnssec_trust_anchors,omitempty"` // Optional. Field config for _dnssec_validate_expiry_ field. DnssecValidateExpiry *bool `json:"dnssec_validate_expiry,omitempty"` + AdditionalProperties map[string]interface{} } +type _DNSSECValidationBlock DNSSECValidationBlock + // NewDNSSECValidationBlock instantiates a new DNSSECValidationBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o DNSSECValidationBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.DnssecValidateExpiry) { toSerialize["dnssec_validate_expiry"] = o.DnssecValidateExpiry } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DNSSECValidationBlock) UnmarshalJSON(data []byte) (err error) { + varDNSSECValidationBlock := _DNSSECValidationBlock{} + + err = json.Unmarshal(data, &varDNSSECValidationBlock) + + if err != nil { + return err + } + + *o = DNSSECValidationBlock(varDNSSECValidationBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dnssec_enable_validation") + delete(additionalProperties, "dnssec_enabled") + delete(additionalProperties, "dnssec_trust_anchors") + delete(additionalProperties, "dnssec_validate_expiry") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDNSSECValidationBlock struct { value *DNSSECValidationBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_config.go index 74ad1873..cef9c0d6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_config.go @@ -20,9 +20,12 @@ var _ MappedNullable = &DTCConfig{} // DTCConfig Construct for fields: _default_ttl_. type DTCConfig struct { // Optional. Default TTL for synthesized DTC records (value in seconds). Defaults to 300. - DefaultTtl *int64 `json:"default_ttl,omitempty"` + DefaultTtl *int64 `json:"default_ttl,omitempty"` + AdditionalProperties map[string]interface{} } +type _DTCConfig DTCConfig + // NewDTCConfig instantiates a new DTCConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o DTCConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.DefaultTtl) { toSerialize["default_ttl"] = o.DefaultTtl } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DTCConfig) UnmarshalJSON(data []byte) (err error) { + varDTCConfig := _DTCConfig{} + + err = json.Unmarshal(data, &varDTCConfig) + + if err != nil { + return err + } + + *o = DTCConfig(varDTCConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "default_ttl") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDTCConfig struct { value *DTCConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_policy.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_policy.go index 5ee21a67..5f3eab28 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_policy.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_dtc_policy.go @@ -22,9 +22,12 @@ type DTCPolicy struct { // __DTC Policy__ display name. Name *string `json:"name,omitempty"` // The resource identifier. - PolicyId *string `json:"policy_id,omitempty"` + PolicyId *string `json:"policy_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _DTCPolicy DTCPolicy + // NewDTCPolicy instantiates a new DTCPolicy object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o DTCPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.PolicyId) { toSerialize["policy_id"] = o.PolicyId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DTCPolicy) UnmarshalJSON(data []byte) (err error) { + varDTCPolicy := _DTCPolicy{} + + err = json.Unmarshal(data, &varDTCPolicy) + + if err != nil { + return err + } + + *o = DTCPolicy(varDTCPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "policy_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDTCPolicy struct { value *DTCPolicy isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_block.go index 6e169de2..87ec8bf1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_block.go @@ -28,9 +28,12 @@ type ECSBlock struct { // Optional. Field config for _ecs_prefix_v6_ field. EcsPrefixV6 *int64 `json:"ecs_prefix_v6,omitempty"` // Optional. Field config for _ecs_zones_ field. - EcsZones []ECSZone `json:"ecs_zones,omitempty"` + EcsZones []ECSZone `json:"ecs_zones,omitempty"` + AdditionalProperties map[string]interface{} } +type _ECSBlock ECSBlock + // NewECSBlock instantiates a new ECSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -233,9 +236,39 @@ func (o ECSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.EcsZones) { toSerialize["ecs_zones"] = o.EcsZones } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ECSBlock) UnmarshalJSON(data []byte) (err error) { + varECSBlock := _ECSBlock{} + + err = json.Unmarshal(data, &varECSBlock) + + if err != nil { + return err + } + + *o = ECSBlock(varECSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ecs_enabled") + delete(additionalProperties, "ecs_forwarding") + delete(additionalProperties, "ecs_prefix_v4") + delete(additionalProperties, "ecs_prefix_v6") + delete(additionalProperties, "ecs_zones") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableECSBlock struct { value *ECSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_zone.go index 8263df86..db28ead0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ecs_zone.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type ECSZone struct { // Zone FQDN. Fqdn string `json:"fqdn"` // Zone FQDN in punycode. - ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + AdditionalProperties map[string]interface{} } type _ECSZone ECSZone @@ -145,6 +145,11 @@ func (o ECSZone) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProtocolFqdn) { toSerialize["protocol_fqdn"] = o.ProtocolFqdn } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -173,9 +178,7 @@ func (o *ECSZone) UnmarshalJSON(data []byte) (err error) { varECSZone := _ECSZone{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varECSZone) + err = json.Unmarshal(data, &varECSZone) if err != nil { return err @@ -183,6 +186,15 @@ func (o *ECSZone) UnmarshalJSON(data []byte) (err error) { *o = ECSZone(varECSZone) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "protocol_fqdn") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_primary.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_primary.go index 5e1940e0..5017f42a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_primary.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_primary.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -33,7 +32,8 @@ type ExternalPrimary struct { TsigEnabled *bool `json:"tsig_enabled,omitempty"` TsigKey *TSIGKey `json:"tsig_key,omitempty"` // Allowed values: * _nsg_, * _primary_. - Type string `json:"type"` + Type string `json:"type"` + AdditionalProperties map[string]interface{} } type _ExternalPrimary ExternalPrimary @@ -301,6 +301,11 @@ func (o ExternalPrimary) ToMap() (map[string]interface{}, error) { toSerialize["tsig_key"] = o.TsigKey } toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -328,9 +333,7 @@ func (o *ExternalPrimary) UnmarshalJSON(data []byte) (err error) { varExternalPrimary := _ExternalPrimary{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varExternalPrimary) + err = json.Unmarshal(data, &varExternalPrimary) if err != nil { return err @@ -338,6 +341,19 @@ func (o *ExternalPrimary) UnmarshalJSON(data []byte) (err error) { *o = ExternalPrimary(varExternalPrimary) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "nsg") + delete(additionalProperties, "protocol_fqdn") + delete(additionalProperties, "tsig_enabled") + delete(additionalProperties, "tsig_key") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_secondary.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_secondary.go index 84bd9b6f..a7de3bf8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_secondary.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_external_secondary.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -30,8 +29,9 @@ type ExternalSecondary struct { // If enabled, the NS record and glue record will NOT be automatically generated according to secondaries nameserver assignment. Default: _false_ Stealth *bool `json:"stealth,omitempty"` // If enabled, secondaries will use the configured TSIG key when requesting a zone transfer. Default: _false_ - TsigEnabled *bool `json:"tsig_enabled,omitempty"` - TsigKey *TSIGKey `json:"tsig_key,omitempty"` + TsigEnabled *bool `json:"tsig_enabled,omitempty"` + TsigKey *TSIGKey `json:"tsig_key,omitempty"` + AdditionalProperties map[string]interface{} } type _ExternalSecondary ExternalSecondary @@ -255,6 +255,11 @@ func (o ExternalSecondary) ToMap() (map[string]interface{}, error) { if !IsNil(o.TsigKey) { toSerialize["tsig_key"] = o.TsigKey } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -283,9 +288,7 @@ func (o *ExternalSecondary) UnmarshalJSON(data []byte) (err error) { varExternalSecondary := _ExternalSecondary{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varExternalSecondary) + err = json.Unmarshal(data, &varExternalSecondary) if err != nil { return err @@ -293,6 +296,18 @@ func (o *ExternalSecondary) UnmarshalJSON(data []byte) (err error) { *o = ExternalSecondary(varExternalSecondary) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "protocol_fqdn") + delete(additionalProperties, "stealth") + delete(additionalProperties, "tsig_enabled") + delete(additionalProperties, "tsig_key") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_nsg.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_nsg.go index 475c9f9d..b5606b5d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_nsg.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_nsg.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -38,7 +37,8 @@ type ForwardNSG struct { // The resource identifier. Nsgs []string `json:"nsgs,omitempty"` // Tagging specifics. - Tags map[string]interface{} `json:"tags,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} } type _ForwardNSG ForwardNSG @@ -376,6 +376,11 @@ func (o ForwardNSG) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -403,9 +408,7 @@ func (o *ForwardNSG) UnmarshalJSON(data []byte) (err error) { varForwardNSG := _ForwardNSG{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varForwardNSG) + err = json.Unmarshal(data, &varForwardNSG) if err != nil { return err @@ -413,6 +416,21 @@ func (o *ForwardNSG) UnmarshalJSON(data []byte) (err error) { *o = ForwardNSG(varForwardNSG) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "external_forwarders") + delete(additionalProperties, "forwarders_only") + delete(additionalProperties, "hosts") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_forwarders") + delete(additionalProperties, "name") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone.go index 4cac24ea..7f1b17fe 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone.go @@ -55,9 +55,12 @@ type ForwardZone struct { // The resource identifier. View *string `json:"view,omitempty"` // The list of a forward zone warnings. - Warnings []Warning `json:"warnings,omitempty"` + Warnings []Warning `json:"warnings,omitempty"` + AdditionalProperties map[string]interface{} } +type _ForwardZone ForwardZone + // NewForwardZone instantiates a new ForwardZone object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -715,9 +718,52 @@ func (o ForwardZone) ToMap() (map[string]interface{}, error) { if !IsNil(o.Warnings) { toSerialize["warnings"] = o.Warnings } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ForwardZone) UnmarshalJSON(data []byte) (err error) { + varForwardZone := _ForwardZone{} + + err = json.Unmarshal(data, &varForwardZone) + + if err != nil { + return err + } + + *o = ForwardZone(varForwardZone) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "disabled") + delete(additionalProperties, "external_forwarders") + delete(additionalProperties, "forward_only") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "hosts") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_forwarders") + delete(additionalProperties, "mapped_subnet") + delete(additionalProperties, "mapping") + delete(additionalProperties, "nsgs") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol_fqdn") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "view") + delete(additionalProperties, "warnings") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableForwardZone struct { value *ForwardZone isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone_config.go index fd45298c..651f970e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forward_zone_config.go @@ -26,9 +26,12 @@ type ForwardZoneConfig struct { // The resource identifier. InternalForwarders []string `json:"internal_forwarders,omitempty"` // The resource identifier. - Nsgs []string `json:"nsgs,omitempty"` + Nsgs []string `json:"nsgs,omitempty"` + AdditionalProperties map[string]interface{} } +type _ForwardZoneConfig ForwardZoneConfig + // NewForwardZoneConfig instantiates a new ForwardZoneConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o ForwardZoneConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Nsgs) { toSerialize["nsgs"] = o.Nsgs } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ForwardZoneConfig) UnmarshalJSON(data []byte) (err error) { + varForwardZoneConfig := _ForwardZoneConfig{} + + err = json.Unmarshal(data, &varForwardZoneConfig) + + if err != nil { + return err + } + + *o = ForwardZoneConfig(varForwardZoneConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "external_forwarders") + delete(additionalProperties, "hosts") + delete(additionalProperties, "internal_forwarders") + delete(additionalProperties, "nsgs") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableForwardZoneConfig struct { value *ForwardZoneConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarder.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarder.go index da7f8fee..a7d68964 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarder.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarder.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type Forwarder struct { // Server FQDN. Fqdn *string `json:"fqdn,omitempty"` // Server FQDN in punycode. - ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + AdditionalProperties map[string]interface{} } type _Forwarder Forwarder @@ -154,6 +154,11 @@ func (o Forwarder) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProtocolFqdn) { toSerialize["protocol_fqdn"] = o.ProtocolFqdn } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -181,9 +186,7 @@ func (o *Forwarder) UnmarshalJSON(data []byte) (err error) { varForwarder := _Forwarder{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varForwarder) + err = json.Unmarshal(data, &varForwarder) if err != nil { return err @@ -191,6 +194,15 @@ func (o *Forwarder) UnmarshalJSON(data []byte) (err error) { *o = Forwarder(varForwarder) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "protocol_fqdn") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarders_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarders_block.go index 15e09a42..41836af4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarders_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_forwarders_block.go @@ -25,8 +25,11 @@ type ForwardersBlock struct { ForwardersOnly *bool `json:"forwarders_only,omitempty"` // Optional. Field config for _use_root_forwarders_for_local_resolution_with_b1td_ field. UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` + AdditionalProperties map[string]interface{} } +type _ForwardersBlock ForwardersBlock + // NewForwardersBlock instantiates a new ForwardersBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o ForwardersBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.UseRootForwardersForLocalResolutionWithB1td) { toSerialize["use_root_forwarders_for_local_resolution_with_b1td"] = o.UseRootForwardersForLocalResolutionWithB1td } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ForwardersBlock) UnmarshalJSON(data []byte) (err error) { + varForwardersBlock := _ForwardersBlock{} + + err = json.Unmarshal(data, &varForwardersBlock) + + if err != nil { + return err + } + + *o = ForwardersBlock(varForwardersBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "forwarders") + delete(additionalProperties, "forwarders_only") + delete(additionalProperties, "use_root_forwarders_for_local_resolution_with_b1td") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableForwardersBlock struct { value *ForwardersBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_global.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_global.go index 8e3ccae3..b4d363e9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_global.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_global.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -109,6 +108,7 @@ type Global struct { // _use_root_forwarders_for_local_resolution_with_b1td_ allows DNS recursive queries sent to root forwarders for local resolution when deployed alongside BloxOne Thread Defense. Defaults to _false_. UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` ZoneAuthority *ZoneAuthority `json:"zone_authority,omitempty"` + AdditionalProperties map[string]interface{} } type _Global Global @@ -1706,6 +1706,11 @@ func (o Global) ToMap() (map[string]interface{}, error) { if !IsNil(o.ZoneAuthority) { toSerialize["zone_authority"] = o.ZoneAuthority } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1733,9 +1738,7 @@ func (o *Global) UnmarshalJSON(data []byte) (err error) { varGlobal := _Global{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varGlobal) + err = json.Unmarshal(data, &varGlobal) if err != nil { return err @@ -1743,6 +1746,57 @@ func (o *Global) UnmarshalJSON(data []byte) (err error) { *o = Global(varGlobal) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "add_edns_option_in_outgoing_query") + delete(additionalProperties, "custom_root_ns") + delete(additionalProperties, "custom_root_ns_enabled") + delete(additionalProperties, "dnssec_enable_validation") + delete(additionalProperties, "dnssec_enabled") + delete(additionalProperties, "dnssec_root_keys") + delete(additionalProperties, "dnssec_trust_anchors") + delete(additionalProperties, "dnssec_validate_expiry") + delete(additionalProperties, "dtc_config") + delete(additionalProperties, "ecs_enabled") + delete(additionalProperties, "ecs_forwarding") + delete(additionalProperties, "ecs_prefix_v4") + delete(additionalProperties, "ecs_prefix_v6") + delete(additionalProperties, "ecs_zones") + delete(additionalProperties, "edns_udp_size") + delete(additionalProperties, "filter_aaaa_acl") + delete(additionalProperties, "filter_aaaa_on_v4") + delete(additionalProperties, "forwarders") + delete(additionalProperties, "forwarders_only") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "id") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "lame_ttl") + delete(additionalProperties, "log_query_response") + delete(additionalProperties, "match_recursive_only") + delete(additionalProperties, "max_cache_ttl") + delete(additionalProperties, "max_negative_ttl") + delete(additionalProperties, "max_udp_size") + delete(additionalProperties, "minimal_responses") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "query_port") + delete(additionalProperties, "recursion_acl") + delete(additionalProperties, "recursion_enabled") + delete(additionalProperties, "recursive_clients") + delete(additionalProperties, "resolver_query_timeout") + delete(additionalProperties, "secondary_axfr_query_limit") + delete(additionalProperties, "secondary_soa_query_limit") + delete(additionalProperties, "sort_list") + delete(additionalProperties, "synthesize_address_records_from_https") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "use_root_forwarders_for_local_resolution_with_b1td") + delete(additionalProperties, "zone_authority") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host.go index 16ff3531..246876c2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host.go @@ -54,9 +54,12 @@ type Host struct { // Host tagging specifics. Tags map[string]interface{} `json:"tags,omitempty"` // Defines the type of host. Allowed values: * _bloxone_ddi_: host type is BloxOne DDI, * _microsoft_azure_: host type is Microsoft Azure, * _amazon_web_service_: host type is Amazon Web Services, * _microsoft_active_directory_: host type is Microsoft Active Directory, * _google_cloud_platform_: host type is Google Cloud Platform. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _Host Host + // NewHost instantiates a new Host object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -749,9 +752,53 @@ func (o Host) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Host) UnmarshalJSON(data []byte) (err error) { + varHost := _Host{} + + err = json.Unmarshal(data, &varHost) + + if err != nil { + return err + } + + *o = Host(varHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "absolute_name") + delete(additionalProperties, "address") + delete(additionalProperties, "anycast_addresses") + delete(additionalProperties, "associated_server") + delete(additionalProperties, "comment") + delete(additionalProperties, "current_version") + delete(additionalProperties, "dfp") + delete(additionalProperties, "dfp_service") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "name") + delete(additionalProperties, "ophid") + delete(additionalProperties, "protocol_absolute_name") + delete(additionalProperties, "provider_id") + delete(additionalProperties, "server") + delete(additionalProperties, "site_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHost struct { value *Host isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_associated_server.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_associated_server.go index fe953a56..352aefa0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_associated_server.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_associated_server.go @@ -22,9 +22,12 @@ type HostAssociatedServer struct { // The resource identifier. Id *string `json:"id,omitempty"` // DNS server name. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostAssociatedServer HostAssociatedServer + // NewHostAssociatedServer instantiates a new HostAssociatedServer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o HostAssociatedServer) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostAssociatedServer) UnmarshalJSON(data []byte) (err error) { + varHostAssociatedServer := _HostAssociatedServer{} + + err = json.Unmarshal(data, &varHostAssociatedServer) + + if err != nil { + return err + } + + *o = HostAssociatedServer(varHostAssociatedServer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostAssociatedServer struct { value *HostAssociatedServer isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_inheritance.go index 9fc8be76..c2090d61 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_host_inheritance.go @@ -19,9 +19,12 @@ var _ MappedNullable = &HostInheritance{} // HostInheritance Inheritance configuration specifies how and which fields _Host_ object inherits from _Global_ or _Server_ parent. type HostInheritance struct { - KerberosKeys *InheritedKerberosKeys `json:"kerberos_keys,omitempty"` + KerberosKeys *InheritedKerberosKeys `json:"kerberos_keys,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostInheritance HostInheritance + // NewHostInheritance instantiates a new HostInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o HostInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.KerberosKeys) { toSerialize["kerberos_keys"] = o.KerberosKeys } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostInheritance) UnmarshalJSON(data []byte) (err error) { + varHostInheritance := _HostInheritance{} + + err = json.Unmarshal(data, &varHostInheritance) + + if err != nil { + return err + } + + *o = HostInheritance(varHostInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "kerberos_keys") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostInheritance struct { value *HostInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_assigned_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_assigned_host.go index 7b5928f2..2dfbf32d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_assigned_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_assigned_host.go @@ -24,9 +24,12 @@ type Inheritance2AssignedHost struct { // The resource identifier. Host *string `json:"host,omitempty"` // The on-prem host ID. - Ophid *string `json:"ophid,omitempty"` + Ophid *string `json:"ophid,omitempty"` + AdditionalProperties map[string]interface{} } +type _Inheritance2AssignedHost Inheritance2AssignedHost + // NewInheritance2AssignedHost instantiates a new Inheritance2AssignedHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o Inheritance2AssignedHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ophid) { toSerialize["ophid"] = o.Ophid } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Inheritance2AssignedHost) UnmarshalJSON(data []byte) (err error) { + varInheritance2AssignedHost := _Inheritance2AssignedHost{} + + err = json.Unmarshal(data, &varInheritance2AssignedHost) + + if err != nil { + return err + } + + *o = Inheritance2AssignedHost(varInheritance2AssignedHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "display_name") + delete(additionalProperties, "host") + delete(additionalProperties, "ophid") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritance2AssignedHost struct { value *Inheritance2AssignedHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_bool.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_bool.go index f3fabad6..972013ed 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_bool.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_bool.go @@ -26,9 +26,12 @@ type Inheritance2InheritedBool struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *bool `json:"value,omitempty"` + Value *bool `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _Inheritance2InheritedBool Inheritance2InheritedBool + // NewInheritance2InheritedBool instantiates a new Inheritance2InheritedBool object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o Inheritance2InheritedBool) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Inheritance2InheritedBool) UnmarshalJSON(data []byte) (err error) { + varInheritance2InheritedBool := _Inheritance2InheritedBool{} + + err = json.Unmarshal(data, &varInheritance2InheritedBool) + + if err != nil { + return err + } + + *o = Inheritance2InheritedBool(varInheritance2InheritedBool) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritance2InheritedBool struct { value *Inheritance2InheritedBool isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_string.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_string.go index 682b0dc5..6b02f6d8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_string.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_string.go @@ -26,9 +26,12 @@ type Inheritance2InheritedString struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _Inheritance2InheritedString Inheritance2InheritedString + // NewInheritance2InheritedString instantiates a new Inheritance2InheritedString object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o Inheritance2InheritedString) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Inheritance2InheritedString) UnmarshalJSON(data []byte) (err error) { + varInheritance2InheritedString := _Inheritance2InheritedString{} + + err = json.Unmarshal(data, &varInheritance2InheritedString) + + if err != nil { + return err + } + + *o = Inheritance2InheritedString(varInheritance2InheritedString) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritance2InheritedString struct { value *Inheritance2InheritedString isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_u_int32.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_u_int32.go index 44bece9b..10bc1485 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_u_int32.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inheritance2_inherited_u_int32.go @@ -26,9 +26,12 @@ type Inheritance2InheritedUInt32 struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *int64 `json:"value,omitempty"` + Value *int64 `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _Inheritance2InheritedUInt32 Inheritance2InheritedUInt32 + // NewInheritance2InheritedUInt32 instantiates a new Inheritance2InheritedUInt32 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o Inheritance2InheritedUInt32) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Inheritance2InheritedUInt32) UnmarshalJSON(data []byte) (err error) { + varInheritance2InheritedUInt32 := _Inheritance2InheritedUInt32{} + + err = json.Unmarshal(data, &varInheritance2InheritedUInt32) + + if err != nil { + return err + } + + *o = Inheritance2InheritedUInt32(varInheritance2InheritedUInt32) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritance2InheritedUInt32 struct { value *Inheritance2InheritedUInt32 isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_acl_items.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_acl_items.go index 31bbfd16..76c89d0b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_acl_items.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_acl_items.go @@ -26,9 +26,12 @@ type InheritedACLItems struct { // The resource identifier. Source *string `json:"source,omitempty"` // Inherited value. - Value []ACLItem `json:"value,omitempty"` + Value []ACLItem `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedACLItems InheritedACLItems + // NewInheritedACLItems instantiates a new InheritedACLItems object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritedACLItems) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedACLItems) UnmarshalJSON(data []byte) (err error) { + varInheritedACLItems := _InheritedACLItems{} + + err = json.Unmarshal(data, &varInheritedACLItems) + + if err != nil { + return err + } + + *o = InheritedACLItems(varInheritedACLItems) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedACLItems struct { value *InheritedACLItems isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_custom_root_ns_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_custom_root_ns_block.go index b5f2c452..407fea0a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_custom_root_ns_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_custom_root_ns_block.go @@ -24,10 +24,13 @@ type InheritedCustomRootNSBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *CustomRootNSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *CustomRootNSBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedCustomRootNSBlock InheritedCustomRootNSBlock + // NewInheritedCustomRootNSBlock instantiates a new InheritedCustomRootNSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedCustomRootNSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedCustomRootNSBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedCustomRootNSBlock := _InheritedCustomRootNSBlock{} + + err = json.Unmarshal(data, &varInheritedCustomRootNSBlock) + + if err != nil { + return err + } + + *o = InheritedCustomRootNSBlock(varInheritedCustomRootNSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedCustomRootNSBlock struct { value *InheritedCustomRootNSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dnssec_validation_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dnssec_validation_block.go index 6e195929..ef1675e1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dnssec_validation_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dnssec_validation_block.go @@ -24,10 +24,13 @@ type InheritedDNSSECValidationBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *DNSSECValidationBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *DNSSECValidationBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDNSSECValidationBlock InheritedDNSSECValidationBlock + // NewInheritedDNSSECValidationBlock instantiates a new InheritedDNSSECValidationBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedDNSSECValidationBlock) ToMap() (map[string]interface{}, error) if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDNSSECValidationBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedDNSSECValidationBlock := _InheritedDNSSECValidationBlock{} + + err = json.Unmarshal(data, &varInheritedDNSSECValidationBlock) + + if err != nil { + return err + } + + *o = InheritedDNSSECValidationBlock(varInheritedDNSSECValidationBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDNSSECValidationBlock struct { value *InheritedDNSSECValidationBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dtc_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dtc_config.go index 35c31ad8..701a8073 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dtc_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_dtc_config.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InheritedDtcConfig{} // InheritedDtcConfig Inheritance configuration for a field of type _DTCConfig_. type InheritedDtcConfig struct { - DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` + DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDtcConfig InheritedDtcConfig + // NewInheritedDtcConfig instantiates a new InheritedDtcConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InheritedDtcConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.DefaultTtl) { toSerialize["default_ttl"] = o.DefaultTtl } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDtcConfig) UnmarshalJSON(data []byte) (err error) { + varInheritedDtcConfig := _InheritedDtcConfig{} + + err = json.Unmarshal(data, &varInheritedDtcConfig) + + if err != nil { + return err + } + + *o = InheritedDtcConfig(varInheritedDtcConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "default_ttl") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDtcConfig struct { value *InheritedDtcConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_ecs_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_ecs_block.go index 8435a88f..2ac2bc3d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_ecs_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_ecs_block.go @@ -24,10 +24,13 @@ type InheritedECSBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ECSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ECSBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedECSBlock InheritedECSBlock + // NewInheritedECSBlock instantiates a new InheritedECSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedECSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedECSBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedECSBlock := _InheritedECSBlock{} + + err = json.Unmarshal(data, &varInheritedECSBlock) + + if err != nil { + return err + } + + *o = InheritedECSBlock(varInheritedECSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedECSBlock struct { value *InheritedECSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_forwarders_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_forwarders_block.go index 9927f33c..9d9b5661 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_forwarders_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_forwarders_block.go @@ -24,10 +24,13 @@ type InheritedForwardersBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ForwardersBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ForwardersBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedForwardersBlock InheritedForwardersBlock + // NewInheritedForwardersBlock instantiates a new InheritedForwardersBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedForwardersBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedForwardersBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedForwardersBlock := _InheritedForwardersBlock{} + + err = json.Unmarshal(data, &varInheritedForwardersBlock) + + if err != nil { + return err + } + + *o = InheritedForwardersBlock(varInheritedForwardersBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedForwardersBlock struct { value *InheritedForwardersBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_kerberos_keys.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_kerberos_keys.go index 8887b749..f675b4a2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_kerberos_keys.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_kerberos_keys.go @@ -26,9 +26,12 @@ type InheritedKerberosKeys struct { // The resource identifier. Source *string `json:"source,omitempty"` // Inherited value. - Value []KerberosKey `json:"value,omitempty"` + Value []KerberosKey `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedKerberosKeys InheritedKerberosKeys + // NewInheritedKerberosKeys instantiates a new InheritedKerberosKeys object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritedKerberosKeys) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedKerberosKeys) UnmarshalJSON(data []byte) (err error) { + varInheritedKerberosKeys := _InheritedKerberosKeys{} + + err = json.Unmarshal(data, &varInheritedKerberosKeys) + + if err != nil { + return err + } + + *o = InheritedKerberosKeys(varInheritedKerberosKeys) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedKerberosKeys struct { value *InheritedKerberosKeys isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_sort_list_items.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_sort_list_items.go index a0e58aee..d278528c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_sort_list_items.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_sort_list_items.go @@ -26,9 +26,12 @@ type InheritedSortListItems struct { // The resource identifier. Source *string `json:"source,omitempty"` // Inherited value. - Value []SortListItem `json:"value,omitempty"` + Value []SortListItem `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedSortListItems InheritedSortListItems + // NewInheritedSortListItems instantiates a new InheritedSortListItems object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritedSortListItems) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedSortListItems) UnmarshalJSON(data []byte) (err error) { + varInheritedSortListItems := _InheritedSortListItems{} + + err = json.Unmarshal(data, &varInheritedSortListItems) + + if err != nil { + return err + } + + *o = InheritedSortListItems(varInheritedSortListItems) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedSortListItems struct { value *InheritedSortListItems isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority.go index 5bdf7394..978e0670 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority.go @@ -19,16 +19,19 @@ var _ MappedNullable = &InheritedZoneAuthority{} // InheritedZoneAuthority Inheritance configuration for a field of type _ZoneAuthority_. type InheritedZoneAuthority struct { - DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` - Expire *Inheritance2InheritedUInt32 `json:"expire,omitempty"` - MnameBlock *InheritedZoneAuthorityMNameBlock `json:"mname_block,omitempty"` - NegativeTtl *Inheritance2InheritedUInt32 `json:"negative_ttl,omitempty"` - ProtocolRname *Inheritance2InheritedString `json:"protocol_rname,omitempty"` - Refresh *Inheritance2InheritedUInt32 `json:"refresh,omitempty"` - Retry *Inheritance2InheritedUInt32 `json:"retry,omitempty"` - Rname *Inheritance2InheritedString `json:"rname,omitempty"` + DefaultTtl *Inheritance2InheritedUInt32 `json:"default_ttl,omitempty"` + Expire *Inheritance2InheritedUInt32 `json:"expire,omitempty"` + MnameBlock *InheritedZoneAuthorityMNameBlock `json:"mname_block,omitempty"` + NegativeTtl *Inheritance2InheritedUInt32 `json:"negative_ttl,omitempty"` + ProtocolRname *Inheritance2InheritedString `json:"protocol_rname,omitempty"` + Refresh *Inheritance2InheritedUInt32 `json:"refresh,omitempty"` + Retry *Inheritance2InheritedUInt32 `json:"retry,omitempty"` + Rname *Inheritance2InheritedString `json:"rname,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedZoneAuthority InheritedZoneAuthority + // NewInheritedZoneAuthority instantiates a new InheritedZoneAuthority object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -336,9 +339,42 @@ func (o InheritedZoneAuthority) ToMap() (map[string]interface{}, error) { if !IsNil(o.Rname) { toSerialize["rname"] = o.Rname } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedZoneAuthority) UnmarshalJSON(data []byte) (err error) { + varInheritedZoneAuthority := _InheritedZoneAuthority{} + + err = json.Unmarshal(data, &varInheritedZoneAuthority) + + if err != nil { + return err + } + + *o = InheritedZoneAuthority(varInheritedZoneAuthority) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "default_ttl") + delete(additionalProperties, "expire") + delete(additionalProperties, "mname_block") + delete(additionalProperties, "negative_ttl") + delete(additionalProperties, "protocol_rname") + delete(additionalProperties, "refresh") + delete(additionalProperties, "retry") + delete(additionalProperties, "rname") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedZoneAuthority struct { value *InheritedZoneAuthority isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority_m_name_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority_m_name_block.go index c20dcf94..d4987c79 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority_m_name_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_inherited_zone_authority_m_name_block.go @@ -24,10 +24,13 @@ type InheritedZoneAuthorityMNameBlock struct { // Human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *ZoneAuthorityMNameBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *ZoneAuthorityMNameBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedZoneAuthorityMNameBlock InheritedZoneAuthorityMNameBlock + // NewInheritedZoneAuthorityMNameBlock instantiates a new InheritedZoneAuthorityMNameBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedZoneAuthorityMNameBlock) ToMap() (map[string]interface{}, error if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedZoneAuthorityMNameBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedZoneAuthorityMNameBlock := _InheritedZoneAuthorityMNameBlock{} + + err = json.Unmarshal(data, &varInheritedZoneAuthorityMNameBlock) + + if err != nil { + return err + } + + *o = InheritedZoneAuthorityMNameBlock(varInheritedZoneAuthorityMNameBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedZoneAuthorityMNameBlock struct { value *InheritedZoneAuthorityMNameBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_internal_secondary.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_internal_secondary.go index a382054d..54d54ec2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_internal_secondary.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_internal_secondary.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -22,7 +21,8 @@ var _ MappedNullable = &InternalSecondary{} // InternalSecondary BloxOne DDI host acting as DNS secondary. type InternalSecondary struct { // The resource identifier. - Host string `json:"host"` + Host string `json:"host"` + AdditionalProperties map[string]interface{} } type _InternalSecondary InternalSecondary @@ -80,6 +80,11 @@ func (o InternalSecondary) MarshalJSON() ([]byte, error) { func (o InternalSecondary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["host"] = o.Host + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -107,9 +112,7 @@ func (o *InternalSecondary) UnmarshalJSON(data []byte) (err error) { varInternalSecondary := _InternalSecondary{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varInternalSecondary) + err = json.Unmarshal(data, &varInternalSecondary) if err != nil { return err @@ -117,6 +120,13 @@ func (o *InternalSecondary) UnmarshalJSON(data []byte) (err error) { *o = InternalSecondary(varInternalSecondary) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "host") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_kerberos_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_kerberos_key.go index fee59df7..9e621019 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_kerberos_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_kerberos_key.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -32,7 +31,8 @@ type KerberosKey struct { // Upload time for the key. UploadedAt *string `json:"uploaded_at,omitempty"` // The version number (KVNO) of the key. - Version *int64 `json:"version,omitempty"` + Version *int64 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } type _KerberosKey KerberosKey @@ -265,6 +265,11 @@ func (o KerberosKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -292,9 +297,7 @@ func (o *KerberosKey) UnmarshalJSON(data []byte) (err error) { varKerberosKey := _KerberosKey{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varKerberosKey) + err = json.Unmarshal(data, &varKerberosKey) if err != nil { return err @@ -302,6 +305,18 @@ func (o *KerberosKey) UnmarshalJSON(data []byte) (err error) { *o = KerberosKey(varKerberosKey) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "domain") + delete(additionalProperties, "key") + delete(additionalProperties, "principal") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_lbdn.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_lbdn.go index 90a9c8fe..95da69fb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_lbdn.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_lbdn.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -38,7 +37,8 @@ type LBDN struct { // Optional. Time to live value (in seconds) to be used for records in DTC response. Unsigned integer, min: 0, max 2147483647 (31-bits per RFC-2181). Ttl *int64 `json:"ttl,omitempty"` // The resource identifier. - View string `json:"view"` + View string `json:"view"` + AdditionalProperties map[string]interface{} } type _LBDN LBDN @@ -402,6 +402,11 @@ func (o LBDN) ToMap() (map[string]interface{}, error) { toSerialize["ttl"] = o.Ttl } toSerialize["view"] = o.View + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -430,9 +435,7 @@ func (o *LBDN) UnmarshalJSON(data []byte) (err error) { varLBDN := _LBDN{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varLBDN) + err = json.Unmarshal(data, &varLBDN) if err != nil { return err @@ -440,6 +443,22 @@ func (o *LBDN) UnmarshalJSON(data []byte) (err error) { *o = LBDN(varLBDN) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "disabled") + delete(additionalProperties, "dtc_policy") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "name") + delete(additionalProperties, "precedence") + delete(additionalProperties, "tags") + delete(additionalProperties, "ttl") + delete(additionalProperties, "view") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_acl_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_acl_response.go index 3f31d00e..3f544367 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_acl_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_acl_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListACLResponse{} // ListACLResponse The ACL object list response format. type ListACLResponse struct { // List of ACL objects. - Results []ACL `json:"results,omitempty"` + Results []ACL `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListACLResponse ListACLResponse + // NewListACLResponse instantiates a new ListACLResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListACLResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListACLResponse) UnmarshalJSON(data []byte) (err error) { + varListACLResponse := _ListACLResponse{} + + err = json.Unmarshal(data, &varListACLResponse) + + if err != nil { + return err + } + + *o = ListACLResponse(varListACLResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListACLResponse struct { value *ListACLResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_nsg_response.go index 6fafde38..3657cdcc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_nsg_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListAuthNSGResponse{} // ListAuthNSGResponse The AuthNSG object list response format. type ListAuthNSGResponse struct { // List of AuthNSG objects. - Results []AuthNSG `json:"results,omitempty"` + Results []AuthNSG `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListAuthNSGResponse ListAuthNSGResponse + // NewListAuthNSGResponse instantiates a new ListAuthNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListAuthNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListAuthNSGResponse) UnmarshalJSON(data []byte) (err error) { + varListAuthNSGResponse := _ListAuthNSGResponse{} + + err = json.Unmarshal(data, &varListAuthNSGResponse) + + if err != nil { + return err + } + + *o = ListAuthNSGResponse(varListAuthNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListAuthNSGResponse struct { value *ListAuthNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_zone_response.go index 50535a91..7dfe5347 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_auth_zone_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListAuthZoneResponse{} // ListAuthZoneResponse The Authoritative Zone object list response format. type ListAuthZoneResponse struct { // The list of Auth Zone objects. - Results []AuthZone `json:"results,omitempty"` + Results []AuthZone `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListAuthZoneResponse ListAuthZoneResponse + // NewListAuthZoneResponse instantiates a new ListAuthZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListAuthZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListAuthZoneResponse) UnmarshalJSON(data []byte) (err error) { + varListAuthZoneResponse := _ListAuthZoneResponse{} + + err = json.Unmarshal(data, &varListAuthZoneResponse) + + if err != nil { + return err + } + + *o = ListAuthZoneResponse(varListAuthZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListAuthZoneResponse struct { value *ListAuthZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_delegation_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_delegation_response.go index e3e03db3..4293eb4d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_delegation_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_delegation_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListDelegationResponse{} // ListDelegationResponse The Delegation object list response format. type ListDelegationResponse struct { // The list of Delegation objects. - Results []Delegation `json:"results,omitempty"` + Results []Delegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListDelegationResponse ListDelegationResponse + // NewListDelegationResponse instantiates a new ListDelegationResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListDelegationResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varListDelegationResponse := _ListDelegationResponse{} + + err = json.Unmarshal(data, &varListDelegationResponse) + + if err != nil { + return err + } + + *o = ListDelegationResponse(varListDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListDelegationResponse struct { value *ListDelegationResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_nsg_response.go index f5e542b0..83e93372 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_nsg_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListForwardNSGResponse{} // ListForwardNSGResponse The ForwardNSG object list response format. type ListForwardNSGResponse struct { // List of ForwardNSG objects. - Results []ForwardNSG `json:"results,omitempty"` + Results []ForwardNSG `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListForwardNSGResponse ListForwardNSGResponse + // NewListForwardNSGResponse instantiates a new ListForwardNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListForwardNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListForwardNSGResponse) UnmarshalJSON(data []byte) (err error) { + varListForwardNSGResponse := _ListForwardNSGResponse{} + + err = json.Unmarshal(data, &varListForwardNSGResponse) + + if err != nil { + return err + } + + *o = ListForwardNSGResponse(varListForwardNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListForwardNSGResponse struct { value *ListForwardNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_zone_response.go index 56cf4f97..f4337e0d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_forward_zone_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListForwardZoneResponse{} // ListForwardZoneResponse The Forward Zone objects list response format. type ListForwardZoneResponse struct { // List of Forward Zone objects. - Results []ForwardZone `json:"results,omitempty"` + Results []ForwardZone `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListForwardZoneResponse ListForwardZoneResponse + // NewListForwardZoneResponse instantiates a new ListForwardZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListForwardZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListForwardZoneResponse) UnmarshalJSON(data []byte) (err error) { + varListForwardZoneResponse := _ListForwardZoneResponse{} + + err = json.Unmarshal(data, &varListForwardZoneResponse) + + if err != nil { + return err + } + + *o = ListForwardZoneResponse(varListForwardZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListForwardZoneResponse struct { value *ListForwardZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_host_response.go index bfd072f1..910a0bd6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_host_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListHostResponse{} // ListHostResponse The DNS Host object list response format. type ListHostResponse struct { // List of DNS Host objects. - Results []Host `json:"results,omitempty"` + Results []Host `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListHostResponse ListHostResponse + // NewListHostResponse instantiates a new ListHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListHostResponse) UnmarshalJSON(data []byte) (err error) { + varListHostResponse := _ListHostResponse{} + + err = json.Unmarshal(data, &varListHostResponse) + + if err != nil { + return err + } + + *o = ListHostResponse(varListHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListHostResponse struct { value *ListHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_lbdn_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_lbdn_response.go index e2d22f52..f6b803b7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_lbdn_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_lbdn_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListLBDNResponse{} // ListLBDNResponse The __LBDN__ object list response format. type ListLBDNResponse struct { // List of __LBDN__ objects. - Results []LBDN `json:"results,omitempty"` + Results []LBDN `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListLBDNResponse ListLBDNResponse + // NewListLBDNResponse instantiates a new ListLBDNResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListLBDNResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListLBDNResponse) UnmarshalJSON(data []byte) (err error) { + varListLBDNResponse := _ListLBDNResponse{} + + err = json.Unmarshal(data, &varListLBDNResponse) + + if err != nil { + return err + } + + *o = ListLBDNResponse(varListLBDNResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListLBDNResponse struct { value *ListLBDNResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_server_response.go index 0ee59ea0..8190b969 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_server_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListServerResponse{} // ListServerResponse The Server object list response format. type ListServerResponse struct { // List of Server objects. - Results []Server `json:"results,omitempty"` + Results []Server `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListServerResponse ListServerResponse + // NewListServerResponse instantiates a new ListServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListServerResponse) UnmarshalJSON(data []byte) (err error) { + varListServerResponse := _ListServerResponse{} + + err = json.Unmarshal(data, &varListServerResponse) + + if err != nil { + return err + } + + *o = ListServerResponse(varListServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListServerResponse struct { value *ListServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_view_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_view_response.go index 259a9795..b4793f78 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_view_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_list_view_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListViewResponse{} // ListViewResponse The View object list response format. type ListViewResponse struct { // List of View objects. - Results []View `json:"results,omitempty"` + Results []View `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListViewResponse ListViewResponse + // NewListViewResponse instantiates a new ListViewResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListViewResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListViewResponse) UnmarshalJSON(data []byte) (err error) { + varListViewResponse := _ListViewResponse{} + + err = json.Unmarshal(data, &varListViewResponse) + + if err != nil { + return err + } + + *o = ListViewResponse(varListViewResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListViewResponse struct { value *ListViewResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_acl_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_acl_response.go index f8c0098b..ae1ce9da 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_acl_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_acl_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadACLResponse{} // ReadACLResponse The ACL object read response format. type ReadACLResponse struct { - Result *ACL `json:"result,omitempty"` + Result *ACL `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadACLResponse ReadACLResponse + // NewReadACLResponse instantiates a new ReadACLResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadACLResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadACLResponse) UnmarshalJSON(data []byte) (err error) { + varReadACLResponse := _ReadACLResponse{} + + err = json.Unmarshal(data, &varReadACLResponse) + + if err != nil { + return err + } + + *o = ReadACLResponse(varReadACLResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadACLResponse struct { value *ReadACLResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_nsg_response.go index 7535f60a..e89f5ecb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadAuthNSGResponse{} // ReadAuthNSGResponse The AuthNSG object read response format. type ReadAuthNSGResponse struct { - Result *AuthNSG `json:"result,omitempty"` + Result *AuthNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadAuthNSGResponse ReadAuthNSGResponse + // NewReadAuthNSGResponse instantiates a new ReadAuthNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadAuthNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadAuthNSGResponse) UnmarshalJSON(data []byte) (err error) { + varReadAuthNSGResponse := _ReadAuthNSGResponse{} + + err = json.Unmarshal(data, &varReadAuthNSGResponse) + + if err != nil { + return err + } + + *o = ReadAuthNSGResponse(varReadAuthNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadAuthNSGResponse struct { value *ReadAuthNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_zone_response.go index 01498d94..c08bb624 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_auth_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadAuthZoneResponse{} // ReadAuthZoneResponse The Authoritative Zone object read response format. type ReadAuthZoneResponse struct { - Result *AuthZone `json:"result,omitempty"` + Result *AuthZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadAuthZoneResponse ReadAuthZoneResponse + // NewReadAuthZoneResponse instantiates a new ReadAuthZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadAuthZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadAuthZoneResponse) UnmarshalJSON(data []byte) (err error) { + varReadAuthZoneResponse := _ReadAuthZoneResponse{} + + err = json.Unmarshal(data, &varReadAuthZoneResponse) + + if err != nil { + return err + } + + *o = ReadAuthZoneResponse(varReadAuthZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadAuthZoneResponse struct { value *ReadAuthZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_delegation_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_delegation_response.go index 94ecfa22..73ef00e5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_delegation_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_delegation_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadDelegationResponse{} // ReadDelegationResponse The Delegation object read response format. type ReadDelegationResponse struct { - Result *Delegation `json:"result,omitempty"` + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadDelegationResponse ReadDelegationResponse + // NewReadDelegationResponse instantiates a new ReadDelegationResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadDelegationResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varReadDelegationResponse := _ReadDelegationResponse{} + + err = json.Unmarshal(data, &varReadDelegationResponse) + + if err != nil { + return err + } + + *o = ReadDelegationResponse(varReadDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadDelegationResponse struct { value *ReadDelegationResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_nsg_response.go index 117a1fe9..196c8a69 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadForwardNSGResponse{} // ReadForwardNSGResponse The ForwardNSG object read response format. type ReadForwardNSGResponse struct { - Result *ForwardNSG `json:"result,omitempty"` + Result *ForwardNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadForwardNSGResponse ReadForwardNSGResponse + // NewReadForwardNSGResponse instantiates a new ReadForwardNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadForwardNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadForwardNSGResponse) UnmarshalJSON(data []byte) (err error) { + varReadForwardNSGResponse := _ReadForwardNSGResponse{} + + err = json.Unmarshal(data, &varReadForwardNSGResponse) + + if err != nil { + return err + } + + *o = ReadForwardNSGResponse(varReadForwardNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadForwardNSGResponse struct { value *ReadForwardNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_zone_response.go index 942bc273..01dfefa4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_forward_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadForwardZoneResponse{} // ReadForwardZoneResponse The Forward Zone object read response format. type ReadForwardZoneResponse struct { - Result *ForwardZone `json:"result,omitempty"` + Result *ForwardZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadForwardZoneResponse ReadForwardZoneResponse + // NewReadForwardZoneResponse instantiates a new ReadForwardZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadForwardZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadForwardZoneResponse) UnmarshalJSON(data []byte) (err error) { + varReadForwardZoneResponse := _ReadForwardZoneResponse{} + + err = json.Unmarshal(data, &varReadForwardZoneResponse) + + if err != nil { + return err + } + + *o = ReadForwardZoneResponse(varReadForwardZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadForwardZoneResponse struct { value *ReadForwardZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_global_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_global_response.go index a6c26f90..d83d3597 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_global_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_global_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadGlobalResponse{} // ReadGlobalResponse The Global object read response format. type ReadGlobalResponse struct { - Result *Global `json:"result,omitempty"` + Result *Global `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadGlobalResponse ReadGlobalResponse + // NewReadGlobalResponse instantiates a new ReadGlobalResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadGlobalResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadGlobalResponse) UnmarshalJSON(data []byte) (err error) { + varReadGlobalResponse := _ReadGlobalResponse{} + + err = json.Unmarshal(data, &varReadGlobalResponse) + + if err != nil { + return err + } + + *o = ReadGlobalResponse(varReadGlobalResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadGlobalResponse struct { value *ReadGlobalResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_host_response.go index 4518d4d9..cf517231 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadHostResponse{} // ReadHostResponse The DNS Host object read response format. type ReadHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadHostResponse ReadHostResponse + // NewReadHostResponse instantiates a new ReadHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadHostResponse) UnmarshalJSON(data []byte) (err error) { + varReadHostResponse := _ReadHostResponse{} + + err = json.Unmarshal(data, &varReadHostResponse) + + if err != nil { + return err + } + + *o = ReadHostResponse(varReadHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadHostResponse struct { value *ReadHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_lbdn_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_lbdn_response.go index cdee400c..c5a97b7b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_lbdn_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_lbdn_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadLBDNResponse{} // ReadLBDNResponse The __LBDN__ object read response format. type ReadLBDNResponse struct { - Result *LBDN `json:"result,omitempty"` + Result *LBDN `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadLBDNResponse ReadLBDNResponse + // NewReadLBDNResponse instantiates a new ReadLBDNResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadLBDNResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadLBDNResponse) UnmarshalJSON(data []byte) (err error) { + varReadLBDNResponse := _ReadLBDNResponse{} + + err = json.Unmarshal(data, &varReadLBDNResponse) + + if err != nil { + return err + } + + *o = ReadLBDNResponse(varReadLBDNResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadLBDNResponse struct { value *ReadLBDNResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_server_response.go index e4c0539f..6fd8b1cf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadServerResponse{} // ReadServerResponse The Server object read response format. type ReadServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadServerResponse ReadServerResponse + // NewReadServerResponse instantiates a new ReadServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadServerResponse) UnmarshalJSON(data []byte) (err error) { + varReadServerResponse := _ReadServerResponse{} + + err = json.Unmarshal(data, &varReadServerResponse) + + if err != nil { + return err + } + + *o = ReadServerResponse(varReadServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadServerResponse struct { value *ReadServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_view_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_view_response.go index df5bc840..3b8cd52c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_view_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_read_view_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadViewResponse{} // ReadViewResponse The View object read response format. type ReadViewResponse struct { - Result *View `json:"result,omitempty"` + Result *View `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadViewResponse ReadViewResponse + // NewReadViewResponse instantiates a new ReadViewResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadViewResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadViewResponse) UnmarshalJSON(data []byte) (err error) { + varReadViewResponse := _ReadViewResponse{} + + err = json.Unmarshal(data, &varReadViewResponse) + + if err != nil { + return err + } + + *o = ReadViewResponse(varReadViewResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadViewResponse struct { value *ReadViewResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_root_ns.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_root_ns.go index 17ba3f2e..2eece292 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_root_ns.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_root_ns.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type RootNS struct { // FQDN. Fqdn string `json:"fqdn"` // FQDN in punycode. - ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` + AdditionalProperties map[string]interface{} } type _RootNS RootNS @@ -145,6 +145,11 @@ func (o RootNS) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProtocolFqdn) { toSerialize["protocol_fqdn"] = o.ProtocolFqdn } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -173,9 +178,7 @@ func (o *RootNS) UnmarshalJSON(data []byte) (err error) { varRootNS := _RootNS{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRootNS) + err = json.Unmarshal(data, &varRootNS) if err != nil { return err @@ -183,6 +186,15 @@ func (o *RootNS) UnmarshalJSON(data []byte) (err error) { *o = RootNS(varRootNS) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "fqdn") + delete(additionalProperties, "protocol_fqdn") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server.go index 279672b5..bc54060e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" "time" @@ -118,7 +117,8 @@ type Server struct { // _use_root_forwarders_for_local_resolution_with_b1td_ allows DNS recursive queries sent to root forwarders for local resolution when deployed alongside BloxOne Thread Defense. Defaults to _false_. UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` // Optional. Ordered list of _dns/display_view_ objects served by any of _dns/host_ assigned to a particular DNS Config Profile. Automatically determined. Allows re-ordering only. - Views []DisplayView `json:"views,omitempty"` + Views []DisplayView `json:"views,omitempty"` + AdditionalProperties map[string]interface{} } type _Server Server @@ -1856,6 +1856,11 @@ func (o Server) ToMap() (map[string]interface{}, error) { if !IsNil(o.Views) { toSerialize["views"] = o.Views } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1883,9 +1888,7 @@ func (o *Server) UnmarshalJSON(data []byte) (err error) { varServer := _Server{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varServer) + err = json.Unmarshal(data, &varServer) if err != nil { return err @@ -1893,6 +1896,61 @@ func (o *Server) UnmarshalJSON(data []byte) (err error) { *o = Server(varServer) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "add_edns_option_in_outgoing_query") + delete(additionalProperties, "auto_sort_views") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "custom_root_ns") + delete(additionalProperties, "custom_root_ns_enabled") + delete(additionalProperties, "dnssec_enable_validation") + delete(additionalProperties, "dnssec_enabled") + delete(additionalProperties, "dnssec_root_keys") + delete(additionalProperties, "dnssec_trust_anchors") + delete(additionalProperties, "dnssec_validate_expiry") + delete(additionalProperties, "ecs_enabled") + delete(additionalProperties, "ecs_forwarding") + delete(additionalProperties, "ecs_prefix_v4") + delete(additionalProperties, "ecs_prefix_v6") + delete(additionalProperties, "ecs_zones") + delete(additionalProperties, "filter_aaaa_acl") + delete(additionalProperties, "filter_aaaa_on_v4") + delete(additionalProperties, "forwarders") + delete(additionalProperties, "forwarders_only") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "lame_ttl") + delete(additionalProperties, "log_query_response") + delete(additionalProperties, "match_recursive_only") + delete(additionalProperties, "max_cache_ttl") + delete(additionalProperties, "max_negative_ttl") + delete(additionalProperties, "minimal_responses") + delete(additionalProperties, "name") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "query_port") + delete(additionalProperties, "recursion_acl") + delete(additionalProperties, "recursion_enabled") + delete(additionalProperties, "recursive_clients") + delete(additionalProperties, "resolver_query_timeout") + delete(additionalProperties, "secondary_axfr_query_limit") + delete(additionalProperties, "secondary_soa_query_limit") + delete(additionalProperties, "sort_list") + delete(additionalProperties, "synthesize_address_records_from_https") + delete(additionalProperties, "tags") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "use_root_forwarders_for_local_resolution_with_b1td") + delete(additionalProperties, "views") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server_inheritance.go index 9095e2d6..87b2d31d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_server_inheritance.go @@ -48,8 +48,11 @@ type ServerInheritance struct { TransferAcl *InheritedACLItems `json:"transfer_acl,omitempty"` UpdateAcl *InheritedACLItems `json:"update_acl,omitempty"` UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServerInheritance ServerInheritance + // NewServerInheritance instantiates a new ServerInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1092,9 +1095,63 @@ func (o ServerInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.UseForwardersForSubzones) { toSerialize["use_forwarders_for_subzones"] = o.UseForwardersForSubzones } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServerInheritance) UnmarshalJSON(data []byte) (err error) { + varServerInheritance := _ServerInheritance{} + + err = json.Unmarshal(data, &varServerInheritance) + + if err != nil { + return err + } + + *o = ServerInheritance(varServerInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "add_edns_option_in_outgoing_query") + delete(additionalProperties, "custom_root_ns_block") + delete(additionalProperties, "dnssec_validation_block") + delete(additionalProperties, "ecs_block") + delete(additionalProperties, "filter_aaaa_acl") + delete(additionalProperties, "filter_aaaa_on_v4") + delete(additionalProperties, "forwarders_block") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "lame_ttl") + delete(additionalProperties, "log_query_response") + delete(additionalProperties, "match_recursive_only") + delete(additionalProperties, "max_cache_ttl") + delete(additionalProperties, "max_negative_ttl") + delete(additionalProperties, "minimal_responses") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "query_port") + delete(additionalProperties, "recursion_acl") + delete(additionalProperties, "recursion_enabled") + delete(additionalProperties, "recursive_clients") + delete(additionalProperties, "resolver_query_timeout") + delete(additionalProperties, "secondary_axfr_query_limit") + delete(additionalProperties, "secondary_soa_query_limit") + delete(additionalProperties, "sort_list") + delete(additionalProperties, "synthesize_address_records_from_https") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "use_forwarders_for_subzones") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServerInheritance struct { value *ServerInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_sort_list_item.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_sort_list_item.go index 3512990d..6e651157 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_sort_list_item.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_sort_list_item.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -28,7 +27,8 @@ type SortListItem struct { // Optional. The prioritized networks. If empty, the value of _source_ or networks from _acl_ is used. PrioritizedNetworks []string `json:"prioritized_networks,omitempty"` // Must be empty if _element_ is not _ip_. - Source *string `json:"source,omitempty"` + Source *string `json:"source,omitempty"` + AdditionalProperties map[string]interface{} } type _SortListItem SortListItem @@ -191,6 +191,11 @@ func (o SortListItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.Source) { toSerialize["source"] = o.Source } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -218,9 +223,7 @@ func (o *SortListItem) UnmarshalJSON(data []byte) (err error) { varSortListItem := _SortListItem{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varSortListItem) + err = json.Unmarshal(data, &varSortListItem) if err != nil { return err @@ -228,6 +231,16 @@ func (o *SortListItem) UnmarshalJSON(data []byte) (err error) { *o = SortListItem(varSortListItem) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "acl") + delete(additionalProperties, "element") + delete(additionalProperties, "prioritized_networks") + delete(additionalProperties, "source") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_trust_anchor.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_trust_anchor.go index 6a9a693a..1b9c844c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_trust_anchor.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_trust_anchor.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" ) @@ -29,7 +28,8 @@ type TrustAnchor struct { // Optional. Secure Entry Point flag. Defaults to _true_. Sep *bool `json:"sep,omitempty"` // Zone FQDN. - Zone string `json:"zone"` + Zone string `json:"zone"` + AdditionalProperties map[string]interface{} } type _TrustAnchor TrustAnchor @@ -209,6 +209,11 @@ func (o TrustAnchor) ToMap() (map[string]interface{}, error) { toSerialize["sep"] = o.Sep } toSerialize["zone"] = o.Zone + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -238,9 +243,7 @@ func (o *TrustAnchor) UnmarshalJSON(data []byte) (err error) { varTrustAnchor := _TrustAnchor{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTrustAnchor) + err = json.Unmarshal(data, &varTrustAnchor) if err != nil { return err @@ -248,6 +251,17 @@ func (o *TrustAnchor) UnmarshalJSON(data []byte) (err error) { *o = TrustAnchor(varTrustAnchor) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "protocol_zone") + delete(additionalProperties, "public_key") + delete(additionalProperties, "sep") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_tsig_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_tsig_key.go index cd5d7acd..e230d1fd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_tsig_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_tsig_key.go @@ -30,9 +30,12 @@ type TSIGKey struct { // TSIG key name in punycode. ProtocolName *string `json:"protocol_name,omitempty"` // TSIG key secret, base64 string. - Secret *string `json:"secret,omitempty"` + Secret *string `json:"secret,omitempty"` + AdditionalProperties map[string]interface{} } +type _TSIGKey TSIGKey + // NewTSIGKey instantiates a new TSIGKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -270,9 +273,40 @@ func (o TSIGKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TSIGKey) UnmarshalJSON(data []byte) (err error) { + varTSIGKey := _TSIGKey{} + + err = json.Unmarshal(data, &varTSIGKey) + + if err != nil { + return err + } + + *o = TSIGKey(varTSIGKey) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "comment") + delete(additionalProperties, "key") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol_name") + delete(additionalProperties, "secret") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTSIGKey struct { value *TSIGKey isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ttl_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ttl_inheritance.go index 55a666b1..841dac8e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ttl_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_ttl_inheritance.go @@ -19,9 +19,12 @@ var _ MappedNullable = &TTLInheritance{} // TTLInheritance The inheritance configuration specifies how the object inherits the _ttl_ field. type TTLInheritance struct { - Ttl *Inheritance2InheritedUInt32 `json:"ttl,omitempty"` + Ttl *Inheritance2InheritedUInt32 `json:"ttl,omitempty"` + AdditionalProperties map[string]interface{} } +type _TTLInheritance TTLInheritance + // NewTTLInheritance instantiates a new TTLInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o TTLInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ttl) { toSerialize["ttl"] = o.Ttl } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TTLInheritance) UnmarshalJSON(data []byte) (err error) { + varTTLInheritance := _TTLInheritance{} + + err = json.Unmarshal(data, &varTTLInheritance) + + if err != nil { + return err + } + + *o = TTLInheritance(varTTLInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ttl") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTTLInheritance struct { value *TTLInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_acl_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_acl_response.go index 5d88dbe4..c3ff1763 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_acl_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_acl_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateACLResponse{} // UpdateACLResponse The ACL object update response format. type UpdateACLResponse struct { - Result *ACL `json:"result,omitempty"` + Result *ACL `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateACLResponse UpdateACLResponse + // NewUpdateACLResponse instantiates a new UpdateACLResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateACLResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateACLResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateACLResponse := _UpdateACLResponse{} + + err = json.Unmarshal(data, &varUpdateACLResponse) + + if err != nil { + return err + } + + *o = UpdateACLResponse(varUpdateACLResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateACLResponse struct { value *UpdateACLResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_nsg_response.go index d84be268..dbe19fb4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateAuthNSGResponse{} // UpdateAuthNSGResponse The AuthNSG object update response format. type UpdateAuthNSGResponse struct { - Result *AuthNSG `json:"result,omitempty"` + Result *AuthNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateAuthNSGResponse UpdateAuthNSGResponse + // NewUpdateAuthNSGResponse instantiates a new UpdateAuthNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateAuthNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateAuthNSGResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateAuthNSGResponse := _UpdateAuthNSGResponse{} + + err = json.Unmarshal(data, &varUpdateAuthNSGResponse) + + if err != nil { + return err + } + + *o = UpdateAuthNSGResponse(varUpdateAuthNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateAuthNSGResponse struct { value *UpdateAuthNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_zone_response.go index a25af815..4c950684 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_auth_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateAuthZoneResponse{} // UpdateAuthZoneResponse The Authoritative Zone object update response format. type UpdateAuthZoneResponse struct { - Result *AuthZone `json:"result,omitempty"` + Result *AuthZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateAuthZoneResponse UpdateAuthZoneResponse + // NewUpdateAuthZoneResponse instantiates a new UpdateAuthZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateAuthZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateAuthZoneResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateAuthZoneResponse := _UpdateAuthZoneResponse{} + + err = json.Unmarshal(data, &varUpdateAuthZoneResponse) + + if err != nil { + return err + } + + *o = UpdateAuthZoneResponse(varUpdateAuthZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateAuthZoneResponse struct { value *UpdateAuthZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_delegation_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_delegation_response.go index 4a97b80f..b5be5549 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_delegation_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_delegation_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateDelegationResponse{} // UpdateDelegationResponse The Delegation object update response format. type UpdateDelegationResponse struct { - Result *Delegation `json:"result,omitempty"` + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateDelegationResponse UpdateDelegationResponse + // NewUpdateDelegationResponse instantiates a new UpdateDelegationResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateDelegationResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateDelegationResponse := _UpdateDelegationResponse{} + + err = json.Unmarshal(data, &varUpdateDelegationResponse) + + if err != nil { + return err + } + + *o = UpdateDelegationResponse(varUpdateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateDelegationResponse struct { value *UpdateDelegationResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_nsg_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_nsg_response.go index 741b1455..272b0ba9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_nsg_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_nsg_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateForwardNSGResponse{} // UpdateForwardNSGResponse The ForwardNSG object update response format. type UpdateForwardNSGResponse struct { - Result *ForwardNSG `json:"result,omitempty"` + Result *ForwardNSG `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateForwardNSGResponse UpdateForwardNSGResponse + // NewUpdateForwardNSGResponse instantiates a new UpdateForwardNSGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateForwardNSGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateForwardNSGResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateForwardNSGResponse := _UpdateForwardNSGResponse{} + + err = json.Unmarshal(data, &varUpdateForwardNSGResponse) + + if err != nil { + return err + } + + *o = UpdateForwardNSGResponse(varUpdateForwardNSGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateForwardNSGResponse struct { value *UpdateForwardNSGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_zone_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_zone_response.go index 1e733b70..156ddf23 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_zone_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_forward_zone_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateForwardZoneResponse{} // UpdateForwardZoneResponse The Forward Zone object update response format. type UpdateForwardZoneResponse struct { - Result *ForwardZone `json:"result,omitempty"` + Result *ForwardZone `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateForwardZoneResponse UpdateForwardZoneResponse + // NewUpdateForwardZoneResponse instantiates a new UpdateForwardZoneResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateForwardZoneResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateForwardZoneResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateForwardZoneResponse := _UpdateForwardZoneResponse{} + + err = json.Unmarshal(data, &varUpdateForwardZoneResponse) + + if err != nil { + return err + } + + *o = UpdateForwardZoneResponse(varUpdateForwardZoneResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateForwardZoneResponse struct { value *UpdateForwardZoneResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_global_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_global_response.go index a68de30b..e795b62d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_global_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_global_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateGlobalResponse{} // UpdateGlobalResponse The Global object update response format. type UpdateGlobalResponse struct { - Result *Global `json:"result,omitempty"` + Result *Global `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateGlobalResponse UpdateGlobalResponse + // NewUpdateGlobalResponse instantiates a new UpdateGlobalResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateGlobalResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateGlobalResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateGlobalResponse := _UpdateGlobalResponse{} + + err = json.Unmarshal(data, &varUpdateGlobalResponse) + + if err != nil { + return err + } + + *o = UpdateGlobalResponse(varUpdateGlobalResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateGlobalResponse struct { value *UpdateGlobalResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_host_response.go index b63d7b74..6a6676f7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateHostResponse{} // UpdateHostResponse The DNS Host object update response format. type UpdateHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateHostResponse UpdateHostResponse + // NewUpdateHostResponse instantiates a new UpdateHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateHostResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateHostResponse := _UpdateHostResponse{} + + err = json.Unmarshal(data, &varUpdateHostResponse) + + if err != nil { + return err + } + + *o = UpdateHostResponse(varUpdateHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateHostResponse struct { value *UpdateHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_lbdn_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_lbdn_response.go index f56dfb1c..568c11ee 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_lbdn_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_lbdn_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateLBDNResponse{} // UpdateLBDNResponse The __LBDN__ object update response format. type UpdateLBDNResponse struct { - Result *LBDN `json:"result,omitempty"` + Result *LBDN `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateLBDNResponse UpdateLBDNResponse + // NewUpdateLBDNResponse instantiates a new UpdateLBDNResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateLBDNResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateLBDNResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateLBDNResponse := _UpdateLBDNResponse{} + + err = json.Unmarshal(data, &varUpdateLBDNResponse) + + if err != nil { + return err + } + + *o = UpdateLBDNResponse(varUpdateLBDNResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateLBDNResponse struct { value *UpdateLBDNResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_server_response.go index a899efa1..64b5c312 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateServerResponse{} // UpdateServerResponse The Server object update response format. type UpdateServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateServerResponse UpdateServerResponse + // NewUpdateServerResponse instantiates a new UpdateServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateServerResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateServerResponse := _UpdateServerResponse{} + + err = json.Unmarshal(data, &varUpdateServerResponse) + + if err != nil { + return err + } + + *o = UpdateServerResponse(varUpdateServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateServerResponse struct { value *UpdateServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_view_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_view_response.go index 71554c1b..d6b61971 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_view_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_update_view_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateViewResponse{} // UpdateViewResponse The View object update response format. type UpdateViewResponse struct { - Result *View `json:"result,omitempty"` + Result *View `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateViewResponse UpdateViewResponse + // NewUpdateViewResponse instantiates a new UpdateViewResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateViewResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateViewResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateViewResponse := _UpdateViewResponse{} + + err = json.Unmarshal(data, &varUpdateViewResponse) + + if err != nil { + return err + } + + *o = UpdateViewResponse(varUpdateViewResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateViewResponse struct { value *UpdateViewResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view.go index e04132b9..b7b687a4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view.go @@ -11,7 +11,6 @@ API version: v1 package dnsconfig import ( - "bytes" "encoding/json" "fmt" "time" @@ -115,6 +114,7 @@ type View struct { // _use_root_forwarders_for_local_resolution_with_b1td_ allows DNS recursive queries sent to root forwarders for local resolution when deployed alongside BloxOne Thread Defense. Defaults to _false_. UseRootForwardersForLocalResolutionWithB1td *bool `json:"use_root_forwarders_for_local_resolution_with_b1td,omitempty"` ZoneAuthority *ZoneAuthority `json:"zone_authority,omitempty"` + AdditionalProperties map[string]interface{} } type _View View @@ -1817,6 +1817,11 @@ func (o View) ToMap() (map[string]interface{}, error) { if !IsNil(o.ZoneAuthority) { toSerialize["zone_authority"] = o.ZoneAuthority } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1844,9 +1849,7 @@ func (o *View) UnmarshalJSON(data []byte) (err error) { varView := _View{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varView) + err = json.Unmarshal(data, &varView) if err != nil { return err @@ -1854,6 +1857,60 @@ func (o *View) UnmarshalJSON(data []byte) (err error) { *o = View(varView) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "add_edns_option_in_outgoing_query") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "custom_root_ns") + delete(additionalProperties, "custom_root_ns_enabled") + delete(additionalProperties, "disabled") + delete(additionalProperties, "dnssec_enable_validation") + delete(additionalProperties, "dnssec_enabled") + delete(additionalProperties, "dnssec_root_keys") + delete(additionalProperties, "dnssec_trust_anchors") + delete(additionalProperties, "dnssec_validate_expiry") + delete(additionalProperties, "dtc_config") + delete(additionalProperties, "ecs_enabled") + delete(additionalProperties, "ecs_forwarding") + delete(additionalProperties, "ecs_prefix_v4") + delete(additionalProperties, "ecs_prefix_v6") + delete(additionalProperties, "ecs_zones") + delete(additionalProperties, "edns_udp_size") + delete(additionalProperties, "filter_aaaa_acl") + delete(additionalProperties, "filter_aaaa_on_v4") + delete(additionalProperties, "forwarders") + delete(additionalProperties, "forwarders_only") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "ip_spaces") + delete(additionalProperties, "lame_ttl") + delete(additionalProperties, "match_clients_acl") + delete(additionalProperties, "match_destinations_acl") + delete(additionalProperties, "match_recursive_only") + delete(additionalProperties, "max_cache_ttl") + delete(additionalProperties, "max_negative_ttl") + delete(additionalProperties, "max_udp_size") + delete(additionalProperties, "minimal_responses") + delete(additionalProperties, "name") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "recursion_acl") + delete(additionalProperties, "recursion_enabled") + delete(additionalProperties, "sort_list") + delete(additionalProperties, "synthesize_address_records_from_https") + delete(additionalProperties, "tags") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "use_root_forwarders_for_local_resolution_with_b1td") + delete(additionalProperties, "zone_authority") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view_inheritance.go index e835ed6d..1a845e2d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_view_inheritance.go @@ -45,8 +45,11 @@ type ViewInheritance struct { UpdateAcl *InheritedACLItems `json:"update_acl,omitempty"` UseForwardersForSubzones *Inheritance2InheritedBool `json:"use_forwarders_for_subzones,omitempty"` ZoneAuthority *InheritedZoneAuthority `json:"zone_authority,omitempty"` + AdditionalProperties map[string]interface{} } +type _ViewInheritance ViewInheritance + // NewViewInheritance instantiates a new ViewInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -984,9 +987,60 @@ func (o ViewInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.ZoneAuthority) { toSerialize["zone_authority"] = o.ZoneAuthority } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ViewInheritance) UnmarshalJSON(data []byte) (err error) { + varViewInheritance := _ViewInheritance{} + + err = json.Unmarshal(data, &varViewInheritance) + + if err != nil { + return err + } + + *o = ViewInheritance(varViewInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "add_edns_option_in_outgoing_query") + delete(additionalProperties, "custom_root_ns_block") + delete(additionalProperties, "dnssec_validation_block") + delete(additionalProperties, "dtc_config") + delete(additionalProperties, "ecs_block") + delete(additionalProperties, "edns_udp_size") + delete(additionalProperties, "filter_aaaa_acl") + delete(additionalProperties, "filter_aaaa_on_v4") + delete(additionalProperties, "forwarders_block") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "lame_ttl") + delete(additionalProperties, "match_recursive_only") + delete(additionalProperties, "max_cache_ttl") + delete(additionalProperties, "max_negative_ttl") + delete(additionalProperties, "max_udp_size") + delete(additionalProperties, "minimal_responses") + delete(additionalProperties, "notify") + delete(additionalProperties, "query_acl") + delete(additionalProperties, "recursion_acl") + delete(additionalProperties, "recursion_enabled") + delete(additionalProperties, "sort_list") + delete(additionalProperties, "synthesize_address_records_from_https") + delete(additionalProperties, "transfer_acl") + delete(additionalProperties, "update_acl") + delete(additionalProperties, "use_forwarders_for_subzones") + delete(additionalProperties, "zone_authority") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableViewInheritance struct { value *ViewInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_warning.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_warning.go index f718fc6d..0ba417c9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_warning.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_warning.go @@ -22,9 +22,12 @@ type Warning struct { // Warning message. Message *string `json:"message,omitempty"` // Name of a warning. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} } +type _Warning Warning + // NewWarning instantiates a new Warning object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o Warning) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Warning) UnmarshalJSON(data []byte) (err error) { + varWarning := _Warning{} + + err = json.Unmarshal(data, &varWarning) + + if err != nil { + return err + } + + *o = Warning(varWarning) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableWarning struct { value *Warning isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority.go index a967da57..94fa13fa 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority.go @@ -38,9 +38,12 @@ type ZoneAuthority struct { // Optional. ZoneAuthority rname. Defaults to empty. Rname *string `json:"rname,omitempty"` // Optional. Use default value for master name server. Defaults to true. - UseDefaultMname *bool `json:"use_default_mname,omitempty"` + UseDefaultMname *bool `json:"use_default_mname,omitempty"` + AdditionalProperties map[string]interface{} } +type _ZoneAuthority ZoneAuthority + // NewZoneAuthority instantiates a new ZoneAuthority object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -418,9 +421,44 @@ func (o ZoneAuthority) ToMap() (map[string]interface{}, error) { if !IsNil(o.UseDefaultMname) { toSerialize["use_default_mname"] = o.UseDefaultMname } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ZoneAuthority) UnmarshalJSON(data []byte) (err error) { + varZoneAuthority := _ZoneAuthority{} + + err = json.Unmarshal(data, &varZoneAuthority) + + if err != nil { + return err + } + + *o = ZoneAuthority(varZoneAuthority) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "default_ttl") + delete(additionalProperties, "expire") + delete(additionalProperties, "mname") + delete(additionalProperties, "negative_ttl") + delete(additionalProperties, "protocol_mname") + delete(additionalProperties, "protocol_rname") + delete(additionalProperties, "refresh") + delete(additionalProperties, "retry") + delete(additionalProperties, "rname") + delete(additionalProperties, "use_default_mname") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableZoneAuthority struct { value *ZoneAuthority isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority_m_name_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority_m_name_block.go index decd2db7..e3c9c3be 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority_m_name_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsconfig/model_zone_authority_m_name_block.go @@ -24,9 +24,12 @@ type ZoneAuthorityMNameBlock struct { // Optional. Master name server in punycode. Defaults to empty. ProtocolMname *string `json:"protocol_mname,omitempty"` // Optional. Use default value for master name server. Defaults to true. - UseDefaultMname *bool `json:"use_default_mname,omitempty"` + UseDefaultMname *bool `json:"use_default_mname,omitempty"` + AdditionalProperties map[string]interface{} } +type _ZoneAuthorityMNameBlock ZoneAuthorityMNameBlock + // NewZoneAuthorityMNameBlock instantiates a new ZoneAuthorityMNameBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o ZoneAuthorityMNameBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.UseDefaultMname) { toSerialize["use_default_mname"] = o.UseDefaultMname } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ZoneAuthorityMNameBlock) UnmarshalJSON(data []byte) (err error) { + varZoneAuthorityMNameBlock := _ZoneAuthorityMNameBlock{} + + err = json.Unmarshal(data, &varZoneAuthorityMNameBlock) + + if err != nil { + return err + } + + *o = ZoneAuthorityMNameBlock(varZoneAuthorityMNameBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "mname") + delete(additionalProperties, "protocol_mname") + delete(additionalProperties, "use_default_mname") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableZoneAuthorityMNameBlock struct { value *ZoneAuthorityMNameBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_create_record_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_create_record_response.go index c5e44f50..7825182d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_create_record_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_create_record_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateRecordResponse{} // CreateRecordResponse The response format to create the __Record__ object. type CreateRecordResponse struct { - Result *Record `json:"result,omitempty"` + Result *Record `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateRecordResponse CreateRecordResponse + // NewCreateRecordResponse instantiates a new CreateRecordResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateRecordResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateRecordResponse) UnmarshalJSON(data []byte) (err error) { + varCreateRecordResponse := _CreateRecordResponse{} + + err = json.Unmarshal(data, &varCreateRecordResponse) + + if err != nil { + return err + } + + *o = CreateRecordResponse(varCreateRecordResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateRecordResponse struct { value *CreateRecordResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_inheritance2_inherited_u_int32.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_inheritance2_inherited_u_int32.go index e6fcbb27..1aa54532 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_inheritance2_inherited_u_int32.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_inheritance2_inherited_u_int32.go @@ -26,9 +26,12 @@ type Inheritance2InheritedUInt32 struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *int64 `json:"value,omitempty"` + Value *int64 `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _Inheritance2InheritedUInt32 Inheritance2InheritedUInt32 + // NewInheritance2InheritedUInt32 instantiates a new Inheritance2InheritedUInt32 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o Inheritance2InheritedUInt32) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Inheritance2InheritedUInt32) UnmarshalJSON(data []byte) (err error) { + varInheritance2InheritedUInt32 := _Inheritance2InheritedUInt32{} + + err = json.Unmarshal(data, &varInheritance2InheritedUInt32) + + if err != nil { + return err + } + + *o = Inheritance2InheritedUInt32(varInheritance2InheritedUInt32) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritance2InheritedUInt32 struct { value *Inheritance2InheritedUInt32 isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_list_record_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_list_record_response.go index 08d967e2..8a6a92f1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_list_record_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_list_record_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListRecordResponse{} // ListRecordResponse The response format to retrieve __Record__ objects. type ListRecordResponse struct { // The list of Record objects. - Results []Record `json:"results,omitempty"` + Results []Record `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListRecordResponse ListRecordResponse + // NewListRecordResponse instantiates a new ListRecordResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListRecordResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListRecordResponse) UnmarshalJSON(data []byte) (err error) { + varListRecordResponse := _ListRecordResponse{} + + err = json.Unmarshal(data, &varListRecordResponse) + + if err != nil { + return err + } + + *o = ListRecordResponse(varListRecordResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListRecordResponse struct { value *ListRecordResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_protobuf_field_mask.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_protobuf_field_mask.go index 72aed138..dd520724 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_protobuf_field_mask.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_protobuf_field_mask.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ProtobufFieldMask{} // ProtobufFieldMask paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, the existing repeated values in the target resource will be overwritten by the new values. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then the existing sub-message in the target resource is overwritten. Given the target message: f { b { d : 1 x : 2 } c : 1 } And an update message: f { b { d : 10 } } then if the field mask is: paths: \"f.b\" then the result will be: f { b { d : 10 } c : 1 } However, if the update mask was: paths: \"f.b.d\" then the result would be: f { b { d : 10 x : 2 } c : 1 } In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of the all the API methods, which have any FieldMask type field in the request, should verify the included field paths, and return `INVALID_ARGUMENT` error if any path is duplicated or unmappable. type ProtobufFieldMask struct { // The set of field mask paths. - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty"` + AdditionalProperties map[string]interface{} } +type _ProtobufFieldMask ProtobufFieldMask + // NewProtobufFieldMask instantiates a new ProtobufFieldMask object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ProtobufFieldMask) ToMap() (map[string]interface{}, error) { if !IsNil(o.Paths) { toSerialize["paths"] = o.Paths } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ProtobufFieldMask) UnmarshalJSON(data []byte) (err error) { + varProtobufFieldMask := _ProtobufFieldMask{} + + err = json.Unmarshal(data, &varProtobufFieldMask) + + if err != nil { + return err + } + + *o = ProtobufFieldMask(varProtobufFieldMask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "paths") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableProtobufFieldMask struct { value *ProtobufFieldMask isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_read_record_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_read_record_response.go index 56e267c2..b28eaad9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_read_record_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_read_record_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadRecordResponse{} // ReadRecordResponse The response format to retrieve the __Record__ object. type ReadRecordResponse struct { - Result *Record `json:"result,omitempty"` + Result *Record `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadRecordResponse ReadRecordResponse + // NewReadRecordResponse instantiates a new ReadRecordResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadRecordResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadRecordResponse) UnmarshalJSON(data []byte) (err error) { + varReadRecordResponse := _ReadRecordResponse{} + + err = json.Unmarshal(data, &varReadRecordResponse) + + if err != nil { + return err + } + + *o = ReadRecordResponse(varReadRecordResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadRecordResponse struct { value *ReadRecordResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record.go index e6234344..18177386 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record.go @@ -11,7 +11,6 @@ API version: v1 package dnsdata import ( - "bytes" "encoding/json" "fmt" "time" @@ -72,7 +71,8 @@ type Record struct { // The display name of the DNS view that contains the parent zone of the DNS resource record. ViewName *string `json:"view_name,omitempty"` // The resource identifier. - Zone *string `json:"zone,omitempty"` + Zone *string `json:"zone,omitempty"` + AdditionalProperties map[string]interface{} } type _Record Record @@ -1005,6 +1005,11 @@ func (o Record) ToMap() (map[string]interface{}, error) { if !IsNil(o.Zone) { toSerialize["zone"] = o.Zone } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1032,9 +1037,7 @@ func (o *Record) UnmarshalJSON(data []byte) (err error) { varRecord := _Record{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRecord) + err = json.Unmarshal(data, &varRecord) if err != nil { return err @@ -1042,6 +1045,38 @@ func (o *Record) UnmarshalJSON(data []byte) (err error) { *o = Record(varRecord) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "absolute_name_spec") + delete(additionalProperties, "absolute_zone_name") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "delegation") + delete(additionalProperties, "disabled") + delete(additionalProperties, "dns_absolute_name_spec") + delete(additionalProperties, "dns_absolute_zone_name") + delete(additionalProperties, "dns_name_in_zone") + delete(additionalProperties, "dns_rdata") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "ipam_host") + delete(additionalProperties, "name_in_zone") + delete(additionalProperties, "options") + delete(additionalProperties, "provider_metadata") + delete(additionalProperties, "rdata") + delete(additionalProperties, "source") + delete(additionalProperties, "subtype") + delete(additionalProperties, "tags") + delete(additionalProperties, "ttl") + delete(additionalProperties, "type") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "view") + delete(additionalProperties, "view_name") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record_inheritance.go index 25c670b3..cff5e7d0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_record_inheritance.go @@ -19,9 +19,12 @@ var _ MappedNullable = &RecordInheritance{} // RecordInheritance The inheritance configuration specifies how the _Record_ object inherits the _ttl_ field. type RecordInheritance struct { - Ttl *Inheritance2InheritedUInt32 `json:"ttl,omitempty"` + Ttl *Inheritance2InheritedUInt32 `json:"ttl,omitempty"` + AdditionalProperties map[string]interface{} } +type _RecordInheritance RecordInheritance + // NewRecordInheritance instantiates a new RecordInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o RecordInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ttl) { toSerialize["ttl"] = o.Ttl } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *RecordInheritance) UnmarshalJSON(data []byte) (err error) { + varRecordInheritance := _RecordInheritance{} + + err = json.Unmarshal(data, &varRecordInheritance) + + if err != nil { + return err + } + + *o = RecordInheritance(varRecordInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ttl") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableRecordInheritance struct { value *RecordInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_request.go index 9a92feba..7ecf05ac 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_request.go @@ -23,9 +23,12 @@ type SOASerialIncrementRequest struct { // The resource identifier. Id *string `json:"id,omitempty"` // Default increment SOA serial number by 1,000. - SerialIncrement *int64 `json:"serial_increment,omitempty"` + SerialIncrement *int64 `json:"serial_increment,omitempty"` + AdditionalProperties map[string]interface{} } +type _SOASerialIncrementRequest SOASerialIncrementRequest + // NewSOASerialIncrementRequest instantiates a new SOASerialIncrementRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -158,9 +161,37 @@ func (o SOASerialIncrementRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.SerialIncrement) { toSerialize["serial_increment"] = o.SerialIncrement } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SOASerialIncrementRequest) UnmarshalJSON(data []byte) (err error) { + varSOASerialIncrementRequest := _SOASerialIncrementRequest{} + + err = json.Unmarshal(data, &varSOASerialIncrementRequest) + + if err != nil { + return err + } + + *o = SOASerialIncrementRequest(varSOASerialIncrementRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fields") + delete(additionalProperties, "id") + delete(additionalProperties, "serial_increment") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSOASerialIncrementRequest struct { value *SOASerialIncrementRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_response.go index ae4af738..9957374b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_soa_serial_increment_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SOASerialIncrementResponse{} // SOASerialIncrementResponse The SOA Record object serial increment response format. type SOASerialIncrementResponse struct { - Result *Record `json:"result,omitempty"` + Result *Record `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _SOASerialIncrementResponse SOASerialIncrementResponse + // NewSOASerialIncrementResponse instantiates a new SOASerialIncrementResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SOASerialIncrementResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SOASerialIncrementResponse) UnmarshalJSON(data []byte) (err error) { + varSOASerialIncrementResponse := _SOASerialIncrementResponse{} + + err = json.Unmarshal(data, &varSOASerialIncrementResponse) + + if err != nil { + return err + } + + *o = SOASerialIncrementResponse(varSOASerialIncrementResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSOASerialIncrementResponse struct { value *SOASerialIncrementResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_update_record_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_update_record_response.go index 6ff82440..fcd91bf7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_update_record_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/dnsdata/model_update_record_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateRecordResponse{} // UpdateRecordResponse The response format to update the __Record__ object. type UpdateRecordResponse struct { - Result *Record `json:"result,omitempty"` + Result *Record `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateRecordResponse UpdateRecordResponse + // NewUpdateRecordResponse instantiates a new UpdateRecordResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateRecordResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateRecordResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateRecordResponse := _UpdateRecordResponse{} + + err = json.Unmarshal(data, &varUpdateRecordResponse) + + if err != nil { + return err + } + + *o = UpdateRecordResponse(varUpdateRecordResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateRecordResponse struct { value *UpdateRecordResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code.go index 3e726c33..20fd0308 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code.go @@ -36,9 +36,12 @@ type AccessCode struct { // The list of selected security rules Rules []AccessCodeRule `json:"rules,omitempty"` // The time when the Bypass Code object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCode AccessCode + // NewAccessCode instantiates a new AccessCode object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -381,9 +384,43 @@ func (o AccessCode) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCode) UnmarshalJSON(data []byte) (err error) { + varAccessCode := _AccessCode{} + + err = json.Unmarshal(data, &varAccessCode) + + if err != nil { + return err + } + + *o = AccessCode(varAccessCode) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_key") + delete(additionalProperties, "activation") + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "expiration") + delete(additionalProperties, "name") + delete(additionalProperties, "policy_ids") + delete(additionalProperties, "rules") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCode struct { value *AccessCode isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_create_response.go index 926e06b5..c0e2dad4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodeCreateResponse{} // AccessCodeCreateResponse struct for AccessCodeCreateResponse type AccessCodeCreateResponse struct { - Results *AccessCode `json:"results,omitempty"` + Results *AccessCode `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeCreateResponse AccessCodeCreateResponse + // NewAccessCodeCreateResponse instantiates a new AccessCodeCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodeCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeCreateResponse) UnmarshalJSON(data []byte) (err error) { + varAccessCodeCreateResponse := _AccessCodeCreateResponse{} + + err = json.Unmarshal(data, &varAccessCodeCreateResponse) + + if err != nil { + return err + } + + *o = AccessCodeCreateResponse(varAccessCodeCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeCreateResponse struct { value *AccessCodeCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_delete_request.go index e2c4c54d..bf9f42d5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &AccessCodeDeleteRequest{} // AccessCodeDeleteRequest struct for AccessCodeDeleteRequest type AccessCodeDeleteRequest struct { // The Bypass Code identifier. - Ids []string `json:"ids,omitempty"` + Ids []string `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeDeleteRequest AccessCodeDeleteRequest + // NewAccessCodeDeleteRequest instantiates a new AccessCodeDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o AccessCodeDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varAccessCodeDeleteRequest := _AccessCodeDeleteRequest{} + + err = json.Unmarshal(data, &varAccessCodeDeleteRequest) + + if err != nil { + return err + } + + *o = AccessCodeDeleteRequest(varAccessCodeDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeDeleteRequest struct { value *AccessCodeDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_multi_response.go index 32c1a8eb..5f99edae 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &AccessCodeMultiResponse{} // AccessCodeMultiResponse struct for AccessCodeMultiResponse type AccessCodeMultiResponse struct { // The list of Bypass Code objects. - Results []AccessCode `json:"results,omitempty"` + Results []AccessCode `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeMultiResponse AccessCodeMultiResponse + // NewAccessCodeMultiResponse instantiates a new AccessCodeMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o AccessCodeMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeMultiResponse) UnmarshalJSON(data []byte) (err error) { + varAccessCodeMultiResponse := _AccessCodeMultiResponse{} + + err = json.Unmarshal(data, &varAccessCodeMultiResponse) + + if err != nil { + return err + } + + *o = AccessCodeMultiResponse(varAccessCodeMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeMultiResponse struct { value *AccessCodeMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_read_response.go index d8cdab41..f5c203db 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodeReadResponse{} // AccessCodeReadResponse struct for AccessCodeReadResponse type AccessCodeReadResponse struct { - Results *AccessCode `json:"results,omitempty"` + Results *AccessCode `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeReadResponse AccessCodeReadResponse + // NewAccessCodeReadResponse instantiates a new AccessCodeReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodeReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeReadResponse) UnmarshalJSON(data []byte) (err error) { + varAccessCodeReadResponse := _AccessCodeReadResponse{} + + err = json.Unmarshal(data, &varAccessCodeReadResponse) + + if err != nil { + return err + } + + *o = AccessCodeReadResponse(varAccessCodeReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeReadResponse struct { value *AccessCodeReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_rule.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_rule.go index e359a198..3e7c7e57 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_rule.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_rule.go @@ -19,13 +19,16 @@ var _ MappedNullable = &AccessCodeRule{} // AccessCodeRule struct for AccessCodeRule type AccessCodeRule struct { - Action *string `json:"action,omitempty"` - Data *string `json:"data,omitempty"` - Description *string `json:"description,omitempty"` - RedirectName *string `json:"redirect_name,omitempty"` - Type *string `json:"type,omitempty"` + Action *string `json:"action,omitempty"` + Data *string `json:"data,omitempty"` + Description *string `json:"description,omitempty"` + RedirectName *string `json:"redirect_name,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeRule AccessCodeRule + // NewAccessCodeRule instantiates a new AccessCodeRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -228,9 +231,39 @@ func (o AccessCodeRule) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeRule) UnmarshalJSON(data []byte) (err error) { + varAccessCodeRule := _AccessCodeRule{} + + err = json.Unmarshal(data, &varAccessCodeRule) + + if err != nil { + return err + } + + *o = AccessCodeRule(varAccessCodeRule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "data") + delete(additionalProperties, "description") + delete(additionalProperties, "redirect_name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeRule struct { value *AccessCodeRule isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_update_response.go index 1d412245..0099a794 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_code_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodeUpdateResponse{} // AccessCodeUpdateResponse struct for AccessCodeUpdateResponse type AccessCodeUpdateResponse struct { - Results *AccessCode `json:"results,omitempty"` + Results *AccessCode `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodeUpdateResponse AccessCodeUpdateResponse + // NewAccessCodeUpdateResponse instantiates a new AccessCodeUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodeUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodeUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varAccessCodeUpdateResponse := _AccessCodeUpdateResponse{} + + err = json.Unmarshal(data, &varAccessCodeUpdateResponse) + + if err != nil { + return err + } + + *o = AccessCodeUpdateResponse(varAccessCodeUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodeUpdateResponse struct { value *AccessCodeUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response.go index bf1c2135..c5cca779 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesCreateAccessCode400Response{} // AccessCodesCreateAccessCode400Response struct for AccessCodesCreateAccessCode400Response type AccessCodesCreateAccessCode400Response struct { - Error *AccessCodesCreateAccessCode400ResponseError `json:"error,omitempty"` + Error *AccessCodesCreateAccessCode400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode400Response AccessCodesCreateAccessCode400Response + // NewAccessCodesCreateAccessCode400Response instantiates a new AccessCodesCreateAccessCode400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesCreateAccessCode400Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode400Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode400Response := _AccessCodesCreateAccessCode400Response{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode400Response) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode400Response(varAccessCodesCreateAccessCode400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode400Response struct { value *AccessCodesCreateAccessCode400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response_error.go index 6aa2a897..009da01e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesCreateAccessCode400ResponseError{} // AccessCodesCreateAccessCode400ResponseError struct for AccessCodesCreateAccessCode400ResponseError type AccessCodesCreateAccessCode400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode400ResponseError AccessCodesCreateAccessCode400ResponseError + // NewAccessCodesCreateAccessCode400ResponseError instantiates a new AccessCodesCreateAccessCode400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesCreateAccessCode400ResponseError) ToMap() (map[string]interfa if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode400ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode400ResponseError := _AccessCodesCreateAccessCode400ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode400ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode400ResponseError(varAccessCodesCreateAccessCode400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode400ResponseError struct { value *AccessCodesCreateAccessCode400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response.go index bc7a1727..aa19c8e6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesCreateAccessCode404Response{} // AccessCodesCreateAccessCode404Response struct for AccessCodesCreateAccessCode404Response type AccessCodesCreateAccessCode404Response struct { - Error *AccessCodesCreateAccessCode404ResponseError `json:"error,omitempty"` + Error *AccessCodesCreateAccessCode404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode404Response AccessCodesCreateAccessCode404Response + // NewAccessCodesCreateAccessCode404Response instantiates a new AccessCodesCreateAccessCode404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesCreateAccessCode404Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode404Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode404Response := _AccessCodesCreateAccessCode404Response{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode404Response) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode404Response(varAccessCodesCreateAccessCode404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode404Response struct { value *AccessCodesCreateAccessCode404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response_error.go index 95d59155..1776bca5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesCreateAccessCode404ResponseError{} // AccessCodesCreateAccessCode404ResponseError struct for AccessCodesCreateAccessCode404ResponseError type AccessCodesCreateAccessCode404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode404ResponseError AccessCodesCreateAccessCode404ResponseError + // NewAccessCodesCreateAccessCode404ResponseError instantiates a new AccessCodesCreateAccessCode404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesCreateAccessCode404ResponseError) ToMap() (map[string]interfa if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode404ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode404ResponseError := _AccessCodesCreateAccessCode404ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode404ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode404ResponseError(varAccessCodesCreateAccessCode404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode404ResponseError struct { value *AccessCodesCreateAccessCode404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response.go index 8a8a3e5e..d9e20d04 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesCreateAccessCode409Response{} // AccessCodesCreateAccessCode409Response struct for AccessCodesCreateAccessCode409Response type AccessCodesCreateAccessCode409Response struct { - Error *AccessCodesCreateAccessCode409ResponseError `json:"error,omitempty"` + Error *AccessCodesCreateAccessCode409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode409Response AccessCodesCreateAccessCode409Response + // NewAccessCodesCreateAccessCode409Response instantiates a new AccessCodesCreateAccessCode409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesCreateAccessCode409Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode409Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode409Response := _AccessCodesCreateAccessCode409Response{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode409Response) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode409Response(varAccessCodesCreateAccessCode409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode409Response struct { value *AccessCodesCreateAccessCode409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response_error.go index 85422e04..779ae66d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_create_access_code_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesCreateAccessCode409ResponseError{} // AccessCodesCreateAccessCode409ResponseError struct for AccessCodesCreateAccessCode409ResponseError type AccessCodesCreateAccessCode409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesCreateAccessCode409ResponseError AccessCodesCreateAccessCode409ResponseError + // NewAccessCodesCreateAccessCode409ResponseError instantiates a new AccessCodesCreateAccessCode409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesCreateAccessCode409ResponseError) ToMap() (map[string]interfa if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesCreateAccessCode409ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesCreateAccessCode409ResponseError := _AccessCodesCreateAccessCode409ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesCreateAccessCode409ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesCreateAccessCode409ResponseError(varAccessCodesCreateAccessCode409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesCreateAccessCode409ResponseError struct { value *AccessCodesCreateAccessCode409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response.go index 028f8fb6..9f28e3a1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesDeleteAccessCodes400Response{} // AccessCodesDeleteAccessCodes400Response struct for AccessCodesDeleteAccessCodes400Response type AccessCodesDeleteAccessCodes400Response struct { - Error *AccessCodesDeleteAccessCodes400ResponseError `json:"error,omitempty"` + Error *AccessCodesDeleteAccessCodes400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesDeleteAccessCodes400Response AccessCodesDeleteAccessCodes400Response + // NewAccessCodesDeleteAccessCodes400Response instantiates a new AccessCodesDeleteAccessCodes400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesDeleteAccessCodes400Response) ToMap() (map[string]interface{} if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesDeleteAccessCodes400Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesDeleteAccessCodes400Response := _AccessCodesDeleteAccessCodes400Response{} + + err = json.Unmarshal(data, &varAccessCodesDeleteAccessCodes400Response) + + if err != nil { + return err + } + + *o = AccessCodesDeleteAccessCodes400Response(varAccessCodesDeleteAccessCodes400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesDeleteAccessCodes400Response struct { value *AccessCodesDeleteAccessCodes400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response_error.go index 9840a02e..5101cbde 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_access_codes_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesDeleteAccessCodes400ResponseError{} // AccessCodesDeleteAccessCodes400ResponseError struct for AccessCodesDeleteAccessCodes400ResponseError type AccessCodesDeleteAccessCodes400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesDeleteAccessCodes400ResponseError AccessCodesDeleteAccessCodes400ResponseError + // NewAccessCodesDeleteAccessCodes400ResponseError instantiates a new AccessCodesDeleteAccessCodes400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesDeleteAccessCodes400ResponseError) ToMap() (map[string]interf if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesDeleteAccessCodes400ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesDeleteAccessCodes400ResponseError := _AccessCodesDeleteAccessCodes400ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesDeleteAccessCodes400ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesDeleteAccessCodes400ResponseError(varAccessCodesDeleteAccessCodes400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesDeleteAccessCodes400ResponseError struct { value *AccessCodesDeleteAccessCodes400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response.go index f5296f2a..75a0834b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesDeleteSingleAccessCodes400Response{} // AccessCodesDeleteSingleAccessCodes400Response struct for AccessCodesDeleteSingleAccessCodes400Response type AccessCodesDeleteSingleAccessCodes400Response struct { - Error *AccessCodesDeleteSingleAccessCodes400ResponseError `json:"error,omitempty"` + Error *AccessCodesDeleteSingleAccessCodes400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesDeleteSingleAccessCodes400Response AccessCodesDeleteSingleAccessCodes400Response + // NewAccessCodesDeleteSingleAccessCodes400Response instantiates a new AccessCodesDeleteSingleAccessCodes400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesDeleteSingleAccessCodes400Response) ToMap() (map[string]inter if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesDeleteSingleAccessCodes400Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesDeleteSingleAccessCodes400Response := _AccessCodesDeleteSingleAccessCodes400Response{} + + err = json.Unmarshal(data, &varAccessCodesDeleteSingleAccessCodes400Response) + + if err != nil { + return err + } + + *o = AccessCodesDeleteSingleAccessCodes400Response(varAccessCodesDeleteSingleAccessCodes400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesDeleteSingleAccessCodes400Response struct { value *AccessCodesDeleteSingleAccessCodes400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response_error.go index 29e668c9..af0836f9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_delete_single_access_codes_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesDeleteSingleAccessCodes400ResponseError{} // AccessCodesDeleteSingleAccessCodes400ResponseError struct for AccessCodesDeleteSingleAccessCodes400ResponseError type AccessCodesDeleteSingleAccessCodes400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesDeleteSingleAccessCodes400ResponseError AccessCodesDeleteSingleAccessCodes400ResponseError + // NewAccessCodesDeleteSingleAccessCodes400ResponseError instantiates a new AccessCodesDeleteSingleAccessCodes400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesDeleteSingleAccessCodes400ResponseError) ToMap() (map[string] if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesDeleteSingleAccessCodes400ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesDeleteSingleAccessCodes400ResponseError := _AccessCodesDeleteSingleAccessCodes400ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesDeleteSingleAccessCodes400ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesDeleteSingleAccessCodes400ResponseError(varAccessCodesDeleteSingleAccessCodes400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesDeleteSingleAccessCodes400ResponseError struct { value *AccessCodesDeleteSingleAccessCodes400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response.go index f6459e74..3bac6625 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesListAccessCodes500Response{} // AccessCodesListAccessCodes500Response struct for AccessCodesListAccessCodes500Response type AccessCodesListAccessCodes500Response struct { - Error *AccessCodesListAccessCodes500ResponseError `json:"error,omitempty"` + Error *AccessCodesListAccessCodes500ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesListAccessCodes500Response AccessCodesListAccessCodes500Response + // NewAccessCodesListAccessCodes500Response instantiates a new AccessCodesListAccessCodes500Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesListAccessCodes500Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesListAccessCodes500Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesListAccessCodes500Response := _AccessCodesListAccessCodes500Response{} + + err = json.Unmarshal(data, &varAccessCodesListAccessCodes500Response) + + if err != nil { + return err + } + + *o = AccessCodesListAccessCodes500Response(varAccessCodesListAccessCodes500Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesListAccessCodes500Response struct { value *AccessCodesListAccessCodes500Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response_error.go index 78cf050c..81379d12 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_list_access_codes_500_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesListAccessCodes500ResponseError{} // AccessCodesListAccessCodes500ResponseError struct for AccessCodesListAccessCodes500ResponseError type AccessCodesListAccessCodes500ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesListAccessCodes500ResponseError AccessCodesListAccessCodes500ResponseError + // NewAccessCodesListAccessCodes500ResponseError instantiates a new AccessCodesListAccessCodes500ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesListAccessCodes500ResponseError) ToMap() (map[string]interfac if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesListAccessCodes500ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesListAccessCodes500ResponseError := _AccessCodesListAccessCodes500ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesListAccessCodes500ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesListAccessCodes500ResponseError(varAccessCodesListAccessCodes500ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesListAccessCodes500ResponseError struct { value *AccessCodesListAccessCodes500ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response.go index 3002b359..5a2d7af4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AccessCodesReadAccessCode404Response{} // AccessCodesReadAccessCode404Response struct for AccessCodesReadAccessCode404Response type AccessCodesReadAccessCode404Response struct { - Error *AccessCodesReadAccessCode404ResponseError `json:"error,omitempty"` + Error *AccessCodesReadAccessCode404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesReadAccessCode404Response AccessCodesReadAccessCode404Response + // NewAccessCodesReadAccessCode404Response instantiates a new AccessCodesReadAccessCode404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AccessCodesReadAccessCode404Response) ToMap() (map[string]interface{}, e if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AccessCodesReadAccessCode404Response) UnmarshalJSON(data []byte) (err error) { + varAccessCodesReadAccessCode404Response := _AccessCodesReadAccessCode404Response{} + + err = json.Unmarshal(data, &varAccessCodesReadAccessCode404Response) + + if err != nil { + return err + } + + *o = AccessCodesReadAccessCode404Response(varAccessCodesReadAccessCode404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesReadAccessCode404Response struct { value *AccessCodesReadAccessCode404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response_error.go index 490ae0bf..b4332498 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_access_codes_read_access_code_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AccessCodesReadAccessCode404ResponseError{} // AccessCodesReadAccessCode404ResponseError struct for AccessCodesReadAccessCode404ResponseError type AccessCodesReadAccessCode404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AccessCodesReadAccessCode404ResponseError AccessCodesReadAccessCode404ResponseError + // NewAccessCodesReadAccessCode404ResponseError instantiates a new AccessCodesReadAccessCode404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AccessCodesReadAccessCode404ResponseError) ToMap() (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 *AccessCodesReadAccessCode404ResponseError) UnmarshalJSON(data []byte) (err error) { + varAccessCodesReadAccessCode404ResponseError := _AccessCodesReadAccessCode404ResponseError{} + + err = json.Unmarshal(data, &varAccessCodesReadAccessCode404ResponseError) + + if err != nil { + return err + } + + *o = AccessCodesReadAccessCode404ResponseError(varAccessCodesReadAccessCode404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAccessCodesReadAccessCode404ResponseError struct { value *AccessCodesReadAccessCode404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval.go index 329f38f9..b50a86ec 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval.go @@ -20,10 +20,13 @@ var _ MappedNullable = &AppApproval{} // AppApproval struct for AppApproval type AppApproval struct { // The name of the application, should be unique and is used as Application Identifier - AppName *string `json:"app_name,omitempty"` - Status *string `json:"status,omitempty"` + AppName *string `json:"app_name,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AppApproval AppApproval + // NewAppApproval instantiates a new AppApproval object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -121,9 +124,36 @@ func (o AppApproval) ToMap() (map[string]interface{}, error) { if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AppApproval) UnmarshalJSON(data []byte) (err error) { + varAppApproval := _AppApproval{} + + err = json.Unmarshal(data, &varAppApproval) + + if err != nil { + return err + } + + *o = AppApproval(varAppApproval) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "app_name") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAppApproval struct { value *AppApproval isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_multi_response.go index f7e48074..524fdb0d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_multi_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AppApprovalMultiResponse{} // AppApprovalMultiResponse struct for AppApprovalMultiResponse type AppApprovalMultiResponse struct { - Results []AppApproval `json:"results,omitempty"` + Results []AppApproval `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _AppApprovalMultiResponse AppApprovalMultiResponse + // NewAppApprovalMultiResponse instantiates a new AppApprovalMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AppApprovalMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AppApprovalMultiResponse) UnmarshalJSON(data []byte) (err error) { + varAppApprovalMultiResponse := _AppApprovalMultiResponse{} + + err = json.Unmarshal(data, &varAppApprovalMultiResponse) + + if err != nil { + return err + } + + *o = AppApprovalMultiResponse(varAppApprovalMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAppApprovalMultiResponse struct { value *AppApprovalMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_removal_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_removal_request.go index 6b853d65..e752329e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_removal_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approval_removal_request.go @@ -19,9 +19,12 @@ var _ MappedNullable = &AppApprovalRemovalRequest{} // AppApprovalRemovalRequest struct for AppApprovalRemovalRequest type AppApprovalRemovalRequest struct { - AppName *string `json:"app_name,omitempty"` + AppName *string `json:"app_name,omitempty"` + AdditionalProperties map[string]interface{} } +type _AppApprovalRemovalRequest AppApprovalRemovalRequest + // NewAppApprovalRemovalRequest instantiates a new AppApprovalRemovalRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o AppApprovalRemovalRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AppName) { toSerialize["app_name"] = o.AppName } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AppApprovalRemovalRequest) UnmarshalJSON(data []byte) (err error) { + varAppApprovalRemovalRequest := _AppApprovalRemovalRequest{} + + err = json.Unmarshal(data, &varAppApprovalRemovalRequest) + + if err != nil { + return err + } + + *o = AppApprovalRemovalRequest(varAppApprovalRemovalRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "app_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAppApprovalRemovalRequest struct { value *AppApprovalRemovalRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_replace_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_replace_request.go index 8768312d..86569438 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_replace_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_replace_request.go @@ -19,10 +19,13 @@ var _ MappedNullable = &AppApprovalsReplaceRequest{} // AppApprovalsReplaceRequest struct for AppApprovalsReplaceRequest type AppApprovalsReplaceRequest struct { - Approvals []AppApproval `json:"approvals,omitempty"` - Fields *ProtobufFieldMask `json:"fields,omitempty"` + Approvals []AppApproval `json:"approvals,omitempty"` + Fields *ProtobufFieldMask `json:"fields,omitempty"` + AdditionalProperties map[string]interface{} } +type _AppApprovalsReplaceRequest AppApprovalsReplaceRequest + // NewAppApprovalsReplaceRequest instantiates a new AppApprovalsReplaceRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o AppApprovalsReplaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Fields) { toSerialize["fields"] = o.Fields } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AppApprovalsReplaceRequest) UnmarshalJSON(data []byte) (err error) { + varAppApprovalsReplaceRequest := _AppApprovalsReplaceRequest{} + + err = json.Unmarshal(data, &varAppApprovalsReplaceRequest) + + if err != nil { + return err + } + + *o = AppApprovalsReplaceRequest(varAppApprovalsReplaceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "approvals") + delete(additionalProperties, "fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAppApprovalsReplaceRequest struct { value *AppApprovalsReplaceRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_update_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_update_request.go index 2c64200d..839b56cd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_update_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_app_approvals_update_request.go @@ -19,11 +19,14 @@ var _ MappedNullable = &AppApprovalsUpdateRequest{} // AppApprovalsUpdateRequest struct for AppApprovalsUpdateRequest type AppApprovalsUpdateRequest struct { - Fields *ProtobufFieldMask `json:"fields,omitempty"` - InsertedApprovals []AppApproval `json:"inserted_approvals,omitempty"` - RemovedApprovals []AppApprovalRemovalRequest `json:"removed_approvals,omitempty"` + Fields *ProtobufFieldMask `json:"fields,omitempty"` + InsertedApprovals []AppApproval `json:"inserted_approvals,omitempty"` + RemovedApprovals []AppApprovalRemovalRequest `json:"removed_approvals,omitempty"` + AdditionalProperties map[string]interface{} } +type _AppApprovalsUpdateRequest AppApprovalsUpdateRequest + // NewAppApprovalsUpdateRequest instantiates a new AppApprovalsUpdateRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o AppApprovalsUpdateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.RemovedApprovals) { toSerialize["removed_approvals"] = o.RemovedApprovals } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AppApprovalsUpdateRequest) UnmarshalJSON(data []byte) (err error) { + varAppApprovalsUpdateRequest := _AppApprovalsUpdateRequest{} + + err = json.Unmarshal(data, &varAppApprovalsUpdateRequest) + + if err != nil { + return err + } + + *o = AppApprovalsUpdateRequest(varAppApprovalsUpdateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fields") + delete(additionalProperties, "inserted_approvals") + delete(additionalProperties, "removed_approvals") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAppApprovalsUpdateRequest struct { value *AppApprovalsUpdateRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_criterion.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_criterion.go index c4d4b6d8..b8164756 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_criterion.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_criterion.go @@ -22,10 +22,13 @@ type ApplicationCriterion struct { Category *string `json:"category,omitempty"` Id *string `json:"id,omitempty"` // Name for the application. Since the name of application is unique it may be used as alternate key for the application. The 'name' is used for import-export workflow and should be resolved to the 'id' before continue processing Create/Update operations. - Name *string `json:"name,omitempty"` - Subcategory *string `json:"subcategory,omitempty"` + Name *string `json:"name,omitempty"` + Subcategory *string `json:"subcategory,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationCriterion ApplicationCriterion + // NewApplicationCriterion instantiates a new ApplicationCriterion object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -193,9 +196,38 @@ func (o ApplicationCriterion) ToMap() (map[string]interface{}, error) { if !IsNil(o.Subcategory) { toSerialize["subcategory"] = o.Subcategory } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationCriterion) UnmarshalJSON(data []byte) (err error) { + varApplicationCriterion := _ApplicationCriterion{} + + err = json.Unmarshal(data, &varApplicationCriterion) + + if err != nil { + return err + } + + *o = ApplicationCriterion(varApplicationCriterion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "category") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "subcategory") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationCriterion struct { value *ApplicationCriterion isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter.go index 8205789c..1a37bd5c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter.go @@ -37,9 +37,12 @@ type ApplicationFilter struct { // Enables tag support for resource where tags attribute contains user-defined key value pairs Tags map[string]interface{} `json:"tags,omitempty"` // The time when this Application Filter object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFilter ApplicationFilter + // NewApplicationFilter instantiates a new ApplicationFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -382,9 +385,43 @@ func (o ApplicationFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFilter) UnmarshalJSON(data []byte) (err error) { + varApplicationFilter := _ApplicationFilter{} + + err = json.Unmarshal(data, &varApplicationFilter) + + if err != nil { + return err + } + + *o = ApplicationFilter(varApplicationFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_time") + delete(additionalProperties, "criteria") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "policies") + delete(additionalProperties, "readonly") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFilter struct { value *ApplicationFilter isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_create_response.go index 58cd92d7..6eeb7426 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationFilterCreateResponse{} // ApplicationFilterCreateResponse The Application Filter create response. type ApplicationFilterCreateResponse struct { - Results *ApplicationFilter `json:"results,omitempty"` + Results *ApplicationFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFilterCreateResponse ApplicationFilterCreateResponse + // NewApplicationFilterCreateResponse instantiates a new ApplicationFilterCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationFilterCreateResponse) ToMap() (map[string]interface{}, error) if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFilterCreateResponse) UnmarshalJSON(data []byte) (err error) { + varApplicationFilterCreateResponse := _ApplicationFilterCreateResponse{} + + err = json.Unmarshal(data, &varApplicationFilterCreateResponse) + + if err != nil { + return err + } + + *o = ApplicationFilterCreateResponse(varApplicationFilterCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFilterCreateResponse struct { value *ApplicationFilterCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_multi_response.go index 9c641a13..d3677e80 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ApplicationFilterMultiResponse{} // ApplicationFilterMultiResponse The Application Filter list response. type ApplicationFilterMultiResponse struct { // The list of Application Filter objects. - Results []ApplicationFilter `json:"results,omitempty"` + Results []ApplicationFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFilterMultiResponse ApplicationFilterMultiResponse + // NewApplicationFilterMultiResponse instantiates a new ApplicationFilterMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ApplicationFilterMultiResponse) ToMap() (map[string]interface{}, error) if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFilterMultiResponse) UnmarshalJSON(data []byte) (err error) { + varApplicationFilterMultiResponse := _ApplicationFilterMultiResponse{} + + err = json.Unmarshal(data, &varApplicationFilterMultiResponse) + + if err != nil { + return err + } + + *o = ApplicationFilterMultiResponse(varApplicationFilterMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFilterMultiResponse struct { value *ApplicationFilterMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_read_response.go index 0b8e3060..f617446b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationFilterReadResponse{} // ApplicationFilterReadResponse The Application Filter read response. type ApplicationFilterReadResponse struct { - Results *ApplicationFilter `json:"results,omitempty"` + Results *ApplicationFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFilterReadResponse ApplicationFilterReadResponse + // NewApplicationFilterReadResponse instantiates a new ApplicationFilterReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationFilterReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFilterReadResponse) UnmarshalJSON(data []byte) (err error) { + varApplicationFilterReadResponse := _ApplicationFilterReadResponse{} + + err = json.Unmarshal(data, &varApplicationFilterReadResponse) + + if err != nil { + return err + } + + *o = ApplicationFilterReadResponse(varApplicationFilterReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFilterReadResponse struct { value *ApplicationFilterReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_update_response.go index 5b9391a2..c5429eb3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filter_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationFilterUpdateResponse{} // ApplicationFilterUpdateResponse The Application Filter update response. type ApplicationFilterUpdateResponse struct { - Results *ApplicationFilter `json:"results,omitempty"` + Results *ApplicationFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFilterUpdateResponse ApplicationFilterUpdateResponse + // NewApplicationFilterUpdateResponse instantiates a new ApplicationFilterUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationFilterUpdateResponse) ToMap() (map[string]interface{}, error) if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFilterUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varApplicationFilterUpdateResponse := _ApplicationFilterUpdateResponse{} + + err = json.Unmarshal(data, &varApplicationFilterUpdateResponse) + + if err != nil { + return err + } + + *o = ApplicationFilterUpdateResponse(varApplicationFilterUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFilterUpdateResponse struct { value *ApplicationFilterUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response.go index 93ebe47b..f597dd45 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationFiltersDeleteApplicationFilters400Response{} // ApplicationFiltersDeleteApplicationFilters400Response struct for ApplicationFiltersDeleteApplicationFilters400Response type ApplicationFiltersDeleteApplicationFilters400Response struct { - Error *ApplicationFiltersDeleteApplicationFilters400ResponseError `json:"error,omitempty"` + Error *ApplicationFiltersDeleteApplicationFilters400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFiltersDeleteApplicationFilters400Response ApplicationFiltersDeleteApplicationFilters400Response + // NewApplicationFiltersDeleteApplicationFilters400Response instantiates a new ApplicationFiltersDeleteApplicationFilters400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationFiltersDeleteApplicationFilters400Response) ToMap() (map[stri if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFiltersDeleteApplicationFilters400Response) UnmarshalJSON(data []byte) (err error) { + varApplicationFiltersDeleteApplicationFilters400Response := _ApplicationFiltersDeleteApplicationFilters400Response{} + + err = json.Unmarshal(data, &varApplicationFiltersDeleteApplicationFilters400Response) + + if err != nil { + return err + } + + *o = ApplicationFiltersDeleteApplicationFilters400Response(varApplicationFiltersDeleteApplicationFilters400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFiltersDeleteApplicationFilters400Response struct { value *ApplicationFiltersDeleteApplicationFilters400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response_error.go index 1b043945..0e3e183d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_application_filters_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &ApplicationFiltersDeleteApplicationFilters400ResponseErr // ApplicationFiltersDeleteApplicationFilters400ResponseError struct for ApplicationFiltersDeleteApplicationFilters400ResponseError type ApplicationFiltersDeleteApplicationFilters400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFiltersDeleteApplicationFilters400ResponseError ApplicationFiltersDeleteApplicationFilters400ResponseError + // NewApplicationFiltersDeleteApplicationFilters400ResponseError instantiates a new ApplicationFiltersDeleteApplicationFilters400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o ApplicationFiltersDeleteApplicationFilters400ResponseError) ToMap() (map if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFiltersDeleteApplicationFilters400ResponseError) UnmarshalJSON(data []byte) (err error) { + varApplicationFiltersDeleteApplicationFilters400ResponseError := _ApplicationFiltersDeleteApplicationFilters400ResponseError{} + + err = json.Unmarshal(data, &varApplicationFiltersDeleteApplicationFilters400ResponseError) + + if err != nil { + return err + } + + *o = ApplicationFiltersDeleteApplicationFilters400ResponseError(varApplicationFiltersDeleteApplicationFilters400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFiltersDeleteApplicationFilters400ResponseError struct { value *ApplicationFiltersDeleteApplicationFilters400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_request.go index 8a8ebb25..4f1e8302 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ApplicationFiltersDeleteRequest{} // ApplicationFiltersDeleteRequest The Application Filter delete request. type ApplicationFiltersDeleteRequest struct { // The list of Application Filter object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFiltersDeleteRequest ApplicationFiltersDeleteRequest + // NewApplicationFiltersDeleteRequest instantiates a new ApplicationFiltersDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ApplicationFiltersDeleteRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFiltersDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varApplicationFiltersDeleteRequest := _ApplicationFiltersDeleteRequest{} + + err = json.Unmarshal(data, &varApplicationFiltersDeleteRequest) + + if err != nil { + return err + } + + *o = ApplicationFiltersDeleteRequest(varApplicationFiltersDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFiltersDeleteRequest struct { value *ApplicationFiltersDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response.go index 25eb56c4..c777bb27 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationFiltersDeleteSingleApplicationFilters400Respo // ApplicationFiltersDeleteSingleApplicationFilters400Response struct for ApplicationFiltersDeleteSingleApplicationFilters400Response type ApplicationFiltersDeleteSingleApplicationFilters400Response struct { - Error *ApplicationFiltersDeleteSingleApplicationFilters400ResponseError `json:"error,omitempty"` + Error *ApplicationFiltersDeleteSingleApplicationFilters400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFiltersDeleteSingleApplicationFilters400Response ApplicationFiltersDeleteSingleApplicationFilters400Response + // NewApplicationFiltersDeleteSingleApplicationFilters400Response instantiates a new ApplicationFiltersDeleteSingleApplicationFilters400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationFiltersDeleteSingleApplicationFilters400Response) ToMap() (ma if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFiltersDeleteSingleApplicationFilters400Response) UnmarshalJSON(data []byte) (err error) { + varApplicationFiltersDeleteSingleApplicationFilters400Response := _ApplicationFiltersDeleteSingleApplicationFilters400Response{} + + err = json.Unmarshal(data, &varApplicationFiltersDeleteSingleApplicationFilters400Response) + + if err != nil { + return err + } + + *o = ApplicationFiltersDeleteSingleApplicationFilters400Response(varApplicationFiltersDeleteSingleApplicationFilters400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFiltersDeleteSingleApplicationFilters400Response struct { value *ApplicationFiltersDeleteSingleApplicationFilters400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response_error.go index 4a4b3c5d..5b7a5015 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_application_filters_delete_single_application_filters_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &ApplicationFiltersDeleteSingleApplicationFilters400Respo // ApplicationFiltersDeleteSingleApplicationFilters400ResponseError struct for ApplicationFiltersDeleteSingleApplicationFilters400ResponseError type ApplicationFiltersDeleteSingleApplicationFilters400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationFiltersDeleteSingleApplicationFilters400ResponseError ApplicationFiltersDeleteSingleApplicationFilters400ResponseError + // NewApplicationFiltersDeleteSingleApplicationFilters400ResponseError instantiates a new ApplicationFiltersDeleteSingleApplicationFilters400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o ApplicationFiltersDeleteSingleApplicationFilters400ResponseError) ToMap( if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationFiltersDeleteSingleApplicationFilters400ResponseError) UnmarshalJSON(data []byte) (err error) { + varApplicationFiltersDeleteSingleApplicationFilters400ResponseError := _ApplicationFiltersDeleteSingleApplicationFilters400ResponseError{} + + err = json.Unmarshal(data, &varApplicationFiltersDeleteSingleApplicationFilters400ResponseError) + + if err != nil { + return err + } + + *o = ApplicationFiltersDeleteSingleApplicationFilters400ResponseError(varApplicationFiltersDeleteSingleApplicationFilters400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationFiltersDeleteSingleApplicationFilters400ResponseError struct { value *ApplicationFiltersDeleteSingleApplicationFilters400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_atcfw_named_list_items_insert_or_update_response_success.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_atcfw_named_list_items_insert_or_update_response_success.go index 746bea89..3cbac7e6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_atcfw_named_list_items_insert_or_update_response_success.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_atcfw_named_list_items_insert_or_update_response_success.go @@ -19,10 +19,13 @@ var _ MappedNullable = &AtcfwNamedListItemsInsertOrUpdateResponseSuccess{} // AtcfwNamedListItemsInsertOrUpdateResponseSuccess struct for AtcfwNamedListItemsInsertOrUpdateResponseSuccess type AtcfwNamedListItemsInsertOrUpdateResponseSuccess struct { - Code *string `json:"code,omitempty"` - Status *int32 `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Status *int32 `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _AtcfwNamedListItemsInsertOrUpdateResponseSuccess AtcfwNamedListItemsInsertOrUpdateResponseSuccess + // NewAtcfwNamedListItemsInsertOrUpdateResponseSuccess instantiates a new AtcfwNamedListItemsInsertOrUpdateResponseSuccess object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o AtcfwNamedListItemsInsertOrUpdateResponseSuccess) ToMap() (map[string]in if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AtcfwNamedListItemsInsertOrUpdateResponseSuccess) UnmarshalJSON(data []byte) (err error) { + varAtcfwNamedListItemsInsertOrUpdateResponseSuccess := _AtcfwNamedListItemsInsertOrUpdateResponseSuccess{} + + err = json.Unmarshal(data, &varAtcfwNamedListItemsInsertOrUpdateResponseSuccess) + + if err != nil { + return err + } + + *o = AtcfwNamedListItemsInsertOrUpdateResponseSuccess(varAtcfwNamedListItemsInsertOrUpdateResponseSuccess) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAtcfwNamedListItemsInsertOrUpdateResponseSuccess struct { value *AtcfwNamedListItemsInsertOrUpdateResponseSuccess isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter.go index 9676d668..f7fb40ab 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter.go @@ -35,9 +35,12 @@ type CategoryFilter struct { // Enables tag support for resource where tags attribute contains user-defined key value pairs Tags map[string]interface{} `json:"tags,omitempty"` // The time when this Category Filter object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFilter CategoryFilter + // NewCategoryFilter instantiates a new CategoryFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -345,9 +348,42 @@ func (o CategoryFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFilter) UnmarshalJSON(data []byte) (err error) { + varCategoryFilter := _CategoryFilter{} + + err = json.Unmarshal(data, &varCategoryFilter) + + if err != nil { + return err + } + + *o = CategoryFilter(varCategoryFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "categories") + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "policies") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFilter struct { value *CategoryFilter isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_create_response.go index 3f06088a..80eadf17 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFilterCreateResponse{} // CategoryFilterCreateResponse The Category Filter create response. type CategoryFilterCreateResponse struct { - Results *CategoryFilter `json:"results,omitempty"` + Results *CategoryFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFilterCreateResponse CategoryFilterCreateResponse + // NewCategoryFilterCreateResponse instantiates a new CategoryFilterCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFilterCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFilterCreateResponse) UnmarshalJSON(data []byte) (err error) { + varCategoryFilterCreateResponse := _CategoryFilterCreateResponse{} + + err = json.Unmarshal(data, &varCategoryFilterCreateResponse) + + if err != nil { + return err + } + + *o = CategoryFilterCreateResponse(varCategoryFilterCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFilterCreateResponse struct { value *CategoryFilterCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_multi_response.go index 1a8b1bd5..d70bbd30 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &CategoryFilterMultiResponse{} // CategoryFilterMultiResponse The Category Filter list response. type CategoryFilterMultiResponse struct { // The list of Category Filter objects. - Results []CategoryFilter `json:"results,omitempty"` + Results []CategoryFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFilterMultiResponse CategoryFilterMultiResponse + // NewCategoryFilterMultiResponse instantiates a new CategoryFilterMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o CategoryFilterMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFilterMultiResponse) UnmarshalJSON(data []byte) (err error) { + varCategoryFilterMultiResponse := _CategoryFilterMultiResponse{} + + err = json.Unmarshal(data, &varCategoryFilterMultiResponse) + + if err != nil { + return err + } + + *o = CategoryFilterMultiResponse(varCategoryFilterMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFilterMultiResponse struct { value *CategoryFilterMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_read_response.go index bbf6a8b5..ccb1deaa 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFilterReadResponse{} // CategoryFilterReadResponse The Category Filter read response. type CategoryFilterReadResponse struct { - Results *CategoryFilter `json:"results,omitempty"` + Results *CategoryFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFilterReadResponse CategoryFilterReadResponse + // NewCategoryFilterReadResponse instantiates a new CategoryFilterReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFilterReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFilterReadResponse) UnmarshalJSON(data []byte) (err error) { + varCategoryFilterReadResponse := _CategoryFilterReadResponse{} + + err = json.Unmarshal(data, &varCategoryFilterReadResponse) + + if err != nil { + return err + } + + *o = CategoryFilterReadResponse(varCategoryFilterReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFilterReadResponse struct { value *CategoryFilterReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_update_response.go index e409aade..f1f0ce83 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filter_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFilterUpdateResponse{} // CategoryFilterUpdateResponse The Category Filter update response. type CategoryFilterUpdateResponse struct { - Results *CategoryFilter `json:"results,omitempty"` + Results *CategoryFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFilterUpdateResponse CategoryFilterUpdateResponse + // NewCategoryFilterUpdateResponse instantiates a new CategoryFilterUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFilterUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFilterUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varCategoryFilterUpdateResponse := _CategoryFilterUpdateResponse{} + + err = json.Unmarshal(data, &varCategoryFilterUpdateResponse) + + if err != nil { + return err + } + + *o = CategoryFilterUpdateResponse(varCategoryFilterUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFilterUpdateResponse struct { value *CategoryFilterUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response.go index a655c50c..7b15bd23 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFiltersCreateCategoryFilter400Response{} // CategoryFiltersCreateCategoryFilter400Response struct for CategoryFiltersCreateCategoryFilter400Response type CategoryFiltersCreateCategoryFilter400Response struct { - Error *CategoryFiltersCreateCategoryFilter400ResponseError `json:"error,omitempty"` + Error *CategoryFiltersCreateCategoryFilter400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersCreateCategoryFilter400Response CategoryFiltersCreateCategoryFilter400Response + // NewCategoryFiltersCreateCategoryFilter400Response instantiates a new CategoryFiltersCreateCategoryFilter400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFiltersCreateCategoryFilter400Response) ToMap() (map[string]inte if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersCreateCategoryFilter400Response) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersCreateCategoryFilter400Response := _CategoryFiltersCreateCategoryFilter400Response{} + + err = json.Unmarshal(data, &varCategoryFiltersCreateCategoryFilter400Response) + + if err != nil { + return err + } + + *o = CategoryFiltersCreateCategoryFilter400Response(varCategoryFiltersCreateCategoryFilter400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersCreateCategoryFilter400Response struct { value *CategoryFiltersCreateCategoryFilter400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response_error.go index d81a3f59..5a7e53b7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &CategoryFiltersCreateCategoryFilter400ResponseError{} // CategoryFiltersCreateCategoryFilter400ResponseError struct for CategoryFiltersCreateCategoryFilter400ResponseError type CategoryFiltersCreateCategoryFilter400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersCreateCategoryFilter400ResponseError CategoryFiltersCreateCategoryFilter400ResponseError + // NewCategoryFiltersCreateCategoryFilter400ResponseError instantiates a new CategoryFiltersCreateCategoryFilter400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o CategoryFiltersCreateCategoryFilter400ResponseError) ToMap() (map[string if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersCreateCategoryFilter400ResponseError) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersCreateCategoryFilter400ResponseError := _CategoryFiltersCreateCategoryFilter400ResponseError{} + + err = json.Unmarshal(data, &varCategoryFiltersCreateCategoryFilter400ResponseError) + + if err != nil { + return err + } + + *o = CategoryFiltersCreateCategoryFilter400ResponseError(varCategoryFiltersCreateCategoryFilter400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersCreateCategoryFilter400ResponseError struct { value *CategoryFiltersCreateCategoryFilter400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response.go index 6e13932e..6b3db001 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFiltersCreateCategoryFilter409Response{} // CategoryFiltersCreateCategoryFilter409Response struct for CategoryFiltersCreateCategoryFilter409Response type CategoryFiltersCreateCategoryFilter409Response struct { - Error *CategoryFiltersCreateCategoryFilter409ResponseError `json:"error,omitempty"` + Error *CategoryFiltersCreateCategoryFilter409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersCreateCategoryFilter409Response CategoryFiltersCreateCategoryFilter409Response + // NewCategoryFiltersCreateCategoryFilter409Response instantiates a new CategoryFiltersCreateCategoryFilter409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFiltersCreateCategoryFilter409Response) ToMap() (map[string]inte if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersCreateCategoryFilter409Response) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersCreateCategoryFilter409Response := _CategoryFiltersCreateCategoryFilter409Response{} + + err = json.Unmarshal(data, &varCategoryFiltersCreateCategoryFilter409Response) + + if err != nil { + return err + } + + *o = CategoryFiltersCreateCategoryFilter409Response(varCategoryFiltersCreateCategoryFilter409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersCreateCategoryFilter409Response struct { value *CategoryFiltersCreateCategoryFilter409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response_error.go index 6fbeb772..862d47ee 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_create_category_filter_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &CategoryFiltersCreateCategoryFilter409ResponseError{} // CategoryFiltersCreateCategoryFilter409ResponseError struct for CategoryFiltersCreateCategoryFilter409ResponseError type CategoryFiltersCreateCategoryFilter409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersCreateCategoryFilter409ResponseError CategoryFiltersCreateCategoryFilter409ResponseError + // NewCategoryFiltersCreateCategoryFilter409ResponseError instantiates a new CategoryFiltersCreateCategoryFilter409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o CategoryFiltersCreateCategoryFilter409ResponseError) ToMap() (map[string if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersCreateCategoryFilter409ResponseError) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersCreateCategoryFilter409ResponseError := _CategoryFiltersCreateCategoryFilter409ResponseError{} + + err = json.Unmarshal(data, &varCategoryFiltersCreateCategoryFilter409ResponseError) + + if err != nil { + return err + } + + *o = CategoryFiltersCreateCategoryFilter409ResponseError(varCategoryFiltersCreateCategoryFilter409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersCreateCategoryFilter409ResponseError struct { value *CategoryFiltersCreateCategoryFilter409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response.go index 8194e5c6..758fb7d1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFiltersDeleteCategoryFilters400Response{} // CategoryFiltersDeleteCategoryFilters400Response struct for CategoryFiltersDeleteCategoryFilters400Response type CategoryFiltersDeleteCategoryFilters400Response struct { - Error *CategoryFiltersDeleteCategoryFilters400ResponseError `json:"error,omitempty"` + Error *CategoryFiltersDeleteCategoryFilters400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersDeleteCategoryFilters400Response CategoryFiltersDeleteCategoryFilters400Response + // NewCategoryFiltersDeleteCategoryFilters400Response instantiates a new CategoryFiltersDeleteCategoryFilters400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFiltersDeleteCategoryFilters400Response) ToMap() (map[string]int if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersDeleteCategoryFilters400Response) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersDeleteCategoryFilters400Response := _CategoryFiltersDeleteCategoryFilters400Response{} + + err = json.Unmarshal(data, &varCategoryFiltersDeleteCategoryFilters400Response) + + if err != nil { + return err + } + + *o = CategoryFiltersDeleteCategoryFilters400Response(varCategoryFiltersDeleteCategoryFilters400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersDeleteCategoryFilters400Response struct { value *CategoryFiltersDeleteCategoryFilters400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response_error.go index 69f02b79..085a1c6d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_category_filters_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &CategoryFiltersDeleteCategoryFilters400ResponseError{} // CategoryFiltersDeleteCategoryFilters400ResponseError struct for CategoryFiltersDeleteCategoryFilters400ResponseError type CategoryFiltersDeleteCategoryFilters400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersDeleteCategoryFilters400ResponseError CategoryFiltersDeleteCategoryFilters400ResponseError + // NewCategoryFiltersDeleteCategoryFilters400ResponseError instantiates a new CategoryFiltersDeleteCategoryFilters400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o CategoryFiltersDeleteCategoryFilters400ResponseError) ToMap() (map[strin if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersDeleteCategoryFilters400ResponseError) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersDeleteCategoryFilters400ResponseError := _CategoryFiltersDeleteCategoryFilters400ResponseError{} + + err = json.Unmarshal(data, &varCategoryFiltersDeleteCategoryFilters400ResponseError) + + if err != nil { + return err + } + + *o = CategoryFiltersDeleteCategoryFilters400ResponseError(varCategoryFiltersDeleteCategoryFilters400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersDeleteCategoryFilters400ResponseError struct { value *CategoryFiltersDeleteCategoryFilters400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_request.go index 94cdc851..ae89abf3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &CategoryFiltersDeleteRequest{} // CategoryFiltersDeleteRequest The Category Filter delete request. type CategoryFiltersDeleteRequest struct { // The list of Category Filter object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersDeleteRequest CategoryFiltersDeleteRequest + // NewCategoryFiltersDeleteRequest instantiates a new CategoryFiltersDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o CategoryFiltersDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersDeleteRequest := _CategoryFiltersDeleteRequest{} + + err = json.Unmarshal(data, &varCategoryFiltersDeleteRequest) + + if err != nil { + return err + } + + *o = CategoryFiltersDeleteRequest(varCategoryFiltersDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersDeleteRequest struct { value *CategoryFiltersDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response.go index 1f77052c..b5d1f4ec 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CategoryFiltersReadCategoryFilter404Response{} // CategoryFiltersReadCategoryFilter404Response struct for CategoryFiltersReadCategoryFilter404Response type CategoryFiltersReadCategoryFilter404Response struct { - Error *CategoryFiltersReadCategoryFilter404ResponseError `json:"error,omitempty"` + Error *CategoryFiltersReadCategoryFilter404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersReadCategoryFilter404Response CategoryFiltersReadCategoryFilter404Response + // NewCategoryFiltersReadCategoryFilter404Response instantiates a new CategoryFiltersReadCategoryFilter404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CategoryFiltersReadCategoryFilter404Response) ToMap() (map[string]interf if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersReadCategoryFilter404Response) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersReadCategoryFilter404Response := _CategoryFiltersReadCategoryFilter404Response{} + + err = json.Unmarshal(data, &varCategoryFiltersReadCategoryFilter404Response) + + if err != nil { + return err + } + + *o = CategoryFiltersReadCategoryFilter404Response(varCategoryFiltersReadCategoryFilter404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersReadCategoryFilter404Response struct { value *CategoryFiltersReadCategoryFilter404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response_error.go index 5e6428ab..05b64959 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_category_filters_read_category_filter_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &CategoryFiltersReadCategoryFilter404ResponseError{} // CategoryFiltersReadCategoryFilter404ResponseError struct for CategoryFiltersReadCategoryFilter404ResponseError type CategoryFiltersReadCategoryFilter404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _CategoryFiltersReadCategoryFilter404ResponseError CategoryFiltersReadCategoryFilter404ResponseError + // NewCategoryFiltersReadCategoryFilter404ResponseError instantiates a new CategoryFiltersReadCategoryFilter404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o CategoryFiltersReadCategoryFilter404ResponseError) ToMap() (map[string]i if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CategoryFiltersReadCategoryFilter404ResponseError) UnmarshalJSON(data []byte) (err error) { + varCategoryFiltersReadCategoryFilter404ResponseError := _CategoryFiltersReadCategoryFilter404ResponseError{} + + err = json.Unmarshal(data, &varCategoryFiltersReadCategoryFilter404ResponseError) + + if err != nil { + return err + } + + *o = CategoryFiltersReadCategoryFilter404ResponseError(varCategoryFiltersReadCategoryFilter404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCategoryFiltersReadCategoryFilter404ResponseError struct { value *CategoryFiltersReadCategoryFilter404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category.go index 8e998157..f333ec65 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category.go @@ -24,9 +24,12 @@ type ContentCategory struct { // The name of the category. CategoryName *string `json:"category_name,omitempty"` // The functional group name of the category. - FunctionalGroup *string `json:"functional_group,omitempty"` + FunctionalGroup *string `json:"functional_group,omitempty"` + AdditionalProperties map[string]interface{} } +type _ContentCategory ContentCategory + // NewContentCategory instantiates a new ContentCategory object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o ContentCategory) ToMap() (map[string]interface{}, error) { if !IsNil(o.FunctionalGroup) { toSerialize["functional_group"] = o.FunctionalGroup } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ContentCategory) UnmarshalJSON(data []byte) (err error) { + varContentCategory := _ContentCategory{} + + err = json.Unmarshal(data, &varContentCategory) + + if err != nil { + return err + } + + *o = ContentCategory(varContentCategory) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "category_code") + delete(additionalProperties, "category_name") + delete(additionalProperties, "functional_group") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableContentCategory struct { value *ContentCategory isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category_multi_response.go index a518bf9f..2925538f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_content_category_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ContentCategoryMultiResponse{} // ContentCategoryMultiResponse The Content Category list response. type ContentCategoryMultiResponse struct { // The list of Content Category objects. - Results []ContentCategory `json:"results,omitempty"` + Results []ContentCategory `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ContentCategoryMultiResponse ContentCategoryMultiResponse + // NewContentCategoryMultiResponse instantiates a new ContentCategoryMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ContentCategoryMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ContentCategoryMultiResponse) UnmarshalJSON(data []byte) (err error) { + varContentCategoryMultiResponse := _ContentCategoryMultiResponse{} + + err = json.Unmarshal(data, &varContentCategoryMultiResponse) + + if err != nil { + return err + } + + *o = ContentCategoryMultiResponse(varContentCategoryMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableContentCategoryMultiResponse struct { value *ContentCategoryMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response.go index bcfb2c2c..35a7d333 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsCreateInternalDomains400Response{} // InternalDomainListsCreateInternalDomains400Response struct for InternalDomainListsCreateInternalDomains400Response type InternalDomainListsCreateInternalDomains400Response struct { - Error *InternalDomainListsCreateInternalDomains400ResponseError `json:"error,omitempty"` + Error *InternalDomainListsCreateInternalDomains400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsCreateInternalDomains400Response InternalDomainListsCreateInternalDomains400Response + // NewInternalDomainListsCreateInternalDomains400Response instantiates a new InternalDomainListsCreateInternalDomains400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsCreateInternalDomains400Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsCreateInternalDomains400Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsCreateInternalDomains400Response := _InternalDomainListsCreateInternalDomains400Response{} + + err = json.Unmarshal(data, &varInternalDomainListsCreateInternalDomains400Response) + + if err != nil { + return err + } + + *o = InternalDomainListsCreateInternalDomains400Response(varInternalDomainListsCreateInternalDomains400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsCreateInternalDomains400Response struct { value *InternalDomainListsCreateInternalDomains400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response_error.go index 0da278ef..22dd599d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsCreateInternalDomains400ResponseError // InternalDomainListsCreateInternalDomains400ResponseError struct for InternalDomainListsCreateInternalDomains400ResponseError type InternalDomainListsCreateInternalDomains400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsCreateInternalDomains400ResponseError InternalDomainListsCreateInternalDomains400ResponseError + // NewInternalDomainListsCreateInternalDomains400ResponseError instantiates a new InternalDomainListsCreateInternalDomains400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsCreateInternalDomains400ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsCreateInternalDomains400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsCreateInternalDomains400ResponseError := _InternalDomainListsCreateInternalDomains400ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsCreateInternalDomains400ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsCreateInternalDomains400ResponseError(varInternalDomainListsCreateInternalDomains400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsCreateInternalDomains400ResponseError struct { value *InternalDomainListsCreateInternalDomains400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response.go index f43c165c..146e6857 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsCreateInternalDomains409Response{} // InternalDomainListsCreateInternalDomains409Response struct for InternalDomainListsCreateInternalDomains409Response type InternalDomainListsCreateInternalDomains409Response struct { - Error *InternalDomainListsCreateInternalDomains409ResponseError `json:"error,omitempty"` + Error *InternalDomainListsCreateInternalDomains409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsCreateInternalDomains409Response InternalDomainListsCreateInternalDomains409Response + // NewInternalDomainListsCreateInternalDomains409Response instantiates a new InternalDomainListsCreateInternalDomains409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsCreateInternalDomains409Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsCreateInternalDomains409Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsCreateInternalDomains409Response := _InternalDomainListsCreateInternalDomains409Response{} + + err = json.Unmarshal(data, &varInternalDomainListsCreateInternalDomains409Response) + + if err != nil { + return err + } + + *o = InternalDomainListsCreateInternalDomains409Response(varInternalDomainListsCreateInternalDomains409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsCreateInternalDomains409Response struct { value *InternalDomainListsCreateInternalDomains409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response_error.go index d4a6514c..6a029104 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_create_internal_domains_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsCreateInternalDomains409ResponseError // InternalDomainListsCreateInternalDomains409ResponseError struct for InternalDomainListsCreateInternalDomains409ResponseError type InternalDomainListsCreateInternalDomains409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsCreateInternalDomains409ResponseError InternalDomainListsCreateInternalDomains409ResponseError + // NewInternalDomainListsCreateInternalDomains409ResponseError instantiates a new InternalDomainListsCreateInternalDomains409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsCreateInternalDomains409ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsCreateInternalDomains409ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsCreateInternalDomains409ResponseError := _InternalDomainListsCreateInternalDomains409ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsCreateInternalDomains409ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsCreateInternalDomains409ResponseError(varInternalDomainListsCreateInternalDomains409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsCreateInternalDomains409ResponseError struct { value *InternalDomainListsCreateInternalDomains409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response.go index 7053d898..9f47ee2c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsDeleteInternalDomains400Response{} // InternalDomainListsDeleteInternalDomains400Response struct for InternalDomainListsDeleteInternalDomains400Response type InternalDomainListsDeleteInternalDomains400Response struct { - Error *InternalDomainListsDeleteInternalDomains400ResponseError `json:"error,omitempty"` + Error *InternalDomainListsDeleteInternalDomains400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteInternalDomains400Response InternalDomainListsDeleteInternalDomains400Response + // NewInternalDomainListsDeleteInternalDomains400Response instantiates a new InternalDomainListsDeleteInternalDomains400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsDeleteInternalDomains400Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteInternalDomains400Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteInternalDomains400Response := _InternalDomainListsDeleteInternalDomains400Response{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteInternalDomains400Response) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteInternalDomains400Response(varInternalDomainListsDeleteInternalDomains400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteInternalDomains400Response struct { value *InternalDomainListsDeleteInternalDomains400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response_error.go index 3cf55fda..026900ae 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsDeleteInternalDomains400ResponseError // InternalDomainListsDeleteInternalDomains400ResponseError struct for InternalDomainListsDeleteInternalDomains400ResponseError type InternalDomainListsDeleteInternalDomains400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteInternalDomains400ResponseError InternalDomainListsDeleteInternalDomains400ResponseError + // NewInternalDomainListsDeleteInternalDomains400ResponseError instantiates a new InternalDomainListsDeleteInternalDomains400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsDeleteInternalDomains400ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteInternalDomains400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteInternalDomains400ResponseError := _InternalDomainListsDeleteInternalDomains400ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteInternalDomains400ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteInternalDomains400ResponseError(varInternalDomainListsDeleteInternalDomains400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteInternalDomains400ResponseError struct { value *InternalDomainListsDeleteInternalDomains400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response.go index 17933aa8..6df8b724 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsDeleteInternalDomains404Response{} // InternalDomainListsDeleteInternalDomains404Response struct for InternalDomainListsDeleteInternalDomains404Response type InternalDomainListsDeleteInternalDomains404Response struct { - Error *InternalDomainListsDeleteInternalDomains404ResponseError `json:"error,omitempty"` + Error *InternalDomainListsDeleteInternalDomains404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteInternalDomains404Response InternalDomainListsDeleteInternalDomains404Response + // NewInternalDomainListsDeleteInternalDomains404Response instantiates a new InternalDomainListsDeleteInternalDomains404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsDeleteInternalDomains404Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteInternalDomains404Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteInternalDomains404Response := _InternalDomainListsDeleteInternalDomains404Response{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteInternalDomains404Response) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteInternalDomains404Response(varInternalDomainListsDeleteInternalDomains404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteInternalDomains404Response struct { value *InternalDomainListsDeleteInternalDomains404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response_error.go index e9ddae63..896ce29f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_internal_domains_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsDeleteInternalDomains404ResponseError // InternalDomainListsDeleteInternalDomains404ResponseError struct for InternalDomainListsDeleteInternalDomains404ResponseError type InternalDomainListsDeleteInternalDomains404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteInternalDomains404ResponseError InternalDomainListsDeleteInternalDomains404ResponseError + // NewInternalDomainListsDeleteInternalDomains404ResponseError instantiates a new InternalDomainListsDeleteInternalDomains404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsDeleteInternalDomains404ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteInternalDomains404ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteInternalDomains404ResponseError := _InternalDomainListsDeleteInternalDomains404ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteInternalDomains404ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteInternalDomains404ResponseError(varInternalDomainListsDeleteInternalDomains404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteInternalDomains404ResponseError struct { value *InternalDomainListsDeleteInternalDomains404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response.go index 586aa4e6..7c1c37d7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsDeleteSingleInternalDomains400Respons // InternalDomainListsDeleteSingleInternalDomains400Response struct for InternalDomainListsDeleteSingleInternalDomains400Response type InternalDomainListsDeleteSingleInternalDomains400Response struct { - Error *InternalDomainListsDeleteSingleInternalDomains400ResponseError `json:"error,omitempty"` + Error *InternalDomainListsDeleteSingleInternalDomains400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteSingleInternalDomains400Response InternalDomainListsDeleteSingleInternalDomains400Response + // NewInternalDomainListsDeleteSingleInternalDomains400Response instantiates a new InternalDomainListsDeleteSingleInternalDomains400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsDeleteSingleInternalDomains400Response) ToMap() (map[ if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteSingleInternalDomains400Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteSingleInternalDomains400Response := _InternalDomainListsDeleteSingleInternalDomains400Response{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteSingleInternalDomains400Response) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteSingleInternalDomains400Response(varInternalDomainListsDeleteSingleInternalDomains400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteSingleInternalDomains400Response struct { value *InternalDomainListsDeleteSingleInternalDomains400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response_error.go index 19c33a83..11e974ad 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_delete_single_internal_domains_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsDeleteSingleInternalDomains400Respons // InternalDomainListsDeleteSingleInternalDomains400ResponseError struct for InternalDomainListsDeleteSingleInternalDomains400ResponseError type InternalDomainListsDeleteSingleInternalDomains400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsDeleteSingleInternalDomains400ResponseError InternalDomainListsDeleteSingleInternalDomains400ResponseError + // NewInternalDomainListsDeleteSingleInternalDomains400ResponseError instantiates a new InternalDomainListsDeleteSingleInternalDomains400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsDeleteSingleInternalDomains400ResponseError) ToMap() if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsDeleteSingleInternalDomains400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsDeleteSingleInternalDomains400ResponseError := _InternalDomainListsDeleteSingleInternalDomains400ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsDeleteSingleInternalDomains400ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsDeleteSingleInternalDomains400ResponseError(varInternalDomainListsDeleteSingleInternalDomains400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsDeleteSingleInternalDomains400ResponseError struct { value *InternalDomainListsDeleteSingleInternalDomains400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response.go index 9275b9a3..5f4597b8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsInternalDomainsItemsPartialUpdate400R // InternalDomainListsInternalDomainsItemsPartialUpdate400Response struct for InternalDomainListsInternalDomainsItemsPartialUpdate400Response type InternalDomainListsInternalDomainsItemsPartialUpdate400Response struct { - Error *InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError `json:"error,omitempty"` + Error *InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsInternalDomainsItemsPartialUpdate400Response InternalDomainListsInternalDomainsItemsPartialUpdate400Response + // NewInternalDomainListsInternalDomainsItemsPartialUpdate400Response instantiates a new InternalDomainListsInternalDomainsItemsPartialUpdate400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsInternalDomainsItemsPartialUpdate400Response) ToMap() if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsInternalDomainsItemsPartialUpdate400Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsInternalDomainsItemsPartialUpdate400Response := _InternalDomainListsInternalDomainsItemsPartialUpdate400Response{} + + err = json.Unmarshal(data, &varInternalDomainListsInternalDomainsItemsPartialUpdate400Response) + + if err != nil { + return err + } + + *o = InternalDomainListsInternalDomainsItemsPartialUpdate400Response(varInternalDomainListsInternalDomainsItemsPartialUpdate400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsInternalDomainsItemsPartialUpdate400Response struct { value *InternalDomainListsInternalDomainsItemsPartialUpdate400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response_error.go index eef3b426..245c15df 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsInternalDomainsItemsPartialUpdate400R // InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError struct for InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError type InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError + // NewInternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError instantiates a new InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError) To if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError := _InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError(varInternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError struct { value *InternalDomainListsInternalDomainsItemsPartialUpdate400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response.go index 09e98acf..bd95d798 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsInternalDomainsItemsPartialUpdate404R // InternalDomainListsInternalDomainsItemsPartialUpdate404Response struct for InternalDomainListsInternalDomainsItemsPartialUpdate404Response type InternalDomainListsInternalDomainsItemsPartialUpdate404Response struct { - Error *InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError `json:"error,omitempty"` + Error *InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsInternalDomainsItemsPartialUpdate404Response InternalDomainListsInternalDomainsItemsPartialUpdate404Response + // NewInternalDomainListsInternalDomainsItemsPartialUpdate404Response instantiates a new InternalDomainListsInternalDomainsItemsPartialUpdate404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsInternalDomainsItemsPartialUpdate404Response) ToMap() if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsInternalDomainsItemsPartialUpdate404Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsInternalDomainsItemsPartialUpdate404Response := _InternalDomainListsInternalDomainsItemsPartialUpdate404Response{} + + err = json.Unmarshal(data, &varInternalDomainListsInternalDomainsItemsPartialUpdate404Response) + + if err != nil { + return err + } + + *o = InternalDomainListsInternalDomainsItemsPartialUpdate404Response(varInternalDomainListsInternalDomainsItemsPartialUpdate404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsInternalDomainsItemsPartialUpdate404Response struct { value *InternalDomainListsInternalDomainsItemsPartialUpdate404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response_error.go index 155378d6..959c1957 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_internal_domains_items_partial_update_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsInternalDomainsItemsPartialUpdate404R // InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError struct for InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError type InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError + // NewInternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError instantiates a new InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError) To if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError := _InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError(varInternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError struct { value *InternalDomainListsInternalDomainsItemsPartialUpdate404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response.go index 260f202a..b4c2e324 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsReadInternalDomains404Response{} // InternalDomainListsReadInternalDomains404Response struct for InternalDomainListsReadInternalDomains404Response type InternalDomainListsReadInternalDomains404Response struct { - Error *InternalDomainListsReadInternalDomains404ResponseError `json:"error,omitempty"` + Error *InternalDomainListsReadInternalDomains404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsReadInternalDomains404Response InternalDomainListsReadInternalDomains404Response + // NewInternalDomainListsReadInternalDomains404Response instantiates a new InternalDomainListsReadInternalDomains404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsReadInternalDomains404Response) ToMap() (map[string]i if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsReadInternalDomains404Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsReadInternalDomains404Response := _InternalDomainListsReadInternalDomains404Response{} + + err = json.Unmarshal(data, &varInternalDomainListsReadInternalDomains404Response) + + if err != nil { + return err + } + + *o = InternalDomainListsReadInternalDomains404Response(varInternalDomainListsReadInternalDomains404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsReadInternalDomains404Response struct { value *InternalDomainListsReadInternalDomains404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response_error.go index 8011e049..fd9d09f3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_read_internal_domains_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsReadInternalDomains404ResponseError{} // InternalDomainListsReadInternalDomains404ResponseError struct for InternalDomainListsReadInternalDomains404ResponseError type InternalDomainListsReadInternalDomains404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsReadInternalDomains404ResponseError InternalDomainListsReadInternalDomains404ResponseError + // NewInternalDomainListsReadInternalDomains404ResponseError instantiates a new InternalDomainListsReadInternalDomains404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsReadInternalDomains404ResponseError) ToMap() (map[str if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsReadInternalDomains404ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsReadInternalDomains404ResponseError := _InternalDomainListsReadInternalDomains404ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsReadInternalDomains404ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsReadInternalDomains404ResponseError(varInternalDomainListsReadInternalDomains404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsReadInternalDomains404ResponseError struct { value *InternalDomainListsReadInternalDomains404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response.go index a4e5063c..191cb8f3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsUpdateInternalDomains400Response{} // InternalDomainListsUpdateInternalDomains400Response struct for InternalDomainListsUpdateInternalDomains400Response type InternalDomainListsUpdateInternalDomains400Response struct { - Error *InternalDomainListsUpdateInternalDomains400ResponseError `json:"error,omitempty"` + Error *InternalDomainListsUpdateInternalDomains400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsUpdateInternalDomains400Response InternalDomainListsUpdateInternalDomains400Response + // NewInternalDomainListsUpdateInternalDomains400Response instantiates a new InternalDomainListsUpdateInternalDomains400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsUpdateInternalDomains400Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsUpdateInternalDomains400Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsUpdateInternalDomains400Response := _InternalDomainListsUpdateInternalDomains400Response{} + + err = json.Unmarshal(data, &varInternalDomainListsUpdateInternalDomains400Response) + + if err != nil { + return err + } + + *o = InternalDomainListsUpdateInternalDomains400Response(varInternalDomainListsUpdateInternalDomains400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsUpdateInternalDomains400Response struct { value *InternalDomainListsUpdateInternalDomains400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response_error.go index 9dc297b2..ceecb3ec 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsUpdateInternalDomains400ResponseError // InternalDomainListsUpdateInternalDomains400ResponseError struct for InternalDomainListsUpdateInternalDomains400ResponseError type InternalDomainListsUpdateInternalDomains400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsUpdateInternalDomains400ResponseError InternalDomainListsUpdateInternalDomains400ResponseError + // NewInternalDomainListsUpdateInternalDomains400ResponseError instantiates a new InternalDomainListsUpdateInternalDomains400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsUpdateInternalDomains400ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsUpdateInternalDomains400ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsUpdateInternalDomains400ResponseError := _InternalDomainListsUpdateInternalDomains400ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsUpdateInternalDomains400ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsUpdateInternalDomains400ResponseError(varInternalDomainListsUpdateInternalDomains400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsUpdateInternalDomains400ResponseError struct { value *InternalDomainListsUpdateInternalDomains400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response.go index 7f430cbc..74ee2f99 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainListsUpdateInternalDomains404Response{} // InternalDomainListsUpdateInternalDomains404Response struct for InternalDomainListsUpdateInternalDomains404Response type InternalDomainListsUpdateInternalDomains404Response struct { - Error *InternalDomainListsUpdateInternalDomains404ResponseError `json:"error,omitempty"` + Error *InternalDomainListsUpdateInternalDomains404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsUpdateInternalDomains404Response InternalDomainListsUpdateInternalDomains404Response + // NewInternalDomainListsUpdateInternalDomains404Response instantiates a new InternalDomainListsUpdateInternalDomains404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainListsUpdateInternalDomains404Response) ToMap() (map[string if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsUpdateInternalDomains404Response) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsUpdateInternalDomains404Response := _InternalDomainListsUpdateInternalDomains404Response{} + + err = json.Unmarshal(data, &varInternalDomainListsUpdateInternalDomains404Response) + + if err != nil { + return err + } + + *o = InternalDomainListsUpdateInternalDomains404Response(varInternalDomainListsUpdateInternalDomains404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsUpdateInternalDomains404Response struct { value *InternalDomainListsUpdateInternalDomains404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response_error.go index ca56398d..ee455564 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domain_lists_update_internal_domains_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &InternalDomainListsUpdateInternalDomains404ResponseError // InternalDomainListsUpdateInternalDomains404ResponseError struct for InternalDomainListsUpdateInternalDomains404ResponseError type InternalDomainListsUpdateInternalDomains404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainListsUpdateInternalDomains404ResponseError InternalDomainListsUpdateInternalDomains404ResponseError + // NewInternalDomainListsUpdateInternalDomains404ResponseError instantiates a new InternalDomainListsUpdateInternalDomains404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o InternalDomainListsUpdateInternalDomains404ResponseError) ToMap() (map[s if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainListsUpdateInternalDomains404ResponseError) UnmarshalJSON(data []byte) (err error) { + varInternalDomainListsUpdateInternalDomains404ResponseError := _InternalDomainListsUpdateInternalDomains404ResponseError{} + + err = json.Unmarshal(data, &varInternalDomainListsUpdateInternalDomains404ResponseError) + + if err != nil { + return err + } + + *o = InternalDomainListsUpdateInternalDomains404ResponseError(varInternalDomainListsUpdateInternalDomains404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainListsUpdateInternalDomains404ResponseError struct { value *InternalDomainListsUpdateInternalDomains404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains.go index c713b653..7d42105e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains.go @@ -35,9 +35,12 @@ type InternalDomains struct { // Enables tag support for resource where tags attribute contains user-defined key value pairs Tags map[string]interface{} `json:"tags,omitempty"` // The time when this Internal domain lists object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomains InternalDomains + // NewInternalDomains instantiates a new InternalDomains object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -345,9 +348,42 @@ func (o InternalDomains) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomains) UnmarshalJSON(data []byte) (err error) { + varInternalDomains := _InternalDomains{} + + err = json.Unmarshal(data, &varInternalDomains) + + if err != nil { + return err + } + + *o = InternalDomains(varInternalDomains) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "internal_domains") + delete(additionalProperties, "is_default") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomains struct { value *InternalDomains isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_create_response.go index d8caea26..551dfb5e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainsCreateResponse{} // InternalDomainsCreateResponse The Internal Domains create response. type InternalDomainsCreateResponse struct { - Results *InternalDomains `json:"results,omitempty"` + Results *InternalDomains `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsCreateResponse InternalDomainsCreateResponse + // NewInternalDomainsCreateResponse instantiates a new InternalDomainsCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainsCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsCreateResponse) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsCreateResponse := _InternalDomainsCreateResponse{} + + err = json.Unmarshal(data, &varInternalDomainsCreateResponse) + + if err != nil { + return err + } + + *o = InternalDomainsCreateResponse(varInternalDomainsCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsCreateResponse struct { value *InternalDomainsCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_delete_request.go index 7577fe24..f451c0c3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &InternalDomainsDeleteRequest{} // InternalDomainsDeleteRequest The Internal Domains delete request. type InternalDomainsDeleteRequest struct { // The list of InternalDomains object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsDeleteRequest InternalDomainsDeleteRequest + // NewInternalDomainsDeleteRequest instantiates a new InternalDomainsDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o InternalDomainsDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsDeleteRequest := _InternalDomainsDeleteRequest{} + + err = json.Unmarshal(data, &varInternalDomainsDeleteRequest) + + if err != nil { + return err + } + + *o = InternalDomainsDeleteRequest(varInternalDomainsDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsDeleteRequest struct { value *InternalDomainsDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_items.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_items.go index 6164cba8..0a467e88 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_items.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_items.go @@ -25,8 +25,11 @@ type InternalDomainsItems struct { Id *int32 `json:"id,omitempty"` // The List of ItemStructs structure which contains the item and its description InsertedItemsDescribed []ItemStructs `json:"inserted_items_described,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsItems InternalDomainsItems + // NewInternalDomainsItems instantiates a new InternalDomainsItems object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o InternalDomainsItems) ToMap() (map[string]interface{}, error) { if !IsNil(o.InsertedItemsDescribed) { toSerialize["inserted_items_described"] = o.InsertedItemsDescribed } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsItems) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsItems := _InternalDomainsItems{} + + err = json.Unmarshal(data, &varInternalDomainsItems) + + if err != nil { + return err + } + + *o = InternalDomainsItems(varInternalDomainsItems) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deleted_items_described") + delete(additionalProperties, "id") + delete(additionalProperties, "inserted_items_described") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsItems struct { value *InternalDomainsItems isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_multi_response.go index a5febc02..e6e26a2c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &InternalDomainsMultiResponse{} // InternalDomainsMultiResponse The Internal domains list response. type InternalDomainsMultiResponse struct { // The list of Internal Domains objects. - Results []InternalDomains `json:"results,omitempty"` + Results []InternalDomains `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsMultiResponse InternalDomainsMultiResponse + // NewInternalDomainsMultiResponse instantiates a new InternalDomainsMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o InternalDomainsMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsMultiResponse) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsMultiResponse := _InternalDomainsMultiResponse{} + + err = json.Unmarshal(data, &varInternalDomainsMultiResponse) + + if err != nil { + return err + } + + *o = InternalDomainsMultiResponse(varInternalDomainsMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsMultiResponse struct { value *InternalDomainsMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_read_response.go index 9f688861..2a1ef96b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainsReadResponse{} // InternalDomainsReadResponse The Internal Domains read response. type InternalDomainsReadResponse struct { - Results *InternalDomains `json:"results,omitempty"` + Results *InternalDomains `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsReadResponse InternalDomainsReadResponse + // NewInternalDomainsReadResponse instantiates a new InternalDomainsReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainsReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsReadResponse) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsReadResponse := _InternalDomainsReadResponse{} + + err = json.Unmarshal(data, &varInternalDomainsReadResponse) + + if err != nil { + return err + } + + *o = InternalDomainsReadResponse(varInternalDomainsReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsReadResponse struct { value *InternalDomainsReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_update_response.go index 5ea2d93f..af18fefe 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_internal_domains_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &InternalDomainsUpdateResponse{} // InternalDomainsUpdateResponse The Internal domains update response. type InternalDomainsUpdateResponse struct { - Results *InternalDomains `json:"results,omitempty"` + Results *InternalDomains `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _InternalDomainsUpdateResponse InternalDomainsUpdateResponse + // NewInternalDomainsUpdateResponse instantiates a new InternalDomainsUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o InternalDomainsUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InternalDomainsUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varInternalDomainsUpdateResponse := _InternalDomainsUpdateResponse{} + + err = json.Unmarshal(data, &varInternalDomainsUpdateResponse) + + if err != nil { + return err + } + + *o = InternalDomainsUpdateResponse(varInternalDomainsUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInternalDomainsUpdateResponse struct { value *InternalDomainsUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_item_structs.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_item_structs.go index a49c72e5..e9ea0f08 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_item_structs.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_item_structs.go @@ -22,9 +22,12 @@ type ItemStructs struct { // The description of the item Description *string `json:"description,omitempty"` // The data of the Item - Item *string `json:"item,omitempty"` + Item *string `json:"item,omitempty"` + AdditionalProperties map[string]interface{} } +type _ItemStructs ItemStructs + // NewItemStructs instantiates a new ItemStructs object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o ItemStructs) ToMap() (map[string]interface{}, error) { if !IsNil(o.Item) { toSerialize["item"] = o.Item } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ItemStructs) UnmarshalJSON(data []byte) (err error) { + varItemStructs := _ItemStructs{} + + err = json.Unmarshal(data, &varItemStructs) + + if err != nil { + return err + } + + *o = ItemStructs(varItemStructs) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "item") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableItemStructs struct { value *ItemStructs isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_po_p_regions_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_po_p_regions_response.go index fa6186be..0270fe07 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_po_p_regions_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_po_p_regions_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListPoPRegionsResponse{} // ListPoPRegionsResponse struct for ListPoPRegionsResponse type ListPoPRegionsResponse struct { - Results []PoPRegion `json:"results,omitempty"` - TotalResultCount *int32 `json:"total_result_count,omitempty"` + Results []PoPRegion `json:"results,omitempty"` + TotalResultCount *int32 `json:"total_result_count,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListPoPRegionsResponse ListPoPRegionsResponse + // NewListPoPRegionsResponse instantiates a new ListPoPRegionsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListPoPRegionsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.TotalResultCount) { toSerialize["total_result_count"] = o.TotalResultCount } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListPoPRegionsResponse) UnmarshalJSON(data []byte) (err error) { + varListPoPRegionsResponse := _ListPoPRegionsResponse{} + + err = json.Unmarshal(data, &varListPoPRegionsResponse) + + if err != nil { + return err + } + + *o = ListPoPRegionsResponse(varListPoPRegionsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + delete(additionalProperties, "total_result_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListPoPRegionsResponse struct { value *ListPoPRegionsResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_severity_levels.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_severity_levels.go index 40d908bd..cf70210e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_severity_levels.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_list_severity_levels.go @@ -26,9 +26,12 @@ type ListSeverityLevels struct { // Enables tag support for resource where tags attribute contains user-defined key value pairs Tags map[string]interface{} `json:"tags,omitempty"` // The threat level for a TI list. The possible values are [\"INFO\", \"LOW\", \"MEDIUM\", \"HIGH\"] - ThreatLevel *string `json:"threat_level,omitempty"` + ThreatLevel *string `json:"threat_level,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListSeverityLevels ListSeverityLevels + // NewListSeverityLevels instantiates a new ListSeverityLevels object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o ListSeverityLevels) ToMap() (map[string]interface{}, error) { if !IsNil(o.ThreatLevel) { toSerialize["threat_level"] = o.ThreatLevel } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListSeverityLevels) UnmarshalJSON(data []byte) (err error) { + varListSeverityLevels := _ListSeverityLevels{} + + err = json.Unmarshal(data, &varListSeverityLevels) + + if err != nil { + return err + } + + *o = ListSeverityLevels(varListSeverityLevels) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "confidence_level") + delete(additionalProperties, "id") + delete(additionalProperties, "tags") + delete(additionalProperties, "threat_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListSeverityLevels struct { value *ListSeverityLevels isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_multi_list_update.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_multi_list_update.go index 4ab56154..29ebdc56 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_multi_list_update.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_multi_list_update.go @@ -23,8 +23,11 @@ type MultiListUpdate struct { Ids []int32 `json:"ids,omitempty"` // The List of ItemStructs structure which contains the item and its description InsertedItemsDescribed []ItemStructs `json:"inserted_items_described,omitempty"` + AdditionalProperties map[string]interface{} } +type _MultiListUpdate MultiListUpdate + // NewMultiListUpdate instantiates a new MultiListUpdate object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o MultiListUpdate) ToMap() (map[string]interface{}, error) { if !IsNil(o.InsertedItemsDescribed) { toSerialize["inserted_items_described"] = o.InsertedItemsDescribed } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *MultiListUpdate) UnmarshalJSON(data []byte) (err error) { + varMultiListUpdate := _MultiListUpdate{} + + err = json.Unmarshal(data, &varMultiListUpdate) + + if err != nil { + return err + } + + *o = MultiListUpdate(varMultiListUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + delete(additionalProperties, "inserted_items_described") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableMultiListUpdate struct { value *MultiListUpdate isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list.go index dbc7ddf1..904f7650 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list.go @@ -45,9 +45,12 @@ type NamedList struct { // The type of the named list, that can be \"custom_list\", \"threat_insight\", \"fast_flux\", \"dga\", \"dnsm\", \"threat_insight_nde\", \"default_allow\", \"default_block\" or \"threat_insight_nde\". Type *string `json:"type,omitempty"` // The time when this Named List object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedList NamedList + // NewNamedList instantiates a new NamedList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -530,9 +533,47 @@ func (o NamedList) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedList) UnmarshalJSON(data []byte) (err error) { + varNamedList := _NamedList{} + + err = json.Unmarshal(data, &varNamedList) + + if err != nil { + return err + } + + *o = NamedList(varNamedList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "confidence_level") + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "item_count") + delete(additionalProperties, "items") + delete(additionalProperties, "items_described") + delete(additionalProperties, "name") + delete(additionalProperties, "policies") + delete(additionalProperties, "tags") + delete(additionalProperties, "threat_level") + delete(additionalProperties, "type") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedList struct { value *NamedList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_create_response.go index 0e08697c..6aeb297a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListCreateResponse{} // NamedListCreateResponse The Named List create response. type NamedListCreateResponse struct { - Results *NamedList `json:"results,omitempty"` + Results *NamedList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListCreateResponse NamedListCreateResponse + // NewNamedListCreateResponse instantiates a new NamedListCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListCreateResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListCreateResponse := _NamedListCreateResponse{} + + err = json.Unmarshal(data, &varNamedListCreateResponse) + + if err != nil { + return err + } + + *o = NamedListCreateResponse(varNamedListCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListCreateResponse struct { value *NamedListCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_csv_list_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_csv_list_response.go index 93ba7674..cbd913db 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_csv_list_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_csv_list_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NamedListCSVListResponse{} // NamedListCSVListResponse The Named List CSV list response type NamedListCSVListResponse struct { // Named Lists for csv file - Results []string `json:"results,omitempty"` + Results []string `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListCSVListResponse NamedListCSVListResponse + // NewNamedListCSVListResponse instantiates a new NamedListCSVListResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NamedListCSVListResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListCSVListResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListCSVListResponse := _NamedListCSVListResponse{} + + err = json.Unmarshal(data, &varNamedListCSVListResponse) + + if err != nil { + return err + } + + *o = NamedListCSVListResponse(varNamedListCSVListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListCSVListResponse struct { value *NamedListCSVListResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response.go index 6a1beb00..4192d13a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListItemsDeleteNamedListItems400Response{} // NamedListItemsDeleteNamedListItems400Response struct for NamedListItemsDeleteNamedListItems400Response type NamedListItemsDeleteNamedListItems400Response struct { - Error *NamedListItemsDeleteNamedListItems400ResponseError `json:"error,omitempty"` + Error *NamedListItemsDeleteNamedListItems400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsDeleteNamedListItems400Response NamedListItemsDeleteNamedListItems400Response + // NewNamedListItemsDeleteNamedListItems400Response instantiates a new NamedListItemsDeleteNamedListItems400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListItemsDeleteNamedListItems400Response) ToMap() (map[string]inter if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsDeleteNamedListItems400Response) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsDeleteNamedListItems400Response := _NamedListItemsDeleteNamedListItems400Response{} + + err = json.Unmarshal(data, &varNamedListItemsDeleteNamedListItems400Response) + + if err != nil { + return err + } + + *o = NamedListItemsDeleteNamedListItems400Response(varNamedListItemsDeleteNamedListItems400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsDeleteNamedListItems400Response struct { value *NamedListItemsDeleteNamedListItems400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response_error.go index c99cb1da..2f1212fb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_named_list_items_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListItemsDeleteNamedListItems400ResponseError{} // NamedListItemsDeleteNamedListItems400ResponseError struct for NamedListItemsDeleteNamedListItems400ResponseError type NamedListItemsDeleteNamedListItems400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsDeleteNamedListItems400ResponseError NamedListItemsDeleteNamedListItems400ResponseError + // NewNamedListItemsDeleteNamedListItems400ResponseError instantiates a new NamedListItemsDeleteNamedListItems400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListItemsDeleteNamedListItems400ResponseError) ToMap() (map[string] if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsDeleteNamedListItems400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsDeleteNamedListItems400ResponseError := _NamedListItemsDeleteNamedListItems400ResponseError{} + + err = json.Unmarshal(data, &varNamedListItemsDeleteNamedListItems400ResponseError) + + if err != nil { + return err + } + + *o = NamedListItemsDeleteNamedListItems400ResponseError(varNamedListItemsDeleteNamedListItems400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsDeleteNamedListItems400ResponseError struct { value *NamedListItemsDeleteNamedListItems400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_request.go index 540f48e7..7301cc3e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_delete_request.go @@ -24,9 +24,12 @@ type NamedListItemsDeleteRequest struct { // The list of the FQDN or IPv4/IPv6 addresses or IPv4/IPv6 CIDRs to define whitelists and blacklists for additional protection. Items []string `json:"items,omitempty"` // The List of ItemStructs structure which contains the item and its description - ItemsDescribed []ItemStructs `json:"items_described,omitempty"` + ItemsDescribed []ItemStructs `json:"items_described,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsDeleteRequest NamedListItemsDeleteRequest + // NewNamedListItemsDeleteRequest instantiates a new NamedListItemsDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o NamedListItemsDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ItemsDescribed) { toSerialize["items_described"] = o.ItemsDescribed } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsDeleteRequest := _NamedListItemsDeleteRequest{} + + err = json.Unmarshal(data, &varNamedListItemsDeleteRequest) + + if err != nil { + return err + } + + *o = NamedListItemsDeleteRequest(varNamedListItemsDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "items") + delete(additionalProperties, "items_described") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsDeleteRequest struct { value *NamedListItemsDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response.go index 10c388a2..d53a24ae 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListItemsInsertOrReplaceNamedListItems400Response{} // NamedListItemsInsertOrReplaceNamedListItems400Response struct for NamedListItemsInsertOrReplaceNamedListItems400Response type NamedListItemsInsertOrReplaceNamedListItems400Response struct { - Error *NamedListItemsInsertOrReplaceNamedListItems400ResponseError `json:"error,omitempty"` + Error *NamedListItemsInsertOrReplaceNamedListItems400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsInsertOrReplaceNamedListItems400Response NamedListItemsInsertOrReplaceNamedListItems400Response + // NewNamedListItemsInsertOrReplaceNamedListItems400Response instantiates a new NamedListItemsInsertOrReplaceNamedListItems400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListItemsInsertOrReplaceNamedListItems400Response) ToMap() (map[str if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsInsertOrReplaceNamedListItems400Response) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsInsertOrReplaceNamedListItems400Response := _NamedListItemsInsertOrReplaceNamedListItems400Response{} + + err = json.Unmarshal(data, &varNamedListItemsInsertOrReplaceNamedListItems400Response) + + if err != nil { + return err + } + + *o = NamedListItemsInsertOrReplaceNamedListItems400Response(varNamedListItemsInsertOrReplaceNamedListItems400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsInsertOrReplaceNamedListItems400Response struct { value *NamedListItemsInsertOrReplaceNamedListItems400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response_error.go index cdc9316c..6397f7f5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_replace_named_list_items_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListItemsInsertOrReplaceNamedListItems400ResponseEr // NamedListItemsInsertOrReplaceNamedListItems400ResponseError struct for NamedListItemsInsertOrReplaceNamedListItems400ResponseError type NamedListItemsInsertOrReplaceNamedListItems400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsInsertOrReplaceNamedListItems400ResponseError NamedListItemsInsertOrReplaceNamedListItems400ResponseError + // NewNamedListItemsInsertOrReplaceNamedListItems400ResponseError instantiates a new NamedListItemsInsertOrReplaceNamedListItems400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListItemsInsertOrReplaceNamedListItems400ResponseError) ToMap() (ma if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsInsertOrReplaceNamedListItems400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsInsertOrReplaceNamedListItems400ResponseError := _NamedListItemsInsertOrReplaceNamedListItems400ResponseError{} + + err = json.Unmarshal(data, &varNamedListItemsInsertOrReplaceNamedListItems400ResponseError) + + if err != nil { + return err + } + + *o = NamedListItemsInsertOrReplaceNamedListItems400ResponseError(varNamedListItemsInsertOrReplaceNamedListItems400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsInsertOrReplaceNamedListItems400ResponseError struct { value *NamedListItemsInsertOrReplaceNamedListItems400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update.go index 3d4d5c5c..2611d20c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update.go @@ -24,9 +24,12 @@ type NamedListItemsInsertOrUpdate struct { // The list of the FQDN or IPv4/IPv6 addresses or IPv4/IPv6 CIDRs to define whitelists and blacklists for additional protection. Items []string `json:"items,omitempty"` // The List of ItemStructs structure which contains the item and its description - ItemsDescribed []ItemStructs `json:"items_described,omitempty"` + ItemsDescribed []ItemStructs `json:"items_described,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsInsertOrUpdate NamedListItemsInsertOrUpdate + // NewNamedListItemsInsertOrUpdate instantiates a new NamedListItemsInsertOrUpdate object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o NamedListItemsInsertOrUpdate) ToMap() (map[string]interface{}, error) { if !IsNil(o.ItemsDescribed) { toSerialize["items_described"] = o.ItemsDescribed } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsInsertOrUpdate) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsInsertOrUpdate := _NamedListItemsInsertOrUpdate{} + + err = json.Unmarshal(data, &varNamedListItemsInsertOrUpdate) + + if err != nil { + return err + } + + *o = NamedListItemsInsertOrUpdate(varNamedListItemsInsertOrUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "items") + delete(additionalProperties, "items_described") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsInsertOrUpdate struct { value *NamedListItemsInsertOrUpdate isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update_response.go index 77503dfb..7a82447a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_insert_or_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListItemsInsertOrUpdateResponse{} // NamedListItemsInsertOrUpdateResponse The Named List Items create or update response. type NamedListItemsInsertOrUpdateResponse struct { - Success *AtcfwNamedListItemsInsertOrUpdateResponseSuccess `json:"success,omitempty"` + Success *AtcfwNamedListItemsInsertOrUpdateResponseSuccess `json:"success,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsInsertOrUpdateResponse NamedListItemsInsertOrUpdateResponse + // NewNamedListItemsInsertOrUpdateResponse instantiates a new NamedListItemsInsertOrUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListItemsInsertOrUpdateResponse) ToMap() (map[string]interface{}, e if !IsNil(o.Success) { toSerialize["success"] = o.Success } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsInsertOrUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsInsertOrUpdateResponse := _NamedListItemsInsertOrUpdateResponse{} + + err = json.Unmarshal(data, &varNamedListItemsInsertOrUpdateResponse) + + if err != nil { + return err + } + + *o = NamedListItemsInsertOrUpdateResponse(varNamedListItemsInsertOrUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsInsertOrUpdateResponse struct { value *NamedListItemsInsertOrUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response.go index 83e10d40..406a3622 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListItemsNamedListItemsPartialUpdate400Response{} // NamedListItemsNamedListItemsPartialUpdate400Response struct for NamedListItemsNamedListItemsPartialUpdate400Response type NamedListItemsNamedListItemsPartialUpdate400Response struct { - Error *NamedListItemsNamedListItemsPartialUpdate400ResponseError `json:"error,omitempty"` + Error *NamedListItemsNamedListItemsPartialUpdate400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsNamedListItemsPartialUpdate400Response NamedListItemsNamedListItemsPartialUpdate400Response + // NewNamedListItemsNamedListItemsPartialUpdate400Response instantiates a new NamedListItemsNamedListItemsPartialUpdate400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListItemsNamedListItemsPartialUpdate400Response) ToMap() (map[strin if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsNamedListItemsPartialUpdate400Response) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsNamedListItemsPartialUpdate400Response := _NamedListItemsNamedListItemsPartialUpdate400Response{} + + err = json.Unmarshal(data, &varNamedListItemsNamedListItemsPartialUpdate400Response) + + if err != nil { + return err + } + + *o = NamedListItemsNamedListItemsPartialUpdate400Response(varNamedListItemsNamedListItemsPartialUpdate400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsNamedListItemsPartialUpdate400Response struct { value *NamedListItemsNamedListItemsPartialUpdate400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response_error.go index 65b89c39..890b684b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_named_list_items_partial_update_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListItemsNamedListItemsPartialUpdate400ResponseErro // NamedListItemsNamedListItemsPartialUpdate400ResponseError struct for NamedListItemsNamedListItemsPartialUpdate400ResponseError type NamedListItemsNamedListItemsPartialUpdate400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsNamedListItemsPartialUpdate400ResponseError NamedListItemsNamedListItemsPartialUpdate400ResponseError + // NewNamedListItemsNamedListItemsPartialUpdate400ResponseError instantiates a new NamedListItemsNamedListItemsPartialUpdate400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListItemsNamedListItemsPartialUpdate400ResponseError) ToMap() (map[ if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsNamedListItemsPartialUpdate400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsNamedListItemsPartialUpdate400ResponseError := _NamedListItemsNamedListItemsPartialUpdate400ResponseError{} + + err = json.Unmarshal(data, &varNamedListItemsNamedListItemsPartialUpdate400ResponseError) + + if err != nil { + return err + } + + *o = NamedListItemsNamedListItemsPartialUpdate400ResponseError(varNamedListItemsNamedListItemsPartialUpdate400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsNamedListItemsPartialUpdate400ResponseError struct { value *NamedListItemsNamedListItemsPartialUpdate400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_partial_update.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_partial_update.go index 303611ff..1ae65620 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_partial_update.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_items_partial_update.go @@ -25,8 +25,11 @@ type NamedListItemsPartialUpdate struct { Id *int32 `json:"id,omitempty"` // The List of ItemStructs structure which contains the item and its description InsertedItemsDescribed []ItemStructs `json:"inserted_items_described,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListItemsPartialUpdate NamedListItemsPartialUpdate + // NewNamedListItemsPartialUpdate instantiates a new NamedListItemsPartialUpdate object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o NamedListItemsPartialUpdate) ToMap() (map[string]interface{}, error) { if !IsNil(o.InsertedItemsDescribed) { toSerialize["inserted_items_described"] = o.InsertedItemsDescribed } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListItemsPartialUpdate) UnmarshalJSON(data []byte) (err error) { + varNamedListItemsPartialUpdate := _NamedListItemsPartialUpdate{} + + err = json.Unmarshal(data, &varNamedListItemsPartialUpdate) + + if err != nil { + return err + } + + *o = NamedListItemsPartialUpdate(varNamedListItemsPartialUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deleted_items_described") + delete(additionalProperties, "id") + delete(additionalProperties, "inserted_items_described") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListItemsPartialUpdate struct { value *NamedListItemsPartialUpdate isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read.go index 36e1f2ea..c8eccb08 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read.go @@ -41,9 +41,12 @@ type NamedListRead struct { // The type of the named list, that can be \"custom_list\", \"threat_insight\", \"fast_flux\", \"dga\", \"dnsm\", \"threat_insight_nde\", \"default_allow\", \"default_block\". Type *string `json:"type,omitempty"` // The time when this Named List object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListRead NamedListRead + // NewNamedListRead instantiates a new NamedListRead object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -456,9 +459,45 @@ func (o NamedListRead) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListRead) UnmarshalJSON(data []byte) (err error) { + varNamedListRead := _NamedListRead{} + + err = json.Unmarshal(data, &varNamedListRead) + + if err != nil { + return err + } + + *o = NamedListRead(varNamedListRead) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "confidence_level") + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "item_count") + delete(additionalProperties, "name") + delete(additionalProperties, "policies") + delete(additionalProperties, "tags") + delete(additionalProperties, "threat_level") + delete(additionalProperties, "type") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListRead struct { value *NamedListRead isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_multi_response.go index 351e1872..dd81e504 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NamedListReadMultiResponse{} // NamedListReadMultiResponse The Named List list response. type NamedListReadMultiResponse struct { // The list of Named List objects. - Results []NamedListRead `json:"results,omitempty"` + Results []NamedListRead `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListReadMultiResponse NamedListReadMultiResponse + // NewNamedListReadMultiResponse instantiates a new NamedListReadMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NamedListReadMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListReadMultiResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListReadMultiResponse := _NamedListReadMultiResponse{} + + err = json.Unmarshal(data, &varNamedListReadMultiResponse) + + if err != nil { + return err + } + + *o = NamedListReadMultiResponse(varNamedListReadMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListReadMultiResponse struct { value *NamedListReadMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_response.go index ef270a82..6673f75f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListReadResponse{} // NamedListReadResponse The Named List read response. type NamedListReadResponse struct { - Results *NamedList `json:"results,omitempty"` + Results *NamedList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListReadResponse NamedListReadResponse + // NewNamedListReadResponse instantiates a new NamedListReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListReadResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListReadResponse := _NamedListReadResponse{} + + err = json.Unmarshal(data, &varNamedListReadResponse) + + if err != nil { + return err + } + + *o = NamedListReadResponse(varNamedListReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListReadResponse struct { value *NamedListReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_update_response.go index 2fd82e55..71223d47 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_list_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListUpdateResponse{} // NamedListUpdateResponse The Named List update response. type NamedListUpdateResponse struct { - Results *NamedList `json:"results,omitempty"` + Results *NamedList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListUpdateResponse NamedListUpdateResponse + // NewNamedListUpdateResponse instantiates a new NamedListUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varNamedListUpdateResponse := _NamedListUpdateResponse{} + + err = json.Unmarshal(data, &varNamedListUpdateResponse) + + if err != nil { + return err + } + + *o = NamedListUpdateResponse(varNamedListUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListUpdateResponse struct { value *NamedListUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response.go index efaf1788..fe677e92 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsCreateNamedList409Response{} // NamedListsCreateNamedList409Response struct for NamedListsCreateNamedList409Response type NamedListsCreateNamedList409Response struct { - Error *NamedListsCreateNamedList409ResponseError `json:"error,omitempty"` + Error *NamedListsCreateNamedList409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsCreateNamedList409Response NamedListsCreateNamedList409Response + // NewNamedListsCreateNamedList409Response instantiates a new NamedListsCreateNamedList409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsCreateNamedList409Response) ToMap() (map[string]interface{}, e if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsCreateNamedList409Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsCreateNamedList409Response := _NamedListsCreateNamedList409Response{} + + err = json.Unmarshal(data, &varNamedListsCreateNamedList409Response) + + if err != nil { + return err + } + + *o = NamedListsCreateNamedList409Response(varNamedListsCreateNamedList409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsCreateNamedList409Response struct { value *NamedListsCreateNamedList409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response_error.go index 1fa08a4d..cc7fcf58 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_create_named_list_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsCreateNamedList409ResponseError{} // NamedListsCreateNamedList409ResponseError struct for NamedListsCreateNamedList409ResponseError type NamedListsCreateNamedList409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsCreateNamedList409ResponseError NamedListsCreateNamedList409ResponseError + // NewNamedListsCreateNamedList409ResponseError instantiates a new NamedListsCreateNamedList409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsCreateNamedList409ResponseError) ToMap() (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 *NamedListsCreateNamedList409ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsCreateNamedList409ResponseError := _NamedListsCreateNamedList409ResponseError{} + + err = json.Unmarshal(data, &varNamedListsCreateNamedList409ResponseError) + + if err != nil { + return err + } + + *o = NamedListsCreateNamedList409ResponseError(varNamedListsCreateNamedList409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsCreateNamedList409ResponseError struct { value *NamedListsCreateNamedList409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response.go index 9e03dd6f..7b38d710 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsDeleteNamedLists400Response{} // NamedListsDeleteNamedLists400Response struct for NamedListsDeleteNamedLists400Response type NamedListsDeleteNamedLists400Response struct { - Error *NamedListsDeleteNamedLists400ResponseError `json:"error,omitempty"` + Error *NamedListsDeleteNamedLists400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteNamedLists400Response NamedListsDeleteNamedLists400Response + // NewNamedListsDeleteNamedLists400Response instantiates a new NamedListsDeleteNamedLists400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsDeleteNamedLists400Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteNamedLists400Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteNamedLists400Response := _NamedListsDeleteNamedLists400Response{} + + err = json.Unmarshal(data, &varNamedListsDeleteNamedLists400Response) + + if err != nil { + return err + } + + *o = NamedListsDeleteNamedLists400Response(varNamedListsDeleteNamedLists400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteNamedLists400Response struct { value *NamedListsDeleteNamedLists400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response_error.go index 2184d2a8..bab2128e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsDeleteNamedLists400ResponseError{} // NamedListsDeleteNamedLists400ResponseError struct for NamedListsDeleteNamedLists400ResponseError type NamedListsDeleteNamedLists400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteNamedLists400ResponseError NamedListsDeleteNamedLists400ResponseError + // NewNamedListsDeleteNamedLists400ResponseError instantiates a new NamedListsDeleteNamedLists400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsDeleteNamedLists400ResponseError) ToMap() (map[string]interfac if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteNamedLists400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteNamedLists400ResponseError := _NamedListsDeleteNamedLists400ResponseError{} + + err = json.Unmarshal(data, &varNamedListsDeleteNamedLists400ResponseError) + + if err != nil { + return err + } + + *o = NamedListsDeleteNamedLists400ResponseError(varNamedListsDeleteNamedLists400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteNamedLists400ResponseError struct { value *NamedListsDeleteNamedLists400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response.go index 4a86a739..ad1120fc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsDeleteNamedLists404Response{} // NamedListsDeleteNamedLists404Response struct for NamedListsDeleteNamedLists404Response type NamedListsDeleteNamedLists404Response struct { - Error *NamedListsDeleteNamedLists404ResponseError `json:"error,omitempty"` + Error *NamedListsDeleteNamedLists404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteNamedLists404Response NamedListsDeleteNamedLists404Response + // NewNamedListsDeleteNamedLists404Response instantiates a new NamedListsDeleteNamedLists404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsDeleteNamedLists404Response) ToMap() (map[string]interface{}, if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteNamedLists404Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteNamedLists404Response := _NamedListsDeleteNamedLists404Response{} + + err = json.Unmarshal(data, &varNamedListsDeleteNamedLists404Response) + + if err != nil { + return err + } + + *o = NamedListsDeleteNamedLists404Response(varNamedListsDeleteNamedLists404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteNamedLists404Response struct { value *NamedListsDeleteNamedLists404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response_error.go index e53bdf1f..ea792a09 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_named_lists_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsDeleteNamedLists404ResponseError{} // NamedListsDeleteNamedLists404ResponseError struct for NamedListsDeleteNamedLists404ResponseError type NamedListsDeleteNamedLists404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteNamedLists404ResponseError NamedListsDeleteNamedLists404ResponseError + // NewNamedListsDeleteNamedLists404ResponseError instantiates a new NamedListsDeleteNamedLists404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsDeleteNamedLists404ResponseError) ToMap() (map[string]interfac if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteNamedLists404ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteNamedLists404ResponseError := _NamedListsDeleteNamedLists404ResponseError{} + + err = json.Unmarshal(data, &varNamedListsDeleteNamedLists404ResponseError) + + if err != nil { + return err + } + + *o = NamedListsDeleteNamedLists404ResponseError(varNamedListsDeleteNamedLists404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteNamedLists404ResponseError struct { value *NamedListsDeleteNamedLists404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_request.go index ca548249..045ac477 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NamedListsDeleteRequest{} // NamedListsDeleteRequest The Named List delete request. type NamedListsDeleteRequest struct { // The list of Named List object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteRequest NamedListsDeleteRequest + // NewNamedListsDeleteRequest instantiates a new NamedListsDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NamedListsDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteRequest := _NamedListsDeleteRequest{} + + err = json.Unmarshal(data, &varNamedListsDeleteRequest) + + if err != nil { + return err + } + + *o = NamedListsDeleteRequest(varNamedListsDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteRequest struct { value *NamedListsDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response.go index 0e923ece..47b0e28e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsDeleteSingleNamedLists404Response{} // NamedListsDeleteSingleNamedLists404Response struct for NamedListsDeleteSingleNamedLists404Response type NamedListsDeleteSingleNamedLists404Response struct { - Error *NamedListsDeleteSingleNamedLists404ResponseError `json:"error,omitempty"` + Error *NamedListsDeleteSingleNamedLists404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteSingleNamedLists404Response NamedListsDeleteSingleNamedLists404Response + // NewNamedListsDeleteSingleNamedLists404Response instantiates a new NamedListsDeleteSingleNamedLists404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsDeleteSingleNamedLists404Response) ToMap() (map[string]interfa if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteSingleNamedLists404Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteSingleNamedLists404Response := _NamedListsDeleteSingleNamedLists404Response{} + + err = json.Unmarshal(data, &varNamedListsDeleteSingleNamedLists404Response) + + if err != nil { + return err + } + + *o = NamedListsDeleteSingleNamedLists404Response(varNamedListsDeleteSingleNamedLists404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteSingleNamedLists404Response struct { value *NamedListsDeleteSingleNamedLists404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response_error.go index c95eecc5..c90ddfb9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_delete_single_named_lists_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsDeleteSingleNamedLists404ResponseError{} // NamedListsDeleteSingleNamedLists404ResponseError struct for NamedListsDeleteSingleNamedLists404ResponseError type NamedListsDeleteSingleNamedLists404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsDeleteSingleNamedLists404ResponseError NamedListsDeleteSingleNamedLists404ResponseError + // NewNamedListsDeleteSingleNamedLists404ResponseError instantiates a new NamedListsDeleteSingleNamedLists404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsDeleteSingleNamedLists404ResponseError) ToMap() (map[string]in if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsDeleteSingleNamedLists404ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsDeleteSingleNamedLists404ResponseError := _NamedListsDeleteSingleNamedLists404ResponseError{} + + err = json.Unmarshal(data, &varNamedListsDeleteSingleNamedLists404ResponseError) + + if err != nil { + return err + } + + *o = NamedListsDeleteSingleNamedLists404ResponseError(varNamedListsDeleteSingleNamedLists404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsDeleteSingleNamedLists404ResponseError struct { value *NamedListsDeleteSingleNamedLists404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response.go index c63f42d3..41b45541 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsMultiListUpdate404Response{} // NamedListsMultiListUpdate404Response struct for NamedListsMultiListUpdate404Response type NamedListsMultiListUpdate404Response struct { - Error *NamedListsMultiListUpdate404ResponseError `json:"error,omitempty"` + Error *NamedListsMultiListUpdate404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsMultiListUpdate404Response NamedListsMultiListUpdate404Response + // NewNamedListsMultiListUpdate404Response instantiates a new NamedListsMultiListUpdate404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsMultiListUpdate404Response) ToMap() (map[string]interface{}, e if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsMultiListUpdate404Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsMultiListUpdate404Response := _NamedListsMultiListUpdate404Response{} + + err = json.Unmarshal(data, &varNamedListsMultiListUpdate404Response) + + if err != nil { + return err + } + + *o = NamedListsMultiListUpdate404Response(varNamedListsMultiListUpdate404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsMultiListUpdate404Response struct { value *NamedListsMultiListUpdate404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response_error.go index b2ba6416..714cd956 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_multi_list_update_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsMultiListUpdate404ResponseError{} // NamedListsMultiListUpdate404ResponseError struct for NamedListsMultiListUpdate404ResponseError type NamedListsMultiListUpdate404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsMultiListUpdate404ResponseError NamedListsMultiListUpdate404ResponseError + // NewNamedListsMultiListUpdate404ResponseError instantiates a new NamedListsMultiListUpdate404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsMultiListUpdate404ResponseError) ToMap() (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 *NamedListsMultiListUpdate404ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsMultiListUpdate404ResponseError := _NamedListsMultiListUpdate404ResponseError{} + + err = json.Unmarshal(data, &varNamedListsMultiListUpdate404ResponseError) + + if err != nil { + return err + } + + *o = NamedListsMultiListUpdate404ResponseError(varNamedListsMultiListUpdate404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsMultiListUpdate404ResponseError struct { value *NamedListsMultiListUpdate404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response.go index 9b036651..dface3cf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial400Response{} // NamedListsUpdateNamedListPartial400Response struct for NamedListsUpdateNamedListPartial400Response type NamedListsUpdateNamedListPartial400Response struct { - Error *NamedListsUpdateNamedListPartial400ResponseError `json:"error,omitempty"` + Error *NamedListsUpdateNamedListPartial400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial400Response NamedListsUpdateNamedListPartial400Response + // NewNamedListsUpdateNamedListPartial400Response instantiates a new NamedListsUpdateNamedListPartial400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsUpdateNamedListPartial400Response) ToMap() (map[string]interfa if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial400Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial400Response := _NamedListsUpdateNamedListPartial400Response{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial400Response) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial400Response(varNamedListsUpdateNamedListPartial400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial400Response struct { value *NamedListsUpdateNamedListPartial400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response_error.go index a4f197b9..21dbf5cb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial400ResponseError{} // NamedListsUpdateNamedListPartial400ResponseError struct for NamedListsUpdateNamedListPartial400ResponseError type NamedListsUpdateNamedListPartial400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial400ResponseError NamedListsUpdateNamedListPartial400ResponseError + // NewNamedListsUpdateNamedListPartial400ResponseError instantiates a new NamedListsUpdateNamedListPartial400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsUpdateNamedListPartial400ResponseError) ToMap() (map[string]in if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial400ResponseError := _NamedListsUpdateNamedListPartial400ResponseError{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial400ResponseError) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial400ResponseError(varNamedListsUpdateNamedListPartial400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial400ResponseError struct { value *NamedListsUpdateNamedListPartial400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response.go index a02a2219..fcfbf415 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial404Response{} // NamedListsUpdateNamedListPartial404Response struct for NamedListsUpdateNamedListPartial404Response type NamedListsUpdateNamedListPartial404Response struct { - Error *NamedListsUpdateNamedListPartial404ResponseError `json:"error,omitempty"` + Error *NamedListsUpdateNamedListPartial404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial404Response NamedListsUpdateNamedListPartial404Response + // NewNamedListsUpdateNamedListPartial404Response instantiates a new NamedListsUpdateNamedListPartial404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsUpdateNamedListPartial404Response) ToMap() (map[string]interfa if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial404Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial404Response := _NamedListsUpdateNamedListPartial404Response{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial404Response) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial404Response(varNamedListsUpdateNamedListPartial404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial404Response struct { value *NamedListsUpdateNamedListPartial404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response_error.go index 7d4e8738..ad8853c6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial404ResponseError{} // NamedListsUpdateNamedListPartial404ResponseError struct for NamedListsUpdateNamedListPartial404ResponseError type NamedListsUpdateNamedListPartial404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial404ResponseError NamedListsUpdateNamedListPartial404ResponseError + // NewNamedListsUpdateNamedListPartial404ResponseError instantiates a new NamedListsUpdateNamedListPartial404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsUpdateNamedListPartial404ResponseError) ToMap() (map[string]in if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial404ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial404ResponseError := _NamedListsUpdateNamedListPartial404ResponseError{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial404ResponseError) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial404ResponseError(varNamedListsUpdateNamedListPartial404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial404ResponseError struct { value *NamedListsUpdateNamedListPartial404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response.go index 9134cd22..d6b6f8fa 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial405Response{} // NamedListsUpdateNamedListPartial405Response struct for NamedListsUpdateNamedListPartial405Response type NamedListsUpdateNamedListPartial405Response struct { - Error *NamedListsUpdateNamedListPartial405ResponseError `json:"error,omitempty"` + Error *NamedListsUpdateNamedListPartial405ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial405Response NamedListsUpdateNamedListPartial405Response + // NewNamedListsUpdateNamedListPartial405Response instantiates a new NamedListsUpdateNamedListPartial405Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NamedListsUpdateNamedListPartial405Response) ToMap() (map[string]interfa if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial405Response) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial405Response := _NamedListsUpdateNamedListPartial405Response{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial405Response) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial405Response(varNamedListsUpdateNamedListPartial405Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial405Response struct { value *NamedListsUpdateNamedListPartial405Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response_error.go index 4684cef9..1e6e38b5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_named_lists_update_named_list_partial_405_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NamedListsUpdateNamedListPartial405ResponseError{} // NamedListsUpdateNamedListPartial405ResponseError struct for NamedListsUpdateNamedListPartial405ResponseError type NamedListsUpdateNamedListPartial405ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NamedListsUpdateNamedListPartial405ResponseError NamedListsUpdateNamedListPartial405ResponseError + // NewNamedListsUpdateNamedListPartial405ResponseError instantiates a new NamedListsUpdateNamedListPartial405ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NamedListsUpdateNamedListPartial405ResponseError) ToMap() (map[string]in if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NamedListsUpdateNamedListPartial405ResponseError) UnmarshalJSON(data []byte) (err error) { + varNamedListsUpdateNamedListPartial405ResponseError := _NamedListsUpdateNamedListPartial405ResponseError{} + + err = json.Unmarshal(data, &varNamedListsUpdateNamedListPartial405ResponseError) + + if err != nil { + return err + } + + *o = NamedListsUpdateNamedListPartial405ResponseError(varNamedListsUpdateNamedListPartial405ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNamedListsUpdateNamedListPartial405ResponseError struct { value *NamedListsUpdateNamedListPartial405ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_net_addr_dfp_assignment.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_net_addr_dfp_assignment.go index afafd383..7db61598 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_net_addr_dfp_assignment.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_net_addr_dfp_assignment.go @@ -33,9 +33,12 @@ type NetAddrDfpAssignment struct { IpSpaceId *string `json:"ip_space_id,omitempty"` ScopeType *NetAddrDfpAssignmentScopeType `json:"scope_type,omitempty"` // Start and end pair of addresses used for range scope type - Start *string `json:"start,omitempty"` + Start *string `json:"start,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetAddrDfpAssignment NetAddrDfpAssignment + // NewNetAddrDfpAssignment instantiates a new NetAddrDfpAssignment object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -382,9 +385,43 @@ func (o NetAddrDfpAssignment) ToMap() (map[string]interface{}, error) { if !IsNil(o.Start) { toSerialize["start"] = o.Start } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetAddrDfpAssignment) UnmarshalJSON(data []byte) (err error) { + varNetAddrDfpAssignment := _NetAddrDfpAssignment{} + + err = json.Unmarshal(data, &varNetAddrDfpAssignment) + + if err != nil { + return err + } + + *o = NetAddrDfpAssignment(varNetAddrDfpAssignment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "addr_net") + delete(additionalProperties, "dfp_ids") + delete(additionalProperties, "dfp_service_ids") + delete(additionalProperties, "end") + delete(additionalProperties, "external_scope_id") + delete(additionalProperties, "host_id") + delete(additionalProperties, "ip_space_id") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "start") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetAddrDfpAssignment struct { value *NetAddrDfpAssignment isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list.go index a2c73a32..d3393322 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list.go @@ -33,9 +33,12 @@ type NetworkList struct { // The identifier of the security policy with which the network list is associated. PolicyId *int32 `json:"policy_id,omitempty"` // The time when this Network List object was last updated. - UpdatedTime *time.Time `json:"updated_time,omitempty"` + UpdatedTime *time.Time `json:"updated_time,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkList NetworkList + // NewNetworkList instantiates a new NetworkList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -308,9 +311,41 @@ func (o NetworkList) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedTime) { toSerialize["updated_time"] = o.UpdatedTime } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkList) UnmarshalJSON(data []byte) (err error) { + varNetworkList := _NetworkList{} + + err = json.Unmarshal(data, &varNetworkList) + + if err != nil { + return err + } + + *o = NetworkList(varNetworkList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "created_time") + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "items") + delete(additionalProperties, "name") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "updated_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkList struct { value *NetworkList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_create_response.go index 831bfeaa..48388f60 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListCreateResponse{} // NetworkListCreateResponse The Network List create response. type NetworkListCreateResponse struct { - Results *NetworkList `json:"results,omitempty"` + Results *NetworkList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListCreateResponse NetworkListCreateResponse + // NewNetworkListCreateResponse instantiates a new NetworkListCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListCreateResponse) UnmarshalJSON(data []byte) (err error) { + varNetworkListCreateResponse := _NetworkListCreateResponse{} + + err = json.Unmarshal(data, &varNetworkListCreateResponse) + + if err != nil { + return err + } + + *o = NetworkListCreateResponse(varNetworkListCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListCreateResponse struct { value *NetworkListCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_multi_response.go index 42b737b0..4ad17b0c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NetworkListMultiResponse{} // NetworkListMultiResponse The Network List list response. type NetworkListMultiResponse struct { // The list of Network List objects. - Results []NetworkList `json:"results,omitempty"` + Results []NetworkList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListMultiResponse NetworkListMultiResponse + // NewNetworkListMultiResponse instantiates a new NetworkListMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NetworkListMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListMultiResponse) UnmarshalJSON(data []byte) (err error) { + varNetworkListMultiResponse := _NetworkListMultiResponse{} + + err = json.Unmarshal(data, &varNetworkListMultiResponse) + + if err != nil { + return err + } + + *o = NetworkListMultiResponse(varNetworkListMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListMultiResponse struct { value *NetworkListMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_read_response.go index 497da7a6..0fadb83b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListReadResponse{} // NetworkListReadResponse The Network List read response. type NetworkListReadResponse struct { - Results *NetworkList `json:"results,omitempty"` + Results *NetworkList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListReadResponse NetworkListReadResponse + // NewNetworkListReadResponse instantiates a new NetworkListReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListReadResponse) UnmarshalJSON(data []byte) (err error) { + varNetworkListReadResponse := _NetworkListReadResponse{} + + err = json.Unmarshal(data, &varNetworkListReadResponse) + + if err != nil { + return err + } + + *o = NetworkListReadResponse(varNetworkListReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListReadResponse struct { value *NetworkListReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_update_response.go index ea53ec3d..647fda55 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_list_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListUpdateResponse{} // NetworkListUpdateResponse The Network List update response. type NetworkListUpdateResponse struct { - Results *NetworkList `json:"results,omitempty"` + Results *NetworkList `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListUpdateResponse NetworkListUpdateResponse + // NewNetworkListUpdateResponse instantiates a new NetworkListUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varNetworkListUpdateResponse := _NetworkListUpdateResponse{} + + err = json.Unmarshal(data, &varNetworkListUpdateResponse) + + if err != nil { + return err + } + + *o = NetworkListUpdateResponse(varNetworkListUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListUpdateResponse struct { value *NetworkListUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response.go index 2f4a8d84..f1f24d6b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListsCreateNetworkList409Response{} // NetworkListsCreateNetworkList409Response struct for NetworkListsCreateNetworkList409Response type NetworkListsCreateNetworkList409Response struct { - Error *NetworkListsCreateNetworkList409ResponseError `json:"error,omitempty"` + Error *NetworkListsCreateNetworkList409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsCreateNetworkList409Response NetworkListsCreateNetworkList409Response + // NewNetworkListsCreateNetworkList409Response instantiates a new NetworkListsCreateNetworkList409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListsCreateNetworkList409Response) ToMap() (map[string]interface{ if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsCreateNetworkList409Response) UnmarshalJSON(data []byte) (err error) { + varNetworkListsCreateNetworkList409Response := _NetworkListsCreateNetworkList409Response{} + + err = json.Unmarshal(data, &varNetworkListsCreateNetworkList409Response) + + if err != nil { + return err + } + + *o = NetworkListsCreateNetworkList409Response(varNetworkListsCreateNetworkList409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsCreateNetworkList409Response struct { value *NetworkListsCreateNetworkList409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response_error.go index 30275cb9..9290abea 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_create_network_list_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NetworkListsCreateNetworkList409ResponseError{} // NetworkListsCreateNetworkList409ResponseError struct for NetworkListsCreateNetworkList409ResponseError type NetworkListsCreateNetworkList409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsCreateNetworkList409ResponseError NetworkListsCreateNetworkList409ResponseError + // NewNetworkListsCreateNetworkList409ResponseError instantiates a new NetworkListsCreateNetworkList409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NetworkListsCreateNetworkList409ResponseError) ToMap() (map[string]inter if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsCreateNetworkList409ResponseError) UnmarshalJSON(data []byte) (err error) { + varNetworkListsCreateNetworkList409ResponseError := _NetworkListsCreateNetworkList409ResponseError{} + + err = json.Unmarshal(data, &varNetworkListsCreateNetworkList409ResponseError) + + if err != nil { + return err + } + + *o = NetworkListsCreateNetworkList409ResponseError(varNetworkListsCreateNetworkList409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsCreateNetworkList409ResponseError struct { value *NetworkListsCreateNetworkList409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response.go index d743b9bb..7eba2510 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListsDeleteNetworkLists400Response{} // NetworkListsDeleteNetworkLists400Response struct for NetworkListsDeleteNetworkLists400Response type NetworkListsDeleteNetworkLists400Response struct { - Error *NetworkListsDeleteNetworkLists400ResponseError `json:"error,omitempty"` + Error *NetworkListsDeleteNetworkLists400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsDeleteNetworkLists400Response NetworkListsDeleteNetworkLists400Response + // NewNetworkListsDeleteNetworkLists400Response instantiates a new NetworkListsDeleteNetworkLists400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListsDeleteNetworkLists400Response) ToMap() (map[string]interface if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsDeleteNetworkLists400Response) UnmarshalJSON(data []byte) (err error) { + varNetworkListsDeleteNetworkLists400Response := _NetworkListsDeleteNetworkLists400Response{} + + err = json.Unmarshal(data, &varNetworkListsDeleteNetworkLists400Response) + + if err != nil { + return err + } + + *o = NetworkListsDeleteNetworkLists400Response(varNetworkListsDeleteNetworkLists400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsDeleteNetworkLists400Response struct { value *NetworkListsDeleteNetworkLists400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response_error.go index a86f8649..8c3567dc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NetworkListsDeleteNetworkLists400ResponseError{} // NetworkListsDeleteNetworkLists400ResponseError struct for NetworkListsDeleteNetworkLists400ResponseError type NetworkListsDeleteNetworkLists400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsDeleteNetworkLists400ResponseError NetworkListsDeleteNetworkLists400ResponseError + // NewNetworkListsDeleteNetworkLists400ResponseError instantiates a new NetworkListsDeleteNetworkLists400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NetworkListsDeleteNetworkLists400ResponseError) ToMap() (map[string]inte if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsDeleteNetworkLists400ResponseError) UnmarshalJSON(data []byte) (err error) { + varNetworkListsDeleteNetworkLists400ResponseError := _NetworkListsDeleteNetworkLists400ResponseError{} + + err = json.Unmarshal(data, &varNetworkListsDeleteNetworkLists400ResponseError) + + if err != nil { + return err + } + + *o = NetworkListsDeleteNetworkLists400ResponseError(varNetworkListsDeleteNetworkLists400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsDeleteNetworkLists400ResponseError struct { value *NetworkListsDeleteNetworkLists400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response.go index 4d004b7e..bb6ae436 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &NetworkListsDeleteNetworkLists404Response{} // NetworkListsDeleteNetworkLists404Response struct for NetworkListsDeleteNetworkLists404Response type NetworkListsDeleteNetworkLists404Response struct { - Error *NetworkListsDeleteNetworkLists404ResponseError `json:"error,omitempty"` + Error *NetworkListsDeleteNetworkLists404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsDeleteNetworkLists404Response NetworkListsDeleteNetworkLists404Response + // NewNetworkListsDeleteNetworkLists404Response instantiates a new NetworkListsDeleteNetworkLists404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o NetworkListsDeleteNetworkLists404Response) ToMap() (map[string]interface if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsDeleteNetworkLists404Response) UnmarshalJSON(data []byte) (err error) { + varNetworkListsDeleteNetworkLists404Response := _NetworkListsDeleteNetworkLists404Response{} + + err = json.Unmarshal(data, &varNetworkListsDeleteNetworkLists404Response) + + if err != nil { + return err + } + + *o = NetworkListsDeleteNetworkLists404Response(varNetworkListsDeleteNetworkLists404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsDeleteNetworkLists404Response struct { value *NetworkListsDeleteNetworkLists404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response_error.go index b46f7ff2..4c379ef2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_network_lists_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &NetworkListsDeleteNetworkLists404ResponseError{} // NetworkListsDeleteNetworkLists404ResponseError struct for NetworkListsDeleteNetworkLists404ResponseError type NetworkListsDeleteNetworkLists404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsDeleteNetworkLists404ResponseError NetworkListsDeleteNetworkLists404ResponseError + // NewNetworkListsDeleteNetworkLists404ResponseError instantiates a new NetworkListsDeleteNetworkLists404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o NetworkListsDeleteNetworkLists404ResponseError) ToMap() (map[string]inte if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsDeleteNetworkLists404ResponseError) UnmarshalJSON(data []byte) (err error) { + varNetworkListsDeleteNetworkLists404ResponseError := _NetworkListsDeleteNetworkLists404ResponseError{} + + err = json.Unmarshal(data, &varNetworkListsDeleteNetworkLists404ResponseError) + + if err != nil { + return err + } + + *o = NetworkListsDeleteNetworkLists404ResponseError(varNetworkListsDeleteNetworkLists404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsDeleteNetworkLists404ResponseError struct { value *NetworkListsDeleteNetworkLists404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_request.go index cae3c347..07dc43a2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_network_lists_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NetworkListsDeleteRequest{} // NetworkListsDeleteRequest The Network List delete request. type NetworkListsDeleteRequest struct { // The list of Network List object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _NetworkListsDeleteRequest NetworkListsDeleteRequest + // NewNetworkListsDeleteRequest instantiates a new NetworkListsDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NetworkListsDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NetworkListsDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varNetworkListsDeleteRequest := _NetworkListsDeleteRequest{} + + err = json.Unmarshal(data, &varNetworkListsDeleteRequest) + + if err != nil { + return err + } + + *o = NetworkListsDeleteRequest(varNetworkListsDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNetworkListsDeleteRequest struct { value *NetworkListsDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_po_p_region.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_po_p_region.go index d71e0a4d..42306d43 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_po_p_region.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_po_p_region.go @@ -26,9 +26,12 @@ type PoPRegion struct { // PoP Region's location Location *string `json:"location,omitempty"` // PoP Region's name - Region *string `json:"region,omitempty"` + Region *string `json:"region,omitempty"` + AdditionalProperties map[string]interface{} } +type _PoPRegion PoPRegion + // NewPoPRegion instantiates a new PoPRegion object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o PoPRegion) ToMap() (map[string]interface{}, error) { if !IsNil(o.Region) { toSerialize["region"] = o.Region } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PoPRegion) UnmarshalJSON(data []byte) (err error) { + varPoPRegion := _PoPRegion{} + + err = json.Unmarshal(data, &varPoPRegion) + + if err != nil { + return err + } + + *o = PoPRegion(varPoPRegion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "addresses") + delete(additionalProperties, "id") + delete(additionalProperties, "location") + delete(additionalProperties, "region") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePoPRegion struct { value *PoPRegion isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response.go index 9c66b3a8..f2e341fd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &PopRegionsReadPoPRegion404Response{} // PopRegionsReadPoPRegion404Response struct for PopRegionsReadPoPRegion404Response type PopRegionsReadPoPRegion404Response struct { - Error *PopRegionsReadPoPRegion404ResponseError `json:"error,omitempty"` + Error *PopRegionsReadPoPRegion404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _PopRegionsReadPoPRegion404Response PopRegionsReadPoPRegion404Response + // NewPopRegionsReadPoPRegion404Response instantiates a new PopRegionsReadPoPRegion404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o PopRegionsReadPoPRegion404Response) ToMap() (map[string]interface{}, err if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PopRegionsReadPoPRegion404Response) UnmarshalJSON(data []byte) (err error) { + varPopRegionsReadPoPRegion404Response := _PopRegionsReadPoPRegion404Response{} + + err = json.Unmarshal(data, &varPopRegionsReadPoPRegion404Response) + + if err != nil { + return err + } + + *o = PopRegionsReadPoPRegion404Response(varPopRegionsReadPoPRegion404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePopRegionsReadPoPRegion404Response struct { value *PopRegionsReadPoPRegion404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response_error.go index 4a8c7465..b3d44149 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_pop_regions_read_po_p_region_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &PopRegionsReadPoPRegion404ResponseError{} // PopRegionsReadPoPRegion404ResponseError struct for PopRegionsReadPoPRegion404ResponseError type PopRegionsReadPoPRegion404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _PopRegionsReadPoPRegion404ResponseError PopRegionsReadPoPRegion404ResponseError + // NewPopRegionsReadPoPRegion404ResponseError instantiates a new PopRegionsReadPoPRegion404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o PopRegionsReadPoPRegion404ResponseError) ToMap() (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 *PopRegionsReadPoPRegion404ResponseError) UnmarshalJSON(data []byte) (err error) { + varPopRegionsReadPoPRegion404ResponseError := _PopRegionsReadPoPRegion404ResponseError{} + + err = json.Unmarshal(data, &varPopRegionsReadPoPRegion404ResponseError) + + if err != nil { + return err + } + + *o = PopRegionsReadPoPRegion404ResponseError(varPopRegionsReadPoPRegion404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePopRegionsReadPoPRegion404ResponseError struct { value *PopRegionsReadPoPRegion404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_protobuf_field_mask.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_protobuf_field_mask.go index f6ae2a9a..1af84aac 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_protobuf_field_mask.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_protobuf_field_mask.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ProtobufFieldMask{} // ProtobufFieldMask paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, new values will be appended to the existing repeated field in the target resource. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then new value will be merged into the existing sub-message in the target resource. For example, given the target message: f { b { d: 1 x: 2 } c: [1] } And an update message: f { b { d: 10 } c: [2] } then if the field mask is: paths: [\"f.b\", \"f.c\"] then the result will be: f { b { d: 10 x: 2 } c: [1, 2] } An implementation may provide options to override this default behavior for repeated and message fields. In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of any API method which has a FieldMask type field in the request should verify the included field paths, and return an `INVALID_ARGUMENT` error if any path is unmappable. type ProtobufFieldMask struct { // The set of field mask paths. - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty"` + AdditionalProperties map[string]interface{} } +type _ProtobufFieldMask ProtobufFieldMask + // NewProtobufFieldMask instantiates a new ProtobufFieldMask object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ProtobufFieldMask) ToMap() (map[string]interface{}, error) { if !IsNil(o.Paths) { toSerialize["paths"] = o.Paths } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ProtobufFieldMask) UnmarshalJSON(data []byte) (err error) { + varProtobufFieldMask := _ProtobufFieldMask{} + + err = json.Unmarshal(data, &varProtobufFieldMask) + + if err != nil { + return err + } + + *o = ProtobufFieldMask(varProtobufFieldMask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "paths") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableProtobufFieldMask struct { value *ProtobufFieldMask isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_read_po_p_region_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_read_po_p_region_response.go index 4ccaa329..117b0dad 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_read_po_p_region_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_read_po_p_region_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadPoPRegionResponse{} // ReadPoPRegionResponse struct for ReadPoPRegionResponse type ReadPoPRegionResponse struct { - Result *PoPRegion `json:"result,omitempty"` + Result *PoPRegion `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadPoPRegionResponse ReadPoPRegionResponse + // NewReadPoPRegionResponse instantiates a new ReadPoPRegionResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadPoPRegionResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadPoPRegionResponse) UnmarshalJSON(data []byte) (err error) { + varReadPoPRegionResponse := _ReadPoPRegionResponse{} + + err = json.Unmarshal(data, &varReadPoPRegionResponse) + + if err != nil { + return err + } + + *o = ReadPoPRegionResponse(varReadPoPRegionResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadPoPRegionResponse struct { value *ReadPoPRegionResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response.go index 7e5ef29b..d6b1753c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPoliciesCreateSecurityPolicy400Response{} // SecurityPoliciesCreateSecurityPolicy400Response struct for SecurityPoliciesCreateSecurityPolicy400Response type SecurityPoliciesCreateSecurityPolicy400Response struct { - Error *SecurityPoliciesCreateSecurityPolicy400ResponseError `json:"error,omitempty"` + Error *SecurityPoliciesCreateSecurityPolicy400ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesCreateSecurityPolicy400Response SecurityPoliciesCreateSecurityPolicy400Response + // NewSecurityPoliciesCreateSecurityPolicy400Response instantiates a new SecurityPoliciesCreateSecurityPolicy400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPoliciesCreateSecurityPolicy400Response) ToMap() (map[string]int if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesCreateSecurityPolicy400Response) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesCreateSecurityPolicy400Response := _SecurityPoliciesCreateSecurityPolicy400Response{} + + err = json.Unmarshal(data, &varSecurityPoliciesCreateSecurityPolicy400Response) + + if err != nil { + return err + } + + *o = SecurityPoliciesCreateSecurityPolicy400Response(varSecurityPoliciesCreateSecurityPolicy400Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesCreateSecurityPolicy400Response struct { value *SecurityPoliciesCreateSecurityPolicy400Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response_error.go index a6f5f8fe..45fab160 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_400_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &SecurityPoliciesCreateSecurityPolicy400ResponseError{} // SecurityPoliciesCreateSecurityPolicy400ResponseError struct for SecurityPoliciesCreateSecurityPolicy400ResponseError type SecurityPoliciesCreateSecurityPolicy400ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesCreateSecurityPolicy400ResponseError SecurityPoliciesCreateSecurityPolicy400ResponseError + // NewSecurityPoliciesCreateSecurityPolicy400ResponseError instantiates a new SecurityPoliciesCreateSecurityPolicy400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o SecurityPoliciesCreateSecurityPolicy400ResponseError) ToMap() (map[strin if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesCreateSecurityPolicy400ResponseError) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesCreateSecurityPolicy400ResponseError := _SecurityPoliciesCreateSecurityPolicy400ResponseError{} + + err = json.Unmarshal(data, &varSecurityPoliciesCreateSecurityPolicy400ResponseError) + + if err != nil { + return err + } + + *o = SecurityPoliciesCreateSecurityPolicy400ResponseError(varSecurityPoliciesCreateSecurityPolicy400ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesCreateSecurityPolicy400ResponseError struct { value *SecurityPoliciesCreateSecurityPolicy400ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response.go index 516353f1..3fc4e674 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPoliciesCreateSecurityPolicy409Response{} // SecurityPoliciesCreateSecurityPolicy409Response struct for SecurityPoliciesCreateSecurityPolicy409Response type SecurityPoliciesCreateSecurityPolicy409Response struct { - Error *SecurityPoliciesCreateSecurityPolicy409ResponseError `json:"error,omitempty"` + Error *SecurityPoliciesCreateSecurityPolicy409ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesCreateSecurityPolicy409Response SecurityPoliciesCreateSecurityPolicy409Response + // NewSecurityPoliciesCreateSecurityPolicy409Response instantiates a new SecurityPoliciesCreateSecurityPolicy409Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPoliciesCreateSecurityPolicy409Response) ToMap() (map[string]int if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesCreateSecurityPolicy409Response) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesCreateSecurityPolicy409Response := _SecurityPoliciesCreateSecurityPolicy409Response{} + + err = json.Unmarshal(data, &varSecurityPoliciesCreateSecurityPolicy409Response) + + if err != nil { + return err + } + + *o = SecurityPoliciesCreateSecurityPolicy409Response(varSecurityPoliciesCreateSecurityPolicy409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesCreateSecurityPolicy409Response struct { value *SecurityPoliciesCreateSecurityPolicy409Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response_error.go index 14d6f357..39f340ef 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_create_security_policy_409_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &SecurityPoliciesCreateSecurityPolicy409ResponseError{} // SecurityPoliciesCreateSecurityPolicy409ResponseError struct for SecurityPoliciesCreateSecurityPolicy409ResponseError type SecurityPoliciesCreateSecurityPolicy409ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesCreateSecurityPolicy409ResponseError SecurityPoliciesCreateSecurityPolicy409ResponseError + // NewSecurityPoliciesCreateSecurityPolicy409ResponseError instantiates a new SecurityPoliciesCreateSecurityPolicy409ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o SecurityPoliciesCreateSecurityPolicy409ResponseError) ToMap() (map[strin if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesCreateSecurityPolicy409ResponseError) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesCreateSecurityPolicy409ResponseError := _SecurityPoliciesCreateSecurityPolicy409ResponseError{} + + err = json.Unmarshal(data, &varSecurityPoliciesCreateSecurityPolicy409ResponseError) + + if err != nil { + return err + } + + *o = SecurityPoliciesCreateSecurityPolicy409ResponseError(varSecurityPoliciesCreateSecurityPolicy409ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesCreateSecurityPolicy409ResponseError struct { value *SecurityPoliciesCreateSecurityPolicy409ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response.go index 15b50933..99702659 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPoliciesReadSecurityPolicy404Response{} // SecurityPoliciesReadSecurityPolicy404Response struct for SecurityPoliciesReadSecurityPolicy404Response type SecurityPoliciesReadSecurityPolicy404Response struct { - Error *SecurityPoliciesReadSecurityPolicy404ResponseError `json:"error,omitempty"` + Error *SecurityPoliciesReadSecurityPolicy404ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesReadSecurityPolicy404Response SecurityPoliciesReadSecurityPolicy404Response + // NewSecurityPoliciesReadSecurityPolicy404Response instantiates a new SecurityPoliciesReadSecurityPolicy404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPoliciesReadSecurityPolicy404Response) ToMap() (map[string]inter if !IsNil(o.Error) { toSerialize["error"] = o.Error } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesReadSecurityPolicy404Response) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesReadSecurityPolicy404Response := _SecurityPoliciesReadSecurityPolicy404Response{} + + err = json.Unmarshal(data, &varSecurityPoliciesReadSecurityPolicy404Response) + + if err != nil { + return err + } + + *o = SecurityPoliciesReadSecurityPolicy404Response(varSecurityPoliciesReadSecurityPolicy404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesReadSecurityPolicy404Response struct { value *SecurityPoliciesReadSecurityPolicy404Response isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response_error.go index f4067769..4af40b2c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policies_read_security_policy_404_response_error.go @@ -19,11 +19,14 @@ var _ MappedNullable = &SecurityPoliciesReadSecurityPolicy404ResponseError{} // SecurityPoliciesReadSecurityPolicy404ResponseError struct for SecurityPoliciesReadSecurityPolicy404ResponseError type SecurityPoliciesReadSecurityPolicy404ResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPoliciesReadSecurityPolicy404ResponseError SecurityPoliciesReadSecurityPolicy404ResponseError + // NewSecurityPoliciesReadSecurityPolicy404ResponseError instantiates a new SecurityPoliciesReadSecurityPolicy404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -156,9 +159,37 @@ func (o SecurityPoliciesReadSecurityPolicy404ResponseError) ToMap() (map[string] if !IsNil(o.Status) { toSerialize["status"] = o.Status } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPoliciesReadSecurityPolicy404ResponseError) UnmarshalJSON(data []byte) (err error) { + varSecurityPoliciesReadSecurityPolicy404ResponseError := _SecurityPoliciesReadSecurityPolicy404ResponseError{} + + err = json.Unmarshal(data, &varSecurityPoliciesReadSecurityPolicy404ResponseError) + + if err != nil { + return err + } + + *o = SecurityPoliciesReadSecurityPolicy404ResponseError(varSecurityPoliciesReadSecurityPolicy404ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPoliciesReadSecurityPolicy404ResponseError struct { value *SecurityPoliciesReadSecurityPolicy404ResponseError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy.go index a8603a4e..a5bff99e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy.go @@ -61,9 +61,12 @@ type SecurityPolicy struct { // The time when this Security Policy object was last updated. UpdatedTime *time.Time `json:"updated_time,omitempty"` // List of user groups associated with this policy - UserGroups []string `json:"user_groups,omitempty"` + UserGroups []string `json:"user_groups,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicy SecurityPolicy + // NewSecurityPolicy instantiates a new SecurityPolicy object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -826,9 +829,55 @@ func (o SecurityPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.UserGroups) { toSerialize["user_groups"] = o.UserGroups } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicy) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicy := _SecurityPolicy{} + + err = json.Unmarshal(data, &varSecurityPolicy) + + if err != nil { + return err + } + + *o = SecurityPolicy(varSecurityPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_codes") + delete(additionalProperties, "created_time") + delete(additionalProperties, "default_action") + delete(additionalProperties, "default_redirect_name") + delete(additionalProperties, "description") + delete(additionalProperties, "dfp_services") + delete(additionalProperties, "dfps") + delete(additionalProperties, "ecs") + delete(additionalProperties, "id") + delete(additionalProperties, "is_default") + delete(additionalProperties, "name") + delete(additionalProperties, "net_address_dfps") + delete(additionalProperties, "network_lists") + delete(additionalProperties, "onprem_resolve") + delete(additionalProperties, "precedence") + delete(additionalProperties, "roaming_device_groups") + delete(additionalProperties, "rules") + delete(additionalProperties, "safe_search") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_time") + delete(additionalProperties, "user_groups") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicy struct { value *SecurityPolicy isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_create_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_create_response.go index 5f3126ff..0cbc535a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_create_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_create_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPolicyCreateResponse{} // SecurityPolicyCreateResponse The Security Policy create response. type SecurityPolicyCreateResponse struct { - Results *SecurityPolicy `json:"results,omitempty"` + Results *SecurityPolicy `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyCreateResponse SecurityPolicyCreateResponse + // NewSecurityPolicyCreateResponse instantiates a new SecurityPolicyCreateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPolicyCreateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyCreateResponse) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyCreateResponse := _SecurityPolicyCreateResponse{} + + err = json.Unmarshal(data, &varSecurityPolicyCreateResponse) + + if err != nil { + return err + } + + *o = SecurityPolicyCreateResponse(varSecurityPolicyCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyCreateResponse struct { value *SecurityPolicyCreateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_delete_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_delete_request.go index 5934f560..5e42156e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_delete_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_delete_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &SecurityPolicyDeleteRequest{} // SecurityPolicyDeleteRequest The Security Policy delete request. type SecurityPolicyDeleteRequest struct { // The list of Security Policy object identifiers. - Ids []int32 `json:"ids,omitempty"` + Ids []int32 `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyDeleteRequest SecurityPolicyDeleteRequest + // NewSecurityPolicyDeleteRequest instantiates a new SecurityPolicyDeleteRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o SecurityPolicyDeleteRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyDeleteRequest) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyDeleteRequest := _SecurityPolicyDeleteRequest{} + + err = json.Unmarshal(data, &varSecurityPolicyDeleteRequest) + + if err != nil { + return err + } + + *o = SecurityPolicyDeleteRequest(varSecurityPolicyDeleteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyDeleteRequest struct { value *SecurityPolicyDeleteRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_multi_response.go index 6054e254..9f68428e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &SecurityPolicyMultiResponse{} // SecurityPolicyMultiResponse The Security Policy list response. type SecurityPolicyMultiResponse struct { // The list of Security Policy objects. - Results []SecurityPolicy `json:"results,omitempty"` + Results []SecurityPolicy `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyMultiResponse SecurityPolicyMultiResponse + // NewSecurityPolicyMultiResponse instantiates a new SecurityPolicyMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o SecurityPolicyMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyMultiResponse) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyMultiResponse := _SecurityPolicyMultiResponse{} + + err = json.Unmarshal(data, &varSecurityPolicyMultiResponse) + + if err != nil { + return err + } + + *o = SecurityPolicyMultiResponse(varSecurityPolicyMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyMultiResponse struct { value *SecurityPolicyMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_read_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_read_response.go index f5537309..2f3d2432 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_read_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_read_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPolicyReadResponse{} // SecurityPolicyReadResponse The Security Policy read response. type SecurityPolicyReadResponse struct { - Results *SecurityPolicy `json:"results,omitempty"` + Results *SecurityPolicy `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyReadResponse SecurityPolicyReadResponse + // NewSecurityPolicyReadResponse instantiates a new SecurityPolicyReadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPolicyReadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyReadResponse) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyReadResponse := _SecurityPolicyReadResponse{} + + err = json.Unmarshal(data, &varSecurityPolicyReadResponse) + + if err != nil { + return err + } + + *o = SecurityPolicyReadResponse(varSecurityPolicyReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyReadResponse struct { value *SecurityPolicyReadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule.go index 72a0923b..9fb3c21c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule.go @@ -32,9 +32,12 @@ type SecurityPolicyRule struct { // The name of the redirect address for redirect actions that can be either IPv4 address or a domain name. RedirectName *string `json:"redirect_name,omitempty"` // The policy rule type that can be either \"named_feed\" or \"custom_list\" or \"category_filter\" or \"application_filter\". - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyRule SecurityPolicyRule + // NewSecurityPolicyRule instantiates a new SecurityPolicyRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -307,9 +310,41 @@ func (o SecurityPolicyRule) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyRule) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyRule := _SecurityPolicyRule{} + + err = json.Unmarshal(data, &varSecurityPolicyRule) + + if err != nil { + return err + } + + *o = SecurityPolicyRule(varSecurityPolicyRule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "data") + delete(additionalProperties, "list_id") + delete(additionalProperties, "policy_id") + delete(additionalProperties, "policy_name") + delete(additionalProperties, "redirect_name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyRule struct { value *SecurityPolicyRule isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule_multi_response.go index 732766c6..bd7d4b3d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_rule_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &SecurityPolicyRuleMultiResponse{} // SecurityPolicyRuleMultiResponse The Security Policy Rule list response. type SecurityPolicyRuleMultiResponse struct { // The list of Security Policy Rule objects. - Results []SecurityPolicyRule `json:"results,omitempty"` + Results []SecurityPolicyRule `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyRuleMultiResponse SecurityPolicyRuleMultiResponse + // NewSecurityPolicyRuleMultiResponse instantiates a new SecurityPolicyRuleMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o SecurityPolicyRuleMultiResponse) ToMap() (map[string]interface{}, error) if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyRuleMultiResponse) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyRuleMultiResponse := _SecurityPolicyRuleMultiResponse{} + + err = json.Unmarshal(data, &varSecurityPolicyRuleMultiResponse) + + if err != nil { + return err + } + + *o = SecurityPolicyRuleMultiResponse(varSecurityPolicyRuleMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyRuleMultiResponse struct { value *SecurityPolicyRuleMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_update_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_update_response.go index 52c335e5..6d2acd79 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_update_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_security_policy_update_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &SecurityPolicyUpdateResponse{} // SecurityPolicyUpdateResponse The Security Policy update response. type SecurityPolicyUpdateResponse struct { - Results *SecurityPolicy `json:"results,omitempty"` + Results *SecurityPolicy `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _SecurityPolicyUpdateResponse SecurityPolicyUpdateResponse + // NewSecurityPolicyUpdateResponse instantiates a new SecurityPolicyUpdateResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o SecurityPolicyUpdateResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *SecurityPolicyUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varSecurityPolicyUpdateResponse := _SecurityPolicyUpdateResponse{} + + err = json.Unmarshal(data, &varSecurityPolicyUpdateResponse) + + if err != nil { + return err + } + + *o = SecurityPolicyUpdateResponse(varSecurityPolicyUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSecurityPolicyUpdateResponse struct { value *SecurityPolicyUpdateResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed.go index 9bd93fe0..308c32b4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed.go @@ -29,9 +29,12 @@ type ThreatFeed struct { Name *string `json:"name,omitempty"` Source *ThreatFeedSource `json:"source,omitempty"` // The Threat Level of the Feed. - ThreatLevel *string `json:"threat_level,omitempty"` + ThreatLevel *string `json:"threat_level,omitempty"` + AdditionalProperties map[string]interface{} } +type _ThreatFeed ThreatFeed + // NewThreatFeed instantiates a new ThreatFeed object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -273,9 +276,40 @@ func (o ThreatFeed) ToMap() (map[string]interface{}, error) { if !IsNil(o.ThreatLevel) { toSerialize["threat_level"] = o.ThreatLevel } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ThreatFeed) UnmarshalJSON(data []byte) (err error) { + varThreatFeed := _ThreatFeed{} + + err = json.Unmarshal(data, &varThreatFeed) + + if err != nil { + return err + } + + *o = ThreatFeed(varThreatFeed) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "confidence_level") + delete(additionalProperties, "description") + delete(additionalProperties, "key") + delete(additionalProperties, "name") + delete(additionalProperties, "source") + delete(additionalProperties, "threat_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableThreatFeed struct { value *ThreatFeed isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed_multi_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed_multi_response.go index 60ac4bd2..07bd0a3e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed_multi_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/fw/model_threat_feed_multi_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ThreatFeedMultiResponse{} // ThreatFeedMultiResponse The Threat Feed list response. type ThreatFeedMultiResponse struct { // The list of Threat Feed objects. - Results []ThreatFeed `json:"results,omitempty"` + Results []ThreatFeed `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ThreatFeedMultiResponse ThreatFeedMultiResponse + // NewThreatFeedMultiResponse instantiates a new ThreatFeedMultiResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ThreatFeedMultiResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ThreatFeedMultiResponse) UnmarshalJSON(data []byte) (err error) { + varThreatFeedMultiResponse := _ThreatFeedMultiResponse{} + + err = json.Unmarshal(data, &varThreatFeedMultiResponse) + + if err != nil { + return err + } + + *o = ThreatFeedMultiResponse(varThreatFeedMultiResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableThreatFeedMultiResponse struct { value *ThreatFeedMultiResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_api_page_info.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_api_page_info.go index 4bff1b38..10633ce8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_api_page_info.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_api_page_info.go @@ -24,9 +24,12 @@ type ApiPageInfo struct { // The service response should contain a string to indicate the next page of resources. A null value indicates no more pages. PageToken *string `json:"page_token,omitempty"` // The service may optionally include the total number of resources being paged. - Size *int32 `json:"size,omitempty"` + Size *int32 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApiPageInfo ApiPageInfo + // NewApiPageInfo instantiates a new ApiPageInfo object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o ApiPageInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.Size) { toSerialize["size"] = o.Size } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApiPageInfo) UnmarshalJSON(data []byte) (err error) { + varApiPageInfo := _ApiPageInfo{} + + err = json.Unmarshal(data, &varApiPageInfo) + + if err != nil { + return err + } + + *o = ApiPageInfo(varApiPageInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "offset") + delete(additionalProperties, "page_token") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApiPageInfo struct { value *ApiPageInfo isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications.go index c26f525f..8f5c0437 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications.go @@ -19,9 +19,12 @@ var _ MappedNullable = &Applications{} // Applications struct for Applications type Applications struct { - Applications []string `json:"applications,omitempty"` + Applications []string `json:"applications,omitempty"` + AdditionalProperties map[string]interface{} } +type _Applications Applications + // NewApplications instantiates a new Applications object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o Applications) ToMap() (map[string]interface{}, error) { if !IsNil(o.Applications) { toSerialize["applications"] = o.Applications } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Applications) UnmarshalJSON(data []byte) (err error) { + varApplications := _Applications{} + + err = json.Unmarshal(data, &varApplications) + + if err != nil { + return err + } + + *o = Applications(varApplications) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "applications") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplications struct { value *Applications isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications_response.go index d5628ab7..43a42e39 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_applications_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApplicationsResponse{} // ApplicationsResponse Applications response. type ApplicationsResponse struct { - Results *Applications `json:"results,omitempty"` + Results *Applications `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApplicationsResponse ApplicationsResponse + // NewApplicationsResponse instantiates a new ApplicationsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApplicationsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApplicationsResponse) UnmarshalJSON(data []byte) (err error) { + varApplicationsResponse := _ApplicationsResponse{} + + err = json.Unmarshal(data, &varApplicationsResponse) + + if err != nil { + return err + } + + *o = ApplicationsResponse(varApplicationsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApplicationsResponse struct { value *ApplicationsResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_assign_tags_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_assign_tags_request.go index 076e0e5e..777aa170 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_assign_tags_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_assign_tags_request.go @@ -20,11 +20,14 @@ var _ MappedNullable = &AssignTagsRequest{} // AssignTagsRequest struct for AssignTagsRequest type AssignTagsRequest struct { // The resource identifier. - Ids []string `json:"ids,omitempty"` - Override *bool `json:"override,omitempty"` - Tags map[string]interface{} `json:"tags,omitempty"` + Ids []string `json:"ids,omitempty"` + Override *bool `json:"override,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} } +type _AssignTagsRequest AssignTagsRequest + // NewAssignTagsRequest instantiates a new AssignTagsRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -157,9 +160,37 @@ func (o AssignTagsRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AssignTagsRequest) UnmarshalJSON(data []byte) (err error) { + varAssignTagsRequest := _AssignTagsRequest{} + + err = json.Unmarshal(data, &varAssignTagsRequest) + + if err != nil { + return err + } + + *o = AssignTagsRequest(varAssignTagsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + delete(additionalProperties, "override") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAssignTagsRequest struct { value *AssignTagsRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_host_response.go index d5b30bcf..24763c18 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateHostResponse{} // CreateHostResponse struct for CreateHostResponse type CreateHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateHostResponse CreateHostResponse + // NewCreateHostResponse instantiates a new CreateHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateHostResponse) UnmarshalJSON(data []byte) (err error) { + varCreateHostResponse := _CreateHostResponse{} + + err = json.Unmarshal(data, &varCreateHostResponse) + + if err != nil { + return err + } + + *o = CreateHostResponse(varCreateHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateHostResponse struct { value *CreateHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_service_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_service_response.go index 1a78675f..abf4722b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_service_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_create_service_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateServiceResponse{} // CreateServiceResponse struct for CreateServiceResponse type CreateServiceResponse struct { - Result *Service `json:"result,omitempty"` + Result *Service `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateServiceResponse CreateServiceResponse + // NewCreateServiceResponse instantiates a new CreateServiceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateServiceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateServiceResponse) UnmarshalJSON(data []byte) (err error) { + varCreateServiceResponse := _CreateServiceResponse{} + + err = json.Unmarshal(data, &varCreateServiceResponse) + + if err != nil { + return err + } + + *o = CreateServiceResponse(varCreateServiceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateServiceResponse struct { value *CreateServiceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host.go index f574ea2d..f6912df1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host.go @@ -64,9 +64,12 @@ type DetailHost struct { // The timezone of the Host. Timezone *string `json:"timezone,omitempty"` // The timestamp of the latest update on Host. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailHost DetailHost + // NewDetailHost instantiates a new DetailHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -969,9 +972,59 @@ func (o DetailHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailHost) UnmarshalJSON(data []byte) (err error) { + varDetailHost := _DetailHost{} + + err = json.Unmarshal(data, &varDetailHost) + + if err != nil { + return err + } + + *o = DetailHost(varDetailHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "composite_status") + delete(additionalProperties, "configs") + delete(additionalProperties, "connectivity_monitor") + delete(additionalProperties, "created_at") + delete(additionalProperties, "description") + delete(additionalProperties, "display_name") + delete(additionalProperties, "host_subtype") + delete(additionalProperties, "host_type") + delete(additionalProperties, "host_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "ip_space") + delete(additionalProperties, "legacy_id") + delete(additionalProperties, "location") + delete(additionalProperties, "mac_address") + delete(additionalProperties, "maintenance_mode") + delete(additionalProperties, "nat_ip") + delete(additionalProperties, "ophid") + delete(additionalProperties, "pool") + delete(additionalProperties, "serial_number") + delete(additionalProperties, "services") + delete(additionalProperties, "site_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "timezone") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailHost struct { value *DetailHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host_service_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host_service_config.go index 6a9ee292..5df1b847 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host_service_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_host_service_config.go @@ -30,9 +30,12 @@ type DetailHostServiceConfig struct { ServiceType *string `json:"service_type,omitempty"` Status *ShortServiceStatus `json:"status,omitempty"` // The timestamp of the latest upgrade of the Host-specific Service configuration. - UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailHostServiceConfig DetailHostServiceConfig + // NewDetailHostServiceConfig instantiates a new DetailHostServiceConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -270,9 +273,40 @@ func (o DetailHostServiceConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpgradedAt) { toSerialize["upgraded_at"] = o.UpgradedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailHostServiceConfig) UnmarshalJSON(data []byte) (err error) { + varDetailHostServiceConfig := _DetailHostServiceConfig{} + + err = json.Unmarshal(data, &varDetailHostServiceConfig) + + if err != nil { + return err + } + + *o = DetailHostServiceConfig(varDetailHostServiceConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "current_version") + delete(additionalProperties, "service_id") + delete(additionalProperties, "service_name") + delete(additionalProperties, "service_type") + delete(additionalProperties, "status") + delete(additionalProperties, "upgraded_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailHostServiceConfig struct { value *DetailHostServiceConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_location.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_location.go index 503d9f2f..922ccaa5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_location.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_location.go @@ -28,9 +28,12 @@ type DetailLocation struct { // Longitude of the Location. Longitude *float64 `json:"longitude,omitempty"` // The metadata of the Location which could contain other info such as attributions. - Metadata map[string]interface{} `json:"metadata,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailLocation DetailLocation + // NewDetailLocation instantiates a new DetailLocation object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -233,9 +236,39 @@ func (o DetailLocation) ToMap() (map[string]interface{}, error) { if !IsNil(o.Metadata) { toSerialize["metadata"] = o.Metadata } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailLocation) UnmarshalJSON(data []byte) (err error) { + varDetailLocation := _DetailLocation{} + + err = json.Unmarshal(data, &varDetailLocation) + + if err != nil { + return err + } + + *o = DetailLocation(varDetailLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "id") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailLocation struct { value *DetailLocation isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service.go index 70e67331..5cc26924 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service.go @@ -49,9 +49,12 @@ type DetailService struct { // Tags associated with this Service. Tags map[string]interface{} `json:"tags,omitempty"` // Timestamp of the latest update on Service. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailService DetailService + // NewDetailService instantiates a new DetailService object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -639,9 +642,50 @@ func (o DetailService) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailService) UnmarshalJSON(data []byte) (err error) { + varDetailService := _DetailService{} + + err = json.Unmarshal(data, &varDetailService) + + if err != nil { + return err + } + + *o = DetailService(varDetailService) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "composite_state") + delete(additionalProperties, "composite_status") + delete(additionalProperties, "created_at") + delete(additionalProperties, "current_version") + delete(additionalProperties, "description") + delete(additionalProperties, "desired_state") + delete(additionalProperties, "desired_version") + delete(additionalProperties, "hosts") + delete(additionalProperties, "id") + delete(additionalProperties, "interface_labels") + delete(additionalProperties, "location") + delete(additionalProperties, "name") + delete(additionalProperties, "pool") + delete(additionalProperties, "service_type") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailService struct { value *DetailService isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host.go index 586f70fd..30630203 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host.go @@ -32,9 +32,12 @@ type DetailServiceHost struct { LegacyId *string `json:"legacy_id,omitempty"` MaintenanceMode *string `json:"maintenance_mode,omitempty"` // The unique On-Prem Host ID generated by the On-Prem device and assigned to the Host once it is registered and logged into the Infoblox Cloud. - Ophid *string `json:"ophid,omitempty"` + Ophid *string `json:"ophid,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailServiceHost DetailServiceHost + // NewDetailServiceHost instantiates a new DetailServiceHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -342,9 +345,42 @@ func (o DetailServiceHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ophid) { toSerialize["ophid"] = o.Ophid } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailServiceHost) UnmarshalJSON(data []byte) (err error) { + varDetailServiceHost := _DetailServiceHost{} + + err = json.Unmarshal(data, &varDetailServiceHost) + + if err != nil { + return err + } + + *o = DetailServiceHost(varDetailServiceHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "composite_status") + delete(additionalProperties, "config") + delete(additionalProperties, "display_name") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "legacy_id") + delete(additionalProperties, "maintenance_mode") + delete(additionalProperties, "ophid") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailServiceHost struct { value *DetailServiceHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host_config.go index 360fc17c..d6f74625 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_detail_service_host_config.go @@ -21,11 +21,14 @@ var _ MappedNullable = &DetailServiceHostConfig{} // DetailServiceHostConfig struct for DetailServiceHostConfig type DetailServiceHostConfig struct { // The current version of the Service deployed on the Host. - CurrentVersion *string `json:"current_version,omitempty"` - Status *ShortServiceStatus `json:"status,omitempty"` - UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + CurrentVersion *string `json:"current_version,omitempty"` + Status *ShortServiceStatus `json:"status,omitempty"` + UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _DetailServiceHostConfig DetailServiceHostConfig + // NewDetailServiceHostConfig instantiates a new DetailServiceHostConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -158,9 +161,37 @@ func (o DetailServiceHostConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpgradedAt) { toSerialize["upgraded_at"] = o.UpgradedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DetailServiceHostConfig) UnmarshalJSON(data []byte) (err error) { + varDetailServiceHostConfig := _DetailServiceHostConfig{} + + err = json.Unmarshal(data, &varDetailServiceHostConfig) + + if err != nil { + return err + } + + *o = DetailServiceHostConfig(varDetailServiceHostConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "current_version") + delete(additionalProperties, "status") + delete(additionalProperties, "upgraded_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDetailServiceHostConfig struct { value *DetailServiceHostConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_disconnect_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_disconnect_request.go index e97568c5..7f240759 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_disconnect_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_disconnect_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &DisconnectRequest{} // DisconnectRequest struct for DisconnectRequest type DisconnectRequest struct { // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} } +type _DisconnectRequest DisconnectRequest + // NewDisconnectRequest instantiates a new DisconnectRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o DisconnectRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DisconnectRequest) UnmarshalJSON(data []byte) (err error) { + varDisconnectRequest := _DisconnectRequest{} + + err = json.Unmarshal(data, &varDisconnectRequest) + + if err != nil { + return err + } + + *o = DisconnectRequest(varDisconnectRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDisconnectRequest struct { value *DisconnectRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_host_response.go index ab670739..7b3d4b8a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &GetHostResponse{} // GetHostResponse struct for GetHostResponse type GetHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _GetHostResponse GetHostResponse + // NewGetHostResponse instantiates a new GetHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o GetHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *GetHostResponse) UnmarshalJSON(data []byte) (err error) { + varGetHostResponse := _GetHostResponse{} + + err = json.Unmarshal(data, &varGetHostResponse) + + if err != nil { + return err + } + + *o = GetHostResponse(varGetHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGetHostResponse struct { value *GetHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_service_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_service_response.go index be331c0f..c735dc70 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_service_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_get_service_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &GetServiceResponse{} // GetServiceResponse struct for GetServiceResponse type GetServiceResponse struct { - Result *Service `json:"result,omitempty"` + Result *Service `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _GetServiceResponse GetServiceResponse + // NewGetServiceResponse instantiates a new GetServiceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o GetServiceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *GetServiceResponse) UnmarshalJSON(data []byte) (err error) { + varGetServiceResponse := _GetServiceResponse{} + + err = json.Unmarshal(data, &varGetServiceResponse) + + if err != nil { + return err + } + + *o = GetServiceResponse(varGetServiceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGetServiceResponse struct { value *GetServiceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_host.go index 49a096a0..10c1d6dd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_host.go @@ -11,7 +11,6 @@ API version: v1 package inframgmt import ( - "bytes" "encoding/json" "fmt" "time" @@ -68,7 +67,8 @@ type Host struct { // The timezone of the Host. Timezone *string `json:"timezone,omitempty"` // The timestamp of the latest update on Host. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _Host Host @@ -931,6 +931,11 @@ func (o Host) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -958,9 +963,7 @@ func (o *Host) UnmarshalJSON(data []byte) (err error) { varHost := _Host{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHost) + err = json.Unmarshal(data, &varHost) if err != nil { return err @@ -968,6 +971,36 @@ func (o *Host) UnmarshalJSON(data []byte) (err error) { *o = Host(varHost) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "configs") + delete(additionalProperties, "connectivity_monitor") + delete(additionalProperties, "created_at") + delete(additionalProperties, "created_by") + delete(additionalProperties, "description") + delete(additionalProperties, "display_name") + delete(additionalProperties, "host_subtype") + delete(additionalProperties, "host_type") + delete(additionalProperties, "host_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_address") + delete(additionalProperties, "ip_space") + delete(additionalProperties, "legacy_id") + delete(additionalProperties, "location_id") + delete(additionalProperties, "mac_address") + delete(additionalProperties, "maintenance_mode") + delete(additionalProperties, "nat_ip") + delete(additionalProperties, "noa_cluster") + delete(additionalProperties, "ophid") + delete(additionalProperties, "pool_id") + delete(additionalProperties, "serial_number") + delete(additionalProperties, "tags") + delete(additionalProperties, "timezone") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_hosts_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_hosts_response.go index c62f3ccf..0af79117 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_hosts_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_hosts_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListDetailHostsResponse{} // ListDetailHostsResponse struct for ListDetailHostsResponse type ListDetailHostsResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []DetailHost `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []DetailHost `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListDetailHostsResponse ListDetailHostsResponse + // NewListDetailHostsResponse instantiates a new ListDetailHostsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListDetailHostsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListDetailHostsResponse) UnmarshalJSON(data []byte) (err error) { + varListDetailHostsResponse := _ListDetailHostsResponse{} + + err = json.Unmarshal(data, &varListDetailHostsResponse) + + if err != nil { + return err + } + + *o = ListDetailHostsResponse(varListDetailHostsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListDetailHostsResponse struct { value *ListDetailHostsResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_services_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_services_response.go index fe08334c..c580ce18 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_services_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_detail_services_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListDetailServicesResponse{} // ListDetailServicesResponse struct for ListDetailServicesResponse type ListDetailServicesResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []DetailService `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []DetailService `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListDetailServicesResponse ListDetailServicesResponse + // NewListDetailServicesResponse instantiates a new ListDetailServicesResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListDetailServicesResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListDetailServicesResponse) UnmarshalJSON(data []byte) (err error) { + varListDetailServicesResponse := _ListDetailServicesResponse{} + + err = json.Unmarshal(data, &varListDetailServicesResponse) + + if err != nil { + return err + } + + *o = ListDetailServicesResponse(varListDetailServicesResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListDetailServicesResponse struct { value *ListDetailServicesResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_host_response.go index f2982380..6f872d93 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_host_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListHostResponse{} // ListHostResponse struct for ListHostResponse type ListHostResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []Host `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []Host `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListHostResponse ListHostResponse + // NewListHostResponse instantiates a new ListHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListHostResponse) UnmarshalJSON(data []byte) (err error) { + varListHostResponse := _ListHostResponse{} + + err = json.Unmarshal(data, &varListHostResponse) + + if err != nil { + return err + } + + *o = ListHostResponse(varListHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListHostResponse struct { value *ListHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_service_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_service_response.go index 1b19edce..7f2d488e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_service_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_list_service_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListServiceResponse{} // ListServiceResponse struct for ListServiceResponse type ListServiceResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []Service `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []Service `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListServiceResponse ListServiceResponse + // NewListServiceResponse instantiates a new ListServiceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListServiceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListServiceResponse) UnmarshalJSON(data []byte) (err error) { + varListServiceResponse := _ListServiceResponse{} + + err = json.Unmarshal(data, &varListServiceResponse) + + if err != nil { + return err + } + + *o = ListServiceResponse(varListServiceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListServiceResponse struct { value *ListServiceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_pool_info.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_pool_info.go index c93a3898..6acffd5a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_pool_info.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_pool_info.go @@ -24,9 +24,12 @@ type PoolInfo struct { // The resource identifier. PoolId *string `json:"pool_id,omitempty"` // Name of the Pool that this resource belongs to. - PoolName *string `json:"pool_name,omitempty"` + PoolName *string `json:"pool_name,omitempty"` + AdditionalProperties map[string]interface{} } +type _PoolInfo PoolInfo + // NewPoolInfo instantiates a new PoolInfo object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o PoolInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.PoolName) { toSerialize["pool_name"] = o.PoolName } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *PoolInfo) UnmarshalJSON(data []byte) (err error) { + varPoolInfo := _PoolInfo{} + + err = json.Unmarshal(data, &varPoolInfo) + + if err != nil { + return err + } + + *o = PoolInfo(varPoolInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "composite_status") + delete(additionalProperties, "pool_id") + delete(additionalProperties, "pool_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullablePoolInfo struct { value *PoolInfo isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_replace_host_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_replace_host_request.go index d1a8f4f2..04222eef 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_replace_host_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_replace_host_request.go @@ -22,9 +22,12 @@ type ReplaceHostRequest struct { // The resource identifier. From *string `json:"from,omitempty"` // The resource identifier. - To *string `json:"to,omitempty"` + To *string `json:"to,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReplaceHostRequest ReplaceHostRequest + // NewReplaceHostRequest instantiates a new ReplaceHostRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o ReplaceHostRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.To) { toSerialize["to"] = o.To } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReplaceHostRequest) UnmarshalJSON(data []byte) (err error) { + varReplaceHostRequest := _ReplaceHostRequest{} + + err = json.Unmarshal(data, &varReplaceHostRequest) + + if err != nil { + return err + } + + *o = ReplaceHostRequest(varReplaceHostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "from") + delete(additionalProperties, "to") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReplaceHostRequest struct { value *ReplaceHostRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service.go index 883bbb49..de0ba7e3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service.go @@ -11,7 +11,6 @@ API version: v1 package inframgmt import ( - "bytes" "encoding/json" "fmt" "time" @@ -45,7 +44,8 @@ type Service struct { // Tags associated with this Service. Tags map[string]interface{} `json:"tags,omitempty"` // Timestamp of the latest update on Service. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _Service Service @@ -470,6 +470,11 @@ func (o Service) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -499,9 +504,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { varService := _Service{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varService) + err = json.Unmarshal(data, &varService) if err != nil { return err @@ -509,6 +512,24 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { *o = Service(varService) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "configs") + delete(additionalProperties, "created_at") + delete(additionalProperties, "description") + delete(additionalProperties, "desired_state") + delete(additionalProperties, "desired_version") + delete(additionalProperties, "id") + delete(additionalProperties, "interface_labels") + delete(additionalProperties, "name") + delete(additionalProperties, "pool_id") + delete(additionalProperties, "service_type") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service_host_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service_host_config.go index 1a7d39ae..5fb92e8e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service_host_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_service_host_config.go @@ -33,9 +33,12 @@ type ServiceHostConfig struct { // The type of the Service deployed on the Host (`dns`, `cdc`, etc.). ServiceType *string `json:"service_type,omitempty"` // The timestamp of the latest upgrade of the Host-specific Service configuration. - UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + UpgradedAt *time.Time `json:"upgraded_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServiceHostConfig ServiceHostConfig + // NewServiceHostConfig instantiates a new ServiceHostConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -308,9 +311,41 @@ func (o ServiceHostConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpgradedAt) { toSerialize["upgraded_at"] = o.UpgradedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServiceHostConfig) UnmarshalJSON(data []byte) (err error) { + varServiceHostConfig := _ServiceHostConfig{} + + err = json.Unmarshal(data, &varServiceHostConfig) + + if err != nil { + return err + } + + *o = ServiceHostConfig(varServiceHostConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "current_version") + delete(additionalProperties, "extra_data") + delete(additionalProperties, "host_id") + delete(additionalProperties, "id") + delete(additionalProperties, "service_id") + delete(additionalProperties, "service_type") + delete(additionalProperties, "upgraded_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServiceHostConfig struct { value *ServiceHostConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_short_service_status.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_short_service_status.go index 8787cc20..89bce990 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_short_service_status.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_short_service_status.go @@ -25,9 +25,12 @@ type ShortServiceStatus struct { // Status of the Service (`started`, `starting`, `stopping`, `stopped`, `error`). Status *string `json:"status,omitempty"` // Timestamp of the latest status update of Service. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _ShortServiceStatus ShortServiceStatus + // NewShortServiceStatus instantiates a new ShortServiceStatus object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -160,9 +163,37 @@ func (o ShortServiceStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ShortServiceStatus) UnmarshalJSON(data []byte) (err error) { + varShortServiceStatus := _ShortServiceStatus{} + + err = json.Unmarshal(data, &varShortServiceStatus) + + if err != nil { + return err + } + + *o = ShortServiceStatus(varShortServiceStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "status") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableShortServiceStatus struct { value *ShortServiceStatus isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_unassign_tags_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_unassign_tags_request.go index 28cce5fc..f5887239 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_unassign_tags_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_unassign_tags_request.go @@ -20,10 +20,13 @@ var _ MappedNullable = &UnassignTagsRequest{} // UnassignTagsRequest struct for UnassignTagsRequest type UnassignTagsRequest struct { // The resource identifier. - Ids []string `json:"ids,omitempty"` - Keys []string `json:"keys,omitempty"` + Ids []string `json:"ids,omitempty"` + Keys []string `json:"keys,omitempty"` + AdditionalProperties map[string]interface{} } +type _UnassignTagsRequest UnassignTagsRequest + // NewUnassignTagsRequest instantiates a new UnassignTagsRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -121,9 +124,36 @@ func (o UnassignTagsRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Keys) { toSerialize["keys"] = o.Keys } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UnassignTagsRequest) UnmarshalJSON(data []byte) (err error) { + varUnassignTagsRequest := _UnassignTagsRequest{} + + err = json.Unmarshal(data, &varUnassignTagsRequest) + + if err != nil { + return err + } + + *o = UnassignTagsRequest(varUnassignTagsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + delete(additionalProperties, "keys") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUnassignTagsRequest struct { value *UnassignTagsRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_host_response.go index 226ed05a..eceaedca 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateHostResponse{} // UpdateHostResponse struct for UpdateHostResponse type UpdateHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateHostResponse UpdateHostResponse + // NewUpdateHostResponse instantiates a new UpdateHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateHostResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateHostResponse := _UpdateHostResponse{} + + err = json.Unmarshal(data, &varUpdateHostResponse) + + if err != nil { + return err + } + + *o = UpdateHostResponse(varUpdateHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateHostResponse struct { value *UpdateHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_service_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_service_response.go index 63c9940a..05c8a1f6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_service_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/inframgmt/model_update_service_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateServiceResponse{} // UpdateServiceResponse struct for UpdateServiceResponse type UpdateServiceResponse struct { - Result *Service `json:"result,omitempty"` + Result *Service `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateServiceResponse UpdateServiceResponse + // NewUpdateServiceResponse instantiates a new UpdateServiceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateServiceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateServiceResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateServiceResponse := _UpdateServiceResponse{} + + err = json.Unmarshal(data, &varUpdateServiceResponse) + + if err != nil { + return err + } + + *o = UpdateServiceResponse(varUpdateServiceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateServiceResponse struct { value *UpdateServiceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_api_page_info.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_api_page_info.go index 7109046f..ceb19794 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_api_page_info.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_api_page_info.go @@ -24,9 +24,12 @@ type ApiPageInfo struct { // The service response should contain a string to indicate the next page of resources. A null value indicates no more pages. PageToken *string `json:"page_token,omitempty"` // The service may optionally include the total number of resources being paged. - Size *int32 `json:"size,omitempty"` + Size *int32 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApiPageInfo ApiPageInfo + // NewApiPageInfo instantiates a new ApiPageInfo object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o ApiPageInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.Size) { toSerialize["size"] = o.Size } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApiPageInfo) UnmarshalJSON(data []byte) (err error) { + varApiPageInfo := _ApiPageInfo{} + + err = json.Unmarshal(data, &varApiPageInfo) + + if err != nil { + return err + } + + *o = ApiPageInfo(varApiPageInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "offset") + delete(additionalProperties, "page_token") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApiPageInfo struct { value *ApiPageInfo isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_approve_csr_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_approve_csr_request.go index 42d2d13b..783eb89f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_approve_csr_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_approve_csr_request.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ApproveCSRRequest{} // ApproveCSRRequest struct for ApproveCSRRequest type ApproveCSRRequest struct { - ActivationCode *string `json:"activation_code,omitempty"` + ActivationCode *string `json:"activation_code,omitempty"` + AdditionalProperties map[string]interface{} } +type _ApproveCSRRequest ApproveCSRRequest + // NewApproveCSRRequest instantiates a new ApproveCSRRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ApproveCSRRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ActivationCode) { toSerialize["activation_code"] = o.ActivationCode } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ApproveCSRRequest) UnmarshalJSON(data []byte) (err error) { + varApproveCSRRequest := _ApproveCSRRequest{} + + err = json.Unmarshal(data, &varApproveCSRRequest) + + if err != nil { + return err + } + + *o = ApproveCSRRequest(varApproveCSRRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "activation_code") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableApproveCSRRequest struct { value *ApproveCSRRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_create_join_token_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_create_join_token_response.go index edb1ae55..7db937ac 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_create_join_token_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_create_join_token_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &CreateJoinTokenResponse{} // CreateJoinTokenResponse struct for CreateJoinTokenResponse type CreateJoinTokenResponse struct { - JoinToken *string `json:"join_token,omitempty"` - Result *JoinToken `json:"result,omitempty"` + JoinToken *string `json:"join_token,omitempty"` + Result *JoinToken `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateJoinTokenResponse CreateJoinTokenResponse + // NewCreateJoinTokenResponse instantiates a new CreateJoinTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o CreateJoinTokenResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateJoinTokenResponse) UnmarshalJSON(data []byte) (err error) { + varCreateJoinTokenResponse := _CreateJoinTokenResponse{} + + err = json.Unmarshal(data, &varCreateJoinTokenResponse) + + if err != nil { + return err + } + + *o = CreateJoinTokenResponse(varCreateJoinTokenResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "join_token") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateJoinTokenResponse struct { value *CreateJoinTokenResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_csr.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_csr.go index 2cebcf97..3737b13e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_csr.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_csr.go @@ -26,15 +26,18 @@ type CSR struct { Csr *string `json:"csr,omitempty"` HostSerial *string `json:"host_serial,omitempty"` // The resource identifier. - Id *string `json:"id,omitempty"` - JoinToken *JoinToken `json:"join_token,omitempty"` - Ophid *string `json:"ophid,omitempty"` - Signature *string `json:"signature,omitempty"` - SrcIp *TypesInetValue `json:"src_ip,omitempty"` - State *CSRState `json:"state,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Id *string `json:"id,omitempty"` + JoinToken *JoinToken `json:"join_token,omitempty"` + Ophid *string `json:"ophid,omitempty"` + Signature *string `json:"signature,omitempty"` + SrcIp *TypesInetValue `json:"src_ip,omitempty"` + State *CSRState `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } +type _CSR CSR + // NewCSR instantiates a new CSR object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -486,9 +489,46 @@ func (o CSR) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CSR) UnmarshalJSON(data []byte) (err error) { + varCSR := _CSR{} + + err = json.Unmarshal(data, &varCSR) + + if err != nil { + return err + } + + *o = CSR(varCSR) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "activation_code") + delete(additionalProperties, "client_ip") + delete(additionalProperties, "created_at") + delete(additionalProperties, "csr") + delete(additionalProperties, "host_serial") + delete(additionalProperties, "id") + delete(additionalProperties, "join_token") + delete(additionalProperties, "ophid") + delete(additionalProperties, "signature") + delete(additionalProperties, "src_ip") + delete(additionalProperties, "state") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCSR struct { value *CSR isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_delete_join_tokens_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_delete_join_tokens_request.go index c96ac7aa..b0c5491b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_delete_join_tokens_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_delete_join_tokens_request.go @@ -20,9 +20,12 @@ var _ MappedNullable = &DeleteJoinTokensRequest{} // DeleteJoinTokensRequest struct for DeleteJoinTokensRequest type DeleteJoinTokensRequest struct { // The resource identifier. - Ids []string `json:"ids,omitempty"` + Ids []string `json:"ids,omitempty"` + AdditionalProperties map[string]interface{} } +type _DeleteJoinTokensRequest DeleteJoinTokensRequest + // NewDeleteJoinTokensRequest instantiates a new DeleteJoinTokensRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o DeleteJoinTokensRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ids) { toSerialize["ids"] = o.Ids } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DeleteJoinTokensRequest) UnmarshalJSON(data []byte) (err error) { + varDeleteJoinTokensRequest := _DeleteJoinTokensRequest{} + + err = json.Unmarshal(data, &varDeleteJoinTokensRequest) + + if err != nil { + return err + } + + *o = DeleteJoinTokensRequest(varDeleteJoinTokensRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDeleteJoinTokensRequest struct { value *DeleteJoinTokensRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_deny_csr_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_deny_csr_request.go index 36be077a..2c6bbc80 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_deny_csr_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_deny_csr_request.go @@ -19,9 +19,12 @@ var _ MappedNullable = &DenyCSRRequest{} // DenyCSRRequest struct for DenyCSRRequest type DenyCSRRequest struct { - ActivationCode *string `json:"activation_code,omitempty"` + ActivationCode *string `json:"activation_code,omitempty"` + AdditionalProperties map[string]interface{} } +type _DenyCSRRequest DenyCSRRequest + // NewDenyCSRRequest instantiates a new DenyCSRRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o DenyCSRRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ActivationCode) { toSerialize["activation_code"] = o.ActivationCode } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DenyCSRRequest) UnmarshalJSON(data []byte) (err error) { + varDenyCSRRequest := _DenyCSRRequest{} + + err = json.Unmarshal(data, &varDenyCSRRequest) + + if err != nil { + return err + } + + *o = DenyCSRRequest(varDenyCSRRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "activation_code") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDenyCSRRequest struct { value *DenyCSRRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_join_token.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_join_token.go index 541ea858..076682c2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_join_token.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_join_token.go @@ -30,10 +30,13 @@ type JoinToken struct { Status *JoinTokenJoinTokenStatus `json:"status,omitempty"` Tags map[string]interface{} `json:"tags,omitempty"` // first half of the token. - TokenId *string `json:"token_id,omitempty"` - UseCounter *int64 `json:"use_counter,omitempty"` + TokenId *string `json:"token_id,omitempty"` + UseCounter *int64 `json:"use_counter,omitempty"` + AdditionalProperties map[string]interface{} } +type _JoinToken JoinToken + // NewJoinToken instantiates a new JoinToken object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -415,9 +418,44 @@ func (o JoinToken) ToMap() (map[string]interface{}, error) { if !IsNil(o.UseCounter) { toSerialize["use_counter"] = o.UseCounter } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *JoinToken) UnmarshalJSON(data []byte) (err error) { + varJoinToken := _JoinToken{} + + err = json.Unmarshal(data, &varJoinToken) + + if err != nil { + return err + } + + *o = JoinToken(varJoinToken) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deleted_at") + delete(additionalProperties, "description") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "id") + delete(additionalProperties, "last_used_at") + delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "token_id") + delete(additionalProperties, "use_counter") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableJoinToken struct { value *JoinToken isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_csrs_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_csrs_response.go index 17a795e8..9c8dc02e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_csrs_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_csrs_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListCSRsResponse{} // ListCSRsResponse struct for ListCSRsResponse type ListCSRsResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []CSR `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []CSR `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListCSRsResponse ListCSRsResponse + // NewListCSRsResponse instantiates a new ListCSRsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListCSRsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListCSRsResponse) UnmarshalJSON(data []byte) (err error) { + varListCSRsResponse := _ListCSRsResponse{} + + err = json.Unmarshal(data, &varListCSRsResponse) + + if err != nil { + return err + } + + *o = ListCSRsResponse(varListCSRsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListCSRsResponse struct { value *ListCSRsResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_join_token_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_join_token_response.go index 34fccc8f..5856a2b9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_join_token_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_list_join_token_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &ListJoinTokenResponse{} // ListJoinTokenResponse struct for ListJoinTokenResponse type ListJoinTokenResponse struct { - Page *ApiPageInfo `json:"page,omitempty"` - Results []JoinToken `json:"results,omitempty"` + Page *ApiPageInfo `json:"page,omitempty"` + Results []JoinToken `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListJoinTokenResponse ListJoinTokenResponse + // NewListJoinTokenResponse instantiates a new ListJoinTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o ListJoinTokenResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListJoinTokenResponse) UnmarshalJSON(data []byte) (err error) { + varListJoinTokenResponse := _ListJoinTokenResponse{} + + err = json.Unmarshal(data, &varListJoinTokenResponse) + + if err != nil { + return err + } + + *o = ListJoinTokenResponse(varListJoinTokenResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListJoinTokenResponse struct { value *ListJoinTokenResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_read_join_token_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_read_join_token_response.go index 802af0c8..24e20eed 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_read_join_token_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_read_join_token_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadJoinTokenResponse{} // ReadJoinTokenResponse struct for ReadJoinTokenResponse type ReadJoinTokenResponse struct { - Result *JoinToken `json:"result,omitempty"` + Result *JoinToken `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadJoinTokenResponse ReadJoinTokenResponse + // NewReadJoinTokenResponse instantiates a new ReadJoinTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadJoinTokenResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadJoinTokenResponse) UnmarshalJSON(data []byte) (err error) { + varReadJoinTokenResponse := _ReadJoinTokenResponse{} + + err = json.Unmarshal(data, &varReadJoinTokenResponse) + + if err != nil { + return err + } + + *o = ReadJoinTokenResponse(varReadJoinTokenResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadJoinTokenResponse struct { value *ReadJoinTokenResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_revoke_cert_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_revoke_cert_request.go index 952977dc..a57d5cd4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_revoke_cert_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_revoke_cert_request.go @@ -21,10 +21,13 @@ var _ MappedNullable = &RevokeCertRequest{} type RevokeCertRequest struct { CertSerial *string `json:"cert_serial,omitempty"` // On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . - Ophid *string `json:"ophid,omitempty"` - RevokeReason *string `json:"revoke_reason,omitempty"` + Ophid *string `json:"ophid,omitempty"` + RevokeReason *string `json:"revoke_reason,omitempty"` + AdditionalProperties map[string]interface{} } +type _RevokeCertRequest RevokeCertRequest + // NewRevokeCertRequest instantiates a new RevokeCertRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -157,9 +160,37 @@ func (o RevokeCertRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.RevokeReason) { toSerialize["revoke_reason"] = o.RevokeReason } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *RevokeCertRequest) UnmarshalJSON(data []byte) (err error) { + varRevokeCertRequest := _RevokeCertRequest{} + + err = json.Unmarshal(data, &varRevokeCertRequest) + + if err != nil { + return err + } + + *o = RevokeCertRequest(varRevokeCertRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cert_serial") + delete(additionalProperties, "ophid") + delete(additionalProperties, "revoke_reason") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableRevokeCertRequest struct { value *RevokeCertRequest isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_inet_value.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_inet_value.go index 5f18f3ca..defc7f4a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_inet_value.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_inet_value.go @@ -19,9 +19,12 @@ var _ MappedNullable = &TypesInetValue{} // TypesInetValue struct for TypesInetValue type TypesInetValue struct { - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _TypesInetValue TypesInetValue + // NewTypesInetValue instantiates a new TypesInetValue object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o TypesInetValue) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TypesInetValue) UnmarshalJSON(data []byte) (err error) { + varTypesInetValue := _TypesInetValue{} + + err = json.Unmarshal(data, &varTypesInetValue) + + if err != nil { + return err + } + + *o = TypesInetValue(varTypesInetValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTypesInetValue struct { value *TypesInetValue isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_json_value.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_json_value.go index 9b7092d9..1d89f2e6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_json_value.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_types_json_value.go @@ -19,9 +19,12 @@ var _ MappedNullable = &TypesJSONValue{} // TypesJSONValue struct for TypesJSONValue type TypesJSONValue struct { - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _TypesJSONValue TypesJSONValue + // NewTypesJSONValue instantiates a new TypesJSONValue object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o TypesJSONValue) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *TypesJSONValue) UnmarshalJSON(data []byte) (err error) { + varTypesJSONValue := _TypesJSONValue{} + + err = json.Unmarshal(data, &varTypesJSONValue) + + if err != nil { + return err + } + + *o = TypesJSONValue(varTypesJSONValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableTypesJSONValue struct { value *TypesJSONValue isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_update_join_token_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_update_join_token_response.go index 10349288..64b2548c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_update_join_token_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/infraprovision/model_update_join_token_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateJoinTokenResponse{} // UpdateJoinTokenResponse struct for UpdateJoinTokenResponse type UpdateJoinTokenResponse struct { - Result *JoinToken `json:"result,omitempty"` + Result *JoinToken `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateJoinTokenResponse UpdateJoinTokenResponse + // NewUpdateJoinTokenResponse instantiates a new UpdateJoinTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateJoinTokenResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateJoinTokenResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateJoinTokenResponse := _UpdateJoinTokenResponse{} + + err = json.Unmarshal(data, &varUpdateJoinTokenResponse) + + if err != nil { + return err + } + + *o = UpdateJoinTokenResponse(varUpdateJoinTokenResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateJoinTokenResponse struct { value *UpdateJoinTokenResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_access_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_access_filter.go index 9c63f6a4..d2bbb07a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_access_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_access_filter.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type AccessFilter struct { // The resource identifier. HardwareFilterId *string `json:"hardware_filter_id,omitempty"` // The resource identifier. - OptionFilterId *string `json:"option_filter_id,omitempty"` + OptionFilterId *string `json:"option_filter_id,omitempty"` + AdditionalProperties map[string]interface{} } type _AccessFilter AccessFilter @@ -154,6 +154,11 @@ func (o AccessFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.OptionFilterId) { toSerialize["option_filter_id"] = o.OptionFilterId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -181,9 +186,7 @@ func (o *AccessFilter) UnmarshalJSON(data []byte) (err error) { varAccessFilter := _AccessFilter{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccessFilter) + err = json.Unmarshal(data, &varAccessFilter) if err != nil { return err @@ -191,6 +194,15 @@ func (o *AccessFilter) UnmarshalJSON(data []byte) (err error) { *o = AccessFilter(varAccessFilter) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access") + delete(additionalProperties, "hardware_filter_id") + delete(additionalProperties, "option_filter_id") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address.go index 948c89f6..cd21b4d8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -60,7 +59,8 @@ type Address struct { // Time when the object has been updated. Equals to _created_at_ if not updated after creation. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The usage is a combination of indicators, each tracking a specific associated use. Listed below are usage indicators with their meaning: usage indicator | description ---------------------- | -------------------------------- _IPAM_ | Address was created by the IPAM component. _IPAM_, _RESERVED_ | Address was created by the API call _ipam/address_ or _ipam/host_. _IPAM_, _NETWORK_ | Address was automatically created by the IPAM component and is the network address of the parent subnet. _IPAM_, _BROADCAST_ | Address was automatically created by the IPAM component and is the broadcast address of the parent subnet. _DHCP_ | Address was created by the DHCP component. _DHCP_, _FIXEDADDRESS_ | Address was created by the API call _dhcp/fixed_address_. _DHCP_, _LEASED_ | An active lease for that address was issued by a DHCP server. _DHCP_, _DISABLED_ | Address is disabled. _DNS_ | Address is used by one or more DNS records. _DISCOVERED_ | Address is discovered by some network discovery probe like Network Insight or NetMRI in NIOS. - Usage []string `json:"usage,omitempty"` + Usage []string `json:"usage,omitempty"` + AdditionalProperties map[string]interface{} } type _Address Address @@ -783,6 +783,11 @@ func (o Address) ToMap() (map[string]interface{}, error) { if !IsNil(o.Usage) { toSerialize["usage"] = o.Usage } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -810,9 +815,7 @@ func (o *Address) UnmarshalJSON(data []byte) (err error) { varAddress := _Address{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAddress) + err = json.Unmarshal(data, &varAddress) if err != nil { return err @@ -820,6 +823,32 @@ func (o *Address) UnmarshalJSON(data []byte) (err error) { *o = Address(varAddress) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_info") + delete(additionalProperties, "disable_dhcp") + delete(additionalProperties, "discovery_attrs") + delete(additionalProperties, "discovery_metadata") + delete(additionalProperties, "host") + delete(additionalProperties, "hwaddr") + delete(additionalProperties, "id") + delete(additionalProperties, "interface") + delete(additionalProperties, "names") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "range") + delete(additionalProperties, "space") + delete(additionalProperties, "state") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "usage") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address_block.go index 3382b09a..6b255450 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_address_block.go @@ -88,11 +88,14 @@ type AddressBlock struct { // Time when the object has been updated. Equals to _created_at_ if not updated after creation. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The usage is a combination of indicators, each tracking a specific associated use. Listed below are usage indicators with their meaning: usage indicator | description ---------------------- | -------------------------------- _IPAM_ | AddressBlock is managed in BloxOne DDI. _DISCOVERED_ | AddressBlock is discovered by some network discovery probe like Network Insight or NetMRI in NIOS. - Usage []string `json:"usage,omitempty"` - Utilization *Utilization `json:"utilization,omitempty"` - UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + Usage []string `json:"usage,omitempty"` + Utilization *Utilization `json:"utilization,omitempty"` + UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + AdditionalProperties map[string]interface{} } +type _AddressBlock AddressBlock + // NewAddressBlock instantiates a new AddressBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1485,9 +1488,73 @@ func (o AddressBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.UtilizationV6) { toSerialize["utilization_v6"] = o.UtilizationV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AddressBlock) UnmarshalJSON(data []byte) (err error) { + varAddressBlock := _AddressBlock{} + + err = json.Unmarshal(data, &varAddressBlock) + + if err != nil { + return err + } + + *o = AddressBlock(varAddressBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "asm_config") + delete(additionalProperties, "asm_scope_flag") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_utilization") + delete(additionalProperties, "discovery_attrs") + delete(additionalProperties, "discovery_metadata") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_parent") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "space") + delete(additionalProperties, "tags") + delete(additionalProperties, "threshold") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "usage") + delete(additionalProperties, "utilization") + delete(additionalProperties, "utilization_v6") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAddressBlock struct { value *AddressBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm.go index b4b28b99..fa8bf1cc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -68,7 +67,8 @@ type ASM struct { // The object to update. Valid values are: * _range_ * _subnet_ * _none_ Update *string `json:"update,omitempty"` // The utilization of DHCP addresses in the subnet. - Utilization *int64 `json:"utilization,omitempty"` + Utilization *int64 `json:"utilization,omitempty"` + AdditionalProperties map[string]interface{} } type _ASM ASM @@ -931,6 +931,11 @@ func (o ASM) ToMap() (map[string]interface{}, error) { if !IsNil(o.Utilization) { toSerialize["utilization"] = o.Utilization } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -958,9 +963,7 @@ func (o *ASM) UnmarshalJSON(data []byte) (err error) { varASM := _ASM{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varASM) + err = json.Unmarshal(data, &varASM) if err != nil { return err @@ -968,6 +971,36 @@ func (o *ASM) UnmarshalJSON(data []byte) (err error) { *o = ASM(varASM) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "back_end") + delete(additionalProperties, "back_start") + delete(additionalProperties, "both_end") + delete(additionalProperties, "both_start") + delete(additionalProperties, "front_end") + delete(additionalProperties, "front_start") + delete(additionalProperties, "growth") + delete(additionalProperties, "id") + delete(additionalProperties, "lookahead") + delete(additionalProperties, "range_end") + delete(additionalProperties, "range_id") + delete(additionalProperties, "range_start") + delete(additionalProperties, "subnet_address") + delete(additionalProperties, "subnet_cidr") + delete(additionalProperties, "subnet_direction") + delete(additionalProperties, "subnet_id") + delete(additionalProperties, "subnet_range") + delete(additionalProperties, "subnet_range_end") + delete(additionalProperties, "subnet_range_start") + delete(additionalProperties, "suppress") + delete(additionalProperties, "suppress_time") + delete(additionalProperties, "threshold_utilization") + delete(additionalProperties, "update") + delete(additionalProperties, "utilization") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_config.go index 795f3ef6..17143c3f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_config.go @@ -37,10 +37,13 @@ type ASMConfig struct { // The minimum size of range needed for ASM to run on this subnet. MinTotal *int64 `json:"min_total,omitempty"` // The minimum percentage of addresses that must be available outside of the DHCP ranges and fixed addresses when making a suggested change.. - MinUnused *int64 `json:"min_unused,omitempty"` - ReenableDate *time.Time `json:"reenable_date,omitempty"` + MinUnused *int64 `json:"min_unused,omitempty"` + ReenableDate *time.Time `json:"reenable_date,omitempty"` + AdditionalProperties map[string]interface{} } +type _ASMConfig ASMConfig + // NewASMConfig instantiates a new ASMConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -454,9 +457,44 @@ func (o ASMConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.ReenableDate) { toSerialize["reenable_date"] = o.ReenableDate } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ASMConfig) UnmarshalJSON(data []byte) (err error) { + varASMConfig := _ASMConfig{} + + err = json.Unmarshal(data, &varASMConfig) + + if err != nil { + return err + } + + *o = ASMConfig(varASMConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_threshold") + delete(additionalProperties, "enable") + delete(additionalProperties, "enable_notification") + delete(additionalProperties, "forecast_period") + delete(additionalProperties, "growth_factor") + delete(additionalProperties, "growth_type") + delete(additionalProperties, "history") + delete(additionalProperties, "min_total") + delete(additionalProperties, "min_unused") + delete(additionalProperties, "reenable_date") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableASMConfig struct { value *ASMConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_enable_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_enable_block.go index 0b08c80f..8741e8ca 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_enable_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_enable_block.go @@ -25,9 +25,12 @@ type AsmEnableBlock struct { // Indicates whether sending notifications to the users is enabled or not. EnableNotification *bool `json:"enable_notification,omitempty"` // The date at which notifications will be re-enabled automatically. - ReenableDate *time.Time `json:"reenable_date,omitempty"` + ReenableDate *time.Time `json:"reenable_date,omitempty"` + AdditionalProperties map[string]interface{} } +type _AsmEnableBlock AsmEnableBlock + // NewAsmEnableBlock instantiates a new AsmEnableBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -160,9 +163,37 @@ func (o AsmEnableBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.ReenableDate) { toSerialize["reenable_date"] = o.ReenableDate } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AsmEnableBlock) UnmarshalJSON(data []byte) (err error) { + varAsmEnableBlock := _AsmEnableBlock{} + + err = json.Unmarshal(data, &varAsmEnableBlock) + + if err != nil { + return err + } + + *o = AsmEnableBlock(varAsmEnableBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enable") + delete(additionalProperties, "enable_notification") + delete(additionalProperties, "reenable_date") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAsmEnableBlock struct { value *AsmEnableBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_growth_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_growth_block.go index 47d5570e..c8c21abf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_growth_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_asm_growth_block.go @@ -22,9 +22,12 @@ type AsmGrowthBlock struct { // Either the number or percentage of addresses to grow by. GrowthFactor *int64 `json:"growth_factor,omitempty"` // The type of factor to use: _percent_ or _count_. - GrowthType *string `json:"growth_type,omitempty"` + GrowthType *string `json:"growth_type,omitempty"` + AdditionalProperties map[string]interface{} } +type _AsmGrowthBlock AsmGrowthBlock + // NewAsmGrowthBlock instantiates a new AsmGrowthBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o AsmGrowthBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.GrowthType) { toSerialize["growth_type"] = o.GrowthType } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *AsmGrowthBlock) UnmarshalJSON(data []byte) (err error) { + varAsmGrowthBlock := _AsmGrowthBlock{} + + err = json.Unmarshal(data, &varAsmGrowthBlock) + + if err != nil { + return err + } + + *o = AsmGrowthBlock(varAsmGrowthBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "growth_factor") + delete(additionalProperties, "growth_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableAsmGrowthBlock struct { value *AsmGrowthBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_error.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_error.go index 631ebb9e..e83c80a8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_error.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_error.go @@ -24,9 +24,12 @@ type BulkCopyError struct { // The resource identifier. Id *string `json:"id,omitempty"` // The reason why the copy failed. - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} } +type _BulkCopyError BulkCopyError + // NewBulkCopyError instantiates a new BulkCopyError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o BulkCopyError) ToMap() (map[string]interface{}, error) { if !IsNil(o.Message) { toSerialize["message"] = o.Message } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BulkCopyError) UnmarshalJSON(data []byte) (err error) { + varBulkCopyError := _BulkCopyError{} + + err = json.Unmarshal(data, &varBulkCopyError) + + if err != nil { + return err + } + + *o = BulkCopyError(varBulkCopyError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBulkCopyError struct { value *BulkCopyError isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space.go index 02d70e4c..b57b10c8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -30,7 +29,8 @@ type BulkCopyIPSpace struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - Target string `json:"target"` + Target string `json:"target"` + AdditionalProperties map[string]interface{} } type _BulkCopyIPSpace BulkCopyIPSpace @@ -219,6 +219,11 @@ func (o BulkCopyIPSpace) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["target"] = o.Target + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -247,9 +252,7 @@ func (o *BulkCopyIPSpace) UnmarshalJSON(data []byte) (err error) { varBulkCopyIPSpace := _BulkCopyIPSpace{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varBulkCopyIPSpace) + err = json.Unmarshal(data, &varBulkCopyIPSpace) if err != nil { return err @@ -257,6 +260,17 @@ func (o *BulkCopyIPSpace) UnmarshalJSON(data []byte) (err error) { *o = BulkCopyIPSpace(varBulkCopyIPSpace) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "copy_dhcp_options") + delete(additionalProperties, "copy_objects") + delete(additionalProperties, "recursive") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "target") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space_response.go index 23042c35..61a7c78c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_bulk_copy_ip_space_response.go @@ -19,10 +19,13 @@ var _ MappedNullable = &BulkCopyIPSpaceResponse{} // BulkCopyIPSpaceResponse struct for BulkCopyIPSpaceResponse type BulkCopyIPSpaceResponse struct { - Errors []BulkCopyError `json:"errors,omitempty"` - Results []CopyResponse `json:"results,omitempty"` + Errors []BulkCopyError `json:"errors,omitempty"` + Results []CopyResponse `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _BulkCopyIPSpaceResponse BulkCopyIPSpaceResponse + // NewBulkCopyIPSpaceResponse instantiates a new BulkCopyIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -120,9 +123,36 @@ func (o BulkCopyIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *BulkCopyIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varBulkCopyIPSpaceResponse := _BulkCopyIPSpaceResponse{} + + err = json.Unmarshal(data, &varBulkCopyIPSpaceResponse) + + if err != nil { + return err + } + + *o = BulkCopyIPSpaceResponse(varBulkCopyIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errors") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableBulkCopyIPSpaceResponse struct { value *BulkCopyIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block.go index 3e58ab6d..7d8007c7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -34,7 +33,8 @@ type CopyAddressBlock struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - Space string `json:"space"` + Space string `json:"space"` + AdditionalProperties map[string]interface{} } type _CopyAddressBlock CopyAddressBlock @@ -302,6 +302,11 @@ func (o CopyAddressBlock) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["space"] = o.Space + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -329,9 +334,7 @@ func (o *CopyAddressBlock) UnmarshalJSON(data []byte) (err error) { varCopyAddressBlock := _CopyAddressBlock{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCopyAddressBlock) + err = json.Unmarshal(data, &varCopyAddressBlock) if err != nil { return err @@ -339,6 +342,19 @@ func (o *CopyAddressBlock) UnmarshalJSON(data []byte) (err error) { *o = CopyAddressBlock(varCopyAddressBlock) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "copy_dhcp_options") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "recursive") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block_response.go index 8298779c..e49ce798 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_address_block_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CopyAddressBlockResponse{} // CopyAddressBlockResponse The response format to copy the __AddressBlock__ object. type CopyAddressBlockResponse struct { - Result *CopyResponse `json:"result,omitempty"` + Result *CopyResponse `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyAddressBlockResponse CopyAddressBlockResponse + // NewCopyAddressBlockResponse instantiates a new CopyAddressBlockResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CopyAddressBlockResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyAddressBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCopyAddressBlockResponse := _CopyAddressBlockResponse{} + + err = json.Unmarshal(data, &varCopyAddressBlockResponse) + + if err != nil { + return err + } + + *o = CopyAddressBlockResponse(varCopyAddressBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyAddressBlockResponse struct { value *CopyAddressBlockResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space.go index 7c1558aa..496abe39 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -30,7 +29,8 @@ type CopyIPSpace struct { // The name for the copied IP space. Must contain 1 to 256 characters. Can include UTF-8. Name string `json:"name"` // Indicates whether copying should skip an object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. - SkipOnError *bool `json:"skip_on_error,omitempty"` + SkipOnError *bool `json:"skip_on_error,omitempty"` + AdditionalProperties map[string]interface{} } type _CopyIPSpace CopyIPSpace @@ -228,6 +228,11 @@ func (o CopyIPSpace) ToMap() (map[string]interface{}, error) { if !IsNil(o.SkipOnError) { toSerialize["skip_on_error"] = o.SkipOnError } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -255,9 +260,7 @@ func (o *CopyIPSpace) UnmarshalJSON(data []byte) (err error) { varCopyIPSpace := _CopyIPSpace{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCopyIPSpace) + err = json.Unmarshal(data, &varCopyIPSpace) if err != nil { return err @@ -265,6 +268,17 @@ func (o *CopyIPSpace) UnmarshalJSON(data []byte) (err error) { *o = CopyIPSpace(varCopyIPSpace) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "copy_dhcp_options") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "skip_on_error") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space_response.go index 929a516e..d29a159e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_ip_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CopyIPSpaceResponse{} // CopyIPSpaceResponse The response format to copy the __IPSpace__ object. type CopyIPSpaceResponse struct { - Result *CopyResponse `json:"result,omitempty"` + Result *CopyResponse `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyIPSpaceResponse CopyIPSpaceResponse + // NewCopyIPSpaceResponse instantiates a new CopyIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CopyIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varCopyIPSpaceResponse := _CopyIPSpaceResponse{} + + err = json.Unmarshal(data, &varCopyIPSpaceResponse) + + if err != nil { + return err + } + + *o = CopyIPSpaceResponse(varCopyIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyIPSpaceResponse struct { value *CopyIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_response.go index ef42745c..06acc4e4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_response.go @@ -24,9 +24,12 @@ type CopyResponse struct { // The resource identifier. Id *string `json:"id,omitempty"` // An Unique Id to identify copy operation. - JobId *string `json:"job_id,omitempty"` + JobId *string `json:"job_id,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopyResponse CopyResponse + // NewCopyResponse instantiates a new CopyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o CopyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.JobId) { toSerialize["job_id"] = o.JobId } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopyResponse) UnmarshalJSON(data []byte) (err error) { + varCopyResponse := _CopyResponse{} + + err = json.Unmarshal(data, &varCopyResponse) + + if err != nil { + return err + } + + *o = CopyResponse(varCopyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "description") + delete(additionalProperties, "id") + delete(additionalProperties, "job_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopyResponse struct { value *CopyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet.go index 82374d5f..4e29fa31 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -34,7 +33,8 @@ type CopySubnet struct { // Indicates whether copying should skip object in case of error and continue with next, or abort copying in case of error. Defaults to _false_. SkipOnError *bool `json:"skip_on_error,omitempty"` // The resource identifier. - Space string `json:"space"` + Space string `json:"space"` + AdditionalProperties map[string]interface{} } type _CopySubnet CopySubnet @@ -302,6 +302,11 @@ func (o CopySubnet) ToMap() (map[string]interface{}, error) { toSerialize["skip_on_error"] = o.SkipOnError } toSerialize["space"] = o.Space + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -329,9 +334,7 @@ func (o *CopySubnet) UnmarshalJSON(data []byte) (err error) { varCopySubnet := _CopySubnet{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCopySubnet) + err = json.Unmarshal(data, &varCopySubnet) if err != nil { return err @@ -339,6 +342,19 @@ func (o *CopySubnet) UnmarshalJSON(data []byte) (err error) { *o = CopySubnet(varCopySubnet) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "copy_dhcp_options") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "recursive") + delete(additionalProperties, "skip_on_error") + delete(additionalProperties, "space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet_response.go index 6de41125..be30ff84 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_copy_subnet_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CopySubnetResponse{} // CopySubnetResponse The response format to copy the __Subnet__ object. type CopySubnetResponse struct { - Result *CopyResponse `json:"result,omitempty"` + Result *CopyResponse `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CopySubnetResponse CopySubnetResponse + // NewCopySubnetResponse instantiates a new CopySubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CopySubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CopySubnetResponse) UnmarshalJSON(data []byte) (err error) { + varCopySubnetResponse := _CopySubnetResponse{} + + err = json.Unmarshal(data, &varCopySubnetResponse) + + if err != nil { + return err + } + + *o = CopySubnetResponse(varCopySubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCopySubnetResponse struct { value *CopySubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_block_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_block_response.go index 0741ac74..8ae111df 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_block_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_block_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateAddressBlockResponse{} // CreateAddressBlockResponse The response format to create the __AddressBlock__ object. type CreateAddressBlockResponse struct { - Result *AddressBlock `json:"result,omitempty"` + Result *AddressBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateAddressBlockResponse CreateAddressBlockResponse + // NewCreateAddressBlockResponse instantiates a new CreateAddressBlockResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateAddressBlockResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateAddressBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateAddressBlockResponse := _CreateAddressBlockResponse{} + + err = json.Unmarshal(data, &varCreateAddressBlockResponse) + + if err != nil { + return err + } + + *o = CreateAddressBlockResponse(varCreateAddressBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateAddressBlockResponse struct { value *CreateAddressBlockResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_response.go index 761196e0..afbfeb70 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateAddressResponse{} // CreateAddressResponse The response format to create the __Address__ object. type CreateAddressResponse struct { - Result *Address `json:"result,omitempty"` + Result *Address `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateAddressResponse CreateAddressResponse + // NewCreateAddressResponse instantiates a new CreateAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateAddressResponse) UnmarshalJSON(data []byte) (err error) { + varCreateAddressResponse := _CreateAddressResponse{} + + err = json.Unmarshal(data, &varCreateAddressResponse) + + if err != nil { + return err + } + + *o = CreateAddressResponse(varCreateAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateAddressResponse struct { value *CreateAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_asm_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_asm_response.go index 818a7a35..3fdff3b5 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_asm_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_asm_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateASMResponse{} // CreateASMResponse The response format to update subnet and range for ASM. type CreateASMResponse struct { - Result *ASM `json:"result,omitempty"` + Result *ASM `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateASMResponse CreateASMResponse + // NewCreateASMResponse instantiates a new CreateASMResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateASMResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateASMResponse) UnmarshalJSON(data []byte) (err error) { + varCreateASMResponse := _CreateASMResponse{} + + err = json.Unmarshal(data, &varCreateASMResponse) + + if err != nil { + return err + } + + *o = CreateASMResponse(varCreateASMResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateASMResponse struct { value *CreateASMResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_fixed_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_fixed_address_response.go index 5f6a1fa8..a448deb0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_fixed_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_fixed_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateFixedAddressResponse{} // CreateFixedAddressResponse The response format to create the __FixedAddress__ object. type CreateFixedAddressResponse struct { - Result *FixedAddress `json:"result,omitempty"` + Result *FixedAddress `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateFixedAddressResponse CreateFixedAddressResponse + // NewCreateFixedAddressResponse instantiates a new CreateFixedAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateFixedAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateFixedAddressResponse) UnmarshalJSON(data []byte) (err error) { + varCreateFixedAddressResponse := _CreateFixedAddressResponse{} + + err = json.Unmarshal(data, &varCreateFixedAddressResponse) + + if err != nil { + return err + } + + *o = CreateFixedAddressResponse(varCreateFixedAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateFixedAddressResponse struct { value *CreateFixedAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ha_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ha_group_response.go index 18de8fb3..e62d708b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ha_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ha_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateHAGroupResponse{} // CreateHAGroupResponse The response format to create the __HAGroup__ object. type CreateHAGroupResponse struct { - Result *HAGroup `json:"result,omitempty"` + Result *HAGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateHAGroupResponse CreateHAGroupResponse + // NewCreateHAGroupResponse instantiates a new CreateHAGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateHAGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateHAGroupResponse) UnmarshalJSON(data []byte) (err error) { + varCreateHAGroupResponse := _CreateHAGroupResponse{} + + err = json.Unmarshal(data, &varCreateHAGroupResponse) + + if err != nil { + return err + } + + *o = CreateHAGroupResponse(varCreateHAGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateHAGroupResponse struct { value *CreateHAGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_hardware_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_hardware_filter_response.go index e7e1af4c..d9f8fa9f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_hardware_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_hardware_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateHardwareFilterResponse{} // CreateHardwareFilterResponse The response format to create the __HardwareFilter__ object. type CreateHardwareFilterResponse struct { - Result *HardwareFilter `json:"result,omitempty"` + Result *HardwareFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateHardwareFilterResponse CreateHardwareFilterResponse + // NewCreateHardwareFilterResponse instantiates a new CreateHardwareFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateHardwareFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateHardwareFilterResponse) UnmarshalJSON(data []byte) (err error) { + varCreateHardwareFilterResponse := _CreateHardwareFilterResponse{} + + err = json.Unmarshal(data, &varCreateHardwareFilterResponse) + + if err != nil { + return err + } + + *o = CreateHardwareFilterResponse(varCreateHardwareFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateHardwareFilterResponse struct { value *CreateHardwareFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ip_space_response.go index 1f28a3f0..b144c2fd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ip_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateIPSpaceResponse{} // CreateIPSpaceResponse The response format to create the __IPSpace__ object. type CreateIPSpaceResponse struct { - Result *IPSpace `json:"result,omitempty"` + Result *IPSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateIPSpaceResponse CreateIPSpaceResponse + // NewCreateIPSpaceResponse instantiates a new CreateIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varCreateIPSpaceResponse := _CreateIPSpaceResponse{} + + err = json.Unmarshal(data, &varCreateIPSpaceResponse) + + if err != nil { + return err + } + + *o = CreateIPSpaceResponse(varCreateIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateIPSpaceResponse struct { value *CreateIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ipam_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ipam_host_response.go index a9b1df7f..9f155860 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ipam_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_ipam_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateIpamHostResponse{} // CreateIpamHostResponse The response format to create the __IpamHost__ object. type CreateIpamHostResponse struct { - Result *IpamHost `json:"result,omitempty"` + Result *IpamHost `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateIpamHostResponse CreateIpamHostResponse + // NewCreateIpamHostResponse instantiates a new CreateIpamHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateIpamHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateIpamHostResponse) UnmarshalJSON(data []byte) (err error) { + varCreateIpamHostResponse := _CreateIpamHostResponse{} + + err = json.Unmarshal(data, &varCreateIpamHostResponse) + + if err != nil { + return err + } + + *o = CreateIpamHostResponse(varCreateIpamHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateIpamHostResponse struct { value *CreateIpamHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_leases_command_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_leases_command_response.go index 9a48beeb..e9b28f84 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_leases_command_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_leases_command_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateLeasesCommandResponse{} // CreateLeasesCommandResponse The response format to perform leases command. type CreateLeasesCommandResponse struct { - Success *string `json:"success,omitempty"` + Success *string `json:"success,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateLeasesCommandResponse CreateLeasesCommandResponse + // NewCreateLeasesCommandResponse instantiates a new CreateLeasesCommandResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateLeasesCommandResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Success) { toSerialize["success"] = o.Success } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateLeasesCommandResponse) UnmarshalJSON(data []byte) (err error) { + varCreateLeasesCommandResponse := _CreateLeasesCommandResponse{} + + err = json.Unmarshal(data, &varCreateLeasesCommandResponse) + + if err != nil { + return err + } + + *o = CreateLeasesCommandResponse(varCreateLeasesCommandResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateLeasesCommandResponse struct { value *CreateLeasesCommandResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ab_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ab_response.go index e301f492..3b10e52d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ab_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ab_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &CreateNextAvailableABResponse{} // CreateNextAvailableABResponse The Next Available Address Block object create response format. type CreateNextAvailableABResponse struct { // The list of Next Available Address Block objects. - Results []AddressBlock `json:"results,omitempty"` + Results []AddressBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateNextAvailableABResponse CreateNextAvailableABResponse + // NewCreateNextAvailableABResponse instantiates a new CreateNextAvailableABResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o CreateNextAvailableABResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateNextAvailableABResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableABResponse := _CreateNextAvailableABResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableABResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableABResponse(varCreateNextAvailableABResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateNextAvailableABResponse struct { value *CreateNextAvailableABResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ip_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ip_response.go index 6989c24d..f2cd58f3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ip_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_ip_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &CreateNextAvailableIPResponse{} // CreateNextAvailableIPResponse The response format to allocate the next available IP address. type CreateNextAvailableIPResponse struct { // The list of allocated IP address objects. - Results []Address `json:"results,omitempty"` + Results []Address `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateNextAvailableIPResponse CreateNextAvailableIPResponse + // NewCreateNextAvailableIPResponse instantiates a new CreateNextAvailableIPResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o CreateNextAvailableIPResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateNextAvailableIPResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableIPResponse := _CreateNextAvailableIPResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableIPResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableIPResponse(varCreateNextAvailableIPResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateNextAvailableIPResponse struct { value *CreateNextAvailableIPResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_subnet_response.go index 4cf93883..e8a7d34b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_next_available_subnet_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &CreateNextAvailableSubnetResponse{} // CreateNextAvailableSubnetResponse The Next Available Subnet object create response format. type CreateNextAvailableSubnetResponse struct { // The list of Next Available Subnet objects. - Results []Subnet `json:"results,omitempty"` + Results []Subnet `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateNextAvailableSubnetResponse CreateNextAvailableSubnetResponse + // NewCreateNextAvailableSubnetResponse instantiates a new CreateNextAvailableSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o CreateNextAvailableSubnetResponse) ToMap() (map[string]interface{}, erro if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateNextAvailableSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableSubnetResponse := _CreateNextAvailableSubnetResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableSubnetResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableSubnetResponse(varCreateNextAvailableSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateNextAvailableSubnetResponse struct { value *CreateNextAvailableSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_code_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_code_response.go index 7c816bf3..a87116b2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_code_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_code_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateOptionCodeResponse{} // CreateOptionCodeResponse The response format to create the __OptionCode__ object. type CreateOptionCodeResponse struct { - Result *OptionCode `json:"result,omitempty"` + Result *OptionCode `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateOptionCodeResponse CreateOptionCodeResponse + // NewCreateOptionCodeResponse instantiates a new CreateOptionCodeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateOptionCodeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateOptionCodeResponse) UnmarshalJSON(data []byte) (err error) { + varCreateOptionCodeResponse := _CreateOptionCodeResponse{} + + err = json.Unmarshal(data, &varCreateOptionCodeResponse) + + if err != nil { + return err + } + + *o = CreateOptionCodeResponse(varCreateOptionCodeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateOptionCodeResponse struct { value *CreateOptionCodeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_filter_response.go index f0d92072..0bc64903 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateOptionFilterResponse{} // CreateOptionFilterResponse The response format to create the __OptionFilter__ object. type CreateOptionFilterResponse struct { - Result *OptionFilter `json:"result,omitempty"` + Result *OptionFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateOptionFilterResponse CreateOptionFilterResponse + // NewCreateOptionFilterResponse instantiates a new CreateOptionFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateOptionFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateOptionFilterResponse) UnmarshalJSON(data []byte) (err error) { + varCreateOptionFilterResponse := _CreateOptionFilterResponse{} + + err = json.Unmarshal(data, &varCreateOptionFilterResponse) + + if err != nil { + return err + } + + *o = CreateOptionFilterResponse(varCreateOptionFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateOptionFilterResponse struct { value *CreateOptionFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_group_response.go index 82195d28..a2be8c1a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateOptionGroupResponse{} // CreateOptionGroupResponse The response format to create the __OptionGroup__ object. type CreateOptionGroupResponse struct { - Result *OptionGroup `json:"result,omitempty"` + Result *OptionGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateOptionGroupResponse CreateOptionGroupResponse + // NewCreateOptionGroupResponse instantiates a new CreateOptionGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateOptionGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateOptionGroupResponse) UnmarshalJSON(data []byte) (err error) { + varCreateOptionGroupResponse := _CreateOptionGroupResponse{} + + err = json.Unmarshal(data, &varCreateOptionGroupResponse) + + if err != nil { + return err + } + + *o = CreateOptionGroupResponse(varCreateOptionGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateOptionGroupResponse struct { value *CreateOptionGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_space_response.go index baad318c..7e9cdd2b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_option_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateOptionSpaceResponse{} // CreateOptionSpaceResponse The response format to create the __OptionSpace__ object. type CreateOptionSpaceResponse struct { - Result *OptionSpace `json:"result,omitempty"` + Result *OptionSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateOptionSpaceResponse CreateOptionSpaceResponse + // NewCreateOptionSpaceResponse instantiates a new CreateOptionSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateOptionSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateOptionSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varCreateOptionSpaceResponse := _CreateOptionSpaceResponse{} + + err = json.Unmarshal(data, &varCreateOptionSpaceResponse) + + if err != nil { + return err + } + + *o = CreateOptionSpaceResponse(varCreateOptionSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateOptionSpaceResponse struct { value *CreateOptionSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_range_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_range_response.go index 1aef72df..67cf4db9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_range_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_range_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateRangeResponse{} // CreateRangeResponse The response format to create the __Range__ object. type CreateRangeResponse struct { - Result *Range `json:"result,omitempty"` + Result *Range `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateRangeResponse CreateRangeResponse + // NewCreateRangeResponse instantiates a new CreateRangeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateRangeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateRangeResponse) UnmarshalJSON(data []byte) (err error) { + varCreateRangeResponse := _CreateRangeResponse{} + + err = json.Unmarshal(data, &varCreateRangeResponse) + + if err != nil { + return err + } + + *o = CreateRangeResponse(varCreateRangeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateRangeResponse struct { value *CreateRangeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_server_response.go index 87a4d7fc..d0a6438c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateServerResponse{} // CreateServerResponse The response format to create the __Server__ object. type CreateServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateServerResponse CreateServerResponse + // NewCreateServerResponse instantiates a new CreateServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateServerResponse) UnmarshalJSON(data []byte) (err error) { + varCreateServerResponse := _CreateServerResponse{} + + err = json.Unmarshal(data, &varCreateServerResponse) + + if err != nil { + return err + } + + *o = CreateServerResponse(varCreateServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateServerResponse struct { value *CreateServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_subnet_response.go index a001a106..896cb314 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_create_subnet_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateSubnetResponse{} // CreateSubnetResponse The response format to create the __Subnet__ object. type CreateSubnetResponse struct { - Result *Subnet `json:"result,omitempty"` + Result *Subnet `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateSubnetResponse CreateSubnetResponse + // NewCreateSubnetResponse instantiates a new CreateSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateSubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varCreateSubnetResponse := _CreateSubnetResponse{} + + err = json.Unmarshal(data, &varCreateSubnetResponse) + + if err != nil { + return err + } + + *o = CreateSubnetResponse(varCreateSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateSubnetResponse struct { value *CreateSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_block.go index 1733dc6e..09614f6e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_block.go @@ -44,9 +44,12 @@ type DDNSBlock struct { // Determines which protocol is used to establish the security context with the external DNS servers, TCP or UDP. Defaults to _tcp_. KerberosTkeyProtocol *string `json:"kerberos_tkey_protocol,omitempty"` // The Kerberos principal name of the external DNS server that will receive updates. Defaults to empty. - ServerPrincipal *string `json:"server_principal,omitempty"` + ServerPrincipal *string `json:"server_principal,omitempty"` + AdditionalProperties map[string]interface{} } +type _DDNSBlock DDNSBlock + // NewDDNSBlock instantiates a new DDNSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -529,9 +532,47 @@ func (o DDNSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.ServerPrincipal) { toSerialize["server_principal"] = o.ServerPrincipal } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DDNSBlock) UnmarshalJSON(data []byte) (err error) { + varDDNSBlock := _DDNSBlock{} + + err = json.Unmarshal(data, &varDDNSBlock) + + if err != nil { + return err + } + + *o = DDNSBlock(varDDNSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "client_principal") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_enabled") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_zones") + delete(additionalProperties, "gss_tsig_fallback") + delete(additionalProperties, "kerberos_kdc") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "kerberos_rekey_interval") + delete(additionalProperties, "kerberos_retry_interval") + delete(additionalProperties, "kerberos_tkey_lifetime") + delete(additionalProperties, "kerberos_tkey_protocol") + delete(additionalProperties, "server_principal") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDDNSBlock struct { value *DDNSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_hostname_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_hostname_block.go index b2be8c76..36ecb577 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_hostname_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_hostname_block.go @@ -22,9 +22,12 @@ type DDNSHostnameBlock struct { // Indicates if DDNS should generate a hostname when not supplied by the client. DdnsGenerateName *bool `json:"ddns_generate_name,omitempty"` // The prefix used in the generation of an FQDN. - DdnsGeneratedPrefix *string `json:"ddns_generated_prefix,omitempty"` + DdnsGeneratedPrefix *string `json:"ddns_generated_prefix,omitempty"` + AdditionalProperties map[string]interface{} } +type _DDNSHostnameBlock DDNSHostnameBlock + // NewDDNSHostnameBlock instantiates a new DDNSHostnameBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o DDNSHostnameBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.DdnsGeneratedPrefix) { toSerialize["ddns_generated_prefix"] = o.DdnsGeneratedPrefix } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DDNSHostnameBlock) UnmarshalJSON(data []byte) (err error) { + varDDNSHostnameBlock := _DDNSHostnameBlock{} + + err = json.Unmarshal(data, &varDDNSHostnameBlock) + + if err != nil { + return err + } + + *o = DDNSHostnameBlock(varDDNSHostnameBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDDNSHostnameBlock struct { value *DDNSHostnameBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_update_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_update_block.go index 1dee3223..2d824ea3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_update_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_update_block.go @@ -22,9 +22,12 @@ type DDNSUpdateBlock struct { // The domain name for DDNS. DdnsDomain *string `json:"ddns_domain,omitempty"` // Determines if DDNS updates are enabled at this level. - DdnsSendUpdates *bool `json:"ddns_send_updates,omitempty"` + DdnsSendUpdates *bool `json:"ddns_send_updates,omitempty"` + AdditionalProperties map[string]interface{} } +type _DDNSUpdateBlock DDNSUpdateBlock + // NewDDNSUpdateBlock instantiates a new DDNSUpdateBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o DDNSUpdateBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.DdnsSendUpdates) { toSerialize["ddns_send_updates"] = o.DdnsSendUpdates } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DDNSUpdateBlock) UnmarshalJSON(data []byte) (err error) { + varDDNSUpdateBlock := _DDNSUpdateBlock{} + + err = json.Unmarshal(data, &varDDNSUpdateBlock) + + if err != nil { + return err + } + + *o = DDNSUpdateBlock(varDDNSUpdateBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_send_updates") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDDNSUpdateBlock struct { value *DDNSUpdateBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_zone.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_zone.go index a8d9d12a..5757b590 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_zone.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ddns_zone.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -35,7 +34,8 @@ type DDNSZone struct { // The name of the view. ViewName *string `json:"view_name,omitempty"` // The resource identifier. - Zone string `json:"zone"` + Zone string `json:"zone"` + AdditionalProperties map[string]interface{} } type _DDNSZone DDNSZone @@ -338,6 +338,11 @@ func (o DDNSZone) ToMap() (map[string]interface{}, error) { toSerialize["view_name"] = o.ViewName } toSerialize["zone"] = o.Zone + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -365,9 +370,7 @@ func (o *DDNSZone) UnmarshalJSON(data []byte) (err error) { varDDNSZone := _DDNSZone{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varDDNSZone) + err = json.Unmarshal(data, &varDDNSZone) if err != nil { return err @@ -375,6 +378,20 @@ func (o *DDNSZone) UnmarshalJSON(data []byte) (err error) { *o = DDNSZone(varDDNSZone) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fqdn") + delete(additionalProperties, "gss_tsig_enabled") + delete(additionalProperties, "nameservers") + delete(additionalProperties, "tsig_enabled") + delete(additionalProperties, "tsig_key") + delete(additionalProperties, "view") + delete(additionalProperties, "view_name") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_config.go index 00fb8425..f988cb0b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_config.go @@ -40,9 +40,12 @@ type DHCPConfig struct { // The lease duration in seconds. LeaseTime *int64 `json:"lease_time,omitempty"` // The lease duration in seconds for IPV6 clients. - LeaseTimeV6 *int64 `json:"lease_time_v6,omitempty"` + LeaseTimeV6 *int64 `json:"lease_time_v6,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPConfig DHCPConfig + // NewDHCPConfig instantiates a new DHCPConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -487,9 +490,45 @@ func (o DHCPConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.LeaseTimeV6) { toSerialize["lease_time_v6"] = o.LeaseTimeV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPConfig) UnmarshalJSON(data []byte) (err error) { + varDHCPConfig := _DHCPConfig{} + + err = json.Unmarshal(data, &varDHCPConfig) + + if err != nil { + return err + } + + *o = DHCPConfig(varDHCPConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "abandoned_reclaim_time") + delete(additionalProperties, "abandoned_reclaim_time_v6") + delete(additionalProperties, "allow_unknown") + delete(additionalProperties, "allow_unknown_v6") + delete(additionalProperties, "echo_client_id") + delete(additionalProperties, "filters") + delete(additionalProperties, "filters_v6") + delete(additionalProperties, "ignore_client_uid") + delete(additionalProperties, "ignore_list") + delete(additionalProperties, "lease_time") + delete(additionalProperties, "lease_time_v6") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPConfig struct { value *DHCPConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_info.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_info.go index ea01ef9f..04e18f73 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_info.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_info.go @@ -43,9 +43,12 @@ type DHCPInfo struct { // Indicates the status of this IP address from a DHCP protocol standpoint as: * _none_: Address is not under DHCP control. * _free_: Address is under DHCP control but has no lease currently assigned. * _leased_: Address is under DHCP control and has a lease currently assigned. The lease details are contained in the matching _dhcp/lease_ resource. State *string `json:"state,omitempty"` // The timestamp at which the _state_ was last reported. - StateTs *time.Time `json:"state_ts,omitempty"` + StateTs *time.Time `json:"state_ts,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPInfo DHCPInfo + // NewDHCPInfo instantiates a new DHCPInfo object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -493,9 +496,46 @@ func (o DHCPInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.StateTs) { toSerialize["state_ts"] = o.StateTs } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPInfo) UnmarshalJSON(data []byte) (err error) { + varDHCPInfo := _DHCPInfo{} + + err = json.Unmarshal(data, &varDHCPInfo) + + if err != nil { + return err + } + + *o = DHCPInfo(varDHCPInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "client_hostname") + delete(additionalProperties, "client_hwaddr") + delete(additionalProperties, "client_id") + delete(additionalProperties, "end") + delete(additionalProperties, "fingerprint") + delete(additionalProperties, "iaid") + delete(additionalProperties, "lease_type") + delete(additionalProperties, "preferred_lifetime") + delete(additionalProperties, "remain") + delete(additionalProperties, "start") + delete(additionalProperties, "state") + delete(additionalProperties, "state_ts") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPInfo struct { value *DHCPInfo isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_inheritance.go index 8cd48399..daacea20 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_inheritance.go @@ -34,8 +34,11 @@ type DHCPInheritance struct { HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` HostnameRewriteBlock *InheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPInheritance DHCPInheritance + // NewDHCPInheritance instantiates a new DHCPInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -588,9 +591,49 @@ func (o DHCPInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.HostnameRewriteBlock) { toSerialize["hostname_rewrite_block"] = o.HostnameRewriteBlock } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPInheritance) UnmarshalJSON(data []byte) (err error) { + varDHCPInheritance := _DHCPInheritance{} + + err = json.Unmarshal(data, &varDHCPInheritance) + + if err != nil { + return err + } + + *o = DHCPInheritance(varDHCPInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_config") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_enabled") + delete(additionalProperties, "ddns_hostname_block") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_block") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_block") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPInheritance struct { value *DHCPInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_options_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_options_inheritance.go index fd43ccca..7474967d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_options_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_options_inheritance.go @@ -19,9 +19,12 @@ var _ MappedNullable = &DHCPOptionsInheritance{} // DHCPOptionsInheritance The inheritance configuration that specifies how the _dhcp_options_ field is inherited from the parent object. type DHCPOptionsInheritance struct { - DhcpOptions *InheritedDHCPOptionList `json:"dhcp_options,omitempty"` + DhcpOptions *InheritedDHCPOptionList `json:"dhcp_options,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPOptionsInheritance DHCPOptionsInheritance + // NewDHCPOptionsInheritance instantiates a new DHCPOptionsInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o DHCPOptionsInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.DhcpOptions) { toSerialize["dhcp_options"] = o.DhcpOptions } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPOptionsInheritance) UnmarshalJSON(data []byte) (err error) { + varDHCPOptionsInheritance := _DHCPOptionsInheritance{} + + err = json.Unmarshal(data, &varDHCPOptionsInheritance) + + if err != nil { + return err + } + + *o = DHCPOptionsInheritance(varDHCPOptionsInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_options") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPOptionsInheritance struct { value *DHCPOptionsInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_packet_stats.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_packet_stats.go index dc38fe75..770dc642 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_packet_stats.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_packet_stats.go @@ -30,9 +30,12 @@ type DHCPPacketStats struct { // The number of DHCP requests received. DhcpReqReceived *string `json:"dhcp_req_received,omitempty"` // The number of DHCP V6 requests received. - DhcpReqReceivedV6 *string `json:"dhcp_req_received_v6,omitempty"` + DhcpReqReceivedV6 *string `json:"dhcp_req_received_v6,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPPacketStats DHCPPacketStats + // NewDHCPPacketStats instantiates a new DHCPPacketStats object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -270,9 +273,40 @@ func (o DHCPPacketStats) ToMap() (map[string]interface{}, error) { if !IsNil(o.DhcpReqReceivedV6) { toSerialize["dhcp_req_received_v6"] = o.DhcpReqReceivedV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPPacketStats) UnmarshalJSON(data []byte) (err error) { + varDHCPPacketStats := _DHCPPacketStats{} + + err = json.Unmarshal(data, &varDHCPPacketStats) + + if err != nil { + return err + } + + *o = DHCPPacketStats(varDHCPPacketStats) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_pkt_received") + delete(additionalProperties, "dhcp_pkt_received_v6") + delete(additionalProperties, "dhcp_pkt_sent") + delete(additionalProperties, "dhcp_pkt_sent_v6") + delete(additionalProperties, "dhcp_req_received") + delete(additionalProperties, "dhcp_req_received_v6") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPPacketStats struct { value *DHCPPacketStats isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization.go index f22c8082..40ac3c11 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization.go @@ -26,9 +26,12 @@ type DHCPUtilization struct { // The total IP addresses marked as used in the DHCP ranges in the scope of this object. DhcpUsed *string `json:"dhcp_used,omitempty"` // The percentage of used IP addresses relative to the total IP addresses available in the DHCP ranges in the scope of this object. - DhcpUtilization *int64 `json:"dhcp_utilization,omitempty"` + DhcpUtilization *int64 `json:"dhcp_utilization,omitempty"` + AdditionalProperties map[string]interface{} } +type _DHCPUtilization DHCPUtilization + // NewDHCPUtilization instantiates a new DHCPUtilization object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o DHCPUtilization) ToMap() (map[string]interface{}, error) { if !IsNil(o.DhcpUtilization) { toSerialize["dhcp_utilization"] = o.DhcpUtilization } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DHCPUtilization) UnmarshalJSON(data []byte) (err error) { + varDHCPUtilization := _DHCPUtilization{} + + err = json.Unmarshal(data, &varDHCPUtilization) + + if err != nil { + return err + } + + *o = DHCPUtilization(varDHCPUtilization) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_free") + delete(additionalProperties, "dhcp_total") + delete(additionalProperties, "dhcp_used") + delete(additionalProperties, "dhcp_utilization") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDHCPUtilization struct { value *DHCPUtilization isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization_threshold.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization_threshold.go index 5355ecc6..2b5ec532 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization_threshold.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dhcp_utilization_threshold.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type DHCPUtilizationThreshold struct { // The high threshold value for DHCP utilization in percentage. High int64 `json:"high"` // The low threshold value for DHCP utilization in percentage. - Low int64 `json:"low"` + Low int64 `json:"low"` + AdditionalProperties map[string]interface{} } type _DHCPUtilizationThreshold DHCPUtilizationThreshold @@ -136,6 +136,11 @@ func (o DHCPUtilizationThreshold) ToMap() (map[string]interface{}, error) { toSerialize["enabled"] = o.Enabled toSerialize["high"] = o.High toSerialize["low"] = o.Low + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -165,9 +170,7 @@ func (o *DHCPUtilizationThreshold) UnmarshalJSON(data []byte) (err error) { varDHCPUtilizationThreshold := _DHCPUtilizationThreshold{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varDHCPUtilizationThreshold) + err = json.Unmarshal(data, &varDHCPUtilizationThreshold) if err != nil { return err @@ -175,6 +178,15 @@ func (o *DHCPUtilizationThreshold) UnmarshalJSON(data []byte) (err error) { *o = DHCPUtilizationThreshold(varDHCPUtilizationThreshold) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "high") + delete(additionalProperties, "low") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dns_usage.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dns_usage.go index b32a494c..b1c6fdbe 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dns_usage.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_dns_usage.go @@ -38,9 +38,12 @@ type DNSUsage struct { // The resource identifier. View *string `json:"view,omitempty"` // The resource identifier. - Zone *string `json:"zone,omitempty"` + Zone *string `json:"zone,omitempty"` + AdditionalProperties map[string]interface{} } +type _DNSUsage DNSUsage + // NewDNSUsage instantiates a new DNSUsage object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -418,9 +421,44 @@ func (o DNSUsage) ToMap() (map[string]interface{}, error) { if !IsNil(o.Zone) { toSerialize["zone"] = o.Zone } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DNSUsage) UnmarshalJSON(data []byte) (err error) { + varDNSUsage := _DNSUsage{} + + err = json.Unmarshal(data, &varDNSUsage) + + if err != nil { + return err + } + + *o = DNSUsage(varDNSUsage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "absolute_name") + delete(additionalProperties, "address") + delete(additionalProperties, "dns_rdata") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "record") + delete(additionalProperties, "space") + delete(additionalProperties, "type") + delete(additionalProperties, "view") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDNSUsage struct { value *DNSUsage isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_exclusion_range.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_exclusion_range.go index 2f8f24f0..a8d91756 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_exclusion_range.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_exclusion_range.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type ExclusionRange struct { // The end address of the exclusion range. End string `json:"end"` // The start address of the exclusion range. - Start string `json:"start"` + Start string `json:"start"` + AdditionalProperties map[string]interface{} } type _ExclusionRange ExclusionRange @@ -145,6 +145,11 @@ func (o ExclusionRange) ToMap() (map[string]interface{}, error) { } toSerialize["end"] = o.End toSerialize["start"] = o.Start + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -173,9 +178,7 @@ func (o *ExclusionRange) UnmarshalJSON(data []byte) (err error) { varExclusionRange := _ExclusionRange{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varExclusionRange) + err = json.Unmarshal(data, &varExclusionRange) if err != nil { return err @@ -183,6 +186,15 @@ func (o *ExclusionRange) UnmarshalJSON(data []byte) (err error) { *o = ExclusionRange(varExclusionRange) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "end") + delete(additionalProperties, "start") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_filter.go index b3e30783..2a632f38 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_filter.go @@ -32,9 +32,12 @@ type Filter struct { // The tags for the DHCP filter in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // The type of DHCP filter (_hardware_ or _option_). - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _Filter Filter + // NewFilter instantiates a new Filter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -307,9 +310,41 @@ func (o Filter) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Filter) UnmarshalJSON(data []byte) (err error) { + varFilter := _Filter{} + + err = json.Unmarshal(data, &varFilter) + + if err != nil { + return err + } + + *o = Filter(varFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol") + delete(additionalProperties, "role") + delete(additionalProperties, "tags") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableFilter struct { value *Filter isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address.go index 3a8263a7..28cd5f50 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -60,7 +59,8 @@ type FixedAddress struct { // The tags for the fixed address in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _FixedAddress FixedAddress @@ -765,6 +765,11 @@ func (o FixedAddress) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -794,9 +799,7 @@ func (o *FixedAddress) UnmarshalJSON(data []byte) (err error) { varFixedAddress := _FixedAddress{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varFixedAddress) + err = json.Unmarshal(data, &varFixedAddress) if err != nil { return err @@ -804,6 +807,32 @@ func (o *FixedAddress) UnmarshalJSON(data []byte) (err error) { *o = FixedAddress(varFixedAddress) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "disable_dhcp") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_assigned_hosts") + delete(additionalProperties, "inheritance_parent") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "ip_space") + delete(additionalProperties, "match_type") + delete(additionalProperties, "match_value") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address_inheritance.go index 50b3b1e9..642d089c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_fixed_address_inheritance.go @@ -23,8 +23,11 @@ type FixedAddressInheritance struct { HeaderOptionFilename *InheritanceInheritedString `json:"header_option_filename,omitempty"` HeaderOptionServerAddress *InheritanceInheritedString `json:"header_option_server_address,omitempty"` HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` + AdditionalProperties map[string]interface{} } +type _FixedAddressInheritance FixedAddressInheritance + // NewFixedAddressInheritance instantiates a new FixedAddressInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -192,9 +195,38 @@ func (o FixedAddressInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.HeaderOptionServerName) { toSerialize["header_option_server_name"] = o.HeaderOptionServerName } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *FixedAddressInheritance) UnmarshalJSON(data []byte) (err error) { + varFixedAddressInheritance := _FixedAddressInheritance{} + + err = json.Unmarshal(data, &varFixedAddressInheritance) + + if err != nil { + return err + } + + *o = FixedAddressInheritance(varFixedAddressInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableFixedAddressInheritance struct { value *FixedAddressInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_global.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_global.go index 61d5856a..8edeef95 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_global.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_global.go @@ -86,8 +86,11 @@ type Global struct { ServerPrincipal *string `json:"server_principal,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } +type _Global Global + // NewGlobal instantiates a new Global object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1340,9 +1343,69 @@ func (o Global) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Global) UnmarshalJSON(data []byte) (err error) { + varGlobal := _Global{} + + err = json.Unmarshal(data, &varGlobal) + + if err != nil { + return err + } + + *o = Global(varGlobal) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_config") + delete(additionalProperties, "client_principal") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_enabled") + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "ddns_zones") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_options_v6") + delete(additionalProperties, "dhcp_threshold") + delete(additionalProperties, "gss_tsig_fallback") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + delete(additionalProperties, "id") + delete(additionalProperties, "kerberos_kdc") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "kerberos_rekey_interval") + delete(additionalProperties, "kerberos_retry_interval") + delete(additionalProperties, "kerberos_tkey_lifetime") + delete(additionalProperties, "kerberos_tkey_protocol") + delete(additionalProperties, "prefer_option_12") + delete(additionalProperties, "remove_suffix_option_81") + delete(additionalProperties, "server_principal") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGlobal struct { value *Global isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group.go index 2b189241..ced8ffec 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -43,7 +42,8 @@ type HAGroup struct { // The tags for the HA group. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _HAGroup HAGroup @@ -442,6 +442,11 @@ func (o HAGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -470,9 +475,7 @@ func (o *HAGroup) UnmarshalJSON(data []byte) (err error) { varHAGroup := _HAGroup{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHAGroup) + err = json.Unmarshal(data, &varHAGroup) if err != nil { return err @@ -480,6 +483,23 @@ func (o *HAGroup) UnmarshalJSON(data []byte) (err error) { *o = HAGroup(varHAGroup) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "anycast_config_id") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "hosts") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_space") + delete(additionalProperties, "mode") + delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_heartbeats.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_heartbeats.go index e59efd03..3d56e98e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_heartbeats.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_heartbeats.go @@ -22,9 +22,12 @@ type HAGroupHeartbeats struct { // The name of the peer. Peer *string `json:"peer,omitempty"` // The timestamp as a string of the last successful heartbeat received from the peer above. - SuccessfulHeartbeat *string `json:"successful_heartbeat,omitempty"` + SuccessfulHeartbeat *string `json:"successful_heartbeat,omitempty"` + AdditionalProperties map[string]interface{} } +type _HAGroupHeartbeats HAGroupHeartbeats + // NewHAGroupHeartbeats instantiates a new HAGroupHeartbeats object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o HAGroupHeartbeats) ToMap() (map[string]interface{}, error) { if !IsNil(o.SuccessfulHeartbeat) { toSerialize["successful_heartbeat"] = o.SuccessfulHeartbeat } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HAGroupHeartbeats) UnmarshalJSON(data []byte) (err error) { + varHAGroupHeartbeats := _HAGroupHeartbeats{} + + err = json.Unmarshal(data, &varHAGroupHeartbeats) + + if err != nil { + return err + } + + *o = HAGroupHeartbeats(varHAGroupHeartbeats) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "peer") + delete(additionalProperties, "successful_heartbeat") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHAGroupHeartbeats struct { value *HAGroupHeartbeats isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_host.go index 5ede016d..9368c068 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ha_group_host.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -32,7 +31,8 @@ type HAGroupHost struct { // The role of this host in the HA relationship: _active_ or _passive_. Role *string `json:"role,omitempty"` // The state of DHCP on the host. This field is set when the _collect_stats_ is set to _true_ in the _GET_ _/dhcp/ha_group_ request. - State *string `json:"state,omitempty"` + State *string `json:"state,omitempty"` + AdditionalProperties map[string]interface{} } type _HAGroupHost HAGroupHost @@ -265,6 +265,11 @@ func (o HAGroupHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.State) { toSerialize["state"] = o.State } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -292,9 +297,7 @@ func (o *HAGroupHost) UnmarshalJSON(data []byte) (err error) { varHAGroupHost := _HAGroupHost{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHAGroupHost) + err = json.Unmarshal(data, &varHAGroupHost) if err != nil { return err @@ -302,6 +305,18 @@ func (o *HAGroupHost) UnmarshalJSON(data []byte) (err error) { *o = HAGroupHost(varHAGroupHost) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "heartbeats") + delete(additionalProperties, "host") + delete(additionalProperties, "port") + delete(additionalProperties, "role") + delete(additionalProperties, "state") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hardware_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hardware_filter.go index 5631d6cc..91a15f34 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hardware_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hardware_filter.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -50,6 +49,7 @@ type HardwareFilter struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } type _HardwareFilter HardwareFilter @@ -562,6 +562,11 @@ func (o HardwareFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -589,9 +594,7 @@ func (o *HardwareFilter) UnmarshalJSON(data []byte) (err error) { varHardwareFilter := _HardwareFilter{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHardwareFilter) + err = json.Unmarshal(data, &varHardwareFilter) if err != nil { return err @@ -599,6 +602,26 @@ func (o *HardwareFilter) UnmarshalJSON(data []byte) (err error) { *o = HardwareFilter(varHardwareFilter) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "addresses") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "id") + delete(additionalProperties, "lease_time") + delete(additionalProperties, "name") + delete(additionalProperties, "role") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host.go index 7adf348b..48682aa4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host.go @@ -43,9 +43,12 @@ type Host struct { // The tags of the on-prem host in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Defines the type of host. Allowed values: * _bloxone_ddi_: host type is BloxOne DDI, * _microsoft_azure_: host type is Microsoft Azure, * _amazon_web_service_: host type is Amazon Web Services. * _microsoft_active_directory_: host type is Microsoft Active Directory. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _Host Host + // NewHost instantiates a new Host object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -528,9 +531,47 @@ func (o Host) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Host) UnmarshalJSON(data []byte) (err error) { + varHost := _Host{} + + err = json.Unmarshal(data, &varHost) + + if err != nil { + return err + } + + *o = Host(varHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "anycast_addresses") + delete(additionalProperties, "associated_server") + delete(additionalProperties, "comment") + delete(additionalProperties, "current_version") + delete(additionalProperties, "id") + delete(additionalProperties, "ip_space") + delete(additionalProperties, "name") + delete(additionalProperties, "ophid") + delete(additionalProperties, "provider_id") + delete(additionalProperties, "server") + delete(additionalProperties, "tags") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHost struct { value *Host isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_address.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_address.go index 6335460d..530ca114 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_address.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_address.go @@ -24,9 +24,12 @@ type HostAddress struct { // The resource identifier. Ref *string `json:"ref,omitempty"` // The resource identifier. - Space *string `json:"space,omitempty"` + Space *string `json:"space,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostAddress HostAddress + // NewHostAddress instantiates a new HostAddress object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o HostAddress) ToMap() (map[string]interface{}, error) { if !IsNil(o.Space) { toSerialize["space"] = o.Space } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostAddress) UnmarshalJSON(data []byte) (err error) { + varHostAddress := _HostAddress{} + + err = json.Unmarshal(data, &varHostAddress) + + if err != nil { + return err + } + + *o = HostAddress(varHostAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "ref") + delete(additionalProperties, "space") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostAddress struct { value *HostAddress isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associated_server.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associated_server.go index 7f122ff2..761f650c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associated_server.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associated_server.go @@ -22,9 +22,12 @@ type HostAssociatedServer struct { // The resource identifier. Id *string `json:"id,omitempty"` // The DHCP Config Profile name. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostAssociatedServer HostAssociatedServer + // NewHostAssociatedServer instantiates a new HostAssociatedServer object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o HostAssociatedServer) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostAssociatedServer) UnmarshalJSON(data []byte) (err error) { + varHostAssociatedServer := _HostAssociatedServer{} + + err = json.Unmarshal(data, &varHostAssociatedServer) + + if err != nil { + return err + } + + *o = HostAssociatedServer(varHostAssociatedServer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostAssociatedServer struct { value *HostAssociatedServer isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associations_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associations_response.go index 2c13531e..9d00a6c4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associations_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_associations_response.go @@ -24,9 +24,12 @@ type HostAssociationsResponse struct { HaGroups []HAGroup `json:"ha_groups,omitempty"` Host *Host `json:"host,omitempty"` // The list of subnets. - Subnets []Subnet `json:"subnets,omitempty"` + Subnets []Subnet `json:"subnets,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostAssociationsResponse HostAssociationsResponse + // NewHostAssociationsResponse instantiates a new HostAssociationsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -194,9 +197,38 @@ func (o HostAssociationsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Subnets) { toSerialize["subnets"] = o.Subnets } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostAssociationsResponse) UnmarshalJSON(data []byte) (err error) { + varHostAssociationsResponse := _HostAssociationsResponse{} + + err = json.Unmarshal(data, &varHostAssociationsResponse) + + if err != nil { + return err + } + + *o = HostAssociationsResponse(varHostAssociationsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_pkt_stats") + delete(additionalProperties, "ha_groups") + delete(additionalProperties, "host") + delete(additionalProperties, "subnets") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostAssociationsResponse struct { value *HostAssociationsResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_name.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_name.go index 70a12e2f..70741eb8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_name.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_host_name.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -28,7 +27,8 @@ type HostName struct { // When _true_, the name field is treated as primary name. There must be one and only one primary name in the list of host names. The primary name will be treated as the canonical name for all the aliases. PTR record will be generated only for the primary name. PrimaryName *bool `json:"primary_name,omitempty"` // The resource identifier. - Zone string `json:"zone"` + Zone string `json:"zone"` + AdditionalProperties map[string]interface{} } type _HostName HostName @@ -182,6 +182,11 @@ func (o HostName) ToMap() (map[string]interface{}, error) { toSerialize["primary_name"] = o.PrimaryName } toSerialize["zone"] = o.Zone + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -210,9 +215,7 @@ func (o *HostName) UnmarshalJSON(data []byte) (err error) { varHostName := _HostName{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHostName) + err = json.Unmarshal(data, &varHostName) if err != nil { return err @@ -220,6 +223,16 @@ func (o *HostName) UnmarshalJSON(data []byte) (err error) { *o = HostName(varHostName) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alias") + delete(additionalProperties, "name") + delete(additionalProperties, "primary_name") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hostname_rewrite_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hostname_rewrite_block.go index 199996fc..d92311bb 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hostname_rewrite_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_hostname_rewrite_block.go @@ -25,8 +25,11 @@ type HostnameRewriteBlock struct { HostnameRewriteEnabled *bool `json:"hostname_rewrite_enabled,omitempty"` // The inheritance configuration for _hostname_rewrite_regex_ field. HostnameRewriteRegex *string `json:"hostname_rewrite_regex,omitempty"` + AdditionalProperties map[string]interface{} } +type _HostnameRewriteBlock HostnameRewriteBlock + // NewHostnameRewriteBlock instantiates a new HostnameRewriteBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o HostnameRewriteBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.HostnameRewriteRegex) { toSerialize["hostname_rewrite_regex"] = o.HostnameRewriteRegex } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *HostnameRewriteBlock) UnmarshalJSON(data []byte) (err error) { + varHostnameRewriteBlock := _HostnameRewriteBlock{} + + err = json.Unmarshal(data, &varHostnameRewriteBlock) + + if err != nil { + return err + } + + *o = HostnameRewriteBlock(varHostnameRewriteBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableHostnameRewriteBlock struct { value *HostnameRewriteBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ignore_item.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ignore_item.go index 09e5f0f1..93540ed4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ignore_item.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ignore_item.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -24,7 +23,8 @@ type IgnoreItem struct { // Type of ignore matching: client to ignore by client identifier (client hex or client text) or hardware to ignore by hardware identifier (MAC address). It can have one of the following values: * _client_hex_, * _client_text_, * _hardware_. Type string `json:"type"` // Value to match. - Value string `json:"value"` + Value string `json:"value"` + AdditionalProperties map[string]interface{} } type _IgnoreItem IgnoreItem @@ -108,6 +108,11 @@ func (o IgnoreItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -136,9 +141,7 @@ func (o *IgnoreItem) UnmarshalJSON(data []byte) (err error) { varIgnoreItem := _IgnoreItem{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varIgnoreItem) + err = json.Unmarshal(data, &varIgnoreItem) if err != nil { return err @@ -146,6 +149,14 @@ func (o *IgnoreItem) UnmarshalJSON(data []byte) (err error) { *o = IgnoreItem(varIgnoreItem) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_assigned_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_assigned_host.go index fdf9c2d8..47bf592d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_assigned_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_assigned_host.go @@ -24,9 +24,12 @@ type InheritanceAssignedHost struct { // The resource identifier. Host *string `json:"host,omitempty"` // The on-prem host ID. - Ophid *string `json:"ophid,omitempty"` + Ophid *string `json:"ophid,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceAssignedHost InheritanceAssignedHost + // NewInheritanceAssignedHost instantiates a new InheritanceAssignedHost object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -159,9 +162,37 @@ func (o InheritanceAssignedHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ophid) { toSerialize["ophid"] = o.Ophid } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceAssignedHost) UnmarshalJSON(data []byte) (err error) { + varInheritanceAssignedHost := _InheritanceAssignedHost{} + + err = json.Unmarshal(data, &varInheritanceAssignedHost) + + if err != nil { + return err + } + + *o = InheritanceAssignedHost(varInheritanceAssignedHost) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "display_name") + delete(additionalProperties, "host") + delete(additionalProperties, "ophid") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceAssignedHost struct { value *InheritanceAssignedHost isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_bool.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_bool.go index 50ed5852..07251d65 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_bool.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_bool.go @@ -26,9 +26,12 @@ type InheritanceInheritedBool struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *bool `json:"value,omitempty"` + Value *bool `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceInheritedBool InheritanceInheritedBool + // NewInheritanceInheritedBool instantiates a new InheritanceInheritedBool object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritanceInheritedBool) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceInheritedBool) UnmarshalJSON(data []byte) (err error) { + varInheritanceInheritedBool := _InheritanceInheritedBool{} + + err = json.Unmarshal(data, &varInheritanceInheritedBool) + + if err != nil { + return err + } + + *o = InheritanceInheritedBool(varInheritanceInheritedBool) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceInheritedBool struct { value *InheritanceInheritedBool isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_float.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_float.go index 8c98855f..c5a888b7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_float.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_float.go @@ -26,9 +26,12 @@ type InheritanceInheritedFloat struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *float32 `json:"value,omitempty"` + Value *float32 `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceInheritedFloat InheritanceInheritedFloat + // NewInheritanceInheritedFloat instantiates a new InheritanceInheritedFloat object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritanceInheritedFloat) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceInheritedFloat) UnmarshalJSON(data []byte) (err error) { + varInheritanceInheritedFloat := _InheritanceInheritedFloat{} + + err = json.Unmarshal(data, &varInheritanceInheritedFloat) + + if err != nil { + return err + } + + *o = InheritanceInheritedFloat(varInheritanceInheritedFloat) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceInheritedFloat struct { value *InheritanceInheritedFloat isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_identifier.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_identifier.go index 30f2eced..7fd3e029 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_identifier.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_identifier.go @@ -26,9 +26,12 @@ type InheritanceInheritedIdentifier struct { // The resource identifier. Source *string `json:"source,omitempty"` // The resource identifier. - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceInheritedIdentifier InheritanceInheritedIdentifier + // NewInheritanceInheritedIdentifier instantiates a new InheritanceInheritedIdentifier object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritanceInheritedIdentifier) ToMap() (map[string]interface{}, error) if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceInheritedIdentifier) UnmarshalJSON(data []byte) (err error) { + varInheritanceInheritedIdentifier := _InheritanceInheritedIdentifier{} + + err = json.Unmarshal(data, &varInheritanceInheritedIdentifier) + + if err != nil { + return err + } + + *o = InheritanceInheritedIdentifier(varInheritanceInheritedIdentifier) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceInheritedIdentifier struct { value *InheritanceInheritedIdentifier isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_string.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_string.go index e5071108..c1737dc8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_string.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_string.go @@ -26,9 +26,12 @@ type InheritanceInheritedString struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceInheritedString InheritanceInheritedString + // NewInheritanceInheritedString instantiates a new InheritanceInheritedString object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritanceInheritedString) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceInheritedString) UnmarshalJSON(data []byte) (err error) { + varInheritanceInheritedString := _InheritanceInheritedString{} + + err = json.Unmarshal(data, &varInheritanceInheritedString) + + if err != nil { + return err + } + + *o = InheritanceInheritedString(varInheritanceInheritedString) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceInheritedString struct { value *InheritanceInheritedString isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_u_int32.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_u_int32.go index 59838917..629bb6e2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_u_int32.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inheritance_inherited_u_int32.go @@ -26,9 +26,12 @@ type InheritanceInheritedUInt32 struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value *int64 `json:"value,omitempty"` + Value *int64 `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritanceInheritedUInt32 InheritanceInheritedUInt32 + // NewInheritanceInheritedUInt32 instantiates a new InheritanceInheritedUInt32 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritanceInheritedUInt32) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritanceInheritedUInt32) UnmarshalJSON(data []byte) (err error) { + varInheritanceInheritedUInt32 := _InheritanceInheritedUInt32{} + + err = json.Unmarshal(data, &varInheritanceInheritedUInt32) + + if err != nil { + return err + } + + *o = InheritanceInheritedUInt32(varInheritanceInheritedUInt32) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritanceInheritedUInt32 struct { value *InheritanceInheritedUInt32 isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_config.go index a1d986e1..6c52e66e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_config.go @@ -19,15 +19,18 @@ var _ MappedNullable = &InheritedASMConfig{} // InheritedASMConfig The inheritance configuration for the __ASMConfig__ object. type InheritedASMConfig struct { - AsmEnableBlock *InheritedAsmEnableBlock `json:"asm_enable_block,omitempty"` - AsmGrowthBlock *InheritedAsmGrowthBlock `json:"asm_growth_block,omitempty"` - AsmThreshold *InheritanceInheritedUInt32 `json:"asm_threshold,omitempty"` - ForecastPeriod *InheritanceInheritedUInt32 `json:"forecast_period,omitempty"` - History *InheritanceInheritedUInt32 `json:"history,omitempty"` - MinTotal *InheritanceInheritedUInt32 `json:"min_total,omitempty"` - MinUnused *InheritanceInheritedUInt32 `json:"min_unused,omitempty"` + AsmEnableBlock *InheritedAsmEnableBlock `json:"asm_enable_block,omitempty"` + AsmGrowthBlock *InheritedAsmGrowthBlock `json:"asm_growth_block,omitempty"` + AsmThreshold *InheritanceInheritedUInt32 `json:"asm_threshold,omitempty"` + ForecastPeriod *InheritanceInheritedUInt32 `json:"forecast_period,omitempty"` + History *InheritanceInheritedUInt32 `json:"history,omitempty"` + MinTotal *InheritanceInheritedUInt32 `json:"min_total,omitempty"` + MinUnused *InheritanceInheritedUInt32 `json:"min_unused,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedASMConfig InheritedASMConfig + // NewInheritedASMConfig instantiates a new InheritedASMConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -300,9 +303,41 @@ func (o InheritedASMConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.MinUnused) { toSerialize["min_unused"] = o.MinUnused } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedASMConfig) UnmarshalJSON(data []byte) (err error) { + varInheritedASMConfig := _InheritedASMConfig{} + + err = json.Unmarshal(data, &varInheritedASMConfig) + + if err != nil { + return err + } + + *o = InheritedASMConfig(varInheritedASMConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_enable_block") + delete(additionalProperties, "asm_growth_block") + delete(additionalProperties, "asm_threshold") + delete(additionalProperties, "forecast_period") + delete(additionalProperties, "history") + delete(additionalProperties, "min_total") + delete(additionalProperties, "min_unused") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedASMConfig struct { value *InheritedASMConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_enable_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_enable_block.go index 3fc46087..36386d9c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_enable_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_enable_block.go @@ -24,10 +24,13 @@ type InheritedAsmEnableBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *AsmEnableBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *AsmEnableBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedAsmEnableBlock InheritedAsmEnableBlock + // NewInheritedAsmEnableBlock instantiates a new InheritedAsmEnableBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedAsmEnableBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedAsmEnableBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedAsmEnableBlock := _InheritedAsmEnableBlock{} + + err = json.Unmarshal(data, &varInheritedAsmEnableBlock) + + if err != nil { + return err + } + + *o = InheritedAsmEnableBlock(varInheritedAsmEnableBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedAsmEnableBlock struct { value *InheritedAsmEnableBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_growth_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_growth_block.go index fc3e1ac0..eb3c84da 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_growth_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_asm_growth_block.go @@ -24,10 +24,13 @@ type InheritedAsmGrowthBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *AsmGrowthBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *AsmGrowthBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedAsmGrowthBlock InheritedAsmGrowthBlock + // NewInheritedAsmGrowthBlock instantiates a new InheritedAsmGrowthBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedAsmGrowthBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedAsmGrowthBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedAsmGrowthBlock := _InheritedAsmGrowthBlock{} + + err = json.Unmarshal(data, &varInheritedAsmGrowthBlock) + + if err != nil { + return err + } + + *o = InheritedAsmGrowthBlock(varInheritedAsmGrowthBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedAsmGrowthBlock struct { value *InheritedAsmGrowthBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_block.go index dc7922a1..604e84c9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_block.go @@ -24,10 +24,13 @@ type InheritedDDNSBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *DDNSBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *DDNSBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDDNSBlock InheritedDDNSBlock + // NewInheritedDDNSBlock instantiates a new InheritedDDNSBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedDDNSBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDDNSBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedDDNSBlock := _InheritedDDNSBlock{} + + err = json.Unmarshal(data, &varInheritedDDNSBlock) + + if err != nil { + return err + } + + *o = InheritedDDNSBlock(varInheritedDDNSBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDDNSBlock struct { value *InheritedDDNSBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_hostname_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_hostname_block.go index 3b99cadf..c58326e9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_hostname_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_hostname_block.go @@ -24,10 +24,13 @@ type InheritedDDNSHostnameBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *DDNSHostnameBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *DDNSHostnameBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDDNSHostnameBlock InheritedDDNSHostnameBlock + // NewInheritedDDNSHostnameBlock instantiates a new InheritedDDNSHostnameBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedDDNSHostnameBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDDNSHostnameBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedDDNSHostnameBlock := _InheritedDDNSHostnameBlock{} + + err = json.Unmarshal(data, &varInheritedDDNSHostnameBlock) + + if err != nil { + return err + } + + *o = InheritedDDNSHostnameBlock(varInheritedDDNSHostnameBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDDNSHostnameBlock struct { value *InheritedDDNSHostnameBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_update_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_update_block.go index df1cb3d4..22b6f7e3 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_update_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_ddns_update_block.go @@ -24,10 +24,13 @@ type InheritedDDNSUpdateBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *DDNSUpdateBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *DDNSUpdateBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDDNSUpdateBlock InheritedDDNSUpdateBlock + // NewInheritedDDNSUpdateBlock instantiates a new InheritedDDNSUpdateBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedDDNSUpdateBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDDNSUpdateBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedDDNSUpdateBlock := _InheritedDDNSUpdateBlock{} + + err = json.Unmarshal(data, &varInheritedDDNSUpdateBlock) + + if err != nil { + return err + } + + *o = InheritedDDNSUpdateBlock(varInheritedDDNSUpdateBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDDNSUpdateBlock struct { value *InheritedDDNSUpdateBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config.go index f821f4d7..8016d219 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config.go @@ -30,8 +30,11 @@ type InheritedDHCPConfig struct { IgnoreList *InheritedDHCPConfigIgnoreItemList `json:"ignore_list,omitempty"` LeaseTime *InheritanceInheritedUInt32 `json:"lease_time,omitempty"` LeaseTimeV6 *InheritanceInheritedUInt32 `json:"lease_time_v6,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPConfig InheritedDHCPConfig + // NewInheritedDHCPConfig instantiates a new InheritedDHCPConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -444,9 +447,45 @@ func (o InheritedDHCPConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.LeaseTimeV6) { toSerialize["lease_time_v6"] = o.LeaseTimeV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPConfig) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPConfig := _InheritedDHCPConfig{} + + err = json.Unmarshal(data, &varInheritedDHCPConfig) + + if err != nil { + return err + } + + *o = InheritedDHCPConfig(varInheritedDHCPConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "abandoned_reclaim_time") + delete(additionalProperties, "abandoned_reclaim_time_v6") + delete(additionalProperties, "allow_unknown") + delete(additionalProperties, "allow_unknown_v6") + delete(additionalProperties, "echo_client_id") + delete(additionalProperties, "filters") + delete(additionalProperties, "filters_v6") + delete(additionalProperties, "ignore_client_uid") + delete(additionalProperties, "ignore_list") + delete(additionalProperties, "lease_time") + delete(additionalProperties, "lease_time_v6") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPConfig struct { value *InheritedDHCPConfig isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_filter_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_filter_list.go index e7894bbf..3d7266bf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_filter_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_filter_list.go @@ -26,9 +26,12 @@ type InheritedDHCPConfigFilterList struct { // The resource identifier. Source *string `json:"source,omitempty"` // The resource identifier. - Value []string `json:"value,omitempty"` + Value []string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPConfigFilterList InheritedDHCPConfigFilterList + // NewInheritedDHCPConfigFilterList instantiates a new InheritedDHCPConfigFilterList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritedDHCPConfigFilterList) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPConfigFilterList) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPConfigFilterList := _InheritedDHCPConfigFilterList{} + + err = json.Unmarshal(data, &varInheritedDHCPConfigFilterList) + + if err != nil { + return err + } + + *o = InheritedDHCPConfigFilterList(varInheritedDHCPConfigFilterList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPConfigFilterList struct { value *InheritedDHCPConfigFilterList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_ignore_item_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_ignore_item_list.go index 79b8c0dc..a425c3dd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_ignore_item_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_config_ignore_item_list.go @@ -26,9 +26,12 @@ type InheritedDHCPConfigIgnoreItemList struct { // The resource identifier. Source *string `json:"source,omitempty"` // The inherited value. - Value []IgnoreItem `json:"value,omitempty"` + Value []IgnoreItem `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPConfigIgnoreItemList InheritedDHCPConfigIgnoreItemList + // NewInheritedDHCPConfigIgnoreItemList instantiates a new InheritedDHCPConfigIgnoreItemList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o InheritedDHCPConfigIgnoreItemList) ToMap() (map[string]interface{}, erro if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPConfigIgnoreItemList) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPConfigIgnoreItemList := _InheritedDHCPConfigIgnoreItemList{} + + err = json.Unmarshal(data, &varInheritedDHCPConfigIgnoreItemList) + + if err != nil { + return err + } + + *o = InheritedDHCPConfigIgnoreItemList(varInheritedDHCPConfigIgnoreItemList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPConfigIgnoreItemList struct { value *InheritedDHCPConfigIgnoreItemList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option.go index 993cebda..dbba2aad 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option.go @@ -24,10 +24,13 @@ type InheritedDHCPOption struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *InheritedDHCPOptionItem `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *InheritedDHCPOptionItem `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPOption InheritedDHCPOption + // NewInheritedDHCPOption instantiates a new InheritedDHCPOption object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedDHCPOption) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPOption) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPOption := _InheritedDHCPOption{} + + err = json.Unmarshal(data, &varInheritedDHCPOption) + + if err != nil { + return err + } + + *o = InheritedDHCPOption(varInheritedDHCPOption) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPOption struct { value *InheritedDHCPOption isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_item.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_item.go index 00e3f4fd..9b70f203 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_item.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_item.go @@ -21,9 +21,12 @@ var _ MappedNullable = &InheritedDHCPOptionItem{} type InheritedDHCPOptionItem struct { Option *OptionItem `json:"option,omitempty"` // The resource identifier. - OverridingGroup *string `json:"overriding_group,omitempty"` + OverridingGroup *string `json:"overriding_group,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPOptionItem InheritedDHCPOptionItem + // NewInheritedDHCPOptionItem instantiates a new InheritedDHCPOptionItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -121,9 +124,36 @@ func (o InheritedDHCPOptionItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.OverridingGroup) { toSerialize["overriding_group"] = o.OverridingGroup } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPOptionItem) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPOptionItem := _InheritedDHCPOptionItem{} + + err = json.Unmarshal(data, &varInheritedDHCPOptionItem) + + if err != nil { + return err + } + + *o = InheritedDHCPOptionItem(varInheritedDHCPOptionItem) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "option") + delete(additionalProperties, "overriding_group") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPOptionItem struct { value *InheritedDHCPOptionItem isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_list.go index bbeb3a6e..6098f720 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_dhcp_option_list.go @@ -22,9 +22,12 @@ type InheritedDHCPOptionList struct { // The inheritance setting. Valid values are: * _inherit_: Use the inherited value. * _block_: Don't use the inherited value. Defaults to _inherit_. Action *string `json:"action,omitempty"` // The inherited DHCP option values. - Value []InheritedDHCPOption `json:"value,omitempty"` + Value []InheritedDHCPOption `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedDHCPOptionList InheritedDHCPOptionList + // NewInheritedDHCPOptionList instantiates a new InheritedDHCPOptionList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o InheritedDHCPOptionList) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedDHCPOptionList) UnmarshalJSON(data []byte) (err error) { + varInheritedDHCPOptionList := _InheritedDHCPOptionList{} + + err = json.Unmarshal(data, &varInheritedDHCPOptionList) + + if err != nil { + return err + } + + *o = InheritedDHCPOptionList(varInheritedDHCPOptionList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedDHCPOptionList struct { value *InheritedDHCPOptionList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_hostname_rewrite_block.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_hostname_rewrite_block.go index 2be2c2b4..6819fed8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_hostname_rewrite_block.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_inherited_hostname_rewrite_block.go @@ -24,10 +24,13 @@ type InheritedHostnameRewriteBlock struct { // The human-readable display name for the object referred to by _source_. DisplayName *string `json:"display_name,omitempty"` // The resource identifier. - Source *string `json:"source,omitempty"` - Value *HostnameRewriteBlock `json:"value,omitempty"` + Source *string `json:"source,omitempty"` + Value *HostnameRewriteBlock `json:"value,omitempty"` + AdditionalProperties map[string]interface{} } +type _InheritedHostnameRewriteBlock InheritedHostnameRewriteBlock + // NewInheritedHostnameRewriteBlock instantiates a new InheritedHostnameRewriteBlock object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -195,9 +198,38 @@ func (o InheritedHostnameRewriteBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.Value) { toSerialize["value"] = o.Value } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *InheritedHostnameRewriteBlock) UnmarshalJSON(data []byte) (err error) { + varInheritedHostnameRewriteBlock := _InheritedHostnameRewriteBlock{} + + err = json.Unmarshal(data, &varInheritedHostnameRewriteBlock) + + if err != nil { + return err + } + + *o = InheritedHostnameRewriteBlock(varInheritedHostnameRewriteBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "display_name") + delete(additionalProperties, "source") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableInheritedHostnameRewriteBlock struct { value *InheritedHostnameRewriteBlock isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space.go index d8352926..b70bfece 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -78,6 +77,7 @@ type IPSpace struct { UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } type _IPSpace IPSpace @@ -1225,6 +1225,11 @@ func (o IPSpace) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1252,9 +1257,7 @@ func (o *IPSpace) UnmarshalJSON(data []byte) (err error) { varIPSpace := _IPSpace{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varIPSpace) + err = json.Unmarshal(data, &varIPSpace) if err != nil { return err @@ -1262,6 +1265,43 @@ func (o *IPSpace) UnmarshalJSON(data []byte) (err error) { *o = IPSpace(varIPSpace) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_config") + delete(additionalProperties, "asm_scope_flag") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_options_v6") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + delete(additionalProperties, "threshold") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "utilization") + delete(additionalProperties, "utilization_v6") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space_inheritance.go index 2bb45ae7..26ac153b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ip_space_inheritance.go @@ -36,8 +36,11 @@ type IPSpaceInheritance struct { HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` HostnameRewriteBlock *InheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } +type _IPSpaceInheritance IPSpaceInheritance + // NewIPSpaceInheritance instantiates a new IPSpaceInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -660,9 +663,51 @@ func (o IPSpaceInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *IPSpaceInheritance) UnmarshalJSON(data []byte) (err error) { + varIPSpaceInheritance := _IPSpaceInheritance{} + + err = json.Unmarshal(data, &varIPSpaceInheritance) + + if err != nil { + return err + } + + *o = IPSpaceInheritance(varIPSpaceInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asm_config") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_enabled") + delete(additionalProperties, "ddns_hostname_block") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_block") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_options_v6") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_block") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableIPSpaceInheritance struct { value *IPSpaceInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ipam_host.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ipam_host.go index a3705c20..dd8d8872 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ipam_host.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_ipam_host.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -39,7 +38,8 @@ type IpamHost struct { // The tags for the IPAM host in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _IpamHost IpamHost @@ -377,6 +377,11 @@ func (o IpamHost) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -404,9 +409,7 @@ func (o *IpamHost) UnmarshalJSON(data []byte) (err error) { varIpamHost := _IpamHost{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varIpamHost) + err = json.Unmarshal(data, &varIpamHost) if err != nil { return err @@ -414,6 +417,21 @@ func (o *IpamHost) UnmarshalJSON(data []byte) (err error) { *o = IpamHost(varIpamHost) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "addresses") + delete(additionalProperties, "auto_generate_records") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "host_names") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_kerberos_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_kerberos_key.go index d8dad588..6a662265 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_kerberos_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_kerberos_key.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -32,7 +31,8 @@ type KerberosKey struct { // Upload time for the key. UploadedAt *string `json:"uploaded_at,omitempty"` // The version number (KVNO) of the key. - Version *int64 `json:"version,omitempty"` + Version *int64 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } type _KerberosKey KerberosKey @@ -265,6 +265,11 @@ func (o KerberosKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -292,9 +297,7 @@ func (o *KerberosKey) UnmarshalJSON(data []byte) (err error) { varKerberosKey := _KerberosKey{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varKerberosKey) + err = json.Unmarshal(data, &varKerberosKey) if err != nil { return err @@ -302,6 +305,18 @@ func (o *KerberosKey) UnmarshalJSON(data []byte) (err error) { *o = KerberosKey(varKerberosKey) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "domain") + delete(additionalProperties, "key") + delete(additionalProperties, "principal") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_address.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_address.go index a6b85246..5a685c55 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_address.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_address.go @@ -22,9 +22,12 @@ type LeaseAddress struct { // The IP address for the DHCP lease in IPv4 or IPv6 format within the IP space specified by _space_ field. Address *string `json:"address,omitempty"` // The resource identifier. - Space *string `json:"space,omitempty"` + Space *string `json:"space,omitempty"` + AdditionalProperties map[string]interface{} } +type _LeaseAddress LeaseAddress + // NewLeaseAddress instantiates a new LeaseAddress object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o LeaseAddress) ToMap() (map[string]interface{}, error) { if !IsNil(o.Space) { toSerialize["space"] = o.Space } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *LeaseAddress) UnmarshalJSON(data []byte) (err error) { + varLeaseAddress := _LeaseAddress{} + + err = json.Unmarshal(data, &varLeaseAddress) + + if err != nil { + return err + } + + *o = LeaseAddress(varLeaseAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "space") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableLeaseAddress struct { value *LeaseAddress isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_range.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_range.go index e867d7eb..e7e2600b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_range.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_range.go @@ -20,9 +20,12 @@ var _ MappedNullable = &LeaseRange{} // LeaseRange struct for LeaseRange type LeaseRange struct { // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} } +type _LeaseRange LeaseRange + // NewLeaseRange instantiates a new LeaseRange object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o LeaseRange) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *LeaseRange) UnmarshalJSON(data []byte) (err error) { + varLeaseRange := _LeaseRange{} + + err = json.Unmarshal(data, &varLeaseRange) + + if err != nil { + return err + } + + *o = LeaseRange(varLeaseRange) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableLeaseRange struct { value *LeaseRange isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_subnet.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_subnet.go index 0cdc3a7f..1656d373 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_subnet.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_lease_subnet.go @@ -20,9 +20,12 @@ var _ MappedNullable = &LeaseSubnet{} // LeaseSubnet struct for LeaseSubnet type LeaseSubnet struct { // The resource identifier. - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} } +type _LeaseSubnet LeaseSubnet + // NewLeaseSubnet instantiates a new LeaseSubnet object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o LeaseSubnet) ToMap() (map[string]interface{}, error) { if !IsNil(o.Id) { toSerialize["id"] = o.Id } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *LeaseSubnet) UnmarshalJSON(data []byte) (err error) { + varLeaseSubnet := _LeaseSubnet{} + + err = json.Unmarshal(data, &varLeaseSubnet) + + if err != nil { + return err + } + + *o = LeaseSubnet(varLeaseSubnet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableLeaseSubnet struct { value *LeaseSubnet isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_leases_command.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_leases_command.go index ef1526cc..fcf3e661 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_leases_command.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_leases_command.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -28,7 +27,8 @@ type LeasesCommand struct { // The list of ranges to execute the \"command\" on. For now it is limited to 1 range. Range []LeaseRange `json:"range,omitempty"` // The list of subnets to execute the \"command\" on. For now it is limited to 1 subnet. - Subnet []LeaseSubnet `json:"subnet,omitempty"` + Subnet []LeaseSubnet `json:"subnet,omitempty"` + AdditionalProperties map[string]interface{} } type _LeasesCommand LeasesCommand @@ -191,6 +191,11 @@ func (o LeasesCommand) ToMap() (map[string]interface{}, error) { if !IsNil(o.Subnet) { toSerialize["subnet"] = o.Subnet } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -218,9 +223,7 @@ func (o *LeasesCommand) UnmarshalJSON(data []byte) (err error) { varLeasesCommand := _LeasesCommand{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varLeasesCommand) + err = json.Unmarshal(data, &varLeasesCommand) if err != nil { return err @@ -228,6 +231,16 @@ func (o *LeasesCommand) UnmarshalJSON(data []byte) (err error) { *o = LeasesCommand(varLeasesCommand) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "command") + delete(additionalProperties, "range") + delete(additionalProperties, "subnet") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_block_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_block_response.go index e9458e29..c94aa1ae 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_block_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_block_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListAddressBlockResponse{} // ListAddressBlockResponse The response format to retrieve __AddressBlock__ objects. type ListAddressBlockResponse struct { // A list of AddressBlock objects. - Results []AddressBlock `json:"results,omitempty"` + Results []AddressBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListAddressBlockResponse ListAddressBlockResponse + // NewListAddressBlockResponse instantiates a new ListAddressBlockResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListAddressBlockResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListAddressBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListAddressBlockResponse := _ListAddressBlockResponse{} + + err = json.Unmarshal(data, &varListAddressBlockResponse) + + if err != nil { + return err + } + + *o = ListAddressBlockResponse(varListAddressBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListAddressBlockResponse struct { value *ListAddressBlockResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_response.go index bc6748d2..71e49025 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_address_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListAddressResponse{} // ListAddressResponse The response format to retrieve __Address__ objects. type ListAddressResponse struct { // The list of Address objects. - Results []Address `json:"results,omitempty"` + Results []Address `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListAddressResponse ListAddressResponse + // NewListAddressResponse instantiates a new ListAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListAddressResponse) UnmarshalJSON(data []byte) (err error) { + varListAddressResponse := _ListAddressResponse{} + + err = json.Unmarshal(data, &varListAddressResponse) + + if err != nil { + return err + } + + *o = ListAddressResponse(varListAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListAddressResponse struct { value *ListAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_asm_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_asm_response.go index d7dbaf9f..51163294 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_asm_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_asm_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListASMResponse{} // ListASMResponse The response format to retrieve __ASM__ objects. type ListASMResponse struct { // The list of ASM objects. - Results []ASM `json:"results,omitempty"` + Results []ASM `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListASMResponse ListASMResponse + // NewListASMResponse instantiates a new ListASMResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListASMResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListASMResponse) UnmarshalJSON(data []byte) (err error) { + varListASMResponse := _ListASMResponse{} + + err = json.Unmarshal(data, &varListASMResponse) + + if err != nil { + return err + } + + *o = ListASMResponse(varListASMResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListASMResponse struct { value *ListASMResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_dns_usage_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_dns_usage_response.go index 2d3d42a2..a1f6ff05 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_dns_usage_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_dns_usage_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListDNSUsageResponse{} // ListDNSUsageResponse The response format to retrieve __DNSUsage__ objects. type ListDNSUsageResponse struct { // The list of DNSUsage objects. - Results []DNSUsage `json:"results,omitempty"` + Results []DNSUsage `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListDNSUsageResponse ListDNSUsageResponse + // NewListDNSUsageResponse instantiates a new ListDNSUsageResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListDNSUsageResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListDNSUsageResponse) UnmarshalJSON(data []byte) (err error) { + varListDNSUsageResponse := _ListDNSUsageResponse{} + + err = json.Unmarshal(data, &varListDNSUsageResponse) + + if err != nil { + return err + } + + *o = ListDNSUsageResponse(varListDNSUsageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListDNSUsageResponse struct { value *ListDNSUsageResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_filter_response.go index edaf400e..a90a1e65 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_filter_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListFilterResponse{} // ListFilterResponse The response format to retrieve DHCP __Filter__ objects. type ListFilterResponse struct { // The list of DHCP Filter objects. - Results []Filter `json:"results,omitempty"` + Results []Filter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListFilterResponse ListFilterResponse + // NewListFilterResponse instantiates a new ListFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListFilterResponse) UnmarshalJSON(data []byte) (err error) { + varListFilterResponse := _ListFilterResponse{} + + err = json.Unmarshal(data, &varListFilterResponse) + + if err != nil { + return err + } + + *o = ListFilterResponse(varListFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListFilterResponse struct { value *ListFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_fixed_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_fixed_address_response.go index 32f118e8..f23bc303 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_fixed_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_fixed_address_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListFixedAddressResponse{} // ListFixedAddressResponse The response format to retrieve __FixedAddress__ objects. type ListFixedAddressResponse struct { // The list of FixedAddress objects. - Results []FixedAddress `json:"results,omitempty"` + Results []FixedAddress `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListFixedAddressResponse ListFixedAddressResponse + // NewListFixedAddressResponse instantiates a new ListFixedAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListFixedAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListFixedAddressResponse) UnmarshalJSON(data []byte) (err error) { + varListFixedAddressResponse := _ListFixedAddressResponse{} + + err = json.Unmarshal(data, &varListFixedAddressResponse) + + if err != nil { + return err + } + + *o = ListFixedAddressResponse(varListFixedAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListFixedAddressResponse struct { value *ListFixedAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ha_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ha_group_response.go index 548d5ead..b742c7e2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ha_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ha_group_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListHAGroupResponse{} // ListHAGroupResponse The response format to retrieve __HAGroup__ objects. type ListHAGroupResponse struct { // The list of HAGroup objects. - Results []HAGroup `json:"results,omitempty"` + Results []HAGroup `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListHAGroupResponse ListHAGroupResponse + // NewListHAGroupResponse instantiates a new ListHAGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListHAGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListHAGroupResponse) UnmarshalJSON(data []byte) (err error) { + varListHAGroupResponse := _ListHAGroupResponse{} + + err = json.Unmarshal(data, &varListHAGroupResponse) + + if err != nil { + return err + } + + *o = ListHAGroupResponse(varListHAGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListHAGroupResponse struct { value *ListHAGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_hardware_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_hardware_filter_response.go index 2de598ad..cddb9e2c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_hardware_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_hardware_filter_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListHardwareFilterResponse{} // ListHardwareFilterResponse The response format to retrieve __HardwareFilter__ objects. type ListHardwareFilterResponse struct { // The list of HardwareFilter objects. - Results []HardwareFilter `json:"results,omitempty"` + Results []HardwareFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListHardwareFilterResponse ListHardwareFilterResponse + // NewListHardwareFilterResponse instantiates a new ListHardwareFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListHardwareFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListHardwareFilterResponse) UnmarshalJSON(data []byte) (err error) { + varListHardwareFilterResponse := _ListHardwareFilterResponse{} + + err = json.Unmarshal(data, &varListHardwareFilterResponse) + + if err != nil { + return err + } + + *o = ListHardwareFilterResponse(varListHardwareFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListHardwareFilterResponse struct { value *ListHardwareFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_host_response.go index 36958bcd..14c6b878 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_host_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListHostResponse{} // ListHostResponse The response format to retrieve DHCP __Host__ objects. type ListHostResponse struct { // The list of DHCP Host objects. - Results []Host `json:"results,omitempty"` + Results []Host `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListHostResponse ListHostResponse + // NewListHostResponse instantiates a new ListHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListHostResponse) UnmarshalJSON(data []byte) (err error) { + varListHostResponse := _ListHostResponse{} + + err = json.Unmarshal(data, &varListHostResponse) + + if err != nil { + return err + } + + *o = ListHostResponse(varListHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListHostResponse struct { value *ListHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ip_space_response.go index 5eea76af..959aed3c 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ip_space_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListIPSpaceResponse{} // ListIPSpaceResponse The response format to retrieve __IPSpace__ objects. type ListIPSpaceResponse struct { // The list of IPSpace objects. - Results []IPSpace `json:"results,omitempty"` + Results []IPSpace `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListIPSpaceResponse ListIPSpaceResponse + // NewListIPSpaceResponse instantiates a new ListIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varListIPSpaceResponse := _ListIPSpaceResponse{} + + err = json.Unmarshal(data, &varListIPSpaceResponse) + + if err != nil { + return err + } + + *o = ListIPSpaceResponse(varListIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListIPSpaceResponse struct { value *ListIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ipam_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ipam_host_response.go index 0edcd5ca..92542fa6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ipam_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_ipam_host_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListIpamHostResponse{} // ListIpamHostResponse The response format to retrieve __IpamHost__ objects. type ListIpamHostResponse struct { // The list of IpamHost objects. - Results []IpamHost `json:"results,omitempty"` + Results []IpamHost `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListIpamHostResponse ListIpamHostResponse + // NewListIpamHostResponse instantiates a new ListIpamHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListIpamHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListIpamHostResponse) UnmarshalJSON(data []byte) (err error) { + varListIpamHostResponse := _ListIpamHostResponse{} + + err = json.Unmarshal(data, &varListIpamHostResponse) + + if err != nil { + return err + } + + *o = ListIpamHostResponse(varListIpamHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListIpamHostResponse struct { value *ListIpamHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_code_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_code_response.go index 57cc595b..89bf59f4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_code_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_code_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListOptionCodeResponse{} // ListOptionCodeResponse The response format to retrieve __OptionCode__ objects. type ListOptionCodeResponse struct { // The list of OptionCode objects. - Results []OptionCode `json:"results,omitempty"` + Results []OptionCode `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListOptionCodeResponse ListOptionCodeResponse + // NewListOptionCodeResponse instantiates a new ListOptionCodeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListOptionCodeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListOptionCodeResponse) UnmarshalJSON(data []byte) (err error) { + varListOptionCodeResponse := _ListOptionCodeResponse{} + + err = json.Unmarshal(data, &varListOptionCodeResponse) + + if err != nil { + return err + } + + *o = ListOptionCodeResponse(varListOptionCodeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListOptionCodeResponse struct { value *ListOptionCodeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_filter_response.go index 6606f39d..f97d3383 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_filter_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListOptionFilterResponse{} // ListOptionFilterResponse The response format to retrieve __OptionFilter__ objects. type ListOptionFilterResponse struct { // The list of OptionFilter objects. - Results []OptionFilter `json:"results,omitempty"` + Results []OptionFilter `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListOptionFilterResponse ListOptionFilterResponse + // NewListOptionFilterResponse instantiates a new ListOptionFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListOptionFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListOptionFilterResponse) UnmarshalJSON(data []byte) (err error) { + varListOptionFilterResponse := _ListOptionFilterResponse{} + + err = json.Unmarshal(data, &varListOptionFilterResponse) + + if err != nil { + return err + } + + *o = ListOptionFilterResponse(varListOptionFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListOptionFilterResponse struct { value *ListOptionFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_group_response.go index e5176737..0ff6ca3b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_group_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListOptionGroupResponse{} // ListOptionGroupResponse The response format to retrieve __OptionGroup__ objects. type ListOptionGroupResponse struct { // A list of OptionGroup objects. - Results []OptionGroup `json:"results,omitempty"` + Results []OptionGroup `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListOptionGroupResponse ListOptionGroupResponse + // NewListOptionGroupResponse instantiates a new ListOptionGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListOptionGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListOptionGroupResponse) UnmarshalJSON(data []byte) (err error) { + varListOptionGroupResponse := _ListOptionGroupResponse{} + + err = json.Unmarshal(data, &varListOptionGroupResponse) + + if err != nil { + return err + } + + *o = ListOptionGroupResponse(varListOptionGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListOptionGroupResponse struct { value *ListOptionGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_space_response.go index 1824c571..ab3c80cc 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_option_space_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListOptionSpaceResponse{} // ListOptionSpaceResponse The response format to retrieve __OptionSpace__ objects. type ListOptionSpaceResponse struct { // The list of OptionSpace objects. - Results []OptionSpace `json:"results,omitempty"` + Results []OptionSpace `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListOptionSpaceResponse ListOptionSpaceResponse + // NewListOptionSpaceResponse instantiates a new ListOptionSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListOptionSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListOptionSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varListOptionSpaceResponse := _ListOptionSpaceResponse{} + + err = json.Unmarshal(data, &varListOptionSpaceResponse) + + if err != nil { + return err + } + + *o = ListOptionSpaceResponse(varListOptionSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListOptionSpaceResponse struct { value *ListOptionSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_range_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_range_response.go index 5deb6cec..5c828c84 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_range_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_range_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListRangeResponse{} // ListRangeResponse The response format to retrieve __Range__ objects. type ListRangeResponse struct { // The list of Range objects. - Results []Range `json:"results,omitempty"` + Results []Range `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListRangeResponse ListRangeResponse + // NewListRangeResponse instantiates a new ListRangeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListRangeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListRangeResponse) UnmarshalJSON(data []byte) (err error) { + varListRangeResponse := _ListRangeResponse{} + + err = json.Unmarshal(data, &varListRangeResponse) + + if err != nil { + return err + } + + *o = ListRangeResponse(varListRangeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListRangeResponse struct { value *ListRangeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_server_response.go index fc2e8596..6c262506 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_server_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListServerResponse{} // ListServerResponse The response format to retrieve __Server__ objects. type ListServerResponse struct { // The list of Server objects. - Results []Server `json:"results,omitempty"` + Results []Server `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListServerResponse ListServerResponse + // NewListServerResponse instantiates a new ListServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListServerResponse) UnmarshalJSON(data []byte) (err error) { + varListServerResponse := _ListServerResponse{} + + err = json.Unmarshal(data, &varListServerResponse) + + if err != nil { + return err + } + + *o = ListServerResponse(varListServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListServerResponse struct { value *ListServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_subnet_response.go index 289e0632..8c2f31f1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_list_subnet_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListSubnetResponse{} // ListSubnetResponse The response format to retrieve __Subnet__ objects. type ListSubnetResponse struct { // The list of Subnet objects. - Results []Subnet `json:"results,omitempty"` + Results []Subnet `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListSubnetResponse ListSubnetResponse + // NewListSubnetResponse instantiates a new ListSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListSubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varListSubnetResponse := _ListSubnetResponse{} + + err = json.Unmarshal(data, &varListSubnetResponse) + + if err != nil { + return err + } + + *o = ListSubnetResponse(varListSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListSubnetResponse struct { value *ListSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_name.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_name.go index 5b348406..3a4eee80 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_name.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_name.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -24,7 +23,8 @@ type Name struct { // The name expressed as a single label or FQDN. Name string `json:"name"` // The origin of the name. - Type string `json:"type"` + Type string `json:"type"` + AdditionalProperties map[string]interface{} } type _Name Name @@ -108,6 +108,11 @@ func (o Name) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -136,9 +141,7 @@ func (o *Name) UnmarshalJSON(data []byte) (err error) { varName := _Name{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varName) + err = json.Unmarshal(data, &varName) if err != nil { return err @@ -146,6 +149,14 @@ func (o *Name) UnmarshalJSON(data []byte) (err error) { *o = Name(varName) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_nameserver.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_nameserver.go index 8e5eb755..7ecf8f0a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_nameserver.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_nameserver.go @@ -33,9 +33,12 @@ type Nameserver struct { KerberosTkeyProtocol *string `json:"kerberos_tkey_protocol,omitempty"` Nameserver *string `json:"nameserver,omitempty"` // The Kerberos principal name of this DNS server that will receive updates. Defaults to empty. - ServerPrincipal *string `json:"server_principal,omitempty"` + ServerPrincipal *string `json:"server_principal,omitempty"` + AdditionalProperties map[string]interface{} } +type _Nameserver Nameserver + // NewNameserver instantiates a new Nameserver object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -343,9 +346,42 @@ func (o Nameserver) ToMap() (map[string]interface{}, error) { if !IsNil(o.ServerPrincipal) { toSerialize["server_principal"] = o.ServerPrincipal } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Nameserver) UnmarshalJSON(data []byte) (err error) { + varNameserver := _Nameserver{} + + err = json.Unmarshal(data, &varNameserver) + + if err != nil { + return err + } + + *o = Nameserver(varNameserver) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "client_principal") + delete(additionalProperties, "gss_tsig_fallback") + delete(additionalProperties, "kerberos_rekey_interval") + delete(additionalProperties, "kerberos_retry_interval") + delete(additionalProperties, "kerberos_tkey_lifetime") + delete(additionalProperties, "kerberos_tkey_protocol") + delete(additionalProperties, "nameserver") + delete(additionalProperties, "server_principal") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNameserver struct { value *Nameserver isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ab_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ab_response.go index f84b7d6d..4b29b06a 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ab_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ab_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NextAvailableABResponse{} // NextAvailableABResponse The Next Available Address Block object list response format. type NextAvailableABResponse struct { // The list of Next Available Address Block objects. - Results []AddressBlock `json:"results,omitempty"` + Results []AddressBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NextAvailableABResponse NextAvailableABResponse + // NewNextAvailableABResponse instantiates a new NextAvailableABResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NextAvailableABResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NextAvailableABResponse) UnmarshalJSON(data []byte) (err error) { + varNextAvailableABResponse := _NextAvailableABResponse{} + + err = json.Unmarshal(data, &varNextAvailableABResponse) + + if err != nil { + return err + } + + *o = NextAvailableABResponse(varNextAvailableABResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNextAvailableABResponse struct { value *NextAvailableABResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ip_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ip_response.go index b18d8ebd..6cf19a8f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ip_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_ip_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NextAvailableIPResponse{} // NextAvailableIPResponse The response format to retrieve the next available IP address. type NextAvailableIPResponse struct { // The list of next available IP address objects. - Results []Address `json:"results,omitempty"` + Results []Address `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NextAvailableIPResponse NextAvailableIPResponse + // NewNextAvailableIPResponse instantiates a new NextAvailableIPResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NextAvailableIPResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NextAvailableIPResponse) UnmarshalJSON(data []byte) (err error) { + varNextAvailableIPResponse := _NextAvailableIPResponse{} + + err = json.Unmarshal(data, &varNextAvailableIPResponse) + + if err != nil { + return err + } + + *o = NextAvailableIPResponse(varNextAvailableIPResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNextAvailableIPResponse struct { value *NextAvailableIPResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_subnet_response.go index 1ed897d8..657f4b5e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_next_available_subnet_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &NextAvailableSubnetResponse{} // NextAvailableSubnetResponse The Next Available Subnet object list response format. type NextAvailableSubnetResponse struct { // The list of Next Available Subnet objects. - Results []Subnet `json:"results,omitempty"` + Results []Subnet `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _NextAvailableSubnetResponse NextAvailableSubnetResponse + // NewNextAvailableSubnetResponse instantiates a new NextAvailableSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o NextAvailableSubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *NextAvailableSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varNextAvailableSubnetResponse := _NextAvailableSubnetResponse{} + + err = json.Unmarshal(data, &varNextAvailableSubnetResponse) + + if err != nil { + return err + } + + *o = NextAvailableSubnetResponse(varNextAvailableSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableNextAvailableSubnetResponse struct { value *NextAvailableSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_code.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_code.go index eb61a5c8..bca78bd4 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_code.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_code.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -41,7 +40,8 @@ type OptionCode struct { // The option type for the option code. Valid values are: * _address4_ * _address6_ * _boolean_ * _empty_ * _fqdn_ * _int8_ * _int16_ * _int32_ * _text_ * _uint8_ * _uint16_ * _uint32_ Type string `json:"type"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _OptionCode OptionCode @@ -387,6 +387,11 @@ func (o OptionCode) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -417,9 +422,7 @@ func (o *OptionCode) UnmarshalJSON(data []byte) (err error) { varOptionCode := _OptionCode{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varOptionCode) + err = json.Unmarshal(data, &varOptionCode) if err != nil { return err @@ -427,6 +430,22 @@ func (o *OptionCode) UnmarshalJSON(data []byte) (err error) { *o = OptionCode(varOptionCode) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "array") + delete(additionalProperties, "code") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "option_space") + delete(additionalProperties, "source") + delete(additionalProperties, "type") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter.go index 5942d0f1..b4015731 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -51,6 +50,7 @@ type OptionFilter struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } type _OptionFilter OptionFilter @@ -589,6 +589,11 @@ func (o OptionFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -617,9 +622,7 @@ func (o *OptionFilter) UnmarshalJSON(data []byte) (err error) { varOptionFilter := _OptionFilter{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varOptionFilter) + err = json.Unmarshal(data, &varOptionFilter) if err != nil { return err @@ -627,6 +630,27 @@ func (o *OptionFilter) UnmarshalJSON(data []byte) (err error) { *o = OptionFilter(varOptionFilter) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "id") + delete(additionalProperties, "lease_time") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol") + delete(additionalProperties, "role") + delete(additionalProperties, "rules") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule.go index 9185a6b7..3a454fa6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -28,7 +27,8 @@ type OptionFilterRule struct { // The value to match against. OptionValue *string `json:"option_value,omitempty"` // The offset where the substring match starts. This is used only if comparing the _option_value_ using any of the substring modes. - SubstringOffset *int64 `json:"substring_offset,omitempty"` + SubstringOffset *int64 `json:"substring_offset,omitempty"` + AdditionalProperties map[string]interface{} } type _OptionFilterRule OptionFilterRule @@ -182,6 +182,11 @@ func (o OptionFilterRule) ToMap() (map[string]interface{}, error) { if !IsNil(o.SubstringOffset) { toSerialize["substring_offset"] = o.SubstringOffset } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -210,9 +215,7 @@ func (o *OptionFilterRule) UnmarshalJSON(data []byte) (err error) { varOptionFilterRule := _OptionFilterRule{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varOptionFilterRule) + err = json.Unmarshal(data, &varOptionFilterRule) if err != nil { return err @@ -220,6 +223,16 @@ func (o *OptionFilterRule) UnmarshalJSON(data []byte) (err error) { *o = OptionFilterRule(varOptionFilterRule) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "compare") + delete(additionalProperties, "option_code") + delete(additionalProperties, "option_value") + delete(additionalProperties, "substring_offset") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule_list.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule_list.go index c543094a..8a4786d2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule_list.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_filter_rule_list.go @@ -22,9 +22,12 @@ type OptionFilterRuleList struct { // Indicates if this list should match if any or all rules match (_any_ or _all_). Match *string `json:"match,omitempty"` // The list of child rules. - Rules []OptionFilterRule `json:"rules,omitempty"` + Rules []OptionFilterRule `json:"rules,omitempty"` + AdditionalProperties map[string]interface{} } +type _OptionFilterRuleList OptionFilterRuleList + // NewOptionFilterRuleList instantiates a new OptionFilterRuleList object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -122,9 +125,36 @@ func (o OptionFilterRuleList) ToMap() (map[string]interface{}, error) { if !IsNil(o.Rules) { toSerialize["rules"] = o.Rules } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OptionFilterRuleList) UnmarshalJSON(data []byte) (err error) { + varOptionFilterRuleList := _OptionFilterRuleList{} + + err = json.Unmarshal(data, &varOptionFilterRuleList) + + if err != nil { + return err + } + + *o = OptionFilterRuleList(varOptionFilterRuleList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "match") + delete(additionalProperties, "rules") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOptionFilterRuleList struct { value *OptionFilterRuleList isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_group.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_group.go index d93fa5be..c4b27dd8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_group.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_group.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -37,7 +36,8 @@ type OptionGroup struct { // The tags for the option group in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _OptionGroup OptionGroup @@ -340,6 +340,11 @@ func (o OptionGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -367,9 +372,7 @@ func (o *OptionGroup) UnmarshalJSON(data []byte) (err error) { varOptionGroup := _OptionGroup{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varOptionGroup) + err = json.Unmarshal(data, &varOptionGroup) if err != nil { return err @@ -377,6 +380,20 @@ func (o *OptionGroup) UnmarshalJSON(data []byte) (err error) { *o = OptionGroup(varOptionGroup) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_item.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_item.go index 81bc3bf9..0af9b341 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_item.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_item.go @@ -26,9 +26,12 @@ type OptionItem struct { // The option value. OptionValue *string `json:"option_value,omitempty"` // The type of item. Valid values are: * _group_ * _option_ - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} } +type _OptionItem OptionItem + // NewOptionItem instantiates a new OptionItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -196,9 +199,38 @@ func (o OptionItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *OptionItem) UnmarshalJSON(data []byte) (err error) { + varOptionItem := _OptionItem{} + + err = json.Unmarshal(data, &varOptionItem) + + if err != nil { + return err + } + + *o = OptionItem(varOptionItem) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "option_code") + delete(additionalProperties, "option_value") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableOptionItem struct { value *OptionItem isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_space.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_space.go index 7e8e0f59..2bd674b1 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_space.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_option_space.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -35,7 +34,8 @@ type OptionSpace struct { // The tags for the option space in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _OptionSpace OptionSpace @@ -303,6 +303,11 @@ func (o OptionSpace) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -330,9 +335,7 @@ func (o *OptionSpace) UnmarshalJSON(data []byte) (err error) { varOptionSpace := _OptionSpace{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varOptionSpace) + err = json.Unmarshal(data, &varOptionSpace) if err != nil { return err @@ -340,6 +343,19 @@ func (o *OptionSpace) UnmarshalJSON(data []byte) (err error) { *o = OptionSpace(varOptionSpace) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_range.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_range.go index 867feb04..62ae1672 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_range.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_range.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -59,9 +58,10 @@ type Range struct { Tags map[string]interface{} `json:"tags,omitempty"` Threshold *UtilizationThreshold `json:"threshold,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Utilization *Utilization `json:"utilization,omitempty"` - UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Utilization *Utilization `json:"utilization,omitempty"` + UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + AdditionalProperties map[string]interface{} } type _Range Range @@ -845,6 +845,11 @@ func (o Range) ToMap() (map[string]interface{}, error) { if !IsNil(o.UtilizationV6) { toSerialize["utilization_v6"] = o.UtilizationV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -873,9 +878,7 @@ func (o *Range) UnmarshalJSON(data []byte) (err error) { varRange := _Range{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRange) + err = json.Unmarshal(data, &varRange) if err != nil { return err @@ -883,6 +886,34 @@ func (o *Range) UnmarshalJSON(data []byte) (err error) { *o = Range(varRange) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "dhcp_host") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "disable_dhcp") + delete(additionalProperties, "end") + delete(additionalProperties, "exclusion_ranges") + delete(additionalProperties, "filters") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_assigned_hosts") + delete(additionalProperties, "inheritance_parent") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "space") + delete(additionalProperties, "start") + delete(additionalProperties, "tags") + delete(additionalProperties, "threshold") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "utilization") + delete(additionalProperties, "utilization_v6") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_block_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_block_response.go index 5c1f28d4..11b24dd8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_block_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_block_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadAddressBlockResponse{} // ReadAddressBlockResponse The response format to retrieve the __AddressBlock__ object. type ReadAddressBlockResponse struct { - Result *AddressBlock `json:"result,omitempty"` + Result *AddressBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadAddressBlockResponse ReadAddressBlockResponse + // NewReadAddressBlockResponse instantiates a new ReadAddressBlockResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadAddressBlockResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadAddressBlockResponse) UnmarshalJSON(data []byte) (err error) { + varReadAddressBlockResponse := _ReadAddressBlockResponse{} + + err = json.Unmarshal(data, &varReadAddressBlockResponse) + + if err != nil { + return err + } + + *o = ReadAddressBlockResponse(varReadAddressBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadAddressBlockResponse struct { value *ReadAddressBlockResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_response.go index 249cb3a7..73233fa9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadAddressResponse{} // ReadAddressResponse The response format to retrieve the __Address__ object. type ReadAddressResponse struct { - Result *Address `json:"result,omitempty"` + Result *Address `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadAddressResponse ReadAddressResponse + // NewReadAddressResponse instantiates a new ReadAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadAddressResponse) UnmarshalJSON(data []byte) (err error) { + varReadAddressResponse := _ReadAddressResponse{} + + err = json.Unmarshal(data, &varReadAddressResponse) + + if err != nil { + return err + } + + *o = ReadAddressResponse(varReadAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadAddressResponse struct { value *ReadAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_asm_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_asm_response.go index d9d0ea23..11ea4f58 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_asm_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_asm_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadASMResponse{} // ReadASMResponse The response format to retrieve the __ASM__ object. type ReadASMResponse struct { - Result *ASM `json:"result,omitempty"` + Result *ASM `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadASMResponse ReadASMResponse + // NewReadASMResponse instantiates a new ReadASMResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadASMResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadASMResponse) UnmarshalJSON(data []byte) (err error) { + varReadASMResponse := _ReadASMResponse{} + + err = json.Unmarshal(data, &varReadASMResponse) + + if err != nil { + return err + } + + *o = ReadASMResponse(varReadASMResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadASMResponse struct { value *ReadASMResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_dns_usage_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_dns_usage_response.go index d0167886..dca285a7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_dns_usage_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_dns_usage_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadDNSUsageResponse{} // ReadDNSUsageResponse The response format to retrieve the __DNSUsage__ object. type ReadDNSUsageResponse struct { - Result *DNSUsage `json:"result,omitempty"` + Result *DNSUsage `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadDNSUsageResponse ReadDNSUsageResponse + // NewReadDNSUsageResponse instantiates a new ReadDNSUsageResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadDNSUsageResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadDNSUsageResponse) UnmarshalJSON(data []byte) (err error) { + varReadDNSUsageResponse := _ReadDNSUsageResponse{} + + err = json.Unmarshal(data, &varReadDNSUsageResponse) + + if err != nil { + return err + } + + *o = ReadDNSUsageResponse(varReadDNSUsageResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadDNSUsageResponse struct { value *ReadDNSUsageResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_fixed_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_fixed_address_response.go index 1dfa958d..480878df 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_fixed_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_fixed_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadFixedAddressResponse{} // ReadFixedAddressResponse The response format to retrieve the __FixedAddress__ object. type ReadFixedAddressResponse struct { - Result *FixedAddress `json:"result,omitempty"` + Result *FixedAddress `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadFixedAddressResponse ReadFixedAddressResponse + // NewReadFixedAddressResponse instantiates a new ReadFixedAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadFixedAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadFixedAddressResponse) UnmarshalJSON(data []byte) (err error) { + varReadFixedAddressResponse := _ReadFixedAddressResponse{} + + err = json.Unmarshal(data, &varReadFixedAddressResponse) + + if err != nil { + return err + } + + *o = ReadFixedAddressResponse(varReadFixedAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadFixedAddressResponse struct { value *ReadFixedAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_global_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_global_response.go index e4c6087d..286667b2 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_global_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_global_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadGlobalResponse{} // ReadGlobalResponse The response format to retrieve the __Global__ object. type ReadGlobalResponse struct { - Result *Global `json:"result,omitempty"` + Result *Global `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadGlobalResponse ReadGlobalResponse + // NewReadGlobalResponse instantiates a new ReadGlobalResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadGlobalResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadGlobalResponse) UnmarshalJSON(data []byte) (err error) { + varReadGlobalResponse := _ReadGlobalResponse{} + + err = json.Unmarshal(data, &varReadGlobalResponse) + + if err != nil { + return err + } + + *o = ReadGlobalResponse(varReadGlobalResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadGlobalResponse struct { value *ReadGlobalResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ha_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ha_group_response.go index dfc8d06c..43a9f500 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ha_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ha_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadHAGroupResponse{} // ReadHAGroupResponse The response format to retrieve the __HAGroup__ object. type ReadHAGroupResponse struct { - Result *HAGroup `json:"result,omitempty"` + Result *HAGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadHAGroupResponse ReadHAGroupResponse + // NewReadHAGroupResponse instantiates a new ReadHAGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadHAGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadHAGroupResponse) UnmarshalJSON(data []byte) (err error) { + varReadHAGroupResponse := _ReadHAGroupResponse{} + + err = json.Unmarshal(data, &varReadHAGroupResponse) + + if err != nil { + return err + } + + *o = ReadHAGroupResponse(varReadHAGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadHAGroupResponse struct { value *ReadHAGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_hardware_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_hardware_filter_response.go index 4e34517f..f7a100bf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_hardware_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_hardware_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadHardwareFilterResponse{} // ReadHardwareFilterResponse The response format to retrieve the __HardwareFilter__ object. type ReadHardwareFilterResponse struct { - Result *HardwareFilter `json:"result,omitempty"` + Result *HardwareFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadHardwareFilterResponse ReadHardwareFilterResponse + // NewReadHardwareFilterResponse instantiates a new ReadHardwareFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadHardwareFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadHardwareFilterResponse) UnmarshalJSON(data []byte) (err error) { + varReadHardwareFilterResponse := _ReadHardwareFilterResponse{} + + err = json.Unmarshal(data, &varReadHardwareFilterResponse) + + if err != nil { + return err + } + + *o = ReadHardwareFilterResponse(varReadHardwareFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadHardwareFilterResponse struct { value *ReadHardwareFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_host_response.go index bc56d405..52f6bbd6 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadHostResponse{} // ReadHostResponse The response format to retrieve the DHCP __Host__ object. type ReadHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadHostResponse ReadHostResponse + // NewReadHostResponse instantiates a new ReadHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadHostResponse) UnmarshalJSON(data []byte) (err error) { + varReadHostResponse := _ReadHostResponse{} + + err = json.Unmarshal(data, &varReadHostResponse) + + if err != nil { + return err + } + + *o = ReadHostResponse(varReadHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadHostResponse struct { value *ReadHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ip_space_response.go index d078b95f..f8b96e8e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ip_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadIPSpaceResponse{} // ReadIPSpaceResponse The response format to retrieve the __IPSpace__ object. type ReadIPSpaceResponse struct { - Result *IPSpace `json:"result,omitempty"` + Result *IPSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadIPSpaceResponse ReadIPSpaceResponse + // NewReadIPSpaceResponse instantiates a new ReadIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varReadIPSpaceResponse := _ReadIPSpaceResponse{} + + err = json.Unmarshal(data, &varReadIPSpaceResponse) + + if err != nil { + return err + } + + *o = ReadIPSpaceResponse(varReadIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadIPSpaceResponse struct { value *ReadIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ipam_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ipam_host_response.go index 1af3cbbb..2adfd4a0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ipam_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_ipam_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadIpamHostResponse{} // ReadIpamHostResponse The response format to retrieve the __IpamHost__ object. type ReadIpamHostResponse struct { - Result *IpamHost `json:"result,omitempty"` + Result *IpamHost `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadIpamHostResponse ReadIpamHostResponse + // NewReadIpamHostResponse instantiates a new ReadIpamHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadIpamHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadIpamHostResponse) UnmarshalJSON(data []byte) (err error) { + varReadIpamHostResponse := _ReadIpamHostResponse{} + + err = json.Unmarshal(data, &varReadIpamHostResponse) + + if err != nil { + return err + } + + *o = ReadIpamHostResponse(varReadIpamHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadIpamHostResponse struct { value *ReadIpamHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_code_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_code_response.go index cbc842c5..b7412c62 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_code_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_code_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadOptionCodeResponse{} // ReadOptionCodeResponse The response format to retrieve the __OptionCode__ object. type ReadOptionCodeResponse struct { - Result *OptionCode `json:"result,omitempty"` + Result *OptionCode `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadOptionCodeResponse ReadOptionCodeResponse + // NewReadOptionCodeResponse instantiates a new ReadOptionCodeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadOptionCodeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadOptionCodeResponse) UnmarshalJSON(data []byte) (err error) { + varReadOptionCodeResponse := _ReadOptionCodeResponse{} + + err = json.Unmarshal(data, &varReadOptionCodeResponse) + + if err != nil { + return err + } + + *o = ReadOptionCodeResponse(varReadOptionCodeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadOptionCodeResponse struct { value *ReadOptionCodeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_filter_response.go index 02292275..34adf63e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadOptionFilterResponse{} // ReadOptionFilterResponse The response format to retrieve the __OptionFilter__ object. type ReadOptionFilterResponse struct { - Result *OptionFilter `json:"result,omitempty"` + Result *OptionFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadOptionFilterResponse ReadOptionFilterResponse + // NewReadOptionFilterResponse instantiates a new ReadOptionFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadOptionFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadOptionFilterResponse) UnmarshalJSON(data []byte) (err error) { + varReadOptionFilterResponse := _ReadOptionFilterResponse{} + + err = json.Unmarshal(data, &varReadOptionFilterResponse) + + if err != nil { + return err + } + + *o = ReadOptionFilterResponse(varReadOptionFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadOptionFilterResponse struct { value *ReadOptionFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_group_response.go index 68a6051d..43df1b37 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadOptionGroupResponse{} // ReadOptionGroupResponse The response format to retrieve the __OptionGroup__ object. type ReadOptionGroupResponse struct { - Result *OptionGroup `json:"result,omitempty"` + Result *OptionGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadOptionGroupResponse ReadOptionGroupResponse + // NewReadOptionGroupResponse instantiates a new ReadOptionGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadOptionGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadOptionGroupResponse) UnmarshalJSON(data []byte) (err error) { + varReadOptionGroupResponse := _ReadOptionGroupResponse{} + + err = json.Unmarshal(data, &varReadOptionGroupResponse) + + if err != nil { + return err + } + + *o = ReadOptionGroupResponse(varReadOptionGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadOptionGroupResponse struct { value *ReadOptionGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_space_response.go index ceab4ecd..4d8837a7 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_option_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadOptionSpaceResponse{} // ReadOptionSpaceResponse The response format to retrieve the __OptionSpace__ object. type ReadOptionSpaceResponse struct { - Result *OptionSpace `json:"result,omitempty"` + Result *OptionSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadOptionSpaceResponse ReadOptionSpaceResponse + // NewReadOptionSpaceResponse instantiates a new ReadOptionSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadOptionSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadOptionSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varReadOptionSpaceResponse := _ReadOptionSpaceResponse{} + + err = json.Unmarshal(data, &varReadOptionSpaceResponse) + + if err != nil { + return err + } + + *o = ReadOptionSpaceResponse(varReadOptionSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadOptionSpaceResponse struct { value *ReadOptionSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_range_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_range_response.go index 47275ed5..11735c58 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_range_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_range_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadRangeResponse{} // ReadRangeResponse The response format to retrieve the __Range__ object. type ReadRangeResponse struct { - Result *Range `json:"result,omitempty"` + Result *Range `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadRangeResponse ReadRangeResponse + // NewReadRangeResponse instantiates a new ReadRangeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadRangeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadRangeResponse) UnmarshalJSON(data []byte) (err error) { + varReadRangeResponse := _ReadRangeResponse{} + + err = json.Unmarshal(data, &varReadRangeResponse) + + if err != nil { + return err + } + + *o = ReadRangeResponse(varReadRangeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadRangeResponse struct { value *ReadRangeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_server_response.go index ba49e079..275f0837 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadServerResponse{} // ReadServerResponse The response format to retrieve the __Server__ object. type ReadServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadServerResponse ReadServerResponse + // NewReadServerResponse instantiates a new ReadServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadServerResponse) UnmarshalJSON(data []byte) (err error) { + varReadServerResponse := _ReadServerResponse{} + + err = json.Unmarshal(data, &varReadServerResponse) + + if err != nil { + return err + } + + *o = ReadServerResponse(varReadServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadServerResponse struct { value *ReadServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_subnet_response.go index 781f85cf..1d24e1ea 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_read_subnet_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadSubnetResponse{} // ReadSubnetResponse The response format to retrieve the __Subnet__ object. type ReadSubnetResponse struct { - Result *Subnet `json:"result,omitempty"` + Result *Subnet `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadSubnetResponse ReadSubnetResponse + // NewReadSubnetResponse instantiates a new ReadSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadSubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varReadSubnetResponse := _ReadSubnetResponse{} + + err = json.Unmarshal(data, &varReadSubnetResponse) + + if err != nil { + return err + } + + *o = ReadSubnetResponse(varReadSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadSubnetResponse struct { value *ReadSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server.go index c1d9c036..4c746ef9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" "time" @@ -94,6 +93,7 @@ type Server struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` // The resource identifier. VendorSpecificOptionOptionSpace *string `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } type _Server Server @@ -1411,6 +1411,11 @@ func (o Server) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -1438,9 +1443,7 @@ func (o *Server) UnmarshalJSON(data []byte) (err error) { varServer := _Server{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varServer) + err = json.Unmarshal(data, &varServer) if err != nil { return err @@ -1448,6 +1451,49 @@ func (o *Server) UnmarshalJSON(data []byte) (err error) { *o = Server(varServer) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "client_principal") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_enabled") + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "ddns_zones") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_options_v6") + delete(additionalProperties, "gss_tsig_fallback") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "kerberos_kdc") + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "kerberos_rekey_interval") + delete(additionalProperties, "kerberos_retry_interval") + delete(additionalProperties, "kerberos_tkey_lifetime") + delete(additionalProperties, "kerberos_tkey_protocol") + delete(additionalProperties, "name") + delete(additionalProperties, "server_principal") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server_inheritance.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server_inheritance.go index 374f2dd9..d8249763 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server_inheritance.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_server_inheritance.go @@ -34,8 +34,11 @@ type ServerInheritance struct { HeaderOptionServerName *InheritanceInheritedString `json:"header_option_server_name,omitempty"` HostnameRewriteBlock *InheritedHostnameRewriteBlock `json:"hostname_rewrite_block,omitempty"` VendorSpecificOptionOptionSpace *InheritanceInheritedIdentifier `json:"vendor_specific_option_option_space,omitempty"` + AdditionalProperties map[string]interface{} } +type _ServerInheritance ServerInheritance + // NewServerInheritance instantiates a new ServerInheritance object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -588,9 +591,49 @@ func (o ServerInheritance) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorSpecificOptionOptionSpace) { toSerialize["vendor_specific_option_option_space"] = o.VendorSpecificOptionOptionSpace } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ServerInheritance) UnmarshalJSON(data []byte) (err error) { + varServerInheritance := _ServerInheritance{} + + err = json.Unmarshal(data, &varServerInheritance) + + if err != nil { + return err + } + + *o = ServerInheritance(varServerInheritance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ddns_block") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_hostname_block") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_options_v6") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_block") + delete(additionalProperties, "vendor_specific_option_option_space") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableServerInheritance struct { value *ServerInheritance isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_subnet.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_subnet.go index fd20f7dc..e11d1fae 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_subnet.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_subnet.go @@ -98,11 +98,14 @@ type Subnet struct { // Time when the object has been updated. Equals to _created_at_ if not updated after creation. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The usage is a combination of indicators, each tracking a specific associated use. Listed below are usage indicators with their meaning: usage indicator | description ---------------------- | -------------------------------- _IPAM_ | Subnet is managed in BloxOne DDI. _DHCP_ | Subnet is served by a DHCP Host. _DISCOVERED_ | Subnet is discovered by some network discovery probe like Network Insight or NetMRI in NIOS. - Usage []string `json:"usage,omitempty"` - Utilization *Utilization `json:"utilization,omitempty"` - UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + Usage []string `json:"usage,omitempty"` + Utilization *Utilization `json:"utilization,omitempty"` + UtilizationV6 *UtilizationV6 `json:"utilization_v6,omitempty"` + AdditionalProperties map[string]interface{} } +type _Subnet Subnet + // NewSubnet instantiates a new Subnet object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -1670,9 +1673,78 @@ func (o Subnet) ToMap() (map[string]interface{}, error) { if !IsNil(o.UtilizationV6) { toSerialize["utilization_v6"] = o.UtilizationV6 } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Subnet) UnmarshalJSON(data []byte) (err error) { + varSubnet := _Subnet{} + + err = json.Unmarshal(data, &varSubnet) + + if err != nil { + return err + } + + *o = Subnet(varSubnet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "asm_config") + delete(additionalProperties, "asm_scope_flag") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "ddns_client_update") + delete(additionalProperties, "ddns_conflict_resolution_mode") + delete(additionalProperties, "ddns_domain") + delete(additionalProperties, "ddns_generate_name") + delete(additionalProperties, "ddns_generated_prefix") + delete(additionalProperties, "ddns_send_updates") + delete(additionalProperties, "ddns_ttl_percent") + delete(additionalProperties, "ddns_update_on_renew") + delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "dhcp_config") + delete(additionalProperties, "dhcp_host") + delete(additionalProperties, "dhcp_options") + delete(additionalProperties, "dhcp_utilization") + delete(additionalProperties, "disable_dhcp") + delete(additionalProperties, "discovery_attrs") + delete(additionalProperties, "discovery_metadata") + delete(additionalProperties, "header_option_filename") + delete(additionalProperties, "header_option_server_address") + delete(additionalProperties, "header_option_server_name") + delete(additionalProperties, "hostname_rewrite_char") + delete(additionalProperties, "hostname_rewrite_enabled") + delete(additionalProperties, "hostname_rewrite_regex") + delete(additionalProperties, "id") + delete(additionalProperties, "inheritance_assigned_hosts") + delete(additionalProperties, "inheritance_parent") + delete(additionalProperties, "inheritance_sources") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "rebind_time") + delete(additionalProperties, "renew_time") + delete(additionalProperties, "space") + delete(additionalProperties, "tags") + delete(additionalProperties, "threshold") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "usage") + delete(additionalProperties, "utilization") + delete(additionalProperties, "utilization_v6") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableSubnet struct { value *Subnet isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_tsig_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_tsig_key.go index 69c2a583..4cb34b11 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_tsig_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_tsig_key.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -32,7 +31,8 @@ type TSIGKey struct { // The TSIG key name in punycode. ProtocolName *string `json:"protocol_name,omitempty"` // The TSIG key secret, base64 string. - Secret *string `json:"secret,omitempty"` + Secret *string `json:"secret,omitempty"` + AdditionalProperties map[string]interface{} } type _TSIGKey TSIGKey @@ -265,6 +265,11 @@ func (o TSIGKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -292,9 +297,7 @@ func (o *TSIGKey) UnmarshalJSON(data []byte) (err error) { varTSIGKey := _TSIGKey{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTSIGKey) + err = json.Unmarshal(data, &varTSIGKey) if err != nil { return err @@ -302,6 +305,18 @@ func (o *TSIGKey) UnmarshalJSON(data []byte) (err error) { *o = TSIGKey(varTSIGKey) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "comment") + delete(additionalProperties, "key") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol_name") + delete(additionalProperties, "secret") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_block_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_block_response.go index 309ac267..90f2bb82 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_block_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_block_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateAddressBlockResponse{} // UpdateAddressBlockResponse The response format to update the __AddressBlock__ object. type UpdateAddressBlockResponse struct { - Result *AddressBlock `json:"result,omitempty"` + Result *AddressBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateAddressBlockResponse UpdateAddressBlockResponse + // NewUpdateAddressBlockResponse instantiates a new UpdateAddressBlockResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateAddressBlockResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateAddressBlockResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateAddressBlockResponse := _UpdateAddressBlockResponse{} + + err = json.Unmarshal(data, &varUpdateAddressBlockResponse) + + if err != nil { + return err + } + + *o = UpdateAddressBlockResponse(varUpdateAddressBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateAddressBlockResponse struct { value *UpdateAddressBlockResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_response.go index b3614810..39642a81 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateAddressResponse{} // UpdateAddressResponse The response format to update the __Address__ object. type UpdateAddressResponse struct { - Result *Address `json:"result,omitempty"` + Result *Address `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateAddressResponse UpdateAddressResponse + // NewUpdateAddressResponse instantiates a new UpdateAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateAddressResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateAddressResponse := _UpdateAddressResponse{} + + err = json.Unmarshal(data, &varUpdateAddressResponse) + + if err != nil { + return err + } + + *o = UpdateAddressResponse(varUpdateAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateAddressResponse struct { value *UpdateAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_fixed_address_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_fixed_address_response.go index 58d3e0e1..b2af1305 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_fixed_address_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_fixed_address_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateFixedAddressResponse{} // UpdateFixedAddressResponse The response format to update the __FixedAddress__ object. type UpdateFixedAddressResponse struct { - Result *FixedAddress `json:"result,omitempty"` + Result *FixedAddress `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateFixedAddressResponse UpdateFixedAddressResponse + // NewUpdateFixedAddressResponse instantiates a new UpdateFixedAddressResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateFixedAddressResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateFixedAddressResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateFixedAddressResponse := _UpdateFixedAddressResponse{} + + err = json.Unmarshal(data, &varUpdateFixedAddressResponse) + + if err != nil { + return err + } + + *o = UpdateFixedAddressResponse(varUpdateFixedAddressResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateFixedAddressResponse struct { value *UpdateFixedAddressResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_global_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_global_response.go index cb121f5b..7062f0a8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_global_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_global_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateGlobalResponse{} // UpdateGlobalResponse The response format to update the __Global__ object. type UpdateGlobalResponse struct { - Result *Global `json:"result,omitempty"` + Result *Global `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateGlobalResponse UpdateGlobalResponse + // NewUpdateGlobalResponse instantiates a new UpdateGlobalResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateGlobalResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateGlobalResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateGlobalResponse := _UpdateGlobalResponse{} + + err = json.Unmarshal(data, &varUpdateGlobalResponse) + + if err != nil { + return err + } + + *o = UpdateGlobalResponse(varUpdateGlobalResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateGlobalResponse struct { value *UpdateGlobalResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ha_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ha_group_response.go index 40f5e042..fad334c0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ha_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ha_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateHAGroupResponse{} // UpdateHAGroupResponse The response format to update the __HAGroup__ object. type UpdateHAGroupResponse struct { - Result *HAGroup `json:"result,omitempty"` + Result *HAGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateHAGroupResponse UpdateHAGroupResponse + // NewUpdateHAGroupResponse instantiates a new UpdateHAGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateHAGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateHAGroupResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateHAGroupResponse := _UpdateHAGroupResponse{} + + err = json.Unmarshal(data, &varUpdateHAGroupResponse) + + if err != nil { + return err + } + + *o = UpdateHAGroupResponse(varUpdateHAGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateHAGroupResponse struct { value *UpdateHAGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_hardware_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_hardware_filter_response.go index 42f7a6ec..52894d46 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_hardware_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_hardware_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateHardwareFilterResponse{} // UpdateHardwareFilterResponse The response format to update the __HardwareFilter__ object. type UpdateHardwareFilterResponse struct { - Result *HardwareFilter `json:"result,omitempty"` + Result *HardwareFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateHardwareFilterResponse UpdateHardwareFilterResponse + // NewUpdateHardwareFilterResponse instantiates a new UpdateHardwareFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateHardwareFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateHardwareFilterResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateHardwareFilterResponse := _UpdateHardwareFilterResponse{} + + err = json.Unmarshal(data, &varUpdateHardwareFilterResponse) + + if err != nil { + return err + } + + *o = UpdateHardwareFilterResponse(varUpdateHardwareFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateHardwareFilterResponse struct { value *UpdateHardwareFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_host_response.go index 62b486de..e0cc61b8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateHostResponse{} // UpdateHostResponse The response format to update the DHCP __Host__ object. type UpdateHostResponse struct { - Result *Host `json:"result,omitempty"` + Result *Host `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateHostResponse UpdateHostResponse + // NewUpdateHostResponse instantiates a new UpdateHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateHostResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateHostResponse := _UpdateHostResponse{} + + err = json.Unmarshal(data, &varUpdateHostResponse) + + if err != nil { + return err + } + + *o = UpdateHostResponse(varUpdateHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateHostResponse struct { value *UpdateHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ip_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ip_space_response.go index 4b8ba6e8..64ce3fce 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ip_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ip_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateIPSpaceResponse{} // UpdateIPSpaceResponse The response format to update the __IPSpace__ object. type UpdateIPSpaceResponse struct { - Result *IPSpace `json:"result,omitempty"` + Result *IPSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateIPSpaceResponse UpdateIPSpaceResponse + // NewUpdateIPSpaceResponse instantiates a new UpdateIPSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateIPSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateIPSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateIPSpaceResponse := _UpdateIPSpaceResponse{} + + err = json.Unmarshal(data, &varUpdateIPSpaceResponse) + + if err != nil { + return err + } + + *o = UpdateIPSpaceResponse(varUpdateIPSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateIPSpaceResponse struct { value *UpdateIPSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ipam_host_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ipam_host_response.go index 645efc1f..d576f772 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ipam_host_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_ipam_host_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateIpamHostResponse{} // UpdateIpamHostResponse The response format to update the _IpamHost__ object. type UpdateIpamHostResponse struct { - Result *IpamHost `json:"result,omitempty"` + Result *IpamHost `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateIpamHostResponse UpdateIpamHostResponse + // NewUpdateIpamHostResponse instantiates a new UpdateIpamHostResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateIpamHostResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateIpamHostResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateIpamHostResponse := _UpdateIpamHostResponse{} + + err = json.Unmarshal(data, &varUpdateIpamHostResponse) + + if err != nil { + return err + } + + *o = UpdateIpamHostResponse(varUpdateIpamHostResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateIpamHostResponse struct { value *UpdateIpamHostResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_code_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_code_response.go index 0a6fcf91..51aa878f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_code_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_code_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateOptionCodeResponse{} // UpdateOptionCodeResponse The response format to update the __OptionCode__ object. type UpdateOptionCodeResponse struct { - Result *OptionCode `json:"result,omitempty"` + Result *OptionCode `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateOptionCodeResponse UpdateOptionCodeResponse + // NewUpdateOptionCodeResponse instantiates a new UpdateOptionCodeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateOptionCodeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateOptionCodeResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateOptionCodeResponse := _UpdateOptionCodeResponse{} + + err = json.Unmarshal(data, &varUpdateOptionCodeResponse) + + if err != nil { + return err + } + + *o = UpdateOptionCodeResponse(varUpdateOptionCodeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateOptionCodeResponse struct { value *UpdateOptionCodeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_filter_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_filter_response.go index 49d0dbcc..2dd152d0 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_filter_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_filter_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateOptionFilterResponse{} // UpdateOptionFilterResponse The response format to update the __OptionFilter__ object. type UpdateOptionFilterResponse struct { - Result *OptionFilter `json:"result,omitempty"` + Result *OptionFilter `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateOptionFilterResponse UpdateOptionFilterResponse + // NewUpdateOptionFilterResponse instantiates a new UpdateOptionFilterResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateOptionFilterResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateOptionFilterResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateOptionFilterResponse := _UpdateOptionFilterResponse{} + + err = json.Unmarshal(data, &varUpdateOptionFilterResponse) + + if err != nil { + return err + } + + *o = UpdateOptionFilterResponse(varUpdateOptionFilterResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateOptionFilterResponse struct { value *UpdateOptionFilterResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_group_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_group_response.go index 2d9e826e..a1491ddd 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_group_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_group_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateOptionGroupResponse{} // UpdateOptionGroupResponse The response format to update the __OptionGroup__ object. type UpdateOptionGroupResponse struct { - Result *OptionGroup `json:"result,omitempty"` + Result *OptionGroup `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateOptionGroupResponse UpdateOptionGroupResponse + // NewUpdateOptionGroupResponse instantiates a new UpdateOptionGroupResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateOptionGroupResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateOptionGroupResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateOptionGroupResponse := _UpdateOptionGroupResponse{} + + err = json.Unmarshal(data, &varUpdateOptionGroupResponse) + + if err != nil { + return err + } + + *o = UpdateOptionGroupResponse(varUpdateOptionGroupResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateOptionGroupResponse struct { value *UpdateOptionGroupResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_space_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_space_response.go index 07074568..3f0c3c87 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_space_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_option_space_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateOptionSpaceResponse{} // UpdateOptionSpaceResponse The response format to update the __OptionSpace__ object. type UpdateOptionSpaceResponse struct { - Result *OptionSpace `json:"result,omitempty"` + Result *OptionSpace `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateOptionSpaceResponse UpdateOptionSpaceResponse + // NewUpdateOptionSpaceResponse instantiates a new UpdateOptionSpaceResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateOptionSpaceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateOptionSpaceResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateOptionSpaceResponse := _UpdateOptionSpaceResponse{} + + err = json.Unmarshal(data, &varUpdateOptionSpaceResponse) + + if err != nil { + return err + } + + *o = UpdateOptionSpaceResponse(varUpdateOptionSpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateOptionSpaceResponse struct { value *UpdateOptionSpaceResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_range_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_range_response.go index 1071dba8..29f13445 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_range_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_range_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateRangeResponse{} // UpdateRangeResponse The response format to update the __Range__ object. type UpdateRangeResponse struct { - Result *Range `json:"result,omitempty"` + Result *Range `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateRangeResponse UpdateRangeResponse + // NewUpdateRangeResponse instantiates a new UpdateRangeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateRangeResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateRangeResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateRangeResponse := _UpdateRangeResponse{} + + err = json.Unmarshal(data, &varUpdateRangeResponse) + + if err != nil { + return err + } + + *o = UpdateRangeResponse(varUpdateRangeResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateRangeResponse struct { value *UpdateRangeResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_server_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_server_response.go index a9319b26..bded9d8b 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_server_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_server_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateServerResponse{} // UpdateServerResponse The response format to update the __Server__ object. type UpdateServerResponse struct { - Result *Server `json:"result,omitempty"` + Result *Server `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateServerResponse UpdateServerResponse + // NewUpdateServerResponse instantiates a new UpdateServerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateServerResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateServerResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateServerResponse := _UpdateServerResponse{} + + err = json.Unmarshal(data, &varUpdateServerResponse) + + if err != nil { + return err + } + + *o = UpdateServerResponse(varUpdateServerResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateServerResponse struct { value *UpdateServerResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_subnet_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_subnet_response.go index f5870ad4..9c7a7d7e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_subnet_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_update_subnet_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateSubnetResponse{} // UpdateSubnetResponse The response format to update the __Subnet__ object. type UpdateSubnetResponse struct { - Result *Subnet `json:"result,omitempty"` + Result *Subnet `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateSubnetResponse UpdateSubnetResponse + // NewUpdateSubnetResponse instantiates a new UpdateSubnetResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateSubnetResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateSubnetResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateSubnetResponse := _UpdateSubnetResponse{} + + err = json.Unmarshal(data, &varUpdateSubnetResponse) + + if err != nil { + return err + } + + *o = UpdateSubnetResponse(varUpdateSubnetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateSubnetResponse struct { value *UpdateSubnetResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization.go index ca300b3c..b7c02d5d 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization.go @@ -34,9 +34,12 @@ type Utilization struct { // The number of IP addresses used in the scope of the object. Used *string `json:"used,omitempty"` // The percentage of used IP addresses relative to the total IP addresses available in the scope of the object. - Utilization *int64 `json:"utilization,omitempty"` + Utilization *int64 `json:"utilization,omitempty"` + AdditionalProperties map[string]interface{} } +type _Utilization Utilization + // NewUtilization instantiates a new Utilization object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -344,9 +347,42 @@ func (o Utilization) ToMap() (map[string]interface{}, error) { if !IsNil(o.Utilization) { toSerialize["utilization"] = o.Utilization } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *Utilization) UnmarshalJSON(data []byte) (err error) { + varUtilization := _Utilization{} + + err = json.Unmarshal(data, &varUtilization) + + if err != nil { + return err + } + + *o = Utilization(varUtilization) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "abandon_utilization") + delete(additionalProperties, "abandoned") + delete(additionalProperties, "dynamic") + delete(additionalProperties, "free") + delete(additionalProperties, "static") + delete(additionalProperties, "total") + delete(additionalProperties, "used") + delete(additionalProperties, "utilization") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUtilization struct { value *Utilization isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_threshold.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_threshold.go index 898f0b3a..2641cb43 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_threshold.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_threshold.go @@ -11,7 +11,6 @@ API version: v1 package ipam import ( - "bytes" "encoding/json" "fmt" ) @@ -26,7 +25,8 @@ type UtilizationThreshold struct { // The high threshold value for the percentage of used IP addresses relative to the total IP addresses available in the scope of the object. Thresholds are inclusive in the comparison test. High int64 `json:"high"` // The low threshold value for the percentage of used IP addresses relative to the total IP addresses available in the scope of the object. Thresholds are inclusive in the comparison test. - Low int64 `json:"low"` + Low int64 `json:"low"` + AdditionalProperties map[string]interface{} } type _UtilizationThreshold UtilizationThreshold @@ -136,6 +136,11 @@ func (o UtilizationThreshold) ToMap() (map[string]interface{}, error) { toSerialize["enabled"] = o.Enabled toSerialize["high"] = o.High toSerialize["low"] = o.Low + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -165,9 +170,7 @@ func (o *UtilizationThreshold) UnmarshalJSON(data []byte) (err error) { varUtilizationThreshold := _UtilizationThreshold{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varUtilizationThreshold) + err = json.Unmarshal(data, &varUtilizationThreshold) if err != nil { return err @@ -175,6 +178,15 @@ func (o *UtilizationThreshold) UnmarshalJSON(data []byte) (err error) { *o = UtilizationThreshold(varUtilizationThreshold) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "high") + delete(additionalProperties, "low") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_v6.go b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_v6.go index 514f1eae..09f146ea 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_v6.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/ipam/model_utilization_v6.go @@ -19,13 +19,16 @@ var _ MappedNullable = &UtilizationV6{} // UtilizationV6 The __UtilizationV6__ object represents IPV6 address usage statistics for an object. type UtilizationV6 struct { - Abandoned *string `json:"abandoned,omitempty"` - Dynamic *string `json:"dynamic,omitempty"` - Static *string `json:"static,omitempty"` - Total *string `json:"total,omitempty"` - Used *string `json:"used,omitempty"` + Abandoned *string `json:"abandoned,omitempty"` + Dynamic *string `json:"dynamic,omitempty"` + Static *string `json:"static,omitempty"` + Total *string `json:"total,omitempty"` + Used *string `json:"used,omitempty"` + AdditionalProperties map[string]interface{} } +type _UtilizationV6 UtilizationV6 + // NewUtilizationV6 instantiates a new UtilizationV6 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -228,9 +231,39 @@ func (o UtilizationV6) ToMap() (map[string]interface{}, error) { if !IsNil(o.Used) { toSerialize["used"] = o.Used } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UtilizationV6) UnmarshalJSON(data []byte) (err error) { + varUtilizationV6 := _UtilizationV6{} + + err = json.Unmarshal(data, &varUtilizationV6) + + if err != nil { + return err + } + + *o = UtilizationV6(varUtilizationV6) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "abandoned") + delete(additionalProperties, "dynamic") + delete(additionalProperties, "static") + delete(additionalProperties, "total") + delete(additionalProperties, "used") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUtilizationV6 struct { value *UtilizationV6 isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_create_tsig_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_create_tsig_key_response.go index 6f4b1c5a..6996770f 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_create_tsig_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_create_tsig_key_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &CreateTSIGKeyResponse{} // CreateTSIGKeyResponse The response format to create a __TSIGKey__ object. type CreateTSIGKeyResponse struct { - Result *TSIGKey `json:"result,omitempty"` + Result *TSIGKey `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _CreateTSIGKeyResponse CreateTSIGKeyResponse + // NewCreateTSIGKeyResponse instantiates a new CreateTSIGKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o CreateTSIGKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *CreateTSIGKeyResponse) UnmarshalJSON(data []byte) (err error) { + varCreateTSIGKeyResponse := _CreateTSIGKeyResponse{} + + err = json.Unmarshal(data, &varCreateTSIGKeyResponse) + + if err != nil { + return err + } + + *o = CreateTSIGKeyResponse(varCreateTSIGKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableCreateTSIGKeyResponse struct { value *CreateTSIGKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_ddiupload_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_ddiupload_response.go index a58ddfb8..50782c36 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_ddiupload_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_ddiupload_response.go @@ -21,9 +21,12 @@ var _ MappedNullable = &DdiuploadResponse{} type DdiuploadResponse struct { KerberosKeys *KerberosKeys `json:"kerberos_keys,omitempty"` // May contain any non-critical warning messages after processing the content. - Warning *string `json:"warning,omitempty"` + Warning *string `json:"warning,omitempty"` + AdditionalProperties map[string]interface{} } +type _DdiuploadResponse DdiuploadResponse + // NewDdiuploadResponse instantiates a new DdiuploadResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -121,9 +124,36 @@ func (o DdiuploadResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Warning) { toSerialize["warning"] = o.Warning } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *DdiuploadResponse) UnmarshalJSON(data []byte) (err error) { + varDdiuploadResponse := _DdiuploadResponse{} + + err = json.Unmarshal(data, &varDdiuploadResponse) + + if err != nil { + return err + } + + *o = DdiuploadResponse(varDdiuploadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "kerberos_keys") + delete(additionalProperties, "warning") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableDdiuploadResponse struct { value *DdiuploadResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_response.go index b030eb7a..72e03312 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &GenerateTSIGResponse{} // GenerateTSIGResponse The response format to generate the TSIG key. type GenerateTSIGResponse struct { - Result *GenerateTSIGResult `json:"result,omitempty"` + Result *GenerateTSIGResult `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _GenerateTSIGResponse GenerateTSIGResponse + // NewGenerateTSIGResponse instantiates a new GenerateTSIGResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o GenerateTSIGResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *GenerateTSIGResponse) UnmarshalJSON(data []byte) (err error) { + varGenerateTSIGResponse := _GenerateTSIGResponse{} + + err = json.Unmarshal(data, &varGenerateTSIGResponse) + + if err != nil { + return err + } + + *o = GenerateTSIGResponse(varGenerateTSIGResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGenerateTSIGResponse struct { value *GenerateTSIGResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_result.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_result.go index f07eb5a4..e3264512 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_result.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_generate_tsig_result.go @@ -20,9 +20,12 @@ var _ MappedNullable = &GenerateTSIGResult{} // GenerateTSIGResult The generated TSIG key. type GenerateTSIGResult struct { // The random TSIG key secret generated by the specified algorithm as a Base64 encoded string. - Secret *string `json:"secret,omitempty"` + Secret *string `json:"secret,omitempty"` + AdditionalProperties map[string]interface{} } +type _GenerateTSIGResult GenerateTSIGResult + // NewGenerateTSIGResult instantiates a new GenerateTSIGResult object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o GenerateTSIGResult) ToMap() (map[string]interface{}, error) { if !IsNil(o.Secret) { toSerialize["secret"] = o.Secret } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *GenerateTSIGResult) UnmarshalJSON(data []byte) (err error) { + varGenerateTSIGResult := _GenerateTSIGResult{} + + err = json.Unmarshal(data, &varGenerateTSIGResult) + + if err != nil { + return err + } + + *o = GenerateTSIGResult(varGenerateTSIGResult) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "secret") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableGenerateTSIGResult struct { value *GenerateTSIGResult isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_key.go index ee036c9d..f23e9199 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_key.go @@ -34,9 +34,12 @@ type KerberosKey struct { // Upload time for the key. UploadedAt *string `json:"uploaded_at,omitempty"` // The version number (KVNO) of the key. - Version *int64 `json:"version,omitempty"` + Version *int64 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} } +type _KerberosKey KerberosKey + // NewKerberosKey instantiates a new KerberosKey object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -344,9 +347,42 @@ func (o KerberosKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *KerberosKey) UnmarshalJSON(data []byte) (err error) { + varKerberosKey := _KerberosKey{} + + err = json.Unmarshal(data, &varKerberosKey) + + if err != nil { + return err + } + + *o = KerberosKey(varKerberosKey) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "comment") + delete(additionalProperties, "domain") + delete(additionalProperties, "id") + delete(additionalProperties, "principal") + delete(additionalProperties, "tags") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableKerberosKey struct { value *KerberosKey isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_keys.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_keys.go index 1c060649..c4706280 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_keys.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_kerberos_keys.go @@ -19,9 +19,12 @@ var _ MappedNullable = &KerberosKeys{} // KerberosKeys The list of __Key__ objects. type KerberosKeys struct { - Items []KerberosKey `json:"items,omitempty"` + Items []KerberosKey `json:"items,omitempty"` + AdditionalProperties map[string]interface{} } +type _KerberosKeys KerberosKeys + // NewKerberosKeys instantiates a new KerberosKeys object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o KerberosKeys) ToMap() (map[string]interface{}, error) { if !IsNil(o.Items) { toSerialize["items"] = o.Items } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *KerberosKeys) UnmarshalJSON(data []byte) (err error) { + varKerberosKeys := _KerberosKeys{} + + err = json.Unmarshal(data, &varKerberosKeys) + + if err != nil { + return err + } + + *o = KerberosKeys(varKerberosKeys) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "items") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableKerberosKeys struct { value *KerberosKeys isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_kerberos_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_kerberos_key_response.go index bb323777..b8cb4a67 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_kerberos_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_kerberos_key_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListKerberosKeyResponse{} // ListKerberosKeyResponse The response format to retrieve __KerberosKey__ resources extracted from the uploaded keytab file. type ListKerberosKeyResponse struct { // The list of KerberosKey objects. - Results []KerberosKey `json:"results,omitempty"` + Results []KerberosKey `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListKerberosKeyResponse ListKerberosKeyResponse + // NewListKerberosKeyResponse instantiates a new ListKerberosKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListKerberosKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListKerberosKeyResponse) UnmarshalJSON(data []byte) (err error) { + varListKerberosKeyResponse := _ListKerberosKeyResponse{} + + err = json.Unmarshal(data, &varListKerberosKeyResponse) + + if err != nil { + return err + } + + *o = ListKerberosKeyResponse(varListKerberosKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListKerberosKeyResponse struct { value *ListKerberosKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_tsig_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_tsig_key_response.go index c129a2fc..84c90190 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_tsig_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_list_tsig_key_response.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ListTSIGKeyResponse{} // ListTSIGKeyResponse The response format to retrieve __TSIGKey__ objects. type ListTSIGKeyResponse struct { // The list of TSIGKey objects. - Results []TSIGKey `json:"results,omitempty"` + Results []TSIGKey `json:"results,omitempty"` + AdditionalProperties map[string]interface{} } +type _ListTSIGKeyResponse ListTSIGKeyResponse + // NewListTSIGKeyResponse instantiates a new ListTSIGKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ListTSIGKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ListTSIGKeyResponse) UnmarshalJSON(data []byte) (err error) { + varListTSIGKeyResponse := _ListTSIGKeyResponse{} + + err = json.Unmarshal(data, &varListTSIGKeyResponse) + + if err != nil { + return err + } + + *o = ListTSIGKeyResponse(varListTSIGKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableListTSIGKeyResponse struct { value *ListTSIGKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_protobuf_field_mask.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_protobuf_field_mask.go index c76ddb48..2eadfdd9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_protobuf_field_mask.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_protobuf_field_mask.go @@ -20,9 +20,12 @@ var _ MappedNullable = &ProtobufFieldMask{} // ProtobufFieldMask paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, the existing repeated values in the target resource will be overwritten by the new values. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then the existing sub-message in the target resource is overwritten. Given the target message: f { b { d : 1 x : 2 } c : 1 } And an update message: f { b { d : 10 } } then if the field mask is: paths: \"f.b\" then the result will be: f { b { d : 10 } c : 1 } However, if the update mask was: paths: \"f.b.d\" then the result would be: f { b { d : 10 x : 2 } c : 1 } In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of the all the API methods, which have any FieldMask type field in the request, should verify the included field paths, and return `INVALID_ARGUMENT` error if any path is duplicated or unmappable. type ProtobufFieldMask struct { // The set of field mask paths. - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty"` + AdditionalProperties map[string]interface{} } +type _ProtobufFieldMask ProtobufFieldMask + // NewProtobufFieldMask instantiates a new ProtobufFieldMask object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -85,9 +88,35 @@ func (o ProtobufFieldMask) ToMap() (map[string]interface{}, error) { if !IsNil(o.Paths) { toSerialize["paths"] = o.Paths } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ProtobufFieldMask) UnmarshalJSON(data []byte) (err error) { + varProtobufFieldMask := _ProtobufFieldMask{} + + err = json.Unmarshal(data, &varProtobufFieldMask) + + if err != nil { + return err + } + + *o = ProtobufFieldMask(varProtobufFieldMask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "paths") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableProtobufFieldMask struct { value *ProtobufFieldMask isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_kerberos_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_kerberos_key_response.go index f899902e..94188cbf 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_kerberos_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_kerberos_key_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadKerberosKeyResponse{} // ReadKerberosKeyResponse The response format to retrieve the __KerberosKey__ resource extracted from the uploaded keytab file. type ReadKerberosKeyResponse struct { - Result *KerberosKey `json:"result,omitempty"` + Result *KerberosKey `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadKerberosKeyResponse ReadKerberosKeyResponse + // NewReadKerberosKeyResponse instantiates a new ReadKerberosKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadKerberosKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadKerberosKeyResponse) UnmarshalJSON(data []byte) (err error) { + varReadKerberosKeyResponse := _ReadKerberosKeyResponse{} + + err = json.Unmarshal(data, &varReadKerberosKeyResponse) + + if err != nil { + return err + } + + *o = ReadKerberosKeyResponse(varReadKerberosKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadKerberosKeyResponse struct { value *ReadKerberosKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_tsig_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_tsig_key_response.go index 027dc556..08b5153e 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_tsig_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_read_tsig_key_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &ReadTSIGKeyResponse{} // ReadTSIGKeyResponse The response format to retrieve the __TSIGKey__ object. type ReadTSIGKeyResponse struct { - Result *TSIGKey `json:"result,omitempty"` + Result *TSIGKey `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _ReadTSIGKeyResponse ReadTSIGKeyResponse + // NewReadTSIGKeyResponse instantiates a new ReadTSIGKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o ReadTSIGKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *ReadTSIGKeyResponse) UnmarshalJSON(data []byte) (err error) { + varReadTSIGKeyResponse := _ReadTSIGKeyResponse{} + + err = json.Unmarshal(data, &varReadTSIGKeyResponse) + + if err != nil { + return err + } + + *o = ReadTSIGKeyResponse(varReadTSIGKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableReadTSIGKeyResponse struct { value *ReadTSIGKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_tsig_key.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_tsig_key.go index abff2f84..9baf2c32 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_tsig_key.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_tsig_key.go @@ -11,7 +11,6 @@ API version: v1 package keys import ( - "bytes" "encoding/json" "fmt" "time" @@ -39,7 +38,8 @@ type TSIGKey struct { // The tags for the TSIG key in JSON format. Tags map[string]interface{} `json:"tags,omitempty"` // Time when the object has been updated. Equals to _created_at_ if not updated after creation. - UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} } type _TSIGKey TSIGKey @@ -368,6 +368,11 @@ func (o TSIGKey) ToMap() (map[string]interface{}, error) { if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -396,9 +401,7 @@ func (o *TSIGKey) UnmarshalJSON(data []byte) (err error) { varTSIGKey := _TSIGKey{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTSIGKey) + err = json.Unmarshal(data, &varTSIGKey) if err != nil { return err @@ -406,6 +409,21 @@ func (o *TSIGKey) UnmarshalJSON(data []byte) (err error) { *o = TSIGKey(varTSIGKey) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "algorithm") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "protocol_name") + delete(additionalProperties, "secret") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_kerberos_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_kerberos_key_response.go index 1a9ee791..dbebe3ea 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_kerberos_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_kerberos_key_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateKerberosKeyResponse{} // UpdateKerberosKeyResponse The response format to update __KerberosKey__ resource extracted from the uploaded keytab file. type UpdateKerberosKeyResponse struct { - Result *KerberosKey `json:"result,omitempty"` + Result *KerberosKey `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateKerberosKeyResponse UpdateKerberosKeyResponse + // NewUpdateKerberosKeyResponse instantiates a new UpdateKerberosKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateKerberosKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateKerberosKeyResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateKerberosKeyResponse := _UpdateKerberosKeyResponse{} + + err = json.Unmarshal(data, &varUpdateKerberosKeyResponse) + + if err != nil { + return err + } + + *o = UpdateKerberosKeyResponse(varUpdateKerberosKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateKerberosKeyResponse struct { value *UpdateKerberosKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_tsig_key_response.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_tsig_key_response.go index f0b074a9..122ce5f9 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_tsig_key_response.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_update_tsig_key_response.go @@ -19,9 +19,12 @@ var _ MappedNullable = &UpdateTSIGKeyResponse{} // UpdateTSIGKeyResponse The response format to update __TSIGKey__ object. type UpdateTSIGKeyResponse struct { - Result *TSIGKey `json:"result,omitempty"` + Result *TSIGKey `json:"result,omitempty"` + AdditionalProperties map[string]interface{} } +type _UpdateTSIGKeyResponse UpdateTSIGKeyResponse + // NewUpdateTSIGKeyResponse instantiates a new UpdateTSIGKeyResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments @@ -84,9 +87,35 @@ func (o UpdateTSIGKeyResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Result) { toSerialize["result"] = o.Result } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } +func (o *UpdateTSIGKeyResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateTSIGKeyResponse := _UpdateTSIGKeyResponse{} + + err = json.Unmarshal(data, &varUpdateTSIGKeyResponse) + + if err != nil { + return err + } + + *o = UpdateTSIGKeyResponse(varUpdateTSIGKeyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + type NullableUpdateTSIGKeyResponse struct { value *UpdateTSIGKeyResponse isSet bool diff --git a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_upload_request.go b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_upload_request.go index 4bdedcfa..6ab290f8 100644 --- a/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_upload_request.go +++ b/vendor/github.com/infobloxopen/bloxone-go-client/keys/model_upload_request.go @@ -11,7 +11,6 @@ API version: v1 package keys import ( - "bytes" "encoding/json" "fmt" ) @@ -27,8 +26,9 @@ type UploadRequest struct { Content string `json:"content"` Fields *ProtobufFieldMask `json:"fields,omitempty"` // The tags for uploaded content in JSON format. - Tags map[string]interface{} `json:"tags,omitempty"` - Type UploadContentType `json:"type"` + Tags map[string]interface{} `json:"tags,omitempty"` + Type UploadContentType `json:"type"` + AdditionalProperties map[string]interface{} } type _UploadRequest UploadRequest @@ -219,6 +219,11 @@ func (o UploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["tags"] = o.Tags } toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + return toSerialize, nil } @@ -247,9 +252,7 @@ func (o *UploadRequest) UnmarshalJSON(data []byte) (err error) { varUploadRequest := _UploadRequest{} - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varUploadRequest) + err = json.Unmarshal(data, &varUploadRequest) if err != nil { return err @@ -257,6 +260,17 @@ func (o *UploadRequest) UnmarshalJSON(data []byte) (err error) { *o = UploadRequest(varUploadRequest) + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "content") + delete(additionalProperties, "fields") + delete(additionalProperties, "tags") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + return err } diff --git a/vendor/modules.txt b/vendor/modules.txt index 8b530ab1..683e1a89 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -280,7 +280,7 @@ github.com/huandu/xstrings # github.com/imdario/mergo v0.3.15 ## explicit; go 1.13 github.com/imdario/mergo -# github.com/infobloxopen/bloxone-go-client v0.0.0-20240423210930-d8559759c1a6 +# github.com/infobloxopen/bloxone-go-client v0.0.0-20240426160014-afd451b8d00d ## explicit; go 1.19 github.com/infobloxopen/bloxone-go-client/anycast github.com/infobloxopen/bloxone-go-client/client